  :root {
    --paper:      #e9e2d0;
    --sheet:      #f1ebdd;
    --ink:        #1b2640;
    --ink-soft:   rgba(27, 38, 64, .72);
    --hair:       rgba(27, 38, 64, .24);
    --hair-2:     rgba(27, 38, 64, .12);
    --grid-minor: rgba(27, 38, 64, .032);
    --grid-major: rgba(27, 38, 64, .065);
    --accent:     #a64f2b;
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
  }

  /* ── the sheet ───────────────────────────────────────────── */
  .sheet { min-height: 100vh; min-height: 100svh; padding: 36px; display: flex; }
  .frame {
    position: relative; flex: 1;
    display: flex; flex-direction: column;
    min-height: 640px; min-width: 0;
    background: var(--sheet);
    border: 1px solid var(--hair);
    outline: 1px solid var(--hair-2);
    outline-offset: 5px;
  }

  /* registration marks, outside the frame */
  .reg { position: absolute; width: 22px; height: 22px; pointer-events: none; }
  .reg path, .reg circle { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .32; }
  .reg.tl { left: -22px; top: -22px; }
  .reg.tr { right: -22px; top: -22px; transform: scaleX(-1); }
  .reg.bl { left: -22px; bottom: -22px; transform: scaleY(-1); }
  .reg.br { right: -22px; bottom: -22px; transform: scale(-1, -1); }
  .tgt { position: absolute; width: 18px; height: 18px; pointer-events: none; }
  .tgt.t { top: -30px; left: calc(50% - 9px); }
  .tgt.b { bottom: -30px; left: calc(50% - 9px); }

  /* ── masthead / title block ─────────────────────────────── */
  .mast {
    display: flex; align-items: stretch; justify-content: space-between;
    border-bottom: 1px solid var(--hair);
    min-height: 68px;
  }
  .mast-l { display: flex; align-items: center; gap: 20px; padding: 0 26px; }
  .wordmark {
    font-family: var(--serif); font-weight: 500;
    font-size: 29px; letter-spacing: .15em; line-height: 1;
    font-variation-settings: "opsz" 48;
  }
  .mast-rule { width: 1px; align-self: stretch; margin: 18px 0; background: var(--hair); }
  .ident {
    font: 500 10.5px/1.3 var(--mono);
    letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  }
  .cells { display: flex; }
  .cell {
    border-left: 1px solid var(--hair);
    padding: 12px 18px; min-width: 92px;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
  }
  .cell b    { font: 500 10px/1 var(--mono); letter-spacing: .16em; color: var(--ink-soft); }
  .cell span { font: 400 12px/1 var(--mono); letter-spacing: .06em; }

  /* ── the drawing field ──────────────────────────────────── */
  .field {
    position: relative; flex: 1; overflow: hidden;
    background-image:
      linear-gradient(var(--grid-major) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
      linear-gradient(var(--grid-minor) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
      radial-gradient(120% 90% at 62% 70%, rgba(255,255,255,.35), transparent 60%);
    background-size: 96px 96px, 96px 96px, 12px 12px, 12px 12px, 100% 100%;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
  }
  #dwg { position: absolute; inset: 0; width: 100%; height: 100%; }

  .head {
    position: absolute; left: 40px; bottom: var(--head-bottom, 30%);
    max-width: var(--head-max, 12ch);
    margin: 0;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(34px, 3.9vw, 60px); line-height: 1.04; letter-spacing: -.012em;
    font-variation-settings: "opsz" 72;
    text-wrap: balance;
  }
  .sub {
    position: absolute; left: 40px; top: var(--sub-top, 75%);
    margin: 0;
    font: 500 10.5px/1.4 var(--mono);
    letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  }

  /* svg type — two hands */
  .t-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; fill: var(--ink); }
  .t-soft { fill: var(--ink-soft); }
  .t-acc  { fill: var(--accent); }
  .t-note { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--ink); opacity: .8; }

  @media (max-width: 1039px) {
    .sheet { padding: 16px; }
    .frame { min-height: 0; }
    .reg { width: 12px; height: 12px; }
    .reg.tl { left: -11px; top: -11px; }   .reg.tr { right: -11px; top: -11px; }
    .reg.bl { left: -11px; bottom: -11px; } .reg.br { right: -11px; bottom: -11px; }
    .tgt { display: none; }
    .mast-l { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 14px 18px; }
    .mast-rule { display: none; }
    .wordmark { font-size: 24px; }
    .cell:not(.cell-date) { display: none; }
    .cell { min-width: 0; padding: 12px 14px; }
    .field { min-height: 620px; }
    .head {
      bottom: auto; top: var(--head-top, 70%);
      left: 20px; right: 20px; max-width: none;
      font-size: clamp(30px, 8.4vw, 44px);
    }
    .sub { top: auto; bottom: 22px; left: 20px; right: 20px; }
  }

/* ── links ──────────────────────────────────────────────── */
a { color: inherit; text-decoration: none; }
.sub a { color: var(--ink); border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.sub a:hover { border-bottom-color: var(--ink); }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ── the sequence — the second sheet ────────────────────── */
.sheet.seq { min-height: 0; padding-top: 0; }
.seq .frame { min-height: 0; }
.seq-body { padding: 8px 40px 0; }
.seq ol { list-style: none; margin: 0; padding: 0; }
.seq li {
  display: grid;
  grid-template-columns: 72px minmax(180px, 280px) 1fr;
  gap: 0 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px dashed var(--hair);
}
.seq li:last-child { border-bottom: 2px solid var(--ink); }
.seq li svg { width: 52px; height: 22px; align-self: center; overflow: visible; }
.seq li svg ellipse { fill: none; stroke: var(--ink); stroke-width: 1; }
.seq li svg circle  { fill: var(--ink); }
.seq h2 {
  margin: 0;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
}
.seq p {
  margin: 0; max-width: 46ch;
  font-size: 19px; line-height: 1.5; color: rgba(27, 38, 64, .82);
  font-variation-settings: "opsz" 18;
}
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 40px 22px;
  font: 400 10.5px/1.4 var(--mono); letter-spacing: .14em; color: var(--ink-soft);
}

/* ── 404 ────────────────────────────────────────────────── */
.lost .field { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.lost .rule { height: 2px; background: var(--ink); margin: 18px -40px 16px; }
.lost h1 { margin: 0; font-weight: 400; font-size: clamp(30px, 4vw, 52px); }

@media (max-width: 1039px) {
  .seq-body { padding: 0 20px; }
  .seq li { grid-template-columns: 52px 1fr; gap: 10px 14px; padding: 22px 0; }
  .seq li p { grid-column: 2; font-size: 17px; }
  .foot { padding: 16px 20px 20px; flex-direction: column; }
  .lost .field { padding: 24px 20px; }
  .lost .rule { margin: 16px -20px 14px; }
}

/* one word per line, so V · O · R · A reads down the left edge */
.head span { display: block; }
