/* Trailpost site style ("Evergreen", the home page's look) for every page build_store.py writes with the page shell:
   shop, try, free, terms, privacy, accessibility, AI, product pages and the stories page.
   Dark green header and footer, a dark page heading band, white cards on a paper background, Fraunces and Inter.
   The Plus member pages use css/plus.css, which shares these colours. Copied to the site's css/brand.css by build_store.py. */
:root {
  --night: #0c1d16; --night-2: #12291f; --deep: #07130e; --pine: #1d4a37; --moss: #2f6b4f;
  --gold: #f0c35a; --gold-2: #e0ab3a; --paper: #f7f5ef; --card: #ffffff;
  --ink: #17221c; --ink-soft: #4d5a52; --line: #e4e1d6; --on-night: #cfdcd3; --mist: #9fb7a9;
  --display: "Fraunces", Georgia, serif; --body: "Inter", system-ui, sans-serif;
  --radius: 18px; --ease: cubic-bezier(.22,.8,.24,1);
  /* older names still used by page styles */
  --green: var(--pine); --green-2: var(--moss); --brass: var(--gold-2); --honey: var(--gold); --sage: var(--mist);
  --bg: var(--paper); --soft: #eef2ec; --on-green: var(--on-night); --cream: #f7f1e8;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
::selection { background: #f5dc9c; color: var(--ink); }
a { color: var(--pine); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
[hidden] { display: none !important; }

/* header: the same bar as the home page */
.top { position: sticky; top: 0; z-index: 30; background: rgba(12,29,22,.92); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.logo { display: flex; flex-direction: column; align-items: stretch; width: max-content; text-decoration: none; line-height: 1; }
.logo img { height: 32px; width: auto; display: block; }
.logo .mark { margin-top: 3px; padding-left: 24%; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--on-night); }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; }
.top nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.top .acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.signin { display: flex; align-items: center; gap: 6px; min-width: 0; }
.signin input { width: 180px; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; }
.signin input::placeholder { color: var(--mist); }
.signin input:focus { outline: none; border-color: var(--gold); }
.signin button { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.signin-msg { flex: 1 1 100%; margin: 0; text-align: right; font-size: 13px; color: var(--gold); }
.signin-msg:empty { display: none; }

/* page body */
main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 10px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 0 0 10px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.tiny { font-size: .84rem; color: var(--ink-soft); }

/* the page heading: a dark band across the full width, like the home page hero */
main > .hero:first-child { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw) 32px; padding: 56px max(24px, calc(50vw - 576px)) 44px; background: var(--night); color: #fff; overflow: hidden; }
main > .hero:first-child::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 70% at 85% 20%, rgba(61,160,120,.30), transparent 70%), radial-gradient(30% 60% at 10% 0%, rgba(240,195,90,.12), transparent 70%); }
main > .hero:first-child::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 90%); mask-image: linear-gradient(to bottom, #000 20%, transparent 90%); }
main > .hero:first-child h1 { color: #fff; }
main > .hero:first-child .eyebrow { color: var(--gold); }
main > .hero:first-child .lede, main > .hero:first-child p { color: var(--on-night); }
main > .hero:first-child p a { color: #fff; }
main > .hero:first-child .tiny { color: var(--mist); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 1px 0 rgba(23,34,28,.03), 0 10px 30px rgba(23,34,28,.05); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; font-family: inherit; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary, .btn.green, .btn.pine { background: var(--pine); color: #fff; }
.btn.primary:hover, .btn.green:hover, .btn.pine:hover { background: var(--moss); }
.btn.honey, .btn.gold { background: var(--gold); color: #1b1606; box-shadow: 0 8px 22px rgba(240,195,90,.3), inset 0 -2px 0 rgba(0,0,0,.1); }
.btn.honey:hover, .btn.gold:hover { background: #f5cd6d; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--ink-soft); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"] { background: var(--soft); color: var(--ink-soft); cursor: default; transform: none; box-shadow: none; }

/* footer: the same as the home page */
footer.site { margin: 64px 0 0; background: var(--deep); color: var(--mist); text-align: left; font-size: 14px; }
footer.site .foot-in { max-width: 1200px; margin: 0 auto; padding: 44px 24px 48px; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
footer.site a { color: var(--on-night); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .about { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
footer.site .about img { height: 28px; width: auto; align-self: flex-start; }
footer.site p { margin: 0; max-width: 40ch; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 28px 48px; }
footer.site nav div { display: flex; flex-direction: column; gap: 8px; }
footer.site strong { color: #fff; }

/* sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.signup label { position: absolute; left: -9999px; }
.signup input { flex: 1 1 260px; font: inherit; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.signup input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(240,195,90,.35); }
.note { min-height: 1.5em; margin: 10px 0 0; font-size: .92rem; }
.note.ok { color: var(--pine); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 720px) {
  .top { position: static; }
  .top-in { padding: 12px 16px; gap: 12px 18px; }
  .logo img { height: 28px; }
  .logo .mark { font-size: 9px; letter-spacing: .12em; }
  .top nav { gap: 6px 16px; font-size: .9rem; }
  .top .acts { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: nowrap; }
  .top .acts .signin-msg { display: none; }
  .signin { flex: 1 1 auto; }
  .signin input { flex: 1 1 auto; width: auto; }
  main { padding: 0 16px; }
  main > .hero:first-child { padding: 36px 16px 30px; margin-bottom: 24px; }
  .panel { padding: 22px 20px; }
  footer.site .foot-in { padding: 32px 16px 36px; }
}
