/* MeadowFinch Ghost theme — editorial, mobile first */
:root {
  --ink: #033430;
  --ink-deep: #032320;
  --forest: #28504b;
  --sage: #9b8776;
  --sage-soft: #ebe5d4;
  --meadow: #f4eddc;
  --paper: #fefdf8;
  --white: #fffefa;
  --red: #ed3f24;
  --red-dark: #b93620;
  --gold: #f6bd2f;
  --text: #1e3d37;
  --muted: #61736d;
  --line: #d8d8c9;
  --line-dark: rgba(3, 52, 48, .18);
  --max: 76rem;
  --reading: 45rem;
  --radius-sm: .55rem;
  --radius: 1rem;
  --radius-lg: 1.65rem;
  --shadow: 0 18px 50px rgba(3, 52, 48, .11);
  --display: var(--gh-font-heading, 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif);
  --body: var(--gh-font-body, 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif);
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.62; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { color: var(--white); background: var(--forest); }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .65rem 1rem; color: var(--white); background: var(--ink); border-radius: var(--radius-sm); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), var(--reading)); margin-inline: auto; }
.section { padding-block: 4.75rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--red-dark); font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--light { color: #f4aa91; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 11vw, 6.7rem); line-height: .92; letter-spacing: -.065em; }
h2 { font-size: clamp(2rem, 7vw, 4rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.12; letter-spacing: -.03em; }
.lede { max-width: 43rem; color: var(--muted); font-size: clamp(1.08rem, 3vw, 1.35rem); line-height: 1.55; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-dark); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); }
.nav-shell { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { width: 10.75rem; height: auto; }
.menu-button { position: relative; width: 2.9rem; height: 2.9rem; display: grid; place-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--ink); background: var(--white); cursor: pointer; }
.menu-button span { position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 2px; background: currentColor; transition: transform .2s; }
.menu-button span:first-child { transform: translate(-50%, -4px); }
.menu-button span:last-child { transform: translate(-50%, 4px); }
.menu-button[aria-expanded='true'] span:first-child { transform: translate(-50%, -1px) rotate(45deg); }
.menu-button[aria-expanded='true'] span:last-child { transform: translate(-50%, -1px) rotate(-45deg); }
.nav-menu { position: fixed; inset: 6.25rem 0 auto; display: none; padding: 1rem; border-bottom: 1px solid var(--line-dark); background: var(--paper); box-shadow: var(--shadow); }
.nav-menu[data-open='true'] { display: grid; }
.nav-menu a { min-height: 3rem; display: flex; align-items: center; padding-inline: 1rem; border-radius: .75rem; font-weight: 600; text-decoration: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--red-dark); background: var(--white); }
.button { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: var(--white); background: var(--ink); }
.button--primary:hover, .button--primary:focus-visible { background: var(--red-dark); }
.button--ghost { border-color: var(--line-dark); color: var(--ink); background: var(--white); }
.button--light { color: var(--ink); background: var(--paper); }
.text-link { font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: .08em; }
.text-link:hover, .text-link:focus-visible { color: var(--red-dark); }
.hero { position: relative; overflow: hidden; padding: 4rem 0 3.5rem; }
.hero::before { content: ''; position: absolute; width: 22rem; aspect-ratio: 1; right: -13rem; top: 2rem; border: 1px solid var(--sage); border-radius: 50%; opacity: .55; }
.hero-grid { display: grid; gap: 2.75rem; }
.hero h1 { max-width: 10ch; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin: 1.5rem 0 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .045em; }
.feature-story { position: relative; min-height: 31rem; display: flex; align-items: end; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.feature-art { position: absolute; inset: 0; overflow: hidden; background: var(--meadow); }
.feature-art--image img { width: 100%; height: 100%; object-fit: cover; }
.feature-art--image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,35,32,.02) 15%, rgba(3,35,32,.22) 52%, rgba(3,35,32,.86) 100%); }
.feature-art--fallback { background: radial-gradient(circle at 76% 18%, var(--gold) 0 7%, transparent 7.5%), linear-gradient(145deg, #e9dec6 0%, #b96753 42%, var(--ink-deep) 100%); }
.feature-art--fallback::before { content: ''; position: absolute; width: 19rem; aspect-ratio: 1; left: -3rem; top: 4rem; border: 1px solid rgba(255,255,255,.33); border-radius: 50%; box-shadow: 5rem 3rem 0 0 rgba(255,255,255,.18), 10rem 6rem 0 0 rgba(255,255,255,.11); }
.feature-art--fallback::after { content: ''; position: absolute; width: 17rem; aspect-ratio: 1; right: -1rem; top: 1rem; background: url('../images/meadowfinch-mark.png') center / contain no-repeat; opacity: .2; }
.feature-copy { position: relative; z-index: 1; width: 100%; padding: 1.6rem; color: var(--white); background: linear-gradient(transparent, rgba(3,35,32,.96) 30%); }
.feature-copy h2 { margin-bottom: .8rem; color: var(--white); font-size: clamp(2rem, 7vw, 3.2rem); }
.feature-copy h2 a { text-decoration: none; }
.feature-copy p { max-width: 33rem; color: var(--sage-soft); }
.feature-copy .eyebrow { color: #f4aa91; }

/* Selected homepage direction: Field Journal */
.hero--journal { background: var(--meadow); }
.hero--journal::before {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(0deg, transparent 0 47px, rgba(3,52,48,.055) 48px);
  opacity: 1;
}
.hero-journal-grid { position: relative; z-index: 1; }
.hero-journal-copy { position: relative; min-width: 0; }
.hero-journal-copy h1 { max-width: 100%; }
.hero-journal-topics {
  max-width: 43rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  line-height: 1.65;
}
.journal-feature-stack { position: relative; min-width: 0; }
.journal-sheet-back {
  position: absolute;
  inset: 1.25rem .15rem -.65rem 1.35rem;
  border-radius: var(--radius-lg);
  background: #d9ceb6;
  transform: rotate(2.2deg);
}
.journal-feature {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--white);
  transform: rotate(-.65deg);
}
.journal-feature .feature-art {
  position: relative;
  inset: auto;
  order: 1;
  min-height: 11rem;
  aspect-ratio: 16/7;
  border-bottom: 1px solid var(--line-dark);
}
.journal-feature .feature-art--image::after { background: linear-gradient(180deg, transparent 55%, rgba(3,35,32,.16)); }
.journal-feature .feature-copy {
  order: 2;
  padding: 1.7rem 1.8rem 1.9rem;
  color: var(--text);
  background: transparent;
}
.journal-feature .feature-copy h2 { color: var(--ink); font-size: clamp(2rem, 6vw, 3rem); }
.journal-feature .feature-copy p { color: var(--muted); }
.journal-feature .feature-copy .eyebrow { color: var(--red-dark); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.section-heading h2 { margin-bottom: 0; }
.section-count { color: var(--muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }
.story-grid { display: grid; gap: 1.5rem; }
.story-card { min-width: 0; display: flex; flex-direction: column; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.story-number { margin-bottom: 1.5rem; color: var(--sage); font-family: var(--mono); font-size: .78rem; }
.story-image { display: block; overflow: hidden; margin-bottom: 1.2rem; border-radius: var(--radius-sm); aspect-ratio: 16/10; background: var(--meadow); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.story-image:hover img { transform: scale(1.025); }
.story-card h3 { margin: .6rem 0 .7rem; }
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--red-dark); }
.story-card p { color: var(--muted); }
.story-meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .055em; }
.story-meta a { color: var(--red-dark); text-decoration: none; }
.story-card .text-link { margin-top: auto; }
.empty-state { grid-column: 1/-1; display: grid; align-items: center; gap: 2rem; padding: 2rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--white); }
.empty-state img { width: 9rem; margin-inline: auto; }
.pagination { display: flex; justify-content: space-between; margin-top: 3rem; font-weight: 700; }
.pagination a { text-underline-offset: .25em; }
.perspective { padding-block: 5rem; background: var(--ink); }
.perspective-grid { display: grid; gap: 2.5rem; }
.perspective h2, .perspective h3 { color: var(--white); }
.perspective p { color: var(--sage-soft); }
.perspective-quote { margin: 0; color: var(--white); font-size: clamp(1.9rem, 6vw, 3.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.perspective-list { border-top: 1px solid rgba(255,255,255,.18); }
.perspective-item { display: grid; grid-template-columns: 2.3rem 1fr; gap: .75rem; padding-block: 1.3rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.perspective-item span { color: #f4aa91; font-family: var(--mono); font-size: .72rem; }
.perspective-item h3 { margin-bottom: .4rem; }
.newsletter { padding-block: 4.5rem; }
.newsletter-shell { display: grid; align-items: center; gap: 2rem; padding: 2rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--meadow); }
.newsletter h2 { max-width: 16ch; margin-bottom: 1rem; }
.newsletter-copy > p:last-child { max-width: 38rem; color: var(--muted); }
.newsletter-form { min-width: 0; padding: 1.25rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--paper); }
.newsletter-fields { display: grid; gap: .75rem; }
.newsletter-input { width: 100%; min-width: 0; min-height: 3.25rem; padding: .75rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--ink); background: var(--white); }
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-input:focus { border-color: var(--forest); outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 2px; }
.newsletter-submit { width: 100%; cursor: pointer; }
.newsletter-loading, .newsletter-success, .newsletter-error { display: none; }
.newsletter-form.loading .newsletter-button-text { display: none; }
.newsletter-form.loading .newsletter-loading { display: inline; }
.newsletter-form.success .newsletter-fields, .newsletter-form.success .newsletter-note { display: none; }
.newsletter-form.success .newsletter-success { display: block; margin: 0; color: var(--ink); font-weight: 700; }
.newsletter-form.error .newsletter-error { display: block; }
.newsletter-note, .newsletter-error, .newsletter-unavailable { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
.newsletter-error { color: var(--red-dark); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.page-hero, .article-hero { padding: 4.75rem 0 2.5rem; }
.page-hero h1, .article-hero h1 { margin-bottom: 1.3rem; font-size: clamp(2.8rem, 9vw, 5.8rem); }
.article-deck { color: var(--muted); font-size: clamp(1.15rem, 3vw, 1.45rem); }
.article-byline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.6rem; color: var(--muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }
.article-feature { overflow: hidden; margin-block: 1rem 3.5rem; border-radius: var(--radius-lg); }
.article-feature img { width: 100%; max-height: 46rem; object-fit: cover; }
.article-feature figcaption { padding-top: .6rem; color: var(--muted); font-size: .78rem; }
.article-art { position: relative; min-height: 22rem; display: grid; place-content: center; overflow: hidden; margin-block: 1rem 3.5rem; border-radius: var(--radius-lg); background: radial-gradient(circle at 25% 30%, var(--gold) 0 6%, transparent 6.5%), linear-gradient(135deg, var(--forest), var(--ink-deep)); }
.article-art img { width: min(18rem, 55vw); opacity: .24; }
.gh-content { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.8; }
.gh-content > * { max-width: 100%; }
.gh-content h2 { margin: 2.9rem 0 1rem; font-family: var(--display); font-size: clamp(1.85rem, 5vw, 2.6rem); }
.gh-content h3 { margin: 2.1rem 0 .75rem; font-family: var(--display); }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 1.35rem; }
.gh-content a { color: var(--red-dark); text-underline-offset: .2em; }
.gh-content blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--red); color: var(--ink); font-family: var(--display); font-size: 1.45rem; line-height: 1.42; }
.gh-content img { height: auto; border-radius: var(--radius-sm); }
.gh-content .kg-width-wide { width: min(58rem, calc(100vw - 2rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }

/* Ghost editor gallery and bookmark cards */
.kg-gallery-container { display: flex; flex-direction: column; gap: .75rem; margin-block: 2rem; }
.kg-gallery-row { display: flex; flex-direction: row; gap: .75rem; }
.kg-gallery-image { flex: 1 1 0; overflow: hidden; border-radius: var(--radius-sm); }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { width: 100%; margin-block: 2rem; }
.kg-bookmark-container { min-height: 9rem; display: flex; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--text); background: var(--white); text-decoration: none; }
.kg-bookmark-content { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; justify-content: start; padding: 1.25rem; }
.kg-bookmark-title { color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.kg-bookmark-description { overflow: hidden; margin-top: .45rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .85rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.kg-bookmark-icon { width: 1.15rem; height: 1.15rem; object-fit: contain; }
.kg-bookmark-author, .kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 34%; min-width: 8rem; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block: 3rem 5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; text-decoration: none; }
.about-hero { padding: 4.5rem 0; overflow: hidden; }
.about-hero-grid { display: grid; align-items: center; gap: 2rem; }
.about-hero h1 { max-width: 10ch; }
.about-hero img { width: min(24rem, 78%); height: auto; justify-self: center; }
.section--paper { border-top: 1px solid var(--line-dark); background: var(--white); }
.about-grid { display: grid; gap: 2.5rem; }
.about-copy { font-size: 1.12rem; }
.about-panel { align-self: start; padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--meadow); }
.topic-stack { margin: 0; padding: 0; list-style: none; }
.topic-stack li { padding-block: .85rem; border-top: 1px solid var(--line-dark); font-weight: 600; }
.principles { padding-block: 5rem; color: var(--sage-soft); background: var(--ink-deep); }
.principle-grid { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.principle-grid article { padding-block: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.principle-grid span { color: #f4aa91; font-family: var(--mono); font-size: .72rem; }
.principle-grid h2 { margin: .5rem 0; color: var(--white); font-size: 1.8rem; }
.principle-grid p { margin: 0; }
.site-footer { padding: 2.5rem 0 2rem; color: var(--sage-soft); background: var(--ink-deep); }
.footer-main { display: flex; justify-content: flex-end; }
.footer-nav strong { display: block; margin-bottom: .7rem; color: var(--white); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-nav-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-nav a { display: block; width: fit-content; color: var(--sage-soft); text-decoration: none; }
.footer-nav a:hover { color: #f4aa91; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #bcb8a8; font-size: .75rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (min-width: 40rem) {
  .container, .narrow { width: min(calc(100% - 3rem), var(--max)); }
  .narrow { max-width: var(--reading); }
  .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .empty-state { grid-template-columns: 11rem 1fr; }
  .newsletter-shell { grid-template-columns: minmax(0,1fr) minmax(18rem,.75fr); padding: 3rem; }
  .newsletter-fields { grid-template-columns: minmax(0,1fr) auto; }
  .newsletter-submit { width: auto; }
  .about-hero-grid { grid-template-columns: minmax(0,1fr) minmax(16rem,.65fr); }
  .principle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .principle-grid article { padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.18); }
}
@media (min-width: 50rem) {
  .menu-button { display: none; }
  .nav-menu { position: static; display: flex !important; align-items: center; gap: .2rem; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-menu a { min-height: 2.75rem; padding-inline: .8rem; font-size: .88rem; }
  .hero { padding-block: 6.25rem 4.75rem; }
  .hero-grid { grid-template-columns: minmax(0,.92fr) minmax(22rem,.78fr); align-items: center; gap: 4rem; }
  .hero-journal-grid { grid-template-columns: minmax(0,.88fr) minmax(24rem,1.12fr); gap: 4.75rem; }
  .hero-journal-copy { padding-left: 1.6rem; }
  .hero-journal-copy h1 { font-size: clamp(3.1rem, 6.1vw, 5.6rem); }
  .hero-journal-copy::before { content: ''; position: absolute; left: 0; top: .15rem; bottom: .15rem; width: 3px; background: var(--red-dark); }
  .journal-feature-stack { margin: 1.1rem 1rem 1.1rem 0; }
  .story-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .story-card { min-height: 22rem; }
  .perspective-grid { grid-template-columns: minmax(0,1fr) minmax(20rem,.82fr); gap: 5rem; }
  .about-grid { grid-template-columns: minmax(0,1.3fr) minmax(18rem,.7fr); gap: 5rem; }
}
@media (min-width: 70rem) {
  .container { width: min(calc(100% - 5rem), var(--max)); }
  .section { padding-block: 6.25rem; }
  .story-grid { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .newsletter { display: none; }
  body { color: #000; background: #fff; }
  .gh-content { max-width: none; }
}
