/* ==========================================================================
   Llandovery College — Coleg Llanymddyfri
   "Gwell Dysg na Golud" — refreshed site 2026
   ========================================================================== */

:root {
  --claret: #b03234;
  --claret-deep: #7f2425;
  --navy-ink: #253c70;
  --gold: #e2ca86;
  --gold-soft: #eddeb4;
  --ink: #23222a;
  --ink-soft: #4c4a55;
  --paper: #faf7f1;
  --paper-warm: #f3ede1;
  --white: #ffffff;
  --green: #1e4d38;
  --serif: "Cochin", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Gill Sans", "Gill Sans MT", "Cabin", Calibri, "Segoe UI", Corbel, Arial, sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--claret); text-decoration: none; }
a:hover { color: var(--claret-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--claret);
  margin-bottom: 1.1rem;
}

.eyebrow .cym { color: var(--gold); }
.eyebrow .cym::after { content: " · "; color: var(--ink-soft); }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
}

.measure { max-width: 68ch; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 34, 42, 0.08);
}

.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 24px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand img { height: 50px; width: auto; }
.brand .name { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand .name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--claret);
  margin-top: 0.2rem;
}

nav.primary { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
nav.primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  color: var(--claret);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--claret);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--claret-deep); color: var(--white); }
.btn.ghost {
  background: transparent;
  color: var(--claret);
  box-shadow: inset 0 0 0 1.5px var(--claret);
}
.btn.ghost:hover { background: var(--claret); color: var(--white); }
.btn.gold { background: var(--gold); color: var(--navy-ink); }
.btn.gold:hover { background: var(--gold-soft); }
nav.primary .btn, nav.primary .btn[aria-current="page"] { padding: 0.55rem 1.1rem; border-bottom: none; color: var(--white); }
nav.primary .btn:hover { color: var(--white); }

.nav-toggle { display: none; }

/* dropdown menus */
nav.primary .has-sub { position: relative; }
nav.primary .has-sub > a { display: inline-block; }
nav.primary .has-sub > a::after { content: " ▾"; font-size: 0.7em; color: var(--gold); }
nav.primary .sub {
  display: none;
  position: absolute;
  top: 100%; left: -0.6rem;
  background: var(--paper);
  min-width: 210px;
  padding: 0.5rem 0;
  border-radius: 4px;
  border: 1px solid rgba(35,34,42,0.08);
  box-shadow: 0 14px 34px rgba(35,34,42,0.14);
  z-index: 60;
}
nav.primary .has-sub:hover .sub,
nav.primary .has-sub:focus-within .sub { display: block; }
nav.primary .sub a {
  display: block;
  padding: 0.45rem 1.2rem;
  border-bottom: none;
  font-size: 0.9rem;
}
nav.primary .sub a:hover { background: rgba(201,162,39,0.1); }

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

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 8, 12, 0.82) 0%, rgba(24, 8, 12, 0.25) 55%, rgba(24, 8, 12, 0.15) 100%);
}
.hero .wrap { padding-bottom: 4.5rem; padding-top: 8rem; }
.hero h1, .hero .sub, .hero .eyebrow,
.page-hero h1, .page-hero .sub, .page-hero .eyebrow {
  text-shadow: 0 1px 4px rgba(24, 8, 12, 0.55), 0 8px 32px rgba(24, 8, 12, 0.35);
}
.hero h1 { color: var(--white); max-width: 13ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow .cym { color: var(--gold); }
.hero p.sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
}
.hero .actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.page-hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 8, 12, 0.78), rgba(24, 8, 12, 0.18) 70%);
}
.page-hero .wrap { padding-bottom: 3rem; padding-top: 7rem; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p.sub { margin-top: 1rem; max-width: 56ch; color: rgba(255,255,255,0.88); font-size: 1.1rem; }

/* ---------- sections ---------- */

section { padding: 5.5rem 0; }
section.tight { padding: 3.5rem 0; }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }

.rule {
  width: 64px; height: 3px;
  background: var(--gold);
  border: none;
  margin: 1.4rem 0;
}

/* myth strip */
.myth {
  background: var(--navy-ink);
  color: var(--white);
  padding: 4.5rem 0;
}
.myth h2 { color: var(--white); max-width: 24ch; }
.myth .big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--gold-soft);
  max-width: 30ch;
}
.myth p { color: rgba(255,255,255,0.82); }
.myth .grid2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.6rem;
  box-shadow: 0 1px 2px rgba(35,34,42,0.06), 0 8px 24px rgba(35,34,42,0.05);
}
.pillar .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.pillar h3 { margin-bottom: 0.7rem; font-size: 1.22rem; }
.pillar h3 .cym { display: block; font-size: 0.8rem; font-family: var(--sans); color: var(--claret); letter-spacing: 0.06em; margin-top: 0.25rem; font-style: italic; font-weight: 500; }
.pillar p { font-size: 0.95rem; color: var(--ink-soft); }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.split.rev > .media { order: 2; }
.split .media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(35, 34, 42, 0.18);
}
.split .media.portrait img { aspect-ratio: 4 / 4.6; }
.split .body p { margin-top: 1rem; color: var(--ink-soft); }
.split .body p strong { color: var(--ink); }

/* quote */
.quoteband {
  position: relative;
  padding: 6rem 0;
  color: var(--white);
  isolation: isolate;
}
.quoteband .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.quoteband .bg::after { content: ""; position: absolute; inset: 0; background: rgba(38, 12, 18, 0.72); }
blockquote.grand {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
}
blockquote.grand footer {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(35,34,42,0.06), 0 10px 30px rgba(35,34,42,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(35,34,42,0.08), 0 18px 44px rgba(35,34,42,0.12); }
.card img { aspect-ratio: 16 / 11; object-fit: cover; }
.card .pad { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card .age { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); flex: 1; }
.card .more { margin-top: 1.2rem; font-weight: 600; font-size: 0.92rem; }
.card .more::after { content: " →"; color: var(--gold); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat .n {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--claret);
  line-height: 1;
}
.stat .l { margin-top: 0.6rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* heritage band */
.heritage {
  background: var(--paper-warm);
  border-top: 1px solid rgba(35,34,42,0.07);
  border-bottom: 1px solid rgba(35,34,42,0.07);
}
.timeline { border-left: 2px solid var(--gold); margin-left: 0.5rem; padding-left: 2.2rem; display: grid; gap: 2.4rem; }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2.2rem - 7px);
  top: 0.45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--claret);
  border: 2.5px solid var(--paper-warm);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-item .year { font-family: var(--serif); font-size: 1.4rem; color: var(--claret); }
.tl-item h3 { font-size: 1.12rem; margin: 0.2rem 0 0.35rem; }
.tl-item p { font-size: 0.96rem; color: var(--ink-soft); max-width: 62ch; }

/* alumni strip */
.alumni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.alum {
  background: var(--white);
  padding: 1.8rem 1.6rem;
  border-radius: 4px;
  border-left: 3px solid var(--claret);
  box-shadow: 0 1px 2px rgba(35,34,42,0.05), 0 8px 20px rgba(35,34,42,0.05);
}
.alum .field { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.alum h3 { font-size: 1.15rem; margin: 0.45rem 0 0.4rem; }
.alum p { font-size: 0.92rem; color: var(--ink-soft); }

/* checklist / feature list */
.feature-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.feature-list li { padding-left: 2rem; position: relative; color: var(--ink-soft); }
.feature-list li strong { color: var(--ink); }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5rem;
  width: 0.85rem; height: 0.85rem;
  background: conic-gradient(var(--gold) 0 100%);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* faq */
.faq { display: grid; gap: 0; max-width: 74ch; margin-top: 1.8rem; }
.faq-item { border-top: 1px solid rgba(35,34,42,0.12); padding: 1.4rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(35,34,42,0.12); }
.faq-item h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink-soft); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery figure { position: relative; overflow: hidden; border-radius: 4px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.8rem; font-weight: 600; color: var(--white);
  background: linear-gradient(to top, rgba(24,8,12,0.75), transparent);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--claret-deep), var(--claret));
  color: var(--white);
  padding: 5rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin-top: 1rem; }
.cta-band .actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn { background: var(--gold); color: var(--navy-ink); }
.cta-band .btn:hover { background: var(--gold-soft); }
.cta-band .btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* motto */
.motto {
  text-align: center;
  padding: 4rem 0;
}
.motto .welsh {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--claret);
  font-style: italic;
}
.motto .english {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* info tables */
table.info { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.info th, table.info td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(35,34,42,0.1); }
table.info th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--claret); }
table.info tr:hover td { background: rgba(201,162,39,0.06); }

/* footer */
footer.site {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2.5rem;
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
footer.site h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
footer.site a { color: rgba(255,255,255,0.75); }
footer.site a:hover { color: var(--white); }
footer.site ul { list-style: none; display: grid; gap: 0.5rem; }
footer.site .crest { display: flex; gap: 1rem; align-items: flex-start; }
footer.site .crest img { width: 62px; }
footer.site .motto-line { font-family: var(--serif); font-style: italic; color: var(--gold-soft); margin-top: 0.6rem; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* two-col prose */
.prose2 { columns: 2; column-gap: 3.5rem; }
.prose2 p { break-inside: avoid; margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose2 p strong { color: var(--ink); }

/* small badge row */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.badge {
  font-size: 0.8rem; font-weight: 600;
  background: var(--white);
  border: 1px solid rgba(122,30,46,0.25);
  color: var(--claret);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
a.badge:hover { background: var(--claret); color: var(--white); border-color: var(--claret); }

/* ---------- rescue pop-up ---------- */

.rescue-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 8, 12, 0.82);
  backdrop-filter: blur(6px);
}
.rescue-overlay.show { display: flex; }
.rescue-modal {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  border-top: 4px solid var(--gold);
  padding: 3rem 2.8rem 2.6rem;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
  animation: rescue-in 0.45s ease;
}
@keyframes rescue-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.rescue-modal .eyebrow { color: var(--gold); }
.rescue-modal h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.2rem;
}
.rescue-modal p { margin-bottom: 1rem; }
.rescue-modal p strong { color: var(--gold-soft); }
.rescue-modal .actions { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.rescue-modal .btn { background: var(--gold); color: var(--navy-ink); }
.rescue-modal .btn:hover { background: var(--gold-soft); }
.rescue-modal .btn.ghost { background: transparent; color: rgba(255,255,255,0.85); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45); }
.rescue-modal .btn.ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 560px) {
  .rescue-modal { padding: 2.2rem 1.6rem 2rem; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .alumni { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  section { padding: 3.8rem 0; }
  .split, .myth .grid2 { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.rev > .media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .prose2 { columns: 1; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1.5px solid var(--claret);
    color: var(--claret);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
  }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(35,34,42,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 24px 1.6rem;
    gap: 1rem;
    box-shadow: 0 18px 30px rgba(35,34,42,0.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary .has-sub { width: 100%; }
  nav.primary .sub {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.2rem 0 0 1rem;
    min-width: 0;
  }
  nav.primary .sub a { padding: 0.35rem 0; }
}

@media (max-width: 560px) {
  .pillars, .cards, .alumni { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 72vh; }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* ---------- news post body ---------- */

.post-body > p { margin-bottom: 1.3rem; line-height: 1.75; color: var(--ink-soft); }
.post-body > p:last-child { margin-bottom: 0; }
.post-body > p strong { color: var(--ink); }

.post-body .lede { margin-bottom: 2rem; color: var(--ink); }

.post-body h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  margin: 3.2rem 0 0.4rem;
}
.post-body h2::after {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 0.9rem 0 1.4rem;
}
.post-body > *:first-child { margin-top: 0; }

/* pulled quotes with an attribution line */
.post-body blockquote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 3px solid var(--gold);
}
.post-body blockquote p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1rem;
}
.post-body blockquote p:last-of-type { margin-bottom: 0; }
.post-body blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--claret);
}

/* the "who this family is" panel at the top of a parent profile */
.post-body .factbox {
  margin: 2.2rem 0;
  padding: 1.5rem 1.8rem;
  background: var(--paper-warm);
  border-radius: 4px;
}
.post-body .factbox dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.2rem; }
.post-body .factbox dt {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--claret); align-self: baseline;
}
.post-body .factbox dd { color: var(--ink); }

.post-body .post-end { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(35,34,42,0.12); }

@media (max-width: 640px) {
  .post-body .factbox dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .post-body .factbox dd { margin-bottom: 0.7rem; }
}
