/* Oregon Top Picks — shared design system */
:root {
  --paper: #F4EFE4;
  --paper-2: #EBE4D4;
  --paper-3: #E0D7C3;
  --card: #FBF8F1;
  --ink: #1B1F1A;
  --ink-soft: #4B524A;
  --ink-mute: #767C72;
  --line: rgba(27, 31, 26, 0.14);
  --forest: #1D3A2E;
  --forest-2: #28503F;
  --forest-ink: #EFE9DA;
  --gold: #C9A24B;        /* badge only */
  --gold-soft: #E3CB8C;
  --accent: #B4532A;      /* CTAs only */
  --accent-hover: #9A4421;
  --ok: #2F6B4A;

  --font-display: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 7rem;

  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(27,31,26,.06), 0 10px 30px -12px rgba(27,31,26,.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display, h1, h2, h3.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); line-height: 1.08; }
h3 { font-size: var(--text-lg); font-weight: 600; margin: 0; line-height: 1.3; }
em, .em { font-style: italic; font-family: var(--font-display); font-weight: 400; }
p { margin: 0; }
.lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 58ch; line-height: 1.55; }
.kicker {
  font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.on-dark .kicker, .kicker.light { color: var(--gold-soft); }
.muted { color: var(--ink-mute); }
.fine { font-size: var(--text-sm); color: var(--ink-mute); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.on-light .btn-ghost:hover, .btn-ghost.dark:hover { background: rgba(27,31,26,.05); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.link {
  text-decoration: none; font-weight: 600; font-size: var(--text-sm);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(244,239,228,.88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark .wm-main { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.wordmark .wm-main i { font-weight: 400; }
.wordmark .wm-sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; font-size: var(--text-sm); color: var(--ink-soft); font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: .65rem 1rem; }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } .wordmark .wm-sub { display: none; } }

/* Sections */
section { position: relative; }
.section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-8); }
.on-dark { background: var(--forest); color: var(--forest-ink); }
.on-dark .lede, .on-dark .muted, .on-dark .fine { color: rgba(239,233,218,.74); }
.alt { background: var(--paper-2); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); max-width: 760px; }
@media (max-width: 700px) { .section { padding-block: var(--space-8); } }

/* Rule divider: a fine double line with a center diamond, like a printed guide */
.rule { display: flex; align-items: center; gap: 1rem; color: var(--ink-mute); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); box-shadow: 0 3px 0 var(--line); }
.rule span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  padding: 1.1rem 1.6rem; white-space: nowrap; color: var(--ink-soft);
}
.marquee-track span::after { content: "◆"; font-style: normal; font-size: .55em; color: var(--gold); margin-left: 3.2rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #F7F2E6; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease-out; }
.hero.loaded .hero-media img { transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,24,19,.35) 0%, rgba(14,24,19,.1) 35%, rgba(14,24,19,.78) 100%),
              linear-gradient(90deg, rgba(14,24,19,.55) 0%, rgba(14,24,19,0) 65%);
}
.hero-content { position: relative; padding-block: var(--space-9) var(--space-8); display: grid; gap: var(--space-5); }
.hero .kicker { color: var(--gold-soft); }
.hero h1 { max-width: 14ch; }
.hero .lede { color: rgba(247,242,230,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-2); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: var(--text-sm); color: rgba(247,242,230,.82); margin-top: var(--space-4); padding-top: var(--space-5); border-top: 1px solid rgba(247,242,230,.22); max-width: 760px; }
.hero-proof b { color: #fff; font-weight: 600; }

/* Badge lockup */
.badge-lockup { display: inline-flex; align-items: center; gap: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem 1.1rem 1.1rem; box-shadow: var(--shadow); color: var(--ink); }
.badge-lockup .badge-svg { width: 150px; height: 150px; flex: none; }
.badge-lockup .qr { width: 92px; height: 92px; flex: none; }
.badge-lockup .qr svg, .badge-lockup .qr img { width: 100%; height: 100%; }
.badge-lockup .bl-text { display: grid; gap: .25rem; max-width: 18ch; }
.badge-lockup .bl-text b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.15; }
.badge-lockup .bl-text span { font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: .04em; }
.badge-svg .ring-text { animation: spin 40s linear infinite; transform-origin: 120px 120px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge-svg .ring-text { animation: none; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .5rem .9rem;
  font-size: var(--text-sm); cursor: pointer; color: var(--ink-soft); transition: all .2s;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }

/* Cards / grid */
.grid { display: grid; gap: var(--space-5); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.1rem; }

/* 9x12 card mockup */
.mailer {
  aspect-ratio: 9 / 12; width: 100%; max-width: 440px; background: #F8F3E7; color: var(--ink);
  border-radius: 4px; padding: 5.5% 5.5% 4%; display: flex; flex-direction: column; gap: 3.5%;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 30px 60px -20px rgba(0,0,0,.55); position: relative;
}
.mailer-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1.5px solid var(--forest); padding-bottom: 3%; }
.mailer-head .mh-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, .6rem + 1.2vw, 1.45rem); line-height: 1; }
.mailer-head .mh-title i { font-weight: 400; }
.mailer-head .mh-meta { font-size: clamp(.42rem, .3rem + .35vw, .6rem); letter-spacing: .14em; text-transform: uppercase; text-align: right; color: var(--ink-soft); font-weight: 600; line-height: 1.5; }
.mailer-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 2.2%; }
.mtile { border: 1px solid rgba(29,58,46,.22); border-radius: 3px; padding: 7% 8%; display: flex; flex-direction: column; justify-content: space-between; background: #FFFDF7; min-width: 0; }
.mtile .mt-cat { font-size: clamp(.36rem, .25rem + .32vw, .52rem); letter-spacing: .12em; text-transform: uppercase; color: var(--forest-2); font-weight: 700; line-height: 1.2; }
.mtile .mt-name { font-family: var(--font-display); font-size: clamp(.5rem, .32rem + .5vw, .78rem); line-height: 1.1; margin-top: 6%; }
.mtile .mt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; }
.mtile .mt-qr { width: 28%; aspect-ratio: 1; background:
  conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 50% 50%; opacity: .75; border-radius: 1px; }
.mtile .mt-seal { width: 26%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--forest); }
.mtile .mt-lines { display: grid; gap: 9%; flex: 1; align-content: center; }
.mtile .mt-lines i { display: block; height: 3px; border-radius: 2px; background: rgba(27,31,26,.16); }
.mtile .mt-lines i:first-child { height: 5px; background: rgba(27,31,26,.42); width: 85%; }
.mtile .mt-lines i:last-child { width: 60%; }
.mtile.open { border-style: dashed; background: transparent; align-items: center; justify-content: center; text-align: center; }
.mtile.open .mt-name { color: var(--ink-mute); font-style: italic; }
.mtile.hl { outline: 2px solid var(--accent); outline-offset: 1px; }
.mailer-foot { display: flex; justify-content: space-between; font-size: clamp(.38rem, .28rem + .3vw, .55rem); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.mailer-tag { position: absolute; top: -12px; right: 16px; background: var(--gold); color: var(--forest); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 3px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 0; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 22px; height: 22px; flex: none; position: relative; margin-top: 4px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); transition: transform .3s; }
.faq summary .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq details[open] summary .plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq .answer { overflow: hidden; color: var(--ink-soft); max-width: 68ch; padding-bottom: 1.4rem; }

/* Footer */
.footer { background: #142A21; color: rgba(239,233,218,.78); padding-block: var(--space-8) var(--space-6); font-size: var(--text-sm); }
.footer .wordmark { color: var(--forest-ink); }
.footer .wordmark .wm-sub { color: rgba(239,233,218,.55); display: inline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.footer h4 { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { text-decoration: none; } .footer a:hover { color: #fff; }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(239,233,218,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(239,233,218,.55); font-size: var(--text-xs); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Form base */
label { font-size: var(--text-sm); font-weight: 600; display: block; margin-bottom: .4rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .85rem 1rem; border: 1px solid rgba(27,31,26,.22); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(40,80,63,.15); }
.input.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,83,42,.12); }
.err { color: var(--accent); font-size: var(--text-xs); margin-top: .35rem; min-height: 1em; }
