/* Palette
   Night Sky        #2D3A4A   text, headings, primary
   Subalpine Meadow #7A9E7E   accent — decoration only, fails contrast as text
   Taupe Rock       #C4A882   rules and borders — decoration only
   Snowpack         #EAE8E2   background
   Meadow Deep      #4F6B53   darkened Meadow, used wherever green must be TEXT

   Typography (house web stacks — real faces named first, no font files embedded)
   Headline  "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif
   Body      Calibri, Carlito, "Segoe UI", Inter, system-ui, sans-serif */

:root {
  --night: #2D3A4A;
  --night-soft: #46536A;
  --muted: #6A7686;
  --meadow: #7A9E7E;
  --meadow-text: #4F6B53;
  --meadow-deep: #456049;
  --taupe: #C4A882;
  --snow: #EAE8E2;
  --panel: #FFFFFF;
  --line: #D8D3C7;
  --head: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: Calibri, Carlito, "Segoe UI", Inter, system-ui, sans-serif;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #EAE8E2;
    --night-soft: #CDD3DB;
    --muted: #9AA4B2;
    --meadow: #7A9E7E;
    --meadow-text: #9BBF9F;
    --meadow-deep: #9BBF9F;
    --taupe: #C4A882;
    --snow: #232D3A;
    --panel: #2D3A4A;
    --line: #3C4A5C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--snow);
  color: var(--night);
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
nav.site a {
  color: var(--night-soft); text-decoration: none; margin-left: 24px;
  font-size: 0.95rem; font-family: var(--body);
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--meadow-text); }

main { padding: 52px 0 72px; }

/* Headings: Palatino, bold, single-spaced, content sitting close beneath.
   H1/H2 Night Sky; the smallest heading is green — darkened so it passes contrast. */
h1 {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(2.05rem, 5vw, 2.95rem); line-height: 1.12;
  letter-spacing: -0.005em; margin: 0 0 14px; color: var(--night);
}
h2 {
  font-family: var(--head); font-weight: 700;
  font-size: 1.58rem; line-height: 1.2;
  margin: 40px 0 8px; color: var(--night);
}
h3 {
  font-family: var(--head); font-weight: 700;
  font-size: 1.22rem; line-height: 1.25;
  margin: 0 0 6px; color: var(--meadow-text);
}

p { margin: 0 0 16px; color: var(--night-soft); max-width: 66ch; }

/* Subtitle under the title, per the title-block standard: italic, Meadow */
.lead {
  font-family: var(--body); font-style: italic;
  font-size: 1.12rem; color: var(--meadow-text); max-width: 62ch;
  margin-bottom: 0;
}

/* The single Night Sky accent rule beneath the title block */
.rule { height: 2px; width: 64px; background: var(--night); margin: 22px 0 30px; border: 0; }

.grid {
  display: grid; gap: 20px; margin: 24px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--meadow);
  border-radius: 10px; padding: 20px 22px;
}
.card p { margin: 0; font-size: 0.98rem; }

/* Lists: round bullet, Night Sky, 3pt between items, 6pt after */
ul.plain { padding-left: 22px; color: var(--night-soft); max-width: 66ch; margin: 0 0 22px; }
ul.plain li { margin-bottom: 6px; }
ul.plain li::marker { color: var(--night); }

.cta {
  display: inline-block; margin-top: 12px; padding: 11px 22px;
  background: var(--night); color: var(--snow); border-radius: 7px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  font-family: var(--body); border-bottom: 3px solid var(--taupe);
}
.cta:hover { background: var(--meadow-deep); color: #FFFFFF; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--meadow-deep); color: #1C2530; }
  :root:not([data-theme="light"]) .cta:hover { background: #B3D4B7; color: #1C2530; }
}

a.inline { color: var(--meadow-text); }

footer.site {
  border-top: 2px solid var(--taupe); background: var(--panel);
  padding: 26px 0; color: var(--muted); font-size: 0.92rem;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer.site a { color: var(--meadow-text); }

/* Wordless ridgeline mark. Strokes bind to --night / --taupe so it inverts in dark mode. */
.brand { display: inline-flex; align-items: center; line-height: 0; padding: 2px 0; }
.mark { height: 34px; width: auto; display: block; overflow: visible; }
@media (max-width: 520px) { .mark { height: 28px; } }
