/* Standalone pages (construction page, /links/), same tokens as styles.css. */

@font-face {
  font-family: 'IM Fell English';
  src: url("../fonts/IMFellEnglish-Regular.74dd8478d56a.ttf") format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IM Fell English';
  src: url("../fonts/IMFellEnglish-Italic.4da97789fe14.ttf") format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Alegreya';
  src: url("../fonts/Alegreya-VariableFont_wght.b70746b6cc8e.ttf") format('truetype');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1a140d;
  --ink-soft: #3b2f22;
  --ink-muted: #6a594a;
  --walnut: #4a2e1c;
  --accent: #7a2418;
  --serif-display: 'IM Fell English', 'Garamond', 'Times New Roman', serif;
  --serif-text: 'Alegreya', 'EB Garamond', 'Garamond', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 18px;
  line-height: 1.5;
  font-feature-settings: 'kern', 'liga', 'onum';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: grid;
  justify-items: center;
  text-align: center;
}

/* ─── title block ─────────────────────────────────────────────────────── */

.firstname {
  margin-top: 1.75rem;
  font-family: var(--serif-display);
  font-size: 2rem; line-height: 1;
  color: var(--ink-soft);
}
h1 {
  margin: .1rem 0 0;
  font-family: var(--serif-display); font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: .12em;
  font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05;
}
.rule { width: 6rem; height: 1px; background: var(--walnut); opacity: .6; margin: 1rem 0; }
.pre { font-style: italic; color: var(--ink-soft); font-size: .95rem; }
.role { color: var(--accent); font-size: 1rem; }

.fleuron {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; color: var(--ink-muted);
  margin: 2rem 0;
}
.fleuron::before, .fleuron::after {
  content: ''; flex: 0 0 4rem; height: 1px; background: currentColor; opacity: .45;
}
.fleuron svg { width: 26px; height: 14px; display: block; }

/* ─── construction page ───────────────────────────────────────────────── */

main.construction { min-height: 100vh; min-height: 100dvh; align-content: center; padding-bottom: 1.25rem; }
main.construction .firstname { margin-top: 0; }

/* ─── links page ──────────────────────────────────────────────────────── */

.lang {
  justify-self: end;
  display: flex; gap: .5rem; align-items: baseline;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
}
.lang button {
  font: inherit; letter-spacing: inherit; text-transform: uppercase;
  background: none; border: 0; border-bottom: 1px solid transparent;
  padding: .15rem .25rem; color: var(--ink-muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang button:hover { color: var(--accent); }
.lang .sep { color: var(--ink-muted); opacity: .45; }

.plate {
  margin: 1.75rem 0 0;
  width: 9.5rem;
  padding: 5px;
  border: 1px solid color-mix(in oklab, var(--walnut) 55%, transparent);
}
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

ul.links { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--walnut); }
ul.links li { border-bottom: 1px solid color-mix(in oklab, var(--walnut) 35%, transparent); }
ul.links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem .25rem;
  color: var(--ink); text-decoration: none; text-align: left;
  transition: color .2s, padding .2s;
}
ul.links a:hover, ul.links a:focus-visible { color: var(--accent); padding-left: .6rem; }
ul.links .label { font-family: var(--serif-display); font-size: 1.25rem; font-style: italic; line-height: 1.25; }
ul.links .kind {
  flex: none;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-muted);
}
ul.links a:hover .kind { color: var(--accent); }

/* Sections — italic title over a walnut rule, like the main site's section heads. */
.block { width: 100%; margin-bottom: 3rem; text-align: left; }
.section-head {
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--walnut);
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif-display); font-weight: 400; font-style: italic;
  font-size: 1.4rem; line-height: 1.25;
}

.video-grid { display: grid; gap: 2rem; }
@media (min-width: 600px) {
  main { max-width: 36rem; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (min-width: 900px) {
  main { max-width: 52rem; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video, .audio { margin: 0; width: 100%; }
.video-wide { margin-top: 2rem; }
.video .embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.video video { display: block; width: 100%; height: auto; background: var(--ink); }
.audio audio { display: block; width: 100%; }
.video figcaption, .audio figcaption {
  margin-top: .6rem;
  font-family: var(--serif-display); font-style: italic; font-size: 1.1rem; line-height: 1.3;
}

.photo {
  margin: 0;
  width: 100%;
  max-width: 36rem;
  padding: 5px;
  border: 1px solid color-mix(in oklab, var(--walnut) 55%, transparent);
}
.photo img { display: block; width: 100%; height: auto; }
