/* ── Being Anna May ───────────────────────────────────────────────────────
   A topographic-sheet treatment: paper grounds, contour lines, painted
   trail blazes and field-note lettering. Fonts are self-hosted in
   static/css/fonts.css. The Trail Steps badge lives in trail-steps.css. */

:root {
  --paper:        #F2F5F1;
  --paper-2:      #E8EDE7;
  --sheet:        #FFFFFF;
  --ink:          #18231E;
  --ink-2:        #41504A;
  --ink-3:        #6E7B75;
  --contour:      #A98048;
  --contour-fade: rgba(169, 128, 72, .30);
  --teal:         #0E9389;
  --teal-ink:     #0A6F67;
  --blaze:        #F2652E;
  --amber:        #E8A317;
  --sky:          #3C92D6;
  --moss:         #5FA84B;
  --rule:         rgba(24, 35, 30, .13);
  --rule-soft:    rgba(24, 35, 30, .06);
  --shadow:       0 18px 40px -28px rgba(20, 32, 25, .55);

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wide:    1000px;
  --measure: 680px;
  --radius:  3px;
}

/* Dark palette. Applied when the reader's device prefers dark, unless they
   explicitly chose light, and whenever they explicitly choose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #1B2118;
    --paper-2:      #333C2E;
    --sheet:        #262E22;
    --ink:          #F2F7EC;
    --ink-2:        #CEDCC2;
    --ink-3:        #A3B795;
    --contour:      #B08A54;
    --contour-fade: rgba(176, 138, 84, .34);
    --teal:         #3FC7B8;
    --teal-ink:     #6FDCCF;
    --blaze:        #FF7F52;
    --amber:        #F5BE42;
    --sky:          #5BB0F0;
    --moss:         #A9E87C;
    --rule:         rgba(242, 247, 236, .22);
    --rule-soft:    rgba(242, 247, 236, .11);
    --shadow:       0 18px 44px -26px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
    --paper:        #1B2118;
    --paper-2:      #333C2E;
    --sheet:        #262E22;
    --ink:          #F2F7EC;
    --ink-2:        #CEDCC2;
    --ink-3:        #A3B795;
    --contour:      #B08A54;
    --contour-fade: rgba(176, 138, 84, .34);
    --teal:         #3FC7B8;
    --teal-ink:     #6FDCCF;
    --blaze:        #FF7F52;
    --amber:        #F5BE42;
    --sky:          #5BB0F0;
    --moss:         #A9E87C;
    --rule:         rgba(242, 247, 236, .22);
    --rule-soft:    rgba(242, 247, 236, .11);
    --shadow:       0 18px 44px -26px rgba(0, 0, 0, .8);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--mono); }
/* Keep the hidden attribute working on elements that set their own display
   (the Trail Steps panel is display:grid, which would otherwise beat it). */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.container { max-width: var(--wide); margin: 0 auto; padding-inline: 1.5rem; }
.measure { max-width: var(--measure); }
.kicker { display: flex; align-items: center; gap: .6rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.blaze { width: 9px; height: 16px; background: var(--blaze); border-radius: 1px; flex: none; }
.kicker span, .kicker a {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2);
}
.fielddata {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem;
  font-family: var(--mono); font-size: .69rem; color: var(--ink-3);
}
/* Date and tags on one line, the hike chips on their own line beneath.
   An empty chips line collapses, so posts without hike details look the same. */
.postmeta { display: grid; gap: .45rem; justify-items: start; }
.btn {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sheet);
  background: var(--teal); padding: .7rem 1.25rem; border: 0; border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: var(--teal-ink); text-decoration: none; color: var(--sheet); }

/* ── Masthead ─────────────────────────────────────────────────────────── */
/* Sticky: the header stays put while reading. Keep it short, since it eats
   the top of every screen. */
.masthead {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--rule); background: var(--sheet);
}
.masthead__in {
  max-width: var(--wide); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.masthead__left { display: grid; gap: .3rem; }
.masthead__clock {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wordmark { display: grid; gap: 1px; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.wordmark b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1; }
.mainnav {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem;
  flex: 1 1 auto; min-width: 0; justify-content: flex-end;
}
.mainnav a {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a.is-on { color: var(--ink); border-bottom-color: var(--blaze); text-decoration: none; }
/* Reader's theme switch: a slim bar the width of the date line above it. */
.theme-toggle {
  width: 100%; justify-self: stretch;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .16rem .3rem;
  border: 1px solid var(--rule); border-radius: 4px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.4;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.theme-toggle__opt { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.theme-toggle svg { width: 9px; height: 9px; display: block; flex: none; }
/* Offer the theme you are not currently in. */
html.theme-dark .theme-toggle__opt--moon { display: none; }
html.theme-light .theme-toggle__opt--sun { display: none; }

/* ── Home hero: the newest entry ──────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  border-bottom: 1px solid var(--rule);
}
.hero__copy {
  position: relative; display: grid; align-content: center; gap: 1.1rem;
  padding: 3rem 2.5rem;
}
.hero__copy > * { position: relative; z-index: 1; }
.hero__contour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.hero__title {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.hero__title a { color: var(--ink); }
.hero__title a:hover { color: var(--teal); text-decoration: none; }
.hero__excerpt { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
.hero .btn { justify-self: start; }
/* The photo needs a definite height, or its own 3:4 proportions set the hero's
   height (a portrait shot made the row ~640px) and object-fit never crops.
   Capped so the newest entry's picture can't take over the first screen. */
.hero__photo { position: relative; height: clamp(300px, 45vh, 440px); background: var(--paper-2); }
/* "Show whole photo" letterboxes inside the same frame, so the bars need a ground. */
.hero__photo img[style*="contain"],
.card__shot img[style*="contain"],
.entry__shot img[style*="contain"] { background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: .7rem 1rem; color: #F4F7F1;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(10, 16, 13, .75), rgba(10, 16, 13, 0));
}

/* ── Sheet-margin strip ───────────────────────────────────────────────── */
.strip { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.strip__in {
  max-width: var(--wide); margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.strip__in b { color: var(--teal); font-weight: 500; }
.strip__in span:first-child b { color: var(--amber); }

/* ── Section heads ────────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 2.25rem 0 1.1rem;
}
.section-head h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
  padding-bottom: .35rem; border-bottom: 3px solid var(--amber);
}
.section-head a { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Card grid (home) ─────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; padding-bottom: 2.5rem; }
/* One accent per card, so the grid reads as colour rather than all orange. */
.cards .card:nth-child(3n+1) .blaze { background: var(--blaze); }
.cards .card:nth-child(3n+2) .blaze { background: var(--sky); }
.cards .card:nth-child(3n)   .blaze { background: var(--moss); }
.cards .card:nth-child(3n+2) .kicker span { color: var(--sky); }
.cards .card:nth-child(3n)   .kicker span { color: var(--moss); }
.cards .card:nth-child(3n+1) .kicker span { color: var(--blaze); }
.card { display: grid; gap: .75rem; align-content: start; }
.card__shot { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card__shot:hover img { transform: scale(1.03); }
.card__title {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.18;
  letter-spacing: -.01em; text-wrap: balance;
}
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--teal); text-decoration: none; }
.card__excerpt { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }

/* Sixth tile in the recent-entries grid: the way through to the archive. */
.card-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; min-height: 180px; padding: 1rem;
  border: 1px dashed var(--rule); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink-2); text-align: center;
}
.card-more:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.card-more__icon svg { width: 30px; height: 30px; display: block; }
.card-more__label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ── Entry list (category, tag, search) ───────────────────────────────── */
.entry-list { display: grid; }
.entry {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule-soft);
}
.entry__shot { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.entry__shot img { width: 100%; height: 100%; object-fit: cover; }
.entry__title {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.012em;
  margin-bottom: .35rem;
}
.entry__title a { color: var(--ink); }
.entry__title a:hover { color: var(--teal); text-decoration: none; }
.entry__excerpt { color: var(--ink-2); font-size: 1rem; margin-bottom: .55rem; max-width: 58ch; }
.entry__go { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* ── Page head (inner pages) ──────────────────────────────────────────── */
.page-head { display: grid; gap: .7rem; padding: 2.5rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -.025em; line-height: 1;
}
.page-head p { color: var(--ink-2); max-width: 54ch; }

/* ── Single post ──────────────────────────────────────────────────────── */
.post { padding-top: 2.5rem; }
.post__header { display: grid; gap: .85rem; margin-bottom: 1.75rem; }
.post__title {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
/* 70% of the content column: the full-width version dominated the page. */
.post__featured-image {
  /* 42% = the previous 70%, cut by a further 40%. */
  width: 100%; max-width: 42%; border-radius: var(--radius); margin-top: .5rem;
}
.post__content { max-width: var(--measure); font-size: 1.12rem; line-height: 1.75; }
/* Spacing mirrors the editor: paragraphs carry no margin of their own, so the
   blank lines you type are the gaps readers see. Headings, lists, quotes and
   images still get breathing room. */
.post__content > * + * { margin-top: 1.1em; }
.post__content > p { margin-top: 0; }
.post__content h2, .post__content h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.2; margin-top: 2em;
}
.post__content h2 { font-size: 1.5rem; }
.post__content h3 { font-size: 1.22rem; }
.post__content ul, .post__content ol { padding-left: 1.4em; }
/* Site-wide links drop their underline, which works for navigation but makes
   a link inside a paragraph indistinguishable from coloured words. */
.post__content a {
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .18em; overflow-wrap: break-word;
}
.post__content a:hover { color: var(--blaze); }
.post__content blockquote {
  border-left: 3px solid var(--blaze); padding-left: 1.1rem;
  color: var(--ink-2); font-style: italic;
}
.post__content pre {
  background: var(--paper-2); padding: 1rem; border-radius: var(--radius);
  overflow-x: auto; font-size: .9rem;
}
.post__content code { background: var(--paper-2); padding: .1em .35em; border-radius: 2px; font-size: .88em; }
.post__content pre code { background: none; padding: 0; }
/* Photos between paragraphs: 60% of the text column, i.e. 40% smaller than
   the full-width they used to take. */
.post__content img { max-width: 60%; height: auto; border-radius: var(--radius); }
.tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .55rem; color: var(--ink-2);
}
.tag:hover { border-color: var(--teal); text-decoration: none; }

/* Hike details: distance, elevation gain and the AllTrails link. Only shown
   on posts that have them. */
.chips { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .5rem;
  border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Difficulty markers: shape as well as colour, so they read without colour. */
.chip .mark { display: inline-block; width: 9px; height: 9px; flex: none; }
.chip .mark--easy     { background: #4CA64C; border-radius: 50%; }
.chip .mark--moderate { background: #E8B81E; border-radius: 2px; }
.chip .mark--hard     { background: var(--blaze); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.chip--dog { border-color: var(--contour-fade); }
.chip--link { border-color: var(--teal); color: var(--teal); }
.chip--link:hover { background: var(--teal); color: var(--sheet); text-decoration: none; }

/* ── Intro / about band ───────────────────────────────────────────────── */
/* Flex, not grid: with a photo but no About text, a grid would still reserve
   the text column and leave a wide empty gap beside the photo. */
.intro-section {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center;
  margin: 2.5rem 0;
}
.intro-section__photo { flex: 0 0 220px; width: 220px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.intro-section__text { flex: 1 1 320px; color: var(--ink-2); max-width: 54ch; }
.intro-section__text > * + * { margin-top: .75rem; }
.intro-section__text > p { margin-top: 0; }
.intro-section__text ul, .intro-section__text ol { padding-left: 1.3em; }
.intro-section__text a { color: var(--teal); }

/* ── Post gallery ─────────────────────────────────────────────────────── */
.post-gallery { margin-top: 3rem; }
.post-gallery h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -.01em; margin-bottom: 1rem;
}
.post-gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.post-gallery__item { display: block; margin: 0; }
.post-gallery__item a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.post-gallery__item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.post-gallery__item a:hover img { transform: scale(1.04); }
.post-gallery__item figcaption {
  font-family: var(--mono); font-size: .66rem; color: var(--ink-3);
  margin-top: .35rem; line-height: 1.4;
}
/* The "+N" tile that opens the full gallery. */
.post-gallery__more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; aspect-ratio: 1 / 1; border: 1px dashed var(--rule);
  border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2);
  text-align: center; padding: .5rem;
}
.post-gallery__more:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.post-gallery__plus {
  font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1;
}
.post-gallery__more-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
}
.post-gallery--full { margin-top: 1.5rem; }
.post-gallery--full .post-gallery__grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 700px) {
  .post-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .post-gallery--full .post-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.is-zoomable { cursor: zoom-in; }
.post-gallery__item a { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 13, 10, .94);
}
.lightbox__stage {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: .75rem;
  max-width: 100%; max-height: 100%;
}
.lightbox__img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius); display: block;
}
.lightbox__caption {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: #cfd8cd; text-align: center; max-width: 60ch;
}
.lightbox__nav, .lightbox__close {
  background: rgba(247, 249, 244, .1); color: #f2f6f0; border: 1px solid rgba(247, 249, 244, .25);
  border-radius: 999px; cursor: pointer; line-height: 1;
  display: grid; place-items: center; flex: none;
}
.lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; padding-bottom: .2rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.5rem; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(247, 249, 244, .22); }
.lightbox__nav:focus-visible, .lightbox__close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lightbox__count {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: #9fb0a2;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__img { max-height: 70vh; }
}

/* ── Comments & forms ─────────────────────────────────────────────────── */
.comments { max-width: var(--measure); margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.comments h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 1.25rem; }
.comment { padding: 1rem 1.1rem; background: var(--paper-2); border-radius: var(--radius); margin-bottom: .9rem; }
.comment__meta { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); margin-bottom: .45rem; }
.comment__meta strong { color: var(--ink-2); font-weight: 500; }
.comment__replies { margin-left: 1.4rem; margin-top: .75rem; }
.comment-form-wrap { margin-top: 2.5rem; }
.comment-form-wrap h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink); font: inherit; font-size: .97rem;
}
.form-group textarea { resize: vertical; }

/* ── Newsletter ───────────────────────────────────────────────────────── */
.newsletter-widget {
  margin: 2.5rem 0; max-width: var(--measure);
}
.newsletter-widget h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; }
.newsletter-widget p { color: var(--ink-2); max-width: 52ch; }
.newsletter-widget form { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter-widget input[type=email] {
  flex: 1 1 220px; padding: .6rem .75rem; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--sheet); color: var(--ink); font: inherit; font-size: .95rem;
}

/* ── Pagination, flash, empty, footer ─────────────────────────────────── */
.pager {
  display: flex; gap: 1.25rem; align-items: center; padding: 2rem 0 3rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.flash {
  padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: .78rem; border: 1px solid var(--rule);
}
.flash--success { border-left: 3px solid var(--teal); }
.flash--error   { border-left: 3px solid var(--blaze); }
.empty-state { color: var(--ink-3); font-style: italic; padding: 2.5rem 0; }
.search-form { display: flex; gap: .5rem; margin-top: .5rem; }
.search-form input {
  flex: 1; padding: .6rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink); font: inherit;
}
.search-summary { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); padding: 1.1rem 0; }
mark { background: rgba(228, 87, 46, .22); color: inherit; padding: 0 .15em; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-block: 1.25rem; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--teal); }
.site-footer__privacy {
  flex-basis: 100%;
  font-family: var(--body);
  font-size: .8rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy { padding: 2.25rem 1.5rem; }
  .hero__photo { height: clamp(220px, 32vh, 300px); order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 150px 1fr; }
  .entry__go { display: none; }
  .intro-section__photo { flex-basis: 180px; width: 180px; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .masthead__in { flex-wrap: wrap; gap: .6rem; padding-block: .65rem; }
  /* The header is pinned on phones too, so keep the wrapped nav compact:
     smaller type and tighter gaps cost it a row. */
  .mainnav { order: 3; width: 100%; gap: .3rem .75rem; justify-content: flex-start; }
  .mainnav a { font-size: .62rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
