/*
  Pecans & Peacocks
  Layout: a wide photo of the farm opens the home page, followed by a plain intro with the logo. Inner pages open with
  a deep blue band. Sand and white sections alternate below, with one dark panel for the game.
  Colors come from the logo: cobalt blue, forest green, copper orange and wordmark brown. They are the tokens below.
  Change a value here and the whole site updates.
*/
:root {
  --paper: #fdfcf9;
  --card: #ffffff;
  --sand: #f4ecdd;
  --ink: #2a1b10;
  --muted: #5d5248;
  --brown: #6e4926;
  --blue: #2b548d;
  --blue-deep: #1d3b68;
  --green: #377451;
  --orange: #cc6f32;
  --orange-btn: #e08a3c;
  --orange-soft: #f3b36a;
  --line: #e6dfd0;
  --focus: #2b548d;
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.page-head, .play { --focus: var(--orange-soft); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange-btn); color: var(--ink); padding: 10px 14px; font-weight: 700; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 20px; max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand img { width: 70px; height: 44px; object-fit: contain; }
.site-header nav { min-width: 0; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-header nav a { display: block; padding: 8px 0; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--green); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; font: 700 17px/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer; text-align: center; }
.btn-accent { background: var(--orange-btn); color: var(--ink); }
.btn-accent:hover { background: #ec9a52; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: rgba(43, 84, 141, 0.08); color: var(--blue-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home: wide farm photo, then the intro */
.hero-photo { background: var(--sand); }
/* The photo scales with the screen width and is only trimmed when it would be taller than 72% of the window or 640px. */
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1895 / 900; min-height: 280px; max-height: min(72vh, 640px); object-fit: cover; object-position: 22% 80%; }
.intro .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-block: 52px; }
.intro-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.intro-logo { width: min(100%, 400px); justify-self: center; }

/* Inner page heading */
.page-head { background: var(--blue-deep); color: #fff; }
.page-head .wrap { padding-block: 44px 40px; display: grid; gap: 14px; }
.page-head .eyebrow { color: var(--orange-soft); }
.page-head .lead { color: #dbe5f3; }
.page-head.has-art .wrap { grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; }
.head-copy { display: grid; gap: 14px; min-width: 0; }
.head-art { position: relative; display: grid; place-items: center; min-width: 0; }
.head-art::before { content: ""; position: absolute; width: 80%; aspect-ratio: 4 / 5; background: url(images/eye.svg) center / contain no-repeat; opacity: 0.22; transform: rotate(14deg); }
.head-art img { position: relative; width: min(100%, 250px); }
.eyes { height: 34px; background: var(--blue-deep) url(images/eye.svg) repeat-x center / auto 30px; }

/* Status strip */
.status { background: var(--card); border-block: 1px solid var(--line); }
.status .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.status p { min-width: 0; flex: 1 1 280px; }

/* Sections */
.section { padding-block: 64px; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section.sand { background: var(--sand); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.section-head p { max-width: 60ch; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.cols-3 > * { min-width: 0; }
.feat { display: grid; gap: 10px; align-content: start; }
.feat::before { content: ""; width: 30px; height: 38px; background: url(images/eye.svg) center / contain no-repeat; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 28px; }

/* Featured game (home page). The dark panel matches the game's own screen color. */
.play { background: #17142b; color: #fff; }
.play .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding-block: 56px; }
.play .wrap > * { min-width: 0; }
.play .eyebrow { color: var(--orange-soft); }
.play p { color: #e2dcf2; }
.play a { color: var(--orange-soft); }
.play a:hover { color: #ffd29c; }
.play .how { font-size: 16px; color: #b9b1d6; }
.game-frame { width: 100%; height: 760px; border: 0; border-radius: 6px; background: #17142b; display: block; }

/* Photos */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.photo.tall { aspect-ratio: 4 / 5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
figcaption { font-size: 15px; color: var(--muted); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--orange); }
.steps h3 { font-size: 21px; }

/* Facts list */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; min-width: 0; }
.checks { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.checks li::marker { color: var(--green); }
.checks strong { font-weight: 700; }
.note { border-left: 5px solid var(--orange); background: var(--card); padding: 16px 18px; }

/* Family band */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.family > * { min-width: 0; }
.family .eyebrow { color: var(--brown); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 19px; }
details p { margin-top: 10px; max-width: 62ch; }

/* Forms */
form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 16px; }
.field .hint { color: var(--muted); font-size: 15px; font-weight: 400; }
input, select, textarea { width: 100%; font: 400 18px/1.4 var(--font-body); color: var(--ink); background: #fff; border: 2px solid #c9c0ae; border-radius: 6px; padding: 12px 14px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a3321d; }
.form-status button { margin-left: 8px; font: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.big-mail { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--sand); color: var(--ink); border-top: 1px solid #d9cfb8; padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-grid h2 { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.foot-brand img { width: 70px; height: 44px; object-fit: contain; }
.fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid #d9cfb8; font-size: 15px; color: var(--muted); }

@media (max-width: 820px) {
  .intro .wrap, .split, .family, .play .wrap, .page-head.has-art .wrap { grid-template-columns: 1fr; }
  .intro .wrap { padding-block: 36px; }
  .intro-logo { width: min(100%, 300px); justify-self: start; }
  .head-art img { width: min(100%, 190px); }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding-block: 48px; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dt { margin-top: 10px; }
  body { font-size: 17px; }
  .lead { font-size: 18px; }
}
