/* ------------------------------------------------------------
   Dr Aaron Thierry: site styles
   Layout idea: a short front page (portrait, logo row, latest items,
   speaking, arts) with a separate page for each section, switched by
   the menu. Mostly near-white, with the moss green kept for the
   masthead, page headers and accents.

   Colour: "Moss". All colours are set in the :root block below.
   ------------------------------------------------------------ */

/* Fonts are hosted with the site (both under the SIL Open Font License, see fonts/) */
@font-face { font-family: "Besley"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/besley-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Besley"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/besley-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/libre-franklin-latin-wght-italic.woff2") format("woff2"); }

:root {
  --paper: #fafbf7;      /* page background */
  --wash: #edf2e7;       /* pale green band and panels */
  --field: #d6e2c8;      /* masthead and page headers */
  --frame: #c9d8bb;      /* panels behind the arts images */
  --ink: #17241a;        /* text, and the dark footer */
  --muted: #566153;
  --rule: #d6ddcf;
  --accent: #2f6a2a;     /* links and small marks */
  --underline: #a3bd92;
  --ochre: #d6a23a;      /* play button and quote marks */

  --font-display: "Besley", "Rockwell", "Clarendon", Georgia, serif;
  --font-body: "Libre Franklin", "Franklin Gothic", "Segoe UI", system-ui, sans-serif;

  --measure: 40rem;
  --page: 74rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

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

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; }

/* One page shows at a time. Without scripts, every page shows in turn. */
.js .view { display: none; }
.js .view.is-active { display: block; }

/* ---------- top bar ---------- */

.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 0.5rem 1.75rem; min-height: 3.9rem; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.bar nav { margin-left: auto; }
.bar nav ul { display: flex; align-items: center; gap: 0.25rem 1.35rem; list-style: none; margin: 0; padding: 0; }
.bar nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.bar nav a:hover { border-bottom-color: var(--underline); }
.bar nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.nav-cta { background: var(--ink); color: var(--paper); font-size: 0.95rem; font-weight: 700; text-decoration: none; padding: 0.45rem 0.95rem; border-radius: 2px; white-space: nowrap; }
.nav-cta:hover { background: var(--accent); color: var(--paper); }
@media (max-width: 900px) {
  html { scroll-padding-top: 6.5rem; }
  .bar .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.5rem; }
  .nav-cta { order: 2; margin-left: auto; }
  .bar nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .bar nav ul { gap: 0.25rem 1.1rem; }
}
@media (max-width: 480px) {
  .nav-home { display: none; }
  .bar nav ul { justify-content: space-between; gap: 0.25rem 0.6rem; }
  .bar nav a { font-size: 0.9rem; }
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 2px;
}
.button:hover { background: var(--accent); color: var(--paper); }
.button--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button--line:hover { background: var(--ink); color: var(--paper); }
.text-link { color: var(--ink); font-weight: 700; text-decoration-color: currentColor; }
.inline-link { color: var(--ink); text-decoration-color: var(--accent); }

/* ---------- home: masthead ---------- */

.hero { background: var(--field); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 0 clamp(2rem, 6vw, 5.5rem);
  align-items: stretch;
}
.hero-text { padding: clamp(2.5rem, 5.5vw, 4.5rem) 0; align-self: center; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(3.2rem, 8.2vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.75rem);
}
.hero h1 span { display: block; }
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.lede { font-size: 1.1rem; max-width: 36em; margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-photo { margin: 0; position: relative; min-height: 26rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-top: 1.75rem; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 5 / 4; margin: 0 calc(-1 * var(--gutter)); }
}

/* ---------- home: logo row ---------- */

.strip { background: #ffffff; border-bottom: 1px solid var(--rule); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.75rem; padding-top: 1.35rem; padding-bottom: 1.35rem; }
.strip-label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.strip ul { flex: 1 1 30rem; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 2rem; }
.strip li { height: 3.25rem; display: flex; align-items: center; }
.strip img { max-height: 100%; max-width: 9.25rem; width: auto; height: auto; }
.strip-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 600px) {
  .strip .wrap { gap: 0.9rem; }
  .strip ul { flex-basis: 100%; gap: 1rem 1.25rem; }
  .strip li { height: 2.6rem; }
}

/* ---------- home: bands ---------- */

.band { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
.band--wash { background: var(--wash); }
.band > .wrap { display: grid; gap: 1.5rem; }
.band > .wrap.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2.5rem, 6vw, 5rem); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.band-head h2, .speak-text h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.01em; }
.band-links { display: flex; gap: 1.5rem; font-size: 0.95rem; font-weight: 700; }
.band-links--foot { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.band > .wrap > .band-head { margin-bottom: 0; }
.intro { font-size: 1.13rem; max-width: var(--measure); }
@media (max-width: 860px) { .band > .wrap.two-col { grid-template-columns: 1fr; } }

/* latest lists: both columns share the same rows, so their lines meet */
.band > .wrap.latest { grid-template-rows: repeat(5, auto); grid-auto-flow: column; row-gap: 0; }
.latest > div, .latest .entries { display: contents; }
.latest .entry { align-content: start; }
@media (max-width: 860px) {
  .band > .wrap.latest { grid-template-rows: none; grid-auto-flow: row; }
  .latest > div + div .band-head { margin-top: 2.75rem; }
}

/* speaking on the home page */
.band > .wrap.speak { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: center; }
.speak-text { display: grid; gap: 1.25rem; justify-items: start; }
.topic-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.topic-list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 700; font-size: 1.13rem; line-height: 1.25;
}
.topic-list li:last-child { border-bottom: 1px solid var(--rule); }
.topic-list .topic-icon { flex: none; width: 1.8rem; height: 1.8rem; color: var(--accent); }
.topic-list a { color: var(--ink); text-decoration: none; }
.topic-list a:hover { text-decoration: underline; text-decoration-color: var(--underline); }
.topic-icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) { .band > .wrap.speak { grid-template-columns: 1fr; } }

/* the video card */
.video {
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: 18rem; width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #f6f8f3; text-decoration: none;
  background:
    linear-gradient(rgba(23, 36, 26, 0.8), rgba(23, 36, 26, 0.95)),
    url("../images/leaves.jpg") center / cover;
}
.video:focus-visible { outline-color: var(--ochre); }
.play {
  position: relative; flex: none;
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--ochre);
  margin-bottom: auto;
  transition: transform 0.15s ease;
}
.play::after {
  content: ""; position: absolute; left: 1.55rem; top: 1.15rem;
  border-style: solid; border-width: 0.85rem 0 0.85rem 1.3rem;
  border-color: transparent transparent transparent var(--ink);
}
.video:hover .play { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .play { transition: none; } .video:hover .play { transform: none; } }
.video-kicker { font-size: 0.88rem; font-weight: 700; color: #cfe0c0; margin-top: 1.5rem; }
.video-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.16; text-wrap: balance; max-width: 22em; }
.video-meta { font-size: 0.95rem; color: #cfe0c0; }

/* arts on the home page */
.posters { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0.35rem; display: flex; justify-content: space-between; gap: 1rem; overflow-x: auto; }
.posters li { flex: none; }
.posters a { display: block; }
.posters img { height: clamp(8.5rem, 14vw, 10.75rem); width: auto; max-width: none; }
.quotes { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4.5rem); margin-top: 1rem; }
.quote { margin: 0; padding-left: 1.1rem; border-left: 3px solid var(--ochre); }
.quote p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.5; }
.quote footer { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */

.page-head { background: var(--field); padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.page-head .wrap { display: grid; gap: 1.1rem; justify-items: start; }
.page-head h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.25rem); letter-spacing: -0.02em; line-height: 0.98; }
.view-body { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.view-body > .wrap { display: grid; gap: 2.25rem; }
.sub { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.005em; }
.view-body .sub { margin-bottom: -0.75rem; }
.small-note { color: var(--muted); font-size: 0.95rem; }

/* ---------- entries: small square thumbnail beside the text ---------- */

.entries {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.entries--stack { grid-template-columns: 1fr; }
.entry {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
}
.entry--plain { grid-template-columns: minmax(0, 1fr); }
.thumb { width: 6rem; height: 6rem; display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: 2.7rem; height: 2.7rem; }
.thumb--moss   { background: #356a2c; color: #f3f5f0; }
.thumb--deep   { background: #18231a; color: #cfe2bc; }
.thumb--ochre  { background: #d6a23a; color: #18231a; }
.thumb--lichen { background: #d6e2c8; color: #356a2c; }
.thumb--logo { background: #ffffff; box-shadow: inset 0 0 0 1px var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-text { display: grid; gap: 0.3rem; min-width: 0; }
.entry-meta { font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.entry-title { font-size: 1.14rem; font-weight: 700; line-height: 1.25; }
.entry-title a { color: var(--ink); text-decoration-color: var(--underline); }
.entry-title a:hover { text-decoration-color: currentColor; }
.entry-sub { color: var(--muted); font-size: 0.95rem; }
.entry-note { font-size: 0.95rem; }
.entry-links { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.93rem; }
@media (max-width: 760px) { .entries { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .entry { grid-template-columns: 4.75rem minmax(0, 1fr); } .thumb { width: 4.75rem; height: 4.75rem; } .thumb svg { width: 2rem; height: 2rem; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1rem; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- about ---------- */

.view-body > .wrap.about { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 5.5rem; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-text { display: grid; gap: 1.75rem; }
.prose { display: grid; gap: 1.1rem; max-width: var(--measure); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; max-width: var(--measure); }
.facts div { border-top: 3px solid var(--accent); padding-top: 0.6rem; }
.facts dt { font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 820px) { .view-body > .wrap.about { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 20rem; } }

/* ---------- speaking ---------- */

.speak-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: center; }
.speak-note { display: grid; gap: 0.5rem; }
.speak-note .sub { margin: 0; font-size: 1.2rem; }
.speak-note p + .sub { margin-top: 1rem; }
@media (max-width: 860px) { .speak-top { grid-template-columns: 1fr; } }

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(2rem, 5vw, 4rem); }
.topic { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.5rem 1rem; align-content: start; border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.topic .topic-icon { width: 2.4rem; height: 2.4rem; color: var(--accent); grid-row: span 2; }
.topic h3 { font-size: 1.25rem; font-weight: 700; align-self: center; }
.topic p { font-size: 0.98rem; color: var(--muted); grid-column: 2; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

/* ---------- dated lists ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list > li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.when { font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; color: var(--muted); font-size: 0.98rem; padding-top: 0.12rem; }
.what { display: grid; gap: 0.3rem; }
.item-title { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.item-title a { color: var(--ink); }
.item-meta { color: var(--muted); font-size: 0.95rem; }
.item-meta strong { color: var(--ink); }
.item-note { font-size: 0.95rem; max-width: var(--measure); }
@media (max-width: 560px) { .list > li { grid-template-columns: 1fr; } }

/* ---------- books ---------- */

.books { display: grid; gap: 2rem; }
.book { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem 2rem; align-items: center; max-width: 52rem; }
.book img { width: 100%; height: auto; box-shadow: 0 8px 20px rgba(23, 36, 26, 0.2); }
.book-text { display: grid; gap: 0.5rem; }
.book h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.14; }
.book h3 a { color: var(--ink); text-decoration-color: var(--underline); }
.book-text p:last-child { max-width: var(--measure); }
.band .book h3 { font-size: 1.3rem; }
.band .book-text p:last-child { font-size: 0.97rem; }
@media (max-width: 520px) { .book { grid-template-columns: 6.5rem minmax(0, 1fr); } }

/* ---------- research ---------- */

.thesis { background: var(--wash); border-left: 6px solid var(--ochre); padding: clamp(1.4rem, 4vw, 2.5rem); display: grid; gap: 0.9rem; }
.thesis .where { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.thesis h2, .thesis h3 { font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.12; }
.thesis p:last-child { max-width: 46rem; }
.thesis--small { padding: 1.4rem 1.5rem; }
.thesis--small h3 { font-size: 1.35rem; }
.thesis--small p:last-child { font-size: 0.97rem; }
.research-lists { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.research-lists .sub { margin-bottom: 0.9rem; }
.research-side { display: grid; gap: 2.25rem; }
.cite .authors strong { color: var(--ink); }
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.report { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-top: 1rem; border-top: 1px solid var(--rule); }
.report-cover { width: 100%; height: auto; box-shadow: 0 4px 12px rgba(23, 36, 26, 0.18); }
@media (max-width: 860px) { .research-lists { grid-template-columns: 1fr; } }

/* ---------- arts ---------- */

.page-head .wrap.arts-top { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; justify-items: stretch; }
.page-head .wrap.media-top { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; justify-items: stretch; }
.media-photo { margin: 0; }
.media-photo img { width: 100%; height: auto; }
@media (max-width: 760px) { .page-head .wrap.media-top { grid-template-columns: 1fr; } .media-photo { max-width: 22rem; order: 2; } }
.arts-intro { display: grid; gap: 1.1rem; }
.arts-photo { margin: 0; }
.arts-photo img { width: 100%; height: auto; }
@media (max-width: 560px) { .page-head .wrap.arts-top { grid-template-columns: 1fr; } .arts-photo { max-width: 9rem; } }

/* Each card's parts sit on rows shared with its neighbours, so pictures,
   titles, descriptions, links and quotes line up across the page. */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.work { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding-bottom: 3rem; }
.work > * { margin-bottom: 0.45rem; align-self: start; }
.work > .work-frame { grid-row: 1; }
.work > .entry-meta { grid-row: 2; }
.work > h3 { grid-row: 3; }
.work > .entry-sub { grid-row: 4; }
.work > .entry-note { grid-row: 5; }
.work > .entry-links { grid-row: 6; }
.work > blockquote, .work > .todo { grid-row: 7; }
.work-frame {
  height: 15rem;
  background: var(--frame);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.work-frame img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: 0 3px 10px rgba(23, 36, 26, 0.2); }
.work-frame .thumb { width: 6.5rem; height: 6.5rem; }
.work h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.work blockquote {
  margin: 0.4rem 0 0; padding-left: 0.9rem; align-self: start;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display); font-style: italic; font-size: 1.04rem; line-height: 1.45;
}
.work blockquote footer { font-family: var(--font-body); font-style: normal; font-size: 0.88rem; color: var(--muted); margin-top: 0.35rem; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; } .work-frame { height: 13rem; } }

/* ---------- contact and footer ---------- */

.contact { background: var(--ink); color: #f6f8f3; }
.contact .wrap { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 1.75rem; display: grid; gap: 1.25rem; }
.contact h2 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.02em; line-height: 0.98; }
.contact p { font-size: 1.13rem; max-width: 34em; }
.contact .email { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); overflow-wrap: anywhere; }
.contact a { color: #f6f8f3; text-decoration-color: var(--ochre); }
.contact :focus-visible { outline-color: var(--ochre); }
.elsewhere { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; font-weight: 700; }
.elsewhere a { display: inline-block; text-decoration: none; border: 2px solid rgba(246, 248, 243, 0.65); border-radius: 999px; padding: 0.42rem 1.05rem; }
.elsewhere a:hover { background: #f6f8f3; color: var(--ink); }
.contact .colophon { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 248, 243, 0.18); font-size: 0.9rem; color: #b9c6b2; max-width: none; }

/* ---------- gaps still to fill (search content.js for TODO) ---------- */

.todo {
  display: inline-block;
  font-family: var(--font-body); font-style: normal; font-weight: 400;
  font-size: 0.82rem; line-height: 1.4; letter-spacing: 0;
  color: #9b1149; background: #fff0f5; border: 1.5px dashed #9b1149;
  padding: 0.05rem 0.4rem; border-radius: 2px; vertical-align: middle;
}
.todo-block { display: block; padding: 0.6rem 0.8rem; }
