
  /* --- reset (the artifact host normally provides this) --- */
  html { color-scheme: light dark; }
  body { margin: 0; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }

  :root {
    /* marl paper, umber ink, esparto grass, iron oxide */
    --paper:  #EDEBE3;
    --ink:    #16130F;
    --ink-2:  #635C50;
    --rule:   #CFC9BA;
    --accent: #5C6034;
    --mark:   #943F24;

    --display: "Cormorant Garamond", "EB Garamond", "Garamond", Georgia, serif;
    --body: "Spectral", Georgia, "Times New Roman", serif;
    --util: "Jost", "Futura", "Avenir Next", Helvetica, Arial, sans-serif;

    --measure: 46rem;
    --gutter: clamp(1.5rem, 7vw, 5rem);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper:  #12100D;
      --ink:    #F0EBDE;
      --ink-2:  #9A9183;
      --rule:   #38322A;
      --accent: #AFB271;
      --mark:   #D97B52;
    }
  }

  :root[data-theme="dark"] {
    --paper:  #12100D;
    --ink:    #F0EBDE;
    --ink-2:  #9A9183;
    --rule:   #38322A;
    --accent: #AFB271;
    --mark:   #D97B52;
  }

  * { box-sizing: border-box; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 400;
    font-size: clamp(1.125rem, 1rem + 0.58vw, 1.3125rem);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* full-bleed uses 100vw; guard against scrollbar overhang */
  }

  ::selection { background: var(--accent); color: var(--paper); }

  .page {
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(3rem, 9vh, 6rem) var(--gutter) 0;
  }

  /* ---------- opener ---------- */

  .masthead {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rubric {
    font-family: var(--util);
    font-weight: 500;
    font-size: 0.625rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--mark);
    margin: 0 0 clamp(2rem, 5vh, 3.25rem);
    text-indent: 0.34em;
  }

  h1 {
    font-family: var(--display);
    font-weight: 400;
    margin: 0;
    line-height: 1;
  }

  h1 .of {
    display: block;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.4rem);
    letter-spacing: 0.01em;
    margin-bottom: 0.18em;
  }

  h1 .name {
    display: block;
    font-size: clamp(3.5rem, 0.3rem + 14.6vw, 9.25rem);
    font-weight: 600;
    letter-spacing: 0.045em;
    text-indent: 0.045em;
    text-transform: uppercase;
    line-height: 0.92;
  }

  .standfirst {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink-2);
    max-width: 30rem;
    text-wrap: balance;
    margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  }

  .credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--util);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    margin-top: clamp(2.25rem, 5vh, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    width: 100%;
    text-indent: 0.3em;
  }
  .credits .byline { color: var(--ink); font-weight: 500; }
  .credits .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; }

  /* ---------- prose ---------- */

  article { margin-top: clamp(3rem, 7vh, 4.5rem); }

  p { margin: 0 0 1.4em; hyphens: auto; }

  .opening { margin-top: 0; }

  .opening::first-letter {
    font-family: var(--display);
    font-weight: 600;
    font-size: 4.5em;
    line-height: 0.72;
    float: left;
    padding: 0.04em 0.09em 0 0;
    color: var(--ink);
  }

  .lead-in {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.09em;
    font-weight: 600;
  }

  /* ---------- section breaks ---------- */

  .brk {
    width: 2.75rem;
    height: 1px;
    background: var(--rule);
    margin: clamp(2.75rem, 6vh, 3.75rem) auto clamp(2.5rem, 5.5vh, 3.25rem);
  }

  /* ---------- pictures ---------- */

  /* One banner only — the four collages, edge to edge, opening the piece.
     Every other picture sits at the text measure. */

  .plate {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: clamp(2.5rem, 6vh, 3.5rem);
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.25rem, 0.7vw, 0.6rem);
  }

  .fig {
    width: 100%;
    margin: clamp(3rem, 7vh, 4.5rem) 0;
  }

  .plate img,
  .fig img {
    display: block;
    width: 100%;
    height: auto;
  }

  @media (max-width: 52rem) {
    .plate { grid-template-columns: repeat(2, 1fr); }
  }

  /* ---------- the letter ---------- */

  .letter {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.25rem, 1.08rem + 0.8vw, 1.6rem);
    line-height: 1.44;
    margin: clamp(2.75rem, 6vh, 3.5rem) 0 0;
  }
  .letter .salutation {
    display: block;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.4em;
  }

  .coda {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.9rem);
    line-height: 1.22;
    text-align: center;
    text-wrap: balance;
    margin: clamp(3rem, 7vh, 4.25rem) 0 0;
  }

  /* ---------- colophon ---------- */

  footer {
    margin-top: clamp(4rem, 9vh, 6rem);
    padding: 1.4rem 0 clamp(3.5rem, 10vh, 6rem);
    border-top: 1px solid var(--rule);
    text-align: center;
    font-family: var(--util);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-indent: 0.3em;
  }

/* ---------- index ---------- */

.index-head { text-align: center; padding-top: clamp(4rem, 12vh, 8rem); }

.site-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.site-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  color: var(--ink-2);
  margin: 1.25rem 0 0;
}

.essay-list {
  list-style: none;
  padding: 0;
  margin: clamp(3.5rem, 9vh, 6rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.essay-list li { border-top: 1px solid var(--rule); }
.essay-list li:last-child { border-bottom: 1px solid var(--rule); }

.essay-list a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.75rem, 4vh, 2.5rem) 0;
  text-decoration: none;
  color: inherit;
}

.essay-list img { display: block; width: 100%; height: auto; }

.essay-list h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.essay-list p { margin: 0; color: var(--ink-2); font-size: 0.95em; }

.essay-list .when {
  font-family: var(--util);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.6rem;
}

.essay-list a:hover h2,
.essay-list a:focus-visible h2 { color: var(--mark); }

a:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

@media (max-width: 34rem) {
  .essay-list a { grid-template-columns: 4.5rem 1fr; }
}

/* ---------- back link on an essay ---------- */

.back {
  display: inline-block;
  font-family: var(--util);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.back:hover, .back:focus-visible { color: var(--mark); }
