/* ==========================================================================
   Independent News for Longevity
   Full-width editorial layout — magazine density, not a left-hand ribbon
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #121c1a;
  --ink-soft: #33403c;
  --muted: #5f6d69;
  --muted-2: #87938f;
  --paper: #f2efe9;
  --paper-2: #e5dfd4;
  --surface: #fffdf9;
  --brand: #0f5c52;
  --brand-mid: #16786b;
  --brand-deep: #0a3d36;
  --brand-soft: #e3f0ed;
  --accent: #b85a2a;
  --accent-soft: #f5e8df;
  --gold: #a8894a;
  --line: rgba(18, 28, 26, 0.1);
  --line-strong: rgba(18, 28, 26, 0.15);
  --focus: #16786b;

  /* Wide content frame — fills the viewport on modern screens */
  --page-max: 80rem; /* 1280px */
  --gutter: clamp(1.25rem, 2.5vw, 2.5rem);
  --header-h: 4.25rem;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 12px 40px rgba(18, 28, 26, 0.08);
  --shadow-sm: 0 2px 10px rgba(18, 28, 26, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* Full-width content rail */
.shell {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.container {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
}

.eyebrow {
  display: block;
  margin: 0 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-mid);
  line-height: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(242, 239, 233, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex: 0 0 auto;
  min-width: 2.75rem;
  height: 2.5rem;
  padding: 0 0.45rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(155deg, var(--brand-mid), var(--brand-deep));
  color: #fff;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 92, 82, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-mark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  background: rgba(15, 92, 82, 0.08);
  color: var(--brand-deep);
}

.nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

@media (max-width: 40rem) {
  .brand-tag { display: none; }
  .nav a {
    height: 2rem;
    padding: 0 0.55rem;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 92, 82, 0.2);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn-on-dark.btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.btn-on-dark.btn-primary:hover {
  background: #f3ecdf;
  color: var(--brand-deep);
}

.btn-on-dark.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.btn-on-dark.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ==========================================================================
   Home hero — two equal columns, fills width
   ========================================================================== */
.hero-home {
  position: relative;
  color: #f3f7f5;
  background: var(--brand-deep);
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(22, 120, 107, 0.45), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(184, 90, 42, 0.16), transparent 50%),
    linear-gradient(155deg, #0a3d36 0%, #0f5c52 50%, #12352f 100%);
}

.hero-home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-home-inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-block: 4.5rem;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 247, 245, 0.68);
  line-height: 1;
}

.hero-kicker::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--gold);
}

.hero-home h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(243, 247, 245, 0.84);
  max-width: 36ch;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 18rem;
  aspect-ratio: 4 / 3;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero-visual {
    aspect-ratio: 5 / 4;
    min-height: 22rem;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(10, 61, 54, 0.88));
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ==========================================================================
   Library section — fills the shell edge-to-edge
   ========================================================================== */
.section {
  padding-block: var(--space-2xl);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Bento-style story board: featured spans 2 cols, secondary stack, then row of 3 */
.story-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

/* Bottom trio always spans full board width */
.story-board__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .story-board__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  .story-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-board__feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .story-board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
  }

  /* Large feature: left 8/12, tall */
  .story-board__feature {
    grid-column: 1 / span 8;
    grid-row: 1 / span 2;
  }

  /* Right rail: 4/12 stacked */
  .story-board__side-a {
    grid-column: 9 / span 4;
    grid-row: 1;
  }

  .story-board__side-b {
    grid-column: 9 / span 4;
    grid-row: 2;
  }

  .story-board__row {
    grid-column: 1 / -1;
    gap: 1.35rem;
  }
}

/* Cards: column stack — image absorbs spare height, copy hugs content (no white voids) */
.story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.story-card__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
}

.story-card__media a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card__media a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

/*
  Feature + side rails share a tall grid cell (feature spans two side rows).
  Do NOT split feature into a side-by-side image|text grid — that leaves a
  empty white text column. Stack: image fills leftover height, body is tight.
*/
.story-board__feature .story-card,
.story-board__side-a .story-card,
.story-board__side-b .story-card {
  height: 100%;
  min-height: 100%;
}

.story-board__feature .story-card__media,
.story-board__side-a .story-card__media,
.story-board__side-b .story-card__media {
  flex: 1 1 auto;
  min-height: 11rem;
  aspect-ratio: auto;
}

.story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 0 0 auto; /* hug text — never stretch into a white slab */
  min-width: 0;
  background: var(--surface);
}

.story-board__feature .story-card__body {
  padding: 1.35rem 1.5rem 1.45rem;
  gap: 0.7rem;
}

@media (min-width: 1100px) {
  .story-board__feature .story-card__media {
    min-height: 16rem;
  }

  .story-board__side-a .story-card__media,
  .story-board__side-b .story-card__media {
    min-height: 7.5rem;
  }

  .story-board__feature .story-card__body {
    padding: 1.4rem 1.6rem 1.5rem;
  }
}

.story-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

.story-board__feature .story-card__title {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.18;
}

.story-card__title a {
  color: inherit;
  text-decoration: none;
}

.story-card__title a:hover {
  color: var(--brand);
}

.story-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.story-board__feature .story-card__excerpt {
  font-size: 1.02rem;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Kill the padded “second paragraph stuffing” style if present */
.story-card__excerpt--more {
  display: none;
}

.story-board__side-a .story-card__excerpt,
.story-board__side-b .story-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 1.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.pill--accent {
  background: var(--accent-soft);
  color: #8a3f16;
}

/* Bottom row cards without images still fill cell */
.story-card--text {
  min-height: 14rem;
}

.story-card--text .story-card__body {
  flex: 1 1 auto;
  min-height: 14rem;
}

/* Equal-height grid cards: body grows so meta sits at bottom (no empty footer void) */
.card-grid .story-card__body {
  flex: 1 1 auto;
}

.card-grid .story-card__media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   Principles band — two columns, full shell width
   ========================================================================== */
.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}

@media (min-width: 800px) {
  .band-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }
}

.band-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.band-copy p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 34rem;
}

.principle-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.principle-list li {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.principle-list strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.principle-list span {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Article pages — clean vertical stack (no gimmicky right-hand meta)
   ========================================================================== */
.article-hero {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50rem 18rem at 20% -40%, rgba(15, 92, 82, 0.08), transparent 70%),
    linear-gradient(180deg, #ebe6dc 0%, var(--paper) 100%);
}

.article-hero .shell {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
}

/* Single column: eyebrow → title → deck → meta. Always left-aligned. */
.article-hero-inner {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.article-hero-inner > div {
  width: 100%;
  max-width: none;
}

.article-hero .eyebrow {
  margin-bottom: 0.75rem;
}

/* Full width title — NEVER force 22ch / multi-line sausage */
.article-hero h1 {
  margin: 0 0 1rem;
  width: 100%;
  max-width: none;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.article-deck {
  margin: 0 0 1.15rem;
  max-width: 52rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Meta sits under the deck as a quiet inline row — not a right column */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  width: 100%;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
  justify-self: start;
  max-width: none;
}

.article-meta > span[aria-hidden="true"] {
  margin-inline: 0.65rem;
  color: var(--muted-2);
  user-select: none;
}

/* Full-width lead image under hero (optional) */
.article-lead {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: 1.5rem auto 0;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.article-lead img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  max-height: 22rem;
}

.article-lead figcaption {
  padding: 0.75rem 1.15rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/*
  Article body: TWO columns that TOGETHER fill the page.
  Main column ~70%, rail ~30% — prose is 100% of main column (no skinny max-width).
*/
.article-layout {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
}

.prose {
  width: 100%;
  max-width: none; /* fill the main grid column */
  min-width: 0;
}

/* Prose fills the main grid column on all widths — no thin left ribbon */

.prose > *:first-child { margin-top: 0; }

.prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.figure {
  margin: 1.75rem 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-2);
}

.figure figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(242, 239, 233, 0.55);
}

.callout {
  margin: 1.75rem 0;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface));
  border: 1px solid rgba(15, 92, 82, 0.14);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

.callout strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-card {
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.side-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.side-card ul { list-style: none; margin: 0; padding: 0; }

.side-card li + li {
  border-top: 1px solid var(--line);
}

.side-card a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}

.side-card a:hover { color: var(--brand); }

/* Other Stories rail — fills the ~1/3 column on article pages */
.side-card--stories {
  padding: 1.1rem 1rem 1.15rem;
}

.side-card--stories > h2 {
  margin: 0 0 1rem;
  padding: 0 0.15rem;
}

.other-stories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.other-story {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

.other-story:hover {
  border-color: rgba(15, 92, 82, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: inherit;
}

.other-story__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.other-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.other-story__body {
  padding: 0.7rem 0.8rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.other-story__kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.2;
}

.other-story__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.other-story:hover .other-story__title {
  color: var(--brand-deep);
}

.other-story__snippet {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-card--stories .side-card__more {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
}

.side-card--stories .side-card__more a {
  padding: 0;
  color: var(--brand-deep);
}

.side-card--stories .side-card__more a:hover {
  color: var(--brand);
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form {
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 36rem;
}

.contact-form .form-row {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form .req {
  color: var(--accent);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(22, 120, 107, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.5;
}

.contact-form .form-hint {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-form .form-actions {
  margin: 0;
}

.contact-form .btn {
  cursor: pointer;
  border: none;
}

/* Honeypot — hidden from humans */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-status--ok {
  background: var(--brand-soft);
  border: 1px solid rgba(15, 92, 82, 0.2);
  color: var(--brand-deep);
}

.form-status--err {
  background: var(--accent-soft);
  border: 1px solid rgba(184, 90, 42, 0.25);
  color: #8a3f16;
}

/* Compact hero (about/contact) */
.hero {
  padding-block: 3.5rem 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ebe6dc 0%, var(--paper) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-top: 3.25rem;
  background: linear-gradient(180deg, #0d2e29 0%, #0a1f1c 100%);
  color: #d5e0dc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand-row .brand-logo {
  min-width: 2.5rem;
  width: auto;
  height: 2.25rem;
  font-size: 0.85rem;
  padding: 0 0.4rem;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(213, 224, 220, 0.5);
  line-height: 1;
}

.site-footer p {
  max-width: 28rem;
  font-size: 0.925rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(213, 224, 220, 0.75);
}

.site-footer a {
  color: #e8f2ee;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer ul { list-style: none; }

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.925rem;
  font-weight: 300;
  color: rgba(213, 224, 220, 0.75);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(213, 224, 220, 0.42);
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: rgba(15, 92, 82, 0.08);
  color: var(--brand-deep);
}

/* Legacy card classes (article pages / older markup) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card > img,
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-2);
}

.card-body,
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem 1.4rem;
  flex: 1;
}

.card h3,
.card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.card h3 a,
.card__title a {
  color: inherit;
  text-decoration: none;
}

.card p,
.card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.meta,
.card__meta {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted-2);
}
