/* Computers and Composition Digital Press
   Brand: navy blues from the original site, Lato for headings and
   interface text, Lora for reading text. Adjust the tokens below to
   retune the whole site. */

:root {
  --navy-950: #0f2033;
  --navy-900: #162b44;
  --navy-800: #1e3a5c;
  --navy: #305582;          /* primary brand blue */
  --navy-600: #285580;
  --sky: #82bfe7;           /* accent: decoration only, not text on white */
  --sky-100: #e9f3fb;
  --sky-50: #f4f9fd;

  --ink: #1c2633;
  --ink-soft: #4a5666;
  --muted: #6b7684;
  --line: #e1e6ec;
  --paper: #fbfaf7;
  --white: #fff;

  --font-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.5vw, 3.6rem);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(15 32 51 / 0.06), 0 1px 3px rgb(15 32 51 / 0.08);
  --shadow: 0 2px 4px rgb(15 32 51 / 0.05), 0 8px 24px rgb(15 32 51 / 0.09);
  --shadow-lg: 0 4px 8px rgb(15 32 51 / 0.06), 0 18px 40px rgb(15 32 51 / 0.14);

  --gutter: clamp(1rem, 4vw, 2rem);
  --wrap: 1180px;
  --measure: 68ch;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-800); text-decoration-thickness: 2px; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem;
  border-radius: var(--radius); font-family: var(--font-sans); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons and small UI ---------- */

.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.75em 1.25em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button--primary { background: var(--navy); color: var(--white); }
.button--primary:hover { background: var(--navy-800); color: var(--white); }
.button--light { background: var(--white); color: var(--navy-900); }
.button--light:hover { background: var(--sky-100); color: var(--navy-900); }
.button--ghost { border-color: rgb(255 255 255 / 0.55); color: var(--white); }
.button--ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.08); color: var(--white); }
.button--outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.button--outline:hover { border-color: var(--navy); color: var(--navy-800); }

.meta {
  font-family: var(--font-sans); font-size: var(--step--1); color: var(--muted);
  letter-spacing: 0.01em;
}

.text-link {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step--1);
  text-decoration: none;
}
.text-link .icon { transition: transform 0.15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--navy-900);
}
.brand img { width: 40px; height: 40px; }
.brand__name {
  font-family: var(--font-sans); font-weight: 900; font-size: 1.02rem; line-height: 1.15;
}
.brand__name span { display: block; }
.brand:hover { color: var(--navy); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: 700 var(--step--1) var(--font-sans); color: var(--navy-900);
  cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav__list { display: flex; align-items: center; gap: 0.15rem; }

.site-nav a, .site-nav summary {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem;
  color: var(--ink-soft); text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav summary:hover { background: var(--sky-50); color: var(--navy); }
.site-nav [aria-current="page"], .site-nav .is-active > summary { color: var(--navy); background: var(--sky-100); }

.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary .icon { width: 0.9em; height: 0.9em; transition: transform 0.15s; }
.site-nav details[open] > summary .icon { transform: rotate(180deg); }

.site-nav details { position: relative; }
.site-nav__sub {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  min-width: 15rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
}
.site-nav__sub a { border-radius: 6px; font-weight: 400; color: var(--ink); }
.site-nav__sub [aria-current="page"] { font-weight: 700; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .brand__name { font-size: 0.95rem; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
    max-height: calc(100vh - 4.25rem); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav a, .site-nav summary { border-radius: 8px; padding: 0.7rem 0.75rem; font-size: 1rem; }
  .site-nav summary { justify-content: space-between; }
  .site-nav__sub { position: static; border: 0; box-shadow: none; padding: 0 0 0 0.75rem; min-width: 0; }
}

/* ---------- Page headers ---------- */

.page-header {
  position: relative;
  background:
    linear-gradient(115deg, rgb(15 32 51 / 0.94), rgb(40 85 128 / 0.82)),
    url(../assets/img/brady.jpg) center / cover,
    var(--navy-900);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-header h1 { color: var(--white); margin: 0; max-width: 22ch; }
.page-header__lede {
  font-size: var(--step-1); line-height: 1.5;
  color: rgb(255 255 255 / 0.82);
  margin: 0.9rem 0 0; max-width: 60ch;
}

/* ---------- Home ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% 110%, rgb(130 191 231 / 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-600) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
/* The mountain photo is a thin strip, so it sits along the bottom edge */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: url(../assets/img/brady.jpg) center bottom / cover no-repeat;
  opacity: 0.45;
  mask-image: linear-gradient(to top, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); max-width: 16ch; margin-bottom: 0.75rem; }
.hero__sub {
  font-family: var(--font-sans); font-size: var(--step-2); font-weight: 400;
  color: var(--sky); margin: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Fan of the newest covers beside the heading. Below 1100px there isn't room
   for both side by side, so the fan is hidden rather than stacked. */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
.hero-fan {
  --cover: 12.5rem;   /* size of each square cover */
  --step: 4.5rem;     /* how far each cover sits from the one behind it */
  display: none;
  position: relative;
  list-style: none; margin: 0; padding: 0;
  width: calc(var(--cover) + var(--step) * 3);
  height: calc(var(--cover) + 2.5rem);
}
@media (min-width: 1100px) { .hero-fan { display: block; } }
@media (min-width: 1300px) { .hero-fan { --cover: 14rem; --step: 5rem; } }

.hero-fan__item {
  position: absolute; top: 0; left: 0;
  width: var(--cover);
  transform-origin: 50% 90%;
  transition: transform 0.25s ease;
}
.hero-fan__item a { display: block; }
.hero-fan__item img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 14px 30px rgb(0 0 0 / 0.4);
}
.hero-fan__item:nth-child(1) { z-index: 4; transform: translate(calc(var(--step) * 3), 1.2rem) rotate(5deg); }
.hero-fan__item:nth-child(2) { z-index: 3; transform: translate(calc(var(--step) * 2), 0) rotate(0deg); }
.hero-fan__item:nth-child(3) { z-index: 2; transform: translate(var(--step), 0.8rem) rotate(-4deg); }
.hero-fan__item:nth-child(4) { z-index: 1; transform: translate(0, 2.2rem) rotate(-8deg); }
.hero-fan__item:hover { z-index: 5; }
.hero-fan__item:nth-child(1):hover { transform: translate(calc(var(--step) * 3), 0.2rem) rotate(3deg) scale(1.04); }
.hero-fan__item:nth-child(2):hover { transform: translate(calc(var(--step) * 2), -1rem) rotate(0deg) scale(1.04); }
.hero-fan__item:nth-child(3):hover { transform: translate(var(--step), -0.4rem) rotate(-2deg) scale(1.04); }
.hero-fan__item:nth-child(4):hover { transform: translate(0, 1rem) rotate(-5deg) scale(1.04); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head h2 { margin: 0; }

.cover-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

@media (max-width: 560px) {
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .cover-card__title { font-size: 0.95rem; }
  /* Three books stack as rows with a small cover */
  .cover-grid--three { grid-template-columns: 1fr; gap: 1.25rem; }
  .cover-grid--three .cover-card { flex-direction: row; align-items: center; }
  .cover-grid--three .cover { width: 6.5rem; flex: none; }
}
@media (min-width: 561px) {
  .cover-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cover-card { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }
.cover-card:hover { color: inherit; text-decoration: none; }
.cover {
  display: block; aspect-ratio: 1; width: 100%; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sky-100);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cover-card:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover-card__title {
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step-0); line-height: 1.3;
  color: var(--navy-900); margin: 0 0 0.25rem;
}
.cover-card:hover .cover-card__title { color: var(--navy); }
.cover-card .meta { margin: 0; }

/* Quick links: big icons with a label underneath, as on the original site */
.icon-row { background: var(--navy-600); }
.icon-row ul {
  list-style: none; margin: 0; padding: clamp(2.5rem, 6vw, 4rem) 0;
  display: grid; gap: 2rem 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 700px) { .icon-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icon-row a {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--step-0);
  color: var(--white); text-decoration: none; text-align: center;
}
.icon-row__icon {
  display: grid; place-items: center;
  width: clamp(5rem, 9vw, 6.5rem); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.35);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-row__icon .icon { width: 45%; height: 45%; stroke-width: 1.6; }
.icon-row a:hover { color: var(--white); text-decoration: none; }
.icon-row a:hover .icon-row__icon { background: rgb(255 255 255 / 0.1); border-color: var(--white); transform: translateY(-3px); }

/* Newest blog post */
.latest-post { max-width: 50rem; }
.latest-post--with-image {
  max-width: none;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start;
}
@media (max-width: 760px) { .latest-post--with-image { grid-template-columns: 1fr; } }
.latest-post__image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.latest-post h2 { font-size: var(--step-3); margin: 0.25rem 0 1rem; }
.latest-post h2 a { color: var(--navy-900); text-decoration: none; }
.latest-post h2 a:hover { color: var(--navy); }
.latest-post .meta { margin: 0; }
.latest-post__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }

/* ---------- Blog cards ---------- */

.post-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.post-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--sky-100); }
.post-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; flex: 1; }
.post-card h3 { font-size: var(--step-1); margin: 0; }
.post-card h3 a { color: var(--navy-900); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-card h3 a:hover { color: var(--navy); }
.post-card p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.post-card .meta { margin: 0; }


.pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 3rem;
  font-family: var(--font-sans); font-size: var(--step--1);
}
.pagination a, .pagination span {
  display: inline-grid; place-items: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft); text-decoration: none; font-weight: 700;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination__summary { width: 100%; color: var(--muted); margin-bottom: 0.5rem; }

/* ---------- Book list ---------- */

.book-list { display: grid; gap: 1.5rem; }

.book-row {
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.book-row h2 { font-size: var(--step-2); margin: 0 0 0.35rem; }
.book-row h2 a { color: var(--navy-900); text-decoration: none; }
.book-row h2 a:hover { color: var(--navy); }
.book-row__authors { font-family: var(--font-sans); font-weight: 700; color: var(--ink-soft); margin: 0 0 1rem; }
.book-row__description { color: var(--ink-soft); }
.book-row__description p:last-child { margin-bottom: 0; }
.book-row__footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}
.book-row__footer .meta { margin-right: auto; }

@media (max-width: 640px) {
  .book-row { grid-template-columns: 1fr; }
  .book-row .cover { max-width: 14rem; }
}

.awards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.4rem; }
.awards li {
  display: flex; gap: 0.5rem; align-items: baseline;
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 700; color: var(--navy-800);
}
.awards li p { margin: 0; }
.awards .icon { color: #d9a514; fill: #f2c94c; width: 1em; height: 1em; transform: translateY(0.12em); }

.pill {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  background: var(--sky-100); color: var(--navy-800);
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Book page ---------- */

.book-hero {
  background:
    radial-gradient(900px 300px at 90% 120%, rgb(130 191 231 / 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 50%, var(--navy-600));
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.book-hero__inner {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: center;
}
.book-hero h1 { color: var(--white); font-size: var(--step-3); margin-bottom: 0.75rem; }
.book-hero__authors { font-family: var(--font-sans); font-size: var(--step-1); font-weight: 700; color: rgb(255 255 255 / 0.85); margin-bottom: 1.75rem; }
.book-hero .cover { box-shadow: 0 20px 50px rgb(0 0 0 / 0.35); }
.book-hero .awards li { color: var(--white); }
@media (max-width: 760px) {
  .book-hero__inner { grid-template-columns: 1fr; }
  .book-hero__cover { order: -1; max-width: 13rem; }
}

.book-body {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
@media (max-width: 900px) {
  .book-body { grid-template-columns: 1fr; }
}

.book-body h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.book-body h2:first-child { margin-top: 0; }

.video {
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow);
}
.video iframe, .video video { display: block; width: 100%; height: 100%; border: 0; }


.fact-card {
  position: sticky; top: 6rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.fact-card dl { margin: 0; display: grid; gap: 1.25rem; }
.fact-card dt {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.fact-card dd { margin: 0; font-size: 0.95rem; line-height: 1.55; overflow-wrap: anywhere; }
.fact-card dd p { margin: 0; }
.fact-card .button { width: 100%; justify-content: center; margin-bottom: 1.5rem; }

.copy-button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 0; padding: 0.15rem 0.35rem; border-radius: 6px;
  font: 700 0.72rem var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
}
.copy-button:hover { background: var(--sky-100); }
.copy-button .icon { width: 0.95em; height: 0.95em; }

/* ---------- Reading pages (posts, text pages) ---------- */

.prose { max-width: var(--measure); }
.prose { display: flow-root; } /* contains legacy floated images */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 2em; }
.prose h4 { font-size: var(--step-0); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--navy); }
.prose blockquote {
  margin: 2em 0; padding: 0.25em 0 0.25em 1.5em;
  border-left: 4px solid var(--sky);
  font-style: italic; color: var(--ink-soft);
}
.prose img { border-radius: 6px; }
.prose img[style*="float: left"], .prose img[style*="float:left"] { margin: 0.3em 1.25em 0.75em 0 !important; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--font-sans); font-size: var(--step--1); color: var(--muted); margin-top: 0.5em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.5em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6em 0.75em; text-align: left; }
.prose iframe { border: 0; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose strong { font-weight: 700; }

.page-body { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }

.post-header { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.post-header h1 { font-size: var(--step-4); max-width: 22ch; margin-bottom: 0.75rem; }
.post-header__subtitle { font-size: var(--step-1); color: var(--ink-soft); font-style: italic; max-width: 50ch; margin-bottom: 1rem; }
.post-header .meta { margin-bottom: 0; }
.post-header .text-link { margin-bottom: 1.5rem; }

.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: var(--measure); }

/* ---------- Editors ---------- */

.people { display: grid; gap: 1.25rem; max-width: 60rem; }
.person {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; align-items: start;
  padding: 1.75rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.person__photo {
  width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover;
  background: var(--sky-100);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line);
}
.person__initials {
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 900; font-size: 1.8rem; color: var(--navy);
}
.person h3 { font-size: var(--step-1); margin: 0 0 0.2rem; }
.person .meta { margin: 0 0 0.9rem; color: var(--navy); font-weight: 700; }
.person__bio { font-size: 0.97rem; line-height: 1.65; color: var(--ink-soft); }
.person__bio p:last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
}
.people-group + .people-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.people-group > h2 { font-size: var(--step-2); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgb(255 255 255 / 0.75);
  font-family: var(--font-sans); font-size: var(--step--1);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer h2 {
  color: var(--white); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer p { line-height: 1.6; max-width: 38ch; }
.site-footer__partner {
  display: inline-block; margin-top: 0.5rem;
  background: var(--white); border-radius: var(--radius); padding: 0.75rem 1rem;
}
.site-footer__partner img { display: block; width: 210px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
