:root {
  --ink: #172326;
  --muted: #536466;
  --soft: #f7f4ee;
  --paper: #fffdf8;
  --line: #dce7e4;
  --teal: #16796f;
  --teal-dark: #0f5f58;
  --sage: #dbe9dd;
  --clay: #e8d8c7;
  --amber: #f3c96b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 35, 38, 0.10);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  background: var(--white);
  border: 2px solid var(--teal);
  padding: .75rem 1rem;
  top: 1rem;
}

.site-header {
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header.compact {
  position: static;
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  padding: 1rem 1.5rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  gap: .7rem;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.site-menu {
  align-items: center;
  display: flex;
  gap: 1rem;
  font-size: .94rem;
  font-weight: 700;
}

.site-menu a {
  color: var(--ink);
}

.site-menu a[aria-current="page"] {
  color: var(--teal-dark);
}

.nav-toggle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  height: 2.65rem;
  padding: 0;
  width: 2.65rem;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  width: 18px;
}

.hero {
  display: grid;
  gap: clamp(3rem, 5vw, 5.5rem);
  grid-template-columns: minmax(620px, 1.12fr) minmax(420px, .88fr);
  margin: 0 auto;
  max-width: 1380px;
  padding: 5.6rem 1.75rem 4.4rem;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.card-label {
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.9rem, 4vw, 4.65rem);
  max-width: 820px;
}

.hand-underline {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.scribble-underline {
  height: .24em;
  left: -.06em;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  top: .98em;
  width: calc(100% + .12em);
  z-index: 1;
}

.scribble-underline path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 18;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-deck {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  max-width: 48rem;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.7rem 0 1rem;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 2.9rem;
  padding: .75rem 1.15rem;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal-dark);
}

.boundary-note {
  background: var(--sage);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  color: #244244;
  display: inline-block;
  font-weight: 750;
  padding: .75rem .95rem;
}

.hero-media {
  min-height: 540px;
  position: relative;
}

.hero-photo {
  border-radius: 28px 8px 28px 8px;
  box-shadow: var(--shadow);
  height: 500px;
  object-fit: cover;
  width: 92%;
}

.concept-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: -1rem;
  box-shadow: var(--shadow);
  max-width: 330px;
  padding: 1rem;
  position: absolute;
  right: 0;
}

.image-concept img {
  border-radius: var(--radius);
  height: 165px;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 100%;
}

.intro-band,
.resources-band,
.follow-section {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 2rem;
  grid-template-columns: .75fr 1fr;
  padding: 4.8rem max(1.75rem, calc((100vw - 1320px) / 2));
}

.intro-text {
  columns: 2;
  column-gap: 2rem;
  color: var(--muted);
}

.content-section,
.trust-section,
.page-main {
  margin: 0 auto;
  max-width: 1320px;
  padding: 5.2rem 1.75rem;
}

.section-heading {
  max-width: 720px;
}

.section-heading.wide {
  max-width: 920px;
}

.pillar-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 2.3rem;
}

.pillar-card,
.trust-grid article,
.resource-grid article,
.stacked-notes article,
.boundary-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.pillar-card {
  grid-column: span 2;
  min-height: 292px;
  padding: 1.55rem;
}

.pillar-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.pillar-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.visual-card {
  overflow: hidden;
  position: relative;
}

.pillar-visual {
  background: linear-gradient(135deg, #f6fbf8, var(--sage));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 98px;
  margin-bottom: 1.15rem;
  overflow: hidden;
  position: relative;
}

.path-visual:before,
.path-visual:after {
  border: 2px solid var(--teal);
  border-left: 0;
  border-top: 0;
  content: "";
  height: 42px;
  left: 22px;
  position: absolute;
  top: 18px;
  transform: skewX(-18deg);
  width: 130px;
}

.path-visual span,
.nodes-visual span {
  background: var(--teal);
  border: 3px solid var(--white);
  border-radius: 50%;
  height: 17px;
  position: absolute;
  width: 17px;
}

.path-visual span:nth-child(1) { left: 24px; top: 51px; }
.path-visual span:nth-child(2) { left: 78px; top: 26px; }
.path-visual span:nth-child(3) { left: 146px; top: 49px; }

.journal-visual:before {
  background: var(--white);
  border: 1px solid #c8d9d5;
  border-radius: 6px;
  box-shadow: 10px 8px 0 rgba(232, 216, 199, .65);
  content: "";
  height: 52px;
  left: 33px;
  position: absolute;
  top: 15px;
  width: 90px;
}

.journal-visual span {
  background: var(--teal);
  border-radius: 999px;
  height: 3px;
  left: 50px;
  position: absolute;
  width: 58px;
  z-index: 1;
}

.journal-visual span:nth-child(1) { top: 31px; }
.journal-visual span:nth-child(2) { top: 44px; width: 72px; }
.journal-visual span:nth-child(3) { top: 57px; width: 42px; }

.loop-visual:before,
.loop-visual:after {
  border: 3px solid var(--teal);
  border-radius: 50%;
  content: "";
  height: 48px;
  position: absolute;
  top: 18px;
  width: 48px;
}

.loop-visual:before { left: 36px; }
.loop-visual:after { left: 82px; }

.loop-visual span {
  background: var(--clay);
  border-radius: 50%;
  height: 12px;
  position: absolute;
  width: 12px;
}

.loop-visual span:nth-child(1) { left: 31px; top: 39px; }
.loop-visual span:nth-child(2) { left: 83px; top: 14px; }
.loop-visual span:nth-child(3) { left: 136px; top: 39px; }

.nodes-visual:before {
  background:
    linear-gradient(35deg, transparent 47%, var(--teal) 48%, var(--teal) 52%, transparent 53%),
    linear-gradient(145deg, transparent 47%, var(--teal) 48%, var(--teal) 52%, transparent 53%);
  content: "";
  inset: 17px 28px;
  opacity: .75;
  position: absolute;
}

.nodes-visual span:nth-child(1) { left: 32px; top: 20px; }
.nodes-visual span:nth-child(2) { left: 116px; top: 19px; }
.nodes-visual span:nth-child(3) { left: 72px; top: 50px; }
.nodes-visual span:nth-child(4) { left: 151px; top: 49px; }

.shelf-visual:before {
  background: var(--teal);
  border-radius: 999px;
  bottom: 19px;
  content: "";
  height: 4px;
  left: 24px;
  position: absolute;
  right: 24px;
}

.shelf-visual span {
  background: var(--white);
  border: 1px solid #c8d9d5;
  border-radius: 5px 5px 2px 2px;
  bottom: 23px;
  box-shadow: 0 10px 24px rgba(23, 35, 38, .08);
  position: absolute;
}

.shelf-visual span:nth-child(1) { height: 46px; left: 36px; width: 24px; }
.shelf-visual span:nth-child(2) { background: var(--clay); height: 56px; left: 68px; width: 28px; }
.shelf-visual span:nth-child(3) { height: 38px; left: 107px; width: 54px; }

.pillar-card p,
.article-card p,
.trust-grid p,
.resource-grid p,
.stacked-notes p {
  color: var(--muted);
}

.pillar-card p {
  line-height: 1.68;
}

.featured-story {
  align-items: center;
  background: #eef6f4;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.05fr .95fr;
  padding: 4.8rem max(1.75rem, calc((100vw - 1320px) / 2));
}

.feature-media {
  position: relative;
}

.feature-media img {
  border-radius: var(--radius);
  height: 430px;
  object-fit: cover;
  width: 100%;
}

.energy-accent {
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: .35rem;
  left: 1.2rem;
  padding: .85rem;
  position: absolute;
  width: 190px;
}

.energy-accent span {
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 999px;
  display: block;
  height: 5px;
}

.energy-accent span:nth-child(1) { width: 80%; }
.energy-accent span:nth-child(2) { width: 55%; margin-left: 25%; }
.energy-accent span:nth-child(3) { width: 90%; }
.energy-accent span:nth-child(4) { width: 62%; margin-left: 15%; }

.feature-copy {
  max-width: 520px;
}

.muted {
  background: transparent;
}

.article-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-card img {
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.article-illustration {
  background: linear-gradient(135deg, #fffdf8, #eef6f4);
  height: 210px;
  position: relative;
}

.article-illustration:before,
.article-illustration:after {
  border: 2px solid rgba(22, 121, 111, .45);
  content: "";
  position: absolute;
}

.decision-illustration:before {
  border-bottom: 0;
  border-left: 0;
  height: 96px;
  left: 62px;
  top: 55px;
  transform: rotate(11deg);
  width: 170px;
}

.decision-illustration:after {
  border-right: 0;
  border-top: 0;
  height: 82px;
  right: 58px;
  top: 54px;
  transform: rotate(-9deg);
  width: 142px;
}

.article-illustration span {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  justify-content: center;
  min-width: 74px;
  padding: .45rem .55rem;
  position: absolute;
  z-index: 1;
}

.signal-node { left: 34px; top: 38px; }
.context-node { right: 44px; top: 42px; }
.choice-node { left: 78px; bottom: 38px; }
.reflect-node { right: 64px; bottom: 42px; }

.article-card .article-illustration {
  padding: 0;
}

.article-card div {
  padding: 1.25rem;
}

.article-card small {
  color: var(--muted);
  font-weight: 800;
}

.systems-preview,
.systems-page-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: .9fr 1.1fr;
  margin: 0 auto;
  max-width: 1320px;
  padding: 5.2rem 1.75rem;
}

.systems-visual {
  background: linear-gradient(135deg, #f9fbf8, var(--sage));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 2rem;
}

.systems-visual.large {
  min-height: 430px;
}

.editorial-map {
  background:
    radial-gradient(circle at 24% 22%, rgba(243, 201, 107, .25), transparent 28%),
    radial-gradient(circle at 76% 74%, rgba(232, 216, 199, .5), transparent 32%),
    linear-gradient(135deg, #fffdf8, #eef6f4);
  display: block;
  min-height: 390px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.map-layer {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(185, 203, 199, .7);
  border-radius: var(--radius);
  position: absolute;
}

.paper-one {
  height: 150px;
  left: 36px;
  top: 42px;
  transform: rotate(-5deg);
  width: 210px;
}

.paper-two {
  bottom: 42px;
  height: 150px;
  right: 42px;
  transform: rotate(4deg);
  width: 210px;
}

.map-lines {
  inset: 0;
  position: absolute;
  z-index: 1;
}

.map-lines path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 5;
  opacity: .7;
}

.map-node {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(23, 35, 38, .1);
  color: var(--teal-dark);
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  min-width: 118px;
  padding: .7rem 1rem;
  position: absolute;
  z-index: 2;
}

.map-node.signal { left: 52px; top: 64px; }
.map-node.context { right: 52px; top: 86px; }
.map-node.choice { left: 74px; bottom: 72px; }
.map-node.reflection { right: 62px; bottom: 58px; }

.node {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
}

.resources-band {
  grid-template-columns: 1fr 260px auto;
}

.resource-shelf {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 150px;
  overflow: hidden;
  position: relative;
}

.resource-shelf:before {
  background: var(--teal);
  border-radius: 999px;
  bottom: 34px;
  content: "";
  height: 5px;
  left: 28px;
  position: absolute;
  right: 28px;
}

.resource-shelf span {
  background: var(--white);
  border: 1px solid #c8d9d5;
  border-radius: 7px;
  bottom: 40px;
  box-shadow: 0 16px 28px rgba(23, 35, 38, .09);
  position: absolute;
}

.resource-shelf span:nth-child(1) { height: 72px; left: 42px; width: 34px; }
.resource-shelf span:nth-child(2) { background: var(--sage); height: 88px; left: 86px; width: 40px; }
.resource-shelf span:nth-child(3) { background: var(--clay); height: 54px; left: 136px; width: 70px; }
.resource-shelf span:nth-child(4) { height: 38px; left: 154px; top: 28px; transform: rotate(7deg); width: 76px; }

.trust-grid,
.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.follow-section {
  grid-template-columns: .8fr 1fr;
}

.subscribe-form,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

label {
  display: block;
  font-weight: 850;
  margin-bottom: .4rem;
}

input,
select,
textarea {
  border: 1px solid #b9cbc7;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  min-height: 2.9rem;
  padding: .75rem .85rem;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(22, 121, 111, .28);
  outline-offset: 3px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2.5rem max(1.75rem, calc((100vw - 1320px) / 2));
}

.site-footer p {
  color: #d9e4e2;
  max-width: 620px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.page-hero {
  max-width: 800px;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p:not(.eyebrow):not(.legal-status) {
  color: var(--muted);
  font-size: 1.18rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.timeline article {
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
  grid-template-columns: 80px 1fr;
  padding: 1.25rem;
}

.timeline span {
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.article-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.article-card.horizontal {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.article-card.horizontal img {
  height: 100%;
  min-height: 230px;
}

.stacked-notes {
  display: grid;
  gap: 1rem;
}

.boundary-panel {
  background: #f4faf8;
  border-left: 5px solid var(--teal);
  margin-top: 2rem;
}

.about-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 360px;
  max-width: 100%;
}

.about-hero img {
  border-radius: var(--radius);
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.prose-section {
  max-width: 760px;
}

.prose-section p {
  color: var(--muted);
}

/* Legal pages: section headings read as subheadings under the page title */
.prose-section h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2rem 0 .5rem;
}

.contact-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: .85fr 1fr;
}

.contact-form {
  align-self: start;
  display: grid;
  gap: .9rem;
}

.form-warning,
.form-success,
.legal-status {
  color: var(--teal-dark);
  font-weight: 900;
}

/* Contact form: hidden spam trap and send status */
.form-trap { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.form-status { font-weight: 800; margin: 0; }
.form-status:empty { display: none; }
.form-status.success { color: var(--teal-dark); }
.form-status.error { color: #9b2c2c; }
.form-status.pending { color: var(--muted); }
.contact-form button[disabled] { cursor: wait; opacity: .7; }

@media (max-width: 1279px) {
  .hero,
  .featured-story,
  .systems-preview,
  .systems-page-grid,
  .intro-band,
  .follow-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-photo {
    height: 390px;
    width: 78%;
  }

  .pillar-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-card,
  .pillar-card:nth-child(4),
  .pillar-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-menu {
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    grid-column: 1 / -1;
    padding: 1rem 0;
    width: 100%;
  }

  .site-menu.open,
  .site-menu.always {
    display: flex;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  h1 {
    font-size: 2.65rem;
    max-width: 12ch;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-photo {
    height: 310px;
    width: 100%;
  }

  .concept-card {
    margin-top: 1rem;
    max-width: none;
    position: static;
  }

  .intro-text {
    columns: 1;
  }

  .pillar-grid,
  .article-grid,
  .trust-grid,
  .resource-grid,
  .resources-band,
  .about-hero,
  .article-card.horizontal,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .article-card.horizontal img {
    height: 220px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero,
  .content-section,
  .trust-section,
  .systems-preview,
  .systems-page-grid,
  .page-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .intro-band,
  .featured-story,
  .resources-band,
  .follow-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .form-row {
    display: grid;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--teal-dark); }
.breadcrumbs span[aria-hidden] { margin: 0 .4rem; color: var(--line); }

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---- Gallery controls ---- */
.gallery-controls { margin: 0 0 2.5rem; }
.search-row input[type="search"] {
  font-size: 1.05rem;
  padding: .95rem 1.1rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.4rem 0;
}
.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  padding: .5rem .95rem;
}
.pill:hover { border-color: var(--teal); }
.pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.pill-count {
  color: var(--muted);
  font-weight: 800;
  margin-left: .25rem;
}
.pill.active .pill-count { color: rgba(255, 255, 255, .8); }

.filter-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.filter-field label {
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}
.results-bar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.6rem;
}
.result-count {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
}
.button.small { min-height: 2.4rem; padding: .5rem .9rem; font-size: .85rem; }

/* ---- Journal grid ---- */
.journal-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}
.journal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.journal-card:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-3px);
}
.journal-card[hidden] { display: none; }
.journal-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.journal-card-media img { height: 100%; object-fit: cover; width: 100%; }
.journal-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem; }
.journal-card-body h3 { line-height: 1.25; }
.journal-card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.journal-card-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  font-size: .8rem;
  font-weight: 800;
  margin-top: .2rem;
}
.journal-card-cta {
  color: var(--teal-dark);
  font-weight: 850;
  margin-top: .5rem;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state p { color: var(--muted); }
.load-more-wrap { display: flex; justify-content: center; margin: 2.5rem 0 1rem; }

/* ---- Article detail page ---- */
.article-page { max-width: 820px; }
.article-dek {
  color: var(--muted);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: .8rem;
}
.article-meta {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}
.article-hero {
  border-radius: var(--radius);
  margin-bottom: 2.2rem;
  width: 100%;
}
.article-body { font-size: 1.1rem; }
.article-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 2.2rem 0 .8rem; }
.article-body h3 { margin: 1.8rem 0 .6rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--teal);
  color: var(--muted);
  font-style: italic;
  margin: 1.6rem 0;
  padding: .4rem 0 .4rem 1.2rem;
}
.article-body code {
  background: var(--soft);
  border-radius: 4px;
  font-size: .95em;
  padding: .1rem .35rem;
}

.related-section { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2rem; }
.related-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
}
.related-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.related-card .card-label { display: block; padding: .9rem .9rem 0; }
.related-card h3 { font-size: 1rem; line-height: 1.3; padding: .35rem .9rem 1rem; }
.back-to-archive { margin-top: 2.5rem; }

@media (max-width: 1024px) {
  .journal-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .journal-grid, .related-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .results-bar { align-items: flex-start; flex-direction: column; }
}

/* ---- Simplified homepage: compact hero + minimal nav ---- */
.nav-shell.minimal { max-width: 1320px; }
.site-menu.inline {
  display: flex;
  gap: 1.2rem;
  font-size: .94rem;
  font-weight: 700;
}
.site-menu.inline a { color: var(--ink); }

.home-hero {
  margin: 0 auto;
  max-width: 1320px;
  padding: 3.2rem 1.75rem 1.4rem;
}
.home-hero h1 { max-width: 20ch; }
.home-hero-deck {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  margin-top: 1rem;
  max-width: 60ch;
}
.gallery-section { padding-top: 1.5rem; }

@media (max-width: 520px) {
  .home-hero { padding: 2.2rem 1rem 1rem; }
}

/* Earlier / later entry links on article pages (production build) */
.entry-nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 3rem; }
.entry-nav a { display: flex; flex-direction: column; font-weight: 600; gap: 0.25rem; max-width: 46%; text-decoration: none; }
.entry-nav a span { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.entry-nav .entry-nav-next { margin-left: auto; text-align: right; }
@media (max-width: 520px) {
  .entry-nav a { max-width: 100%; }
  .entry-nav .entry-nav-next { margin-left: 0; text-align: left; }
}
