/* Farmstead Forever website: the landing page and the legal pages.
 *
 * Built from the Figma kit's page "Web · Landing & Admin" (file
 * Su7NSsrg216p2UfqE07tfj; landing 1186:65 and 1188:132, legal 1188:34493).
 * The colour names and effects below are the kit's own variables and effect
 * styles (Primitives/*, UI/*, Raised/Paper, Bevel/Plank, ...), so a change in
 * the kit has one obvious place to land here.
 *
 * The fonts are the game's, served from this site: no request leaves it.
 */
@font-face { font-family: "Skranji"; src: url("fonts/skranji-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("fonts/shantell-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Rowdies"; src: url("fonts/rowdies-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  /* Primitives */
  --wood-100: #f0d9b0; --wood-300: #d8a86b; --wood-500: #b07a42; --wood-700: #7a4b28; --wood-900: #4a2c17;
  --paper-100: #fff6d8; --paper-300: #f6e6c2; --paper-500: #e6cf9a; --paper-700: #c9b07a;
  --ink-500: #5a4a3a; --ink-700: #493c30; --ink-900: #2b2118;
  --gold-300: #ffe59a; --gold-500: #ffd166; --gold-700: #d9a63c; --gold-900: #a6741c;
  --green-300: #9be37a; --green-500: #6ab04c; --green-700: #3f5a2e;
  --red-500: #d0544a; --red-700: #b5382b;
  /* UI */
  --surface-paper: var(--paper-100);
  --surface-paper-shade: var(--paper-300);
  --surface-wood: var(--wood-500);
  --surface-wood-dark: var(--wood-900);
  --surface-felt: var(--green-700);
  --rim-paper-dark: #b07a42;
  --rim-wood-dark: #5a3a1e;
  --ink-primary: var(--ink-900);
  --ink-muted: var(--ink-500);
  --ink-cream: var(--paper-100);
  --ink-on-wood-muted: var(--paper-500);
  --ink-gold: var(--gold-500);
  --ink-number: var(--gold-500);
  --ink-wood: var(--wood-700);
  --shadow: rgba(43, 33, 24, 1);
  /* Effects */
  --raised-paper: inset 0 2px 0 #fff, inset 0 -2px 0 var(--shadow), 0 3px 0 var(--shadow);
  --raised-wood: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 var(--shadow), 0 5px 0 var(--shadow);
  --bevel-plank: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(43, 33, 24, .6);
  --stepped: 0 4px 0 var(--shadow);
  --radius: 16px;
  --font-sign: "Skranji", "Shantell Sans", system-ui, sans-serif;
  --font-body: "Shantell Sans", system-ui, sans-serif;
  --font-number: "Rowdies", "Skranji", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface-paper);
  color: var(--ink-primary);
  font: 500 17px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; object-fit: contain; }
a { color: var(--ink-wood); text-underline-offset: 3px; }
a:hover { color: var(--ink-primary); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-sign); font-weight: 700; line-height: 1.1; margin: 0; }
.wrap { width: min(1152px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: var(--ink-900); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the game's buttons: a slanted plank with a gloss and a stepped shadow */
.btn {
  --face-top: #8fd06a; --face-bottom: #3f7a2e; --rim: #2f5a22;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 700 20px/1 var(--font-sign); letter-spacing: .02em; text-transform: uppercase;
  color: var(--paper-100); text-decoration: none; text-shadow: 0 2px 0 rgba(43, 33, 24, .55);
  background: linear-gradient(var(--face-top), var(--face-bottom));
  border: 3px solid var(--rim); border-radius: 10px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 rgba(43, 33, 24, .45);
  filter: drop-shadow(0 4px 0 var(--shadow));
  transition: transform .14s ease, filter .14s ease;
  white-space: nowrap;
}
.btn img { width: 26px; height: 26px; }
.btn:hover { color: var(--paper-100); transform: translateY(-1px); filter: drop-shadow(0 5px 0 var(--shadow)) brightness(1.06); }
.btn:active { transform: translateY(3px); filter: drop-shadow(0 1px 0 var(--shadow)); }
.btn--gold { --face-top: #ffe59a; --face-bottom: #d9a63c; --rim: #a6741c; color: var(--ink-900); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { color: var(--ink-900); }
.btn--wood { --face-top: #c99257; --face-bottom: #7a4b28; --rim: #5a3a1e; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px;
  font: 700 13px/1 var(--font-body); letter-spacing: .03em; text-transform: uppercase;
  border: 2px solid transparent;
}
.chip--good { background: var(--green-700); color: var(--paper-100); border-color: #2c4020; }
.chip--gold { background: linear-gradient(var(--gold-300), var(--gold-700)); color: var(--wood-900); border-color: var(--gold-900); }

/* ---- nav */
.nav { background: var(--surface-wood-dark); box-shadow: var(--stepped); position: relative; z-index: 2; }
.nav__row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-cream); text-decoration: none; font: 700 24px/1 var(--font-sign); }
.brand:hover { color: var(--gold-300); }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { color: var(--ink-cream); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-500); }
.nav .btn { min-height: 46px; font-size: 18px; padding: 0 20px; }
.nav__menu { display: none; }

/* ---- hero */
.hero {
  background: var(--wood-700) url("img/hero-farm.webp") center 40% / cover no-repeat;
  position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 33, 24, 0) 0%, rgba(43, 33, 24, .15) 55%, rgba(43, 33, 24, .55) 100%); }
.hero__row { position: relative; display: flex; align-items: center; gap: 24px; padding-top: 40px; min-height: 560px; }
.hero__farmer { flex: 0 0 auto; width: 420px; align-self: flex-end; }
.hero__farmer img { width: 100%; height: auto; aspect-ratio: 640 / 797; object-fit: contain; }
.card {
  background: var(--surface-paper); border: 2px solid var(--rim-paper-dark); border-radius: 20px;
  box-shadow: var(--raised-paper);
}
.hero__card { width: 640px; max-width: 100%; padding: 32px 36px; display: grid; gap: 18px; margin-left: auto; }
.hero__card h1 { font-size: 56px; line-height: 60px; }
.hero__card p { margin: 0; font-size: 19px; line-height: 28px; color: var(--ink-muted); }
.chips, .actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.chips { gap: 8px; }

/* ---- sections */
.section { padding: 72px 0; }
.section__head { text-align: center; display: grid; gap: 8px; margin-bottom: 40px; }
.section__head h2 { font-size: 40px; }
.section__head p { margin: 0; color: var(--ink-muted); font-weight: 600; }
.farm { background: var(--surface-paper-shade); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.feature-card { padding: 12px 12px 20px; display: grid; gap: 12px; align-content: start; border-radius: var(--radius); }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.feature-card h3 { font-size: 22px; padding: 0 8px; }
.feature-card p { margin: 0; padding: 0 8px; font-size: 16px; line-height: 1.45; color: var(--ink-muted); }

.families { background: var(--surface-felt); color: var(--ink-cream); }
.families .section__head p, .families__note { color: var(--ink-on-wood-muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0 0 36px; }
.stat { background: var(--surface-wood-dark); border: 2px solid var(--rim-wood-dark); border-radius: var(--radius); padding: 24px; box-shadow: var(--raised-wood); display: grid; gap: 6px; }
.stat b { font: 700 44px/1.1 var(--font-number); color: var(--ink-number); }
.stat span { font-weight: 600; font-size: 16px; line-height: 1.45; }
.families__note { text-align: center; margin: 0; font-weight: 600; font-size: 16px; }

.cta { background: var(--surface-wood); box-shadow: var(--bevel-plank); color: var(--ink-cream); }
.cta__row { display: flex; align-items: center; gap: 24px; padding: 40px 0; }
.cta__row > img { width: 88px; height: 88px; border-radius: 20px; }
.cta__row div { flex: 1; }
.cta__row h2 { font-size: 32px; }
.cta__row p { margin: 4px 0 0; font-weight: 600; }

/* ---- footer */
.footer { background: var(--surface-wood-dark); color: var(--ink-cream); padding: 40px 0; }
.footer__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin-block: 0; }
.footer__links a { color: var(--ink-gold); font-weight: 600; font-size: 16px; text-decoration: none; }
.footer__links a:hover { color: var(--gold-300); text-decoration: underline; }
.footer hr { border: 0; height: 2px; background: var(--wood-500); margin: 20px 0; }
.footer small { display: block; color: var(--ink-on-wood-muted); font-size: 13px; line-height: 1.5; }
.footer small a { color: inherit; }

/* ---- legal pages */
.legal { background: var(--surface-paper-shade); }
.title-band { background: var(--surface-wood); box-shadow: var(--bevel-plank); padding: 36px 0; text-align: center; color: var(--ink-cream); }
.sign {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 26px; border-radius: 14px;
  background: linear-gradient(#d8a86b, #b07a42); border: 3px solid var(--wood-900);
  box-shadow: var(--raised-wood); position: relative;
}
.sign::before, .sign::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wood-900); position: absolute; top: 50%; translate: 0 -50%; }
.sign::before { left: 8px; }
.sign::after { right: 8px; }
.sign h1 { font-size: 32px; color: var(--paper-100); text-transform: uppercase; text-shadow: 0 2px 0 var(--shadow); }
.title-band p { margin: 14px 0 0; font-weight: 600; font-size: 16px; }
.legal__body { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; padding: 48px 0 64px; }
.toc { position: sticky; top: 16px; padding: 20px; border-radius: var(--radius); }
.toc h2 { font-size: 20px; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.toc a:hover { color: var(--ink-wood); text-decoration: underline; }
.sheet { padding: 40px 48px; min-width: 0; }
.sheet > .chips { margin-bottom: 8px; }
.sheet h2 { font-size: 28px; margin: 32px 0 10px; scroll-margin-top: 16px; }
.sheet h2:first-of-type { margin-top: 12px; }
.sheet h3 { font-size: 21px; margin: 22px 0 6px; }
.sheet p, .sheet li { color: var(--ink-muted); line-height: 1.65; }
.sheet p { margin: 0 0 12px; }
.sheet ul, .sheet ol { padding-left: 1.3em; margin: 0 0 12px; }
.sheet li { margin-bottom: 6px; }
.sheet strong { color: var(--ink-primary); }
.sheet table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--paper-500); }
.sheet th { background: var(--surface-paper-shade); font-weight: 700; color: var(--ink-primary); }
.table-scroll { overflow-x: auto; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface-paper-shade); border: 2px solid var(--rim-paper-dark); margin: 20px 0; }
.callout img { width: 28px; height: 28px; flex: none; }
.callout p { margin: 0; color: var(--ink-primary); font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; border-radius: 12px; background: var(--surface-paper-shade); border: 2px solid var(--paper-500); margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--font-number); color: var(--wood-900); background: linear-gradient(var(--gold-300), var(--gold-700)); border: 2px solid var(--gold-900); }
.mail { font-weight: 700; color: var(--ink-wood); }

/* ---- not found */
.lost { text-align: center; padding: 96px 0; display: grid; gap: 16px; justify-items: center; }
.lost h1 { font-size: 48px; }

/* ---- tablet and phone */
@media (max-width: 1080px) {
  .hero__farmer { width: 320px; }
  .hero__card h1 { font-size: 46px; line-height: 50px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav .btn { display: none; }
  .nav__menu { display: block; margin-left: auto; position: relative; }
  .nav__menu summary { list-style: none; cursor: pointer; color: var(--gold-500); font-weight: 700; padding: 10px 4px; }
  .nav__menu summary::-webkit-details-marker { display: none; }
  .nav__menu ul { position: absolute; right: 0; top: 100%; min-width: 200px; list-style: none; margin: 4px 0 0; padding: 8px; background: var(--surface-wood-dark); border: 2px solid var(--wood-700); border-radius: 12px; box-shadow: var(--stepped); }
  .nav__menu a { display: block; padding: 10px 12px; color: var(--ink-cream); text-decoration: none; font-weight: 600; }
  .nav__row { min-height: 60px; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  .hero { background-position: 30% 40%; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 0; padding: 24px 0 24px; min-height: 0; }
  .hero__farmer { width: 240px; align-self: center; margin-bottom: -2px; }
  .hero__card { width: 100%; padding: 24px 20px; gap: 14px; }
  .hero__card h1 { font-size: 40px; line-height: 44px; }
  .hero__card p { font-size: 17px; line-height: 25px; }
  .hero__card .actions .btn { width: 100%; }
  .hero__card .btn--wood { display: none; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 24px; }
  .section__head h2 { font-size: 32px; }
  .cards, .stats { grid-template-columns: 1fr; }
  .stat { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px; }
  .stat b { font-size: 32px; }
  .stats { gap: 16px; margin-bottom: 24px; }
  .cta__row { flex-direction: column; text-align: center; }
  .cta__row .btn { width: 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { margin-left: 0; flex-direction: column; gap: 10px; }
  .legal__body { grid-template-columns: 1fr; padding: 24px 0 48px; gap: 16px; }
  .toc { position: static; }
  .sheet { padding: 24px 20px; }
  .sheet h2 { font-size: 24px; }
  .sign h1 { font-size: 24px; }
}
@media (max-width: 400px) {
  .btn { font-size: 18px; padding: 0 18px; }
  .hero__card h1 { font-size: 36px; line-height: 40px; }
}
@media print {
  .nav, .footer, .toc, .title-band { display: none; }
  .legal__body { display: block; padding: 0; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
}
.families__note a { color: var(--gold-300); }
.notfound__icon { border-radius: 28px; }
