/* Reforest Nation prototype base: the live site's Moss & Clay tokens, fonts and buttons (docs/DESIGN-RULES.md). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: block; src: url("/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: block; src: url("/fonts/fraunces-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: block; src: url("/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: block; src: url("/fonts/figtree-italic-latin.woff2") format("woff2"); }

:root {
  --paper: #F8F6F0; --sage: #DEE2D2; --card: #FFFFFF; --sand: #DEE2D2; --parchment: #E7CDAA;
  --hairline: #B8BDAD; --hairline-fill: #DEE2D2; --mist: #5C6156; --bark: #2E3A2C; --moss: #2E3A2C;
  --gold: #CC9B50; --clay: #A4472F;
  --serif: "Fraunces", Georgia, serif; --sans: "Figtree", system-ui, sans-serif;
  --h1: clamp(46px, 7vw, 100px); --h2: clamp(38px, 3.9vw, 56px); --lead: clamp(19px, 1.4vw, 21px);
  --sp-section: clamp(72px, 9vw, 128px); --sp-head: clamp(36px, 4vw, 56px); --sp-block: 40px; --sp-stack: 20px; --sp-tight: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-card: 26px; --r-panel: 32px; --r-big: 40px;
  --ease-brand: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.3, 1.35, .6, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--bark); font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-variation-settings: "SOFT" 0; font-size: var(--h1); line-height: .98; letter-spacing: -.028em; }
h2 { font-size: var(--h2); line-height: 1.07; letter-spacing: -.022em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: inherit; color: var(--clay); }
.dark h1 em, .dark h2 em, .dark h3 em { color: var(--gold); }
.kicker { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--clay); margin: 0 0 var(--sp-tight); }
.dark .kicker { color: var(--gold); }
.lead { font-size: var(--lead); line-height: 1.38; color: var(--mist); max-width: 34em; margin: var(--sp-stack) 0 0; }
.dark { background: var(--moss); color: var(--paper); }
.dark .lead { color: rgba(248, 246, 240, .8); }

/* buttons: 48px pills. Primary Clay at rest, Gold with Bark words on hover; Quiet Sand, Clay on hover. */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s var(--ease-brand), color .25s var(--ease-brand), transform .2s var(--ease-brand); }
.btn:active { opacity: .88; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-quiet { background: var(--sand); color: var(--bark); }
.btn-light { background: var(--card); color: var(--bark); }
.dark .btn-quiet { background: rgba(248, 246, 240, .12); color: var(--paper); }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dark .link { color: var(--parchment); }
.field { width: 100%; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--card); font: 400 16px var(--sans); color: var(--bark); transition: border-color .2s; }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204, 155, 80, .25); }
.label { display: block; font-size: 14px; color: var(--mist); margin: 0 0 8px; }
svg path, svg line, svg polyline { stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--gold); color: var(--bark); transform: translateY(-2px); }
  .btn-quiet:hover { background: var(--clay); color: var(--paper); }
  .btn-light:hover { background: var(--gold); }
  .dark .btn-quiet:hover { background: var(--clay); }
  .link:hover { color: var(--clay); }
  .field:hover { border-color: var(--mist); }
}
