/* ============================================================================
   earthway.css — the shared stylesheet for all three Earthway sites.
   Extracted 2026-08-21 from the Lodge app + the 2026-05 site prototype.
   Two themes on ONE set of tokens:
       .theme-lodge  — near-black ground (the app, lamplight)
       .theme-land   — parchment ground  (Șomartin, daylight)
   No framework. No build step. Hand-written.
   ========================================================================= */

:root {
  /* --- the medallion, which is where the whole palette comes from --- */
  --forest:      #3b6b47;   /* logo stroke, roots */
  --terracotta:  #c4693b;   /* the lodge body */
  --flame:       #f2a93c;   /* hearth flame, outer */
  --flame-light: #f7d572;   /* hearth flame, inner */
  --ember:       #241d15;   /* the doorway */

  /* --- the land site's greens & creams (from the 2026-05 prototype) --- */
  --sage:        #74895b;
  --sage-deep:   #50643c;
  --sage-mist:   #e7ece1;
  --clay:        #a24d34;
  --gold-deep:   #c6904c;
  --parchment:   #fffbf2;
  --parchment-2: #f7f2e8;

  /* --- the app's dark surfaces --- */
  --night:       #0d1117;
  --night-card:  #0b1015;
  --night-line:  #1b2730;
  --bone:        #f2ecdd;   /* the wordmark */
  --text-bright: #e5e7eb;
  --text-body:   #cbd5e1;
  --text-muted:  #9ca3af;
  --text-dim:    #5b6b75;

  /* --- semantic accents (same meanings as in the app) --- */
  --good:        #30d158;
  --link:        #7dd3fc;
  --attention:   #ffb020;

  /* --- type --- */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  /* --- rhythm --- */
  --gap:   clamp(1rem, 2.5vw, 1.6rem);
  /* section rhythm. NOTE: sections pad top AND bottom and the weave adds its own
     margin, so this value stacks up to 3× between sections — keep it modest. */
  --band:  clamp(1.8rem, 3.6vw, 2.9rem);
  --round: 14px;
  --measure: 62ch;
}

/* ---------- themes -------------------------------------------------------- */
.theme-lodge {
  --bg: var(--night);  --surface: var(--night-card);  --line: var(--night-line);
  --ink: var(--text-bright);  --ink-2: var(--text-body);  --ink-3: var(--text-muted);
  --brand: var(--bone);  --accent: var(--flame);
}
.theme-land {
  --bg: var(--parchment);  --surface: #fff;  --line: #e2dccd;
  --ink: #23200f;  --ink-2: #4a4636;  --ink-3: #7a7563;
  --brand: var(--sage-deep);  --accent: var(--clay);
}

/* ---------- base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { width: min(var(--measure) + 12rem, 92vw); margin-inline: auto; }
.narrow { max-width: var(--measure); }
section { padding-block: var(--band); }

/* ---------- type ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
.lead { font-family: var(--serif); font-size: clamp(1.12rem, 2.2vw, 1.4rem); color: var(--ink); }
.eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3); margin-bottom: .9rem;
}
.dim { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ---------- the mark ------------------------------------------------------ */
.mark { width: clamp(88px, 13vw, 128px); margin-inline: auto; }
.wordmark {
  font-family: var(--serif); color: var(--brand);
  letter-spacing: .34em; text-transform: uppercase;
  font-size: clamp(.86rem, 1.9vw, 1.05rem); text-align: center;
  margin: 1.3rem 0 .5rem; padding-left: .34em;
}
.byline {
  /* modular scale, ratio 1.25: h1 2.6 › h2 2.1 › lead 1.4 › body 1 */
  font-family: var(--serif); font-style: italic; color: var(--ink-2);
  text-align: center; font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.25; font-weight: 400; margin-block: 1.6rem 0;
  /* the base `p { max-width: 62ch }` applies here too — without auto margins the
     block sits at the left edge and the centred text inside it looks orphaned. */
  max-width: none; margin: 0 auto;
}

/* ---------- the woven divider (borrowed from the app) --------------------- */
.weave {
  border: 0; height: 1px; margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
  position: relative; overflow: visible;
}
.weave::after {
  content: "❦"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: var(--bg);
  color: var(--ink-3); font-size: .8rem; padding: 0 .7rem;
}

/* ---------- cards --------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--round); padding: 1.35rem 1.45rem;
}
.card h3 { margin-bottom: .35em; }
.card p  { margin: 0; font-size: .95rem; color: var(--ink-3); }
.card .glyph { font-size: 1.5rem; line-height: 1; margin-bottom: .7rem; }

/* ---------- the promise panel --------------------------------------------- */
.panel {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--round);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
}

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: .95rem;
  padding: .8em 1.5em; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); color: var(--bg); background: var(--accent);
}
.btn:hover { filter: brightness(1.08); color: var(--bg); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-3); color: var(--ink); filter: none; }

/* ---------- status note --------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4em 1em; font-size: .82rem; color: var(--ink-3);
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--attention); }


/* ---------- beta banner (slim bar at the very top) ------------------------ */
.beta {
  background: linear-gradient(90deg, rgba(242,169,60,.14), rgba(242,169,60,.07));
  border-bottom: 1px solid rgba(242,169,60,.3);
  color: var(--ink-2); font-size: .9rem; text-align: center;
  padding: .7rem 1rem;
}
.beta b { color: var(--accent); }
.beta a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- requirements strip ------------------------------------------- */
.reqs { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.4rem; }
.req { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line);
       border-radius: 10px; padding: .8rem .95rem; background: var(--surface); }
.req .g { font-size: 1.1rem; line-height: 1.3; }
.req b { color: var(--ink); display: block; font-size: .95rem; font-weight: 600; }
.req span { color: var(--ink-3); font-size: .85rem; }

/* ---------- objections → answers ------------------------------------------ */
.objections { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
@media (min-width: 700px) { .objections { grid-template-columns: 1fr 1fr; } }
.obj { border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); padding: 1.1rem 1.25rem; }
.obj .said { color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 1rem; margin: 0 0 .55rem; }
.obj .ans { color: var(--ink-2); font-size: .94rem; margin: 0; }
.obj .ans b { color: var(--ink); }

/* ---------- "in plain words" strip ---------------------------------------- */
.plain { display: grid; gap: 1.1rem 1.8rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
/* One column, four rows. Read in sequence, a 2x2 makes the eye zigzag left-right-left. */
.plain > div { max-width: var(--measure); }
.plain > div { border-left: 2px solid var(--line); padding: .1rem 0 .1rem 1rem; }
.plain b { color: var(--ink); display: block; font-size: 1rem; margin-bottom: .2rem; }
.plain span { color: var(--ink-3); font-size: .92rem; }

/* ---------- sticky anchor nav -------------------------------------------- */
/* Sits AFTER the hero, so the medallion gets a clean opening, then sticks to
   the top as you scroll. No JavaScript. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-block: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.1rem; padding: .55rem 0; overflow-x: auto; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-mark { width: 26px; flex: 0 0 auto; opacity: .9; }
.nav a {
  color: var(--ink-3); text-decoration: none; font-size: .88rem; font-weight: 600;
  white-space: nowrap; padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav .spacer { margin-left: auto; }
.nav .cta { color: var(--accent); }
/* stop anchors landing underneath the sticky bar */
section[id] { scroll-margin-top: 4.2rem; }

/* ---------- screenshot frame --------------------------------------------- */
.shot {
  border: 1px solid var(--line); border-radius: var(--round);
  overflow: hidden; background: var(--surface);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  max-height: 620px; position: relative;
}
.shot img { width: 100%; display: block; }
/* fade the long tail of the page rather than cropping it hard */
.shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
/* Screenshot captions carry real information — what the screen IS — so they are not fine print.
   Was .85rem in --ink-3 (the muted grey): too small and too faint, and readers scanned straight past it. */
.shot-caption {
  font-size: 1rem; line-height: 1.6; color: var(--ink-2);
  margin-top: 1rem; text-align: center;
  max-width: 60ch; margin-inline: auto;
}
.shot-caption b { color: var(--ink); font-weight: 600; }

/* ---------- collapsible detail (for the technically curious) -------------- */
details.deep {
  border: 1px solid var(--line); border-radius: var(--round);
  background: var(--surface); padding: 0; margin-top: 1.6rem;
}
details.deep > summary {
  cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: .6rem;
}
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary::before { content: "▸"; color: var(--accent); font-size: .9rem; }
details.deep[open] > summary::before { content: "▾"; }
details.deep > summary:hover { color: var(--accent); }
details.deep .body { padding: 0 1.3rem 1.3rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
details.deep .body p, details.deep .body li { font-size: .95rem; }
details.deep code {
  font-family: ui-monospace, Menlo, monospace; font-size: .88em;
  background: rgba(125,211,252,.09); border: 1px solid var(--line);
  border-radius: 5px; padding: .1em .4em; color: var(--link);
}

/* ---------- sign-up ------------------------------------------------------- */
.signup { border: 1px solid var(--line); border-radius: var(--round); background: var(--surface);
          padding: clamp(1.5rem, 4vw, 2.4rem); text-align: center; }
.signup .embed { margin: 1.4rem auto 0; max-width: 480px; }
.signup iframe { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- footer -------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 2.6rem 3.4rem; color: var(--ink-3); font-size: .88rem; }
.footer-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-mark { width: 52px; flex: 0 0 auto; opacity: .92; }
.footer-row > div { min-width: 12rem; }
footer a { color: var(--ink-3); }
footer a:hover { color: var(--ink); }

/* ---------- motion, honestly ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── "which assistant would my Mac run?" picker — used by beta.html and index.html ───────────── */
.pick-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.1rem 0 .3rem; }
.pick-row .lbl { color: var(--ink-3); font-size: .85rem; margin-right: .2rem; }
.gbtn, .cbtn { font: inherit; font-size: .9rem; padding: .4rem .8rem; cursor: pointer;
               color: var(--ink-2); background: var(--surface);
               border: 1px solid var(--line); border-radius: var(--round); }
.gbtn:hover, .cbtn:hover { color: var(--ink); border-color: var(--ink-3); }
.gbtn[aria-pressed="true"], .cbtn[aria-pressed="true"] { background: var(--ink); color: var(--surface);
                                                         border-color: var(--ink); }
.gbtn:focus-visible, .cbtn:focus-visible { outline: 2px solid var(--accent-2, #c4693b); outline-offset: 2px; }
.verdict { color: var(--ink-2); font-size: .92rem; line-height: 1.6; margin: .2rem 0 0; min-height: 1.5em; }
.verdict b { color: var(--ink); }
.tiers { display: grid; gap: .9rem; margin-top: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { border: 1px solid var(--line); border-radius: var(--round); background: var(--surface);
        padding: 1.1rem 1.3rem; transition: opacity .18s ease; }
.tier > b { color: var(--ink); display: block; margin-bottom: .35rem; font-size: 1rem; }
.tier > span { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.tier.out { opacity: .34; }
.tier.pick { border-color: var(--ink-3); box-shadow: inset 3px 0 0 var(--accent-2, #c4693b); }
.tier b .gb { color: var(--ink-3); font-weight: 500; }
.tier .speed { display: block; margin-top: .55rem; color: var(--ink-3); font-size: .88rem; }
.tier .speed b { display: inline; color: var(--ink-2); font-size: inherit; margin: 0; }
.tier .fits { display: block; margin-top: .5rem; padding-top: .5rem; font-size: .88rem;
              border-top: 1px dashed var(--line); color: var(--ink-2); }
.tier .fits em { color: var(--ink-3); font-style: normal; }
.tier .yours { display: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
               color: var(--accent-2, #c4693b); font-weight: 600; }
.tier.pick .yours { display: inline; }
@media (prefers-reduced-motion: reduce) { .tier { transition: none; } }

.pair { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; } }
