/* ============================================================
   Idaho/PNW — design system
   ------------------------------------------------------------
   design note: editorial outdoor-magazine feel. Light "paper"
   ground (#fafaf7), deep "ink" type (#1a1f1a), forest "moss"
   green (#3d5240) for nav/links, warm "amber" (#c47b2f) reserved
   for accents and the rides category. Hikes get moss, rides get
   amber — so the site reads at a glance which kind of trip
   you're looking at. Iowan/Palatino serif headlines paired with
   system-sans body for a printed-page feel without webfont cost.
   ============================================================ */

:root {
  /* Palette */
  --ink: #1a1f1a;
  --ink-soft: #3a3f3a;
  --paper: #fafaf7;
  --paper-warm: #f1ede2;
  --paper-deep: #e8e3d4;
  --moss: #3d5240;
  --moss-deep: #2a3a2c;
  --moss-soft: #6b8470;
  --amber: #c47b2f;
  --amber-deep: #9c5e1f;
  --rule: #d6d2c4;
  --muted: #6e6a5d;

  /* Form palette (contact form) */
  --field-bg: #ffffff;
  --field-border: #cfcbbe;
  --field-focus: var(--moss);
  --error: #b04a3c;

  /* Type */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;

  /* Layout */
  --maxw: 72rem;
  --measure: 38rem;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(26, 31, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 26, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 31, 26, 0.18);
}

/* ----- Reset / base ----- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 120ms ease; }
a:hover, a:focus-visible { color: var(--amber-deep); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 8px; color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Site header ----- */
/* design note: header is a quiet rule-bottom strip. Brand mark
   is a hand-drawn-feeling mountain+sun glyph (inline SVG in HTML).
   On mobile, nav wraps below brand rather than introducing a JS
   hamburger — fewer moving parts, same legibility. */

.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  background: rgba(250, 250, 247, 0.92);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.site-brand:hover, .site-brand:focus-visible { color: var(--moss); }

.site-brand__logo {
  display: block;
  width: auto;
  height: 56px;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* ----- Main / hero ----- */

main { display: block; }

.hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw + 0.5rem, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 22ch;
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.3vw + 0.7rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.hero__link {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper);
  background: var(--moss);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  transition: background 150ms ease, transform 150ms ease;
}
.hero__link:hover, .hero__link:focus-visible {
  background: var(--moss-deep);
  color: var(--paper);
  transform: translateY(-1px);
}
.hero__link--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.hero__link--ghost:hover, .hero__link--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ----- Section heads / grids ----- */

.post-grid-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.section-head { margin: 0 0 2rem; max-width: 50ch; }
.section-head__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.1rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.section-head__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--amber);
  margin-top: 0.65rem;
}
.section-head__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.empty {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 2rem 0;
}

/* ----- Card ----- */

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  text-decoration: none;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.card__media:hover img, .card__media:focus-visible img { transform: scale(1.04); }

.card__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--paper-deep) 0%, var(--paper-warm) 100%);
}

.card__cat {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--moss);
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  text-decoration: none;
}
.card__cat--rides { background: var(--amber); }

.card__body { padding: 1rem 0 0; }

.card__region {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}
.card__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--moss), var(--moss)); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 200ms ease, color 150ms ease; }
.card__title a:hover, .card__title a:focus-visible { color: var(--moss); background-size: 100% 1px; }

.card__summary {
  font-family: var(--serif);
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
}
.card__chips { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.card__chip {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ----- Post hero ----- */
/* design note: edge-to-edge full-bleed hero photo; the title block
   sits *below* the image (not overlaid). Overlay was tempting but
   tends to swallow the photo on mobile and forces text-shadow
   gymnastics. Keeping them separate is more magazine-like. */

.post-hero {
  margin: 0;
  width: 100%;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.post-hero__img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}
.post-hero__scrim { display: none; }

.post-head {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.post-head__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.post-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.post-kicker__cat {
  text-decoration: none;
  color: var(--paper);
  background: var(--moss);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}
.post-kicker__cat--rides { background: var(--amber); }
.post-kicker__cat:hover, .post-kicker__cat:focus-visible { filter: brightness(0.9); color: var(--paper); }
.post-kicker__sep { color: var(--rule); }
.post-kicker__region { color: var(--muted); }

.post-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw + 0.5rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 22ch;
}

.post-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1vw + 0.85rem, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 44ch;
}

.post-byline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.post-byline__sep { color: var(--rule); }

/* ----- Stat chips row ----- */

.stat-chips {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
}
.chip__icon { font-size: 0.95rem; line-height: 1; color: var(--moss); }
.chip--dots .dots { font-size: 0.95rem; letter-spacing: 0.1em; line-height: 1; }
.dots__on { color: var(--moss); }
.dots__off { color: var(--rule); }
.dots__num { color: var(--muted); font-size: 0.8rem; margin-left: 0.3rem; }

/* ----- Post layout (body + sidebar) ----- */

.post-layout {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 0 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* ----- Post body (article prose) ----- */
/* design note: ~36rem measure (~70ch at this size) for prose,
   serif body for a long-read feel. H2s get a small moss-green
   slash mark instead of an underline. Drop-cap on the first
   paragraph via :first-of-type, with a fallback rule so it
   only fires when the paragraph is long enough. */

.post-body {
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote,
.post-body > figure,
.post-body > pre,
.post-body > table {
  margin: 0 0 1.25rem;
}

.post-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.85;
  float: left;
  padding: 0.18em 0.12em 0 0;
  color: var(--moss);
}

.post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.005em;
}
.post-body h2 {
  font-size: 1.7rem;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}
.post-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  bottom: 0.35em;
  width: 3px;
  background: var(--moss);
  border-radius: 2px;
}
.post-body h2 .anchor, .post-body h2 a[href^="#"] {
  opacity: 0;
  margin-left: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7em;
  transition: opacity 120ms ease;
}
.post-body h2:hover .anchor, .post-body h2:hover a[href^="#"],
.post-body h2:focus-within .anchor, .post-body h2:focus-within a[href^="#"] { opacity: 1; }
.post-body h3 { font-size: 1.32rem; font-weight: 600; }
.post-body h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--sans); letter-spacing: 0.02em; }

.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body li::marker { color: var(--moss); }

.post-body blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.25rem 0 0.25rem 1.2rem;
  margin-left: 0;
  font-style: italic;
  color: var(--ink-soft);
}

.post-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.post-body figure { margin: 1.75rem 0; }
.post-body figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--paper-warm);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.post-body pre {
  background: var(--ink);
  color: var(--paper-warm);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.5;
}
.post-body pre code { background: transparent; border: 0; padding: 0; color: inherit; }

.post-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.5rem auto;
  max-width: 8rem;
}

.post-body a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover, .post-body a:focus-visible { color: var(--amber-deep); }

/* ----- Gallery ----- */

.gallery { margin: 2.5rem 0 0; }
.gallery__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
.gallery__title::after {
  content: "";
  display: block;
  width: 2rem; height: 2px;
  background: var(--amber);
  margin-top: 0.5rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.gallery-item { margin: 0; }
.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 400ms ease, box-shadow 200ms ease;
}
.gallery-img:hover, .gallery-img:focus-visible {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-img:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}
.gallery-item figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ----- Share strip ----- */

.share-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.share-strip--inline {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.share-strip__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.4rem;
}

.share-btn {
  --share-color: var(--moss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  position: relative;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.share-btn:hover, .share-btn:focus-visible {
  color: var(--paper);
  background: var(--share-color);
  border-color: var(--share-color);
  transform: translateY(-1px);
}
.share-btn--x { --share-color: #000000; }
.share-btn--fb { --share-color: #1877f2; }
.share-btn--sms { --share-color: var(--moss); }
.share-btn--email { --share-color: var(--amber); }
.share-btn--copy { --share-color: var(--ink); }

.share-btn__flash {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.share-btn--copied .share-btn__flash {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Mobile sticky share dock ----- */
/* design note: phone-only fixed-bottom share row. Sits above the
   home-bar inset and adopts the paper background with a subtle
   top rule so it reads as part of the page, not a chrome bar. */

.share-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 16px rgba(26, 31, 26, 0.06);
}
.share-dock .share-btn { width: 44px; height: 44px; background: var(--paper); }

/* ----- Sidebar (post-aside) ----- */

.post-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
}
.aside-card__title {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--moss);
  margin: 0 0 0.85rem;
}

.stat-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.stat-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--rule);
}
.stat-list > div:first-child { border-top: 0; padding-top: 0; }
.stat-list dt {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.stat-list dd {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.map-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.map-list__item { display: flex; flex-direction: column; gap: 0.5rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-link {
  font-family: var(--sans);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--moss);
  letter-spacing: 0.02em;
}
.map-link:hover, .map-link:focus-visible { color: var(--amber-deep); text-decoration: underline; }

.map-link--card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
}
.map-link--card:hover, .map-link--card:focus-visible {
  border-color: var(--moss);
  color: var(--moss);
  text-decoration: none;
}
.map-link__service {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.map-link__label { font-family: var(--serif); }

.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.link-list a {
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 0.5rem;
  display: block;
}
.link-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.link-list a:hover, .link-list a:focus-visible { color: var(--moss); }

.aside-card--share .share-strip { gap: 0.5rem; }

/* ----- Contact form (preserved) ----- */
/* design note: form lives on the light "paper-warm" panel, fields
   white with a moss focus ring — same DNA as the rest of the site. */

.contact {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
label > span {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
input, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--field-focus);
  box-shadow: 0 0 0 3px rgba(61, 82, 64, 0.18);
}
textarea { resize: vertical; min-height: 9rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

button[type="submit"] {
  align-self: flex-start;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--moss);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
}
button[type="submit"]:hover, button[type="submit"]:focus-visible { background: var(--moss-deep); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.status {
  margin: 0;
  min-height: 1.4rem;
  color: var(--error);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: min(90vw, 28rem);
  padding: 1.5rem 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  animation:
    toast-in 240ms ease-out both,
    toast-out 600ms ease-in 3.4s both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -42%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translate(-50%, -50%); }
  to   { opacity: 0; transform: translate(-50%, -50%); }
}

/* ----- Site footer ----- */

.site-footer {
  background: var(--ink);
  color: var(--paper-warm);
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.site-footer small { color: var(--paper-deep); }
.site-footer__rss {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper-warm);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer__rss:hover, .site-footer__rss:focus-visible { color: var(--amber); }

/* ----- Lightbox ----- */
/* design note: lightbox is full-viewport, fades in, ESC + click-out
   close. Reduced-motion users get instant open/close (no fade). */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 10, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  position: relative;
  max-width: 100%;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox__caption {
  margin: 0.85rem auto 0;
  color: var(--paper-warm);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__btn {
  position: absolute;
  background: rgba(250, 250, 247, 0.1);
  color: var(--paper);
  border: 1px solid rgba(250, 250, 247, 0.3);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, border-color 150ms ease;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible {
  background: rgba(250, 250, 247, 0.25);
  border-color: var(--paper);
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .toast { animation: none; }
  .card__media img, .gallery-img { transition: none; }
  .gallery-img:hover, .gallery-img:focus-visible { transform: none; }
  .hero__link, .share-btn { transition: none; }
}

/* ============================================================
   Mobile-only: show sticky share dock, pad the page so the fixed
   bar doesn't crowd the footer.
   ============================================================ */

@media (max-width: 639.98px) {
  body.post-page .share-dock { display: flex; }
  body.post-page { padding-bottom: 4.5rem; }
}

/* ============================================================
   Responsive: tablet (>= 640px)
   ============================================================ */

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .site-header__inner { padding: 1rem 1.5rem; }
}

/* ============================================================
   Responsive: desktop (>= 1024px) — 3-col listings, larger hero
   ============================================================ */

@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2rem; }

  .hero__inner { padding: 5rem 1.5rem 4rem; }
  .post-head__inner { padding: 3.5rem 1.5rem 2.5rem; }
  .stat-chips { padding: 1.5rem 1.5rem 0; }
}

/* ============================================================
   Responsive: large desktop (>= 1100px) — sidebar + 3-col gallery
   design note: sidebar collapses below body until 1100px so the
   tablet experience reads as a single column with measure intact.
   ============================================================ */

@media (min-width: 1100px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .post-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3.5rem;
    padding-bottom: 5rem;
  }
  .post-body { margin: 0; }
  .post-aside { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 6.5rem); overflow-y: auto; padding-right: 0.25rem; }
  .post-aside::-webkit-scrollbar { width: 6px; }
  .post-aside::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .site-header, .site-footer, .post-aside, .share-strip, .share-dock, .hero__meta { display: none !important; }
  body { background: #fff; color: #000; }
  .post-hero__img { max-height: 50vh; }
}
