:root {
  color-scheme: light;
  --paper: #f1eee5;
  --paper-light: #f8f5ec;
  --ink: #1b1b19;
  --quiet: #6a6961;
  --rule: #b9b5a8;
  --blue: #244fce;
  --red: #e34c32;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Arial", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  min-height: 100svh;
  margin: 0;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .12;
  background-image: radial-gradient(#34332d 0.42px, transparent 0.58px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

.wrap {
  width: min(100% - clamp(2.5rem, 8vw, 8rem), 1600px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  color: var(--paper-light);
  background: var(--ink);
  font: 700 .8rem/1 var(--mono);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.signature, .masthead-note, .live-status, .hero-meta, .eyebrow,
.print-caption, .side-note, .colophon {
  margin: 0;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.signature { font-weight: 800; letter-spacing: .16em; }
.signature span { color: var(--red); }
.masthead-note { justify-self: center; color: var(--quiet); }
.live-status { display: flex; align-items: center; justify-self: end; gap: .65rem; color: var(--quiet); letter-spacing: .045em; text-transform: none; }
.status-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

main { display: flex; flex: 1; }

.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: min(760px, calc(100svh - 155px));
  margin-block: 1.1rem .8rem;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: 0 0 auto;
  height: 50%;
  border-bottom: 1px solid rgb(27 27 25 / 10%);
}

.hero::after {
  inset: 0 auto 0 72%;
  border-left: 1px solid rgb(27 27 25 / 10%);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: 1.4rem;
  color: var(--quiet);
  font-size: .58rem;
}

.meta-rule { width: clamp(2rem, 7vw, 6rem); height: 1px; background: var(--rule); }

.print-composition {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 1.5%;
  width: min(49vw, 610px);
  height: 88%;
  margin: 0;
  pointer-events: none;
}

.print-art { display: block; width: 100%; height: 100%; overflow: visible; }
.registration-marks { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .6; }
.paper-blue, .paper-red, .paper-cream { transform-box: fill-box; transform-origin: center; }
.paper-blue { animation: paper-settle-blue .9s cubic-bezier(.2,.72,.24,1) both; }
.paper-red { animation: paper-settle-red .82s .12s cubic-bezier(.2,.72,.24,1) both; }
.paper-cream { animation: paper-settle-cream .72s .23s cubic-bezier(.2,.72,.24,1) both; }
.blue-sheet { fill: var(--blue); }
.blue-grain, .red-grain, .cream-grain { fill: url(#paper-grain); opacity: .14; }
.blue-grain { stroke: none; }
.blue-edge { fill: none; stroke: #d7dffc; stroke-width: 1.2; opacity: .56; }
.red-sheet { fill: var(--red); }
.red-grain { opacity: .12; }
.red-disc { fill: var(--red); }
.red-screen { fill: url(#halftone); opacity: .32; }
.cream-sheet { fill: var(--paper-light); }
.cream-grain { opacity: .2; }
.halftone-dot { fill: #782b21; }
.grain-mark { fill: none; stroke: #463f32; stroke-width: .65; }
.breathing-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .56; transform-box: fill-box; transform-origin: center; animation: breathe 10s ease-in-out infinite; }
.pencil-line { fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw-in 1.5s .55s cubic-bezier(.22,.75,.25,1) forwards; }
.pencil-line-secondary { stroke-width: 1.5; animation-delay: .85s; }
.registration-cross { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .7; }

.print-caption {
  position: absolute;
  right: 1rem;
  bottom: 2.5%;
  display: flex;
  gap: 1rem;
  color: var(--quiet);
  font-size: .52rem;
  letter-spacing: .08em;
}

.headline-block {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-top: -1.3rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 clamp(.9rem, 2.5vh, 1.8rem) .45rem;
  color: var(--quiet);
  font-size: .62rem;
}

.eyebrow-index { color: var(--red); }
.eyebrow-index::after { content: "/"; margin-left: .7rem; color: var(--rule); }

h1 {
  display: flex;
  margin: 0 0 0 -.055em;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(5rem, 18vw, 17rem);
  font-weight: 800;
  letter-spacing: -.105em;
  line-height: .69;
}

.first-name { position: relative; }
.last-name {
  margin: .105em 0 0 .62em;
  color: var(--blue);
  font-family: var(--serif);
  font-size: .92em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.12em;
}

.period { color: var(--red); }

.construction-note {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid var(--ink);
}

.construction-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-style: italic;
  letter-spacing: -.045em;
}

.construction-star { display: inline-block; color: var(--red); font-family: var(--sans); font-size: .58em; font-style: normal; animation: turn 28s linear infinite; }
.construction-subtitle { margin: 0 0 0 auto; color: var(--quiet); font: 500 .68rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.colophon {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 1rem;
  color: var(--quiet);
  font-size: .57rem;
}

.colophon-name { color: var(--ink); font-weight: 700; letter-spacing: .15em; }
.colophon-rule { height: 1px; flex: 1; background: var(--rule); }
.colophon-note { letter-spacing: .05em; text-transform: none; }
.back-to-top { padding: .45rem 0 .45rem .65rem; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.back-to-top span { color: var(--red); }

@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes paper-settle-blue {
  from { opacity: .6; transform: translate(-17px, 20px) rotate(-3deg); }
  to { opacity: 1; transform: translate(0) rotate(0); }
}
@keyframes paper-settle-red {
  from { opacity: .55; transform: translate(15px, -12px) rotate(3deg); }
  to { opacity: 1; transform: translate(0) rotate(0); }
}
@keyframes paper-settle-cream {
  from { opacity: .55; transform: translate(4px, 13px) rotate(-2deg); }
  to { opacity: 1; transform: translate(0) rotate(0); }
}

@media (min-width: 1500px) {
  h1 { font-size: 17rem; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { min-height: 66px; grid-template-columns: 1fr 1fr; }
  .masthead-note { display: none; }
  .signature, .live-status { font-size: .59rem; }
  .hero { min-height: max(620px, calc(100svh - 135px)); margin-top: .75rem; }
  .hero::before { height: 44%; }
  .hero::after { left: 76%; }
  .hero-meta { gap: .55rem; padding-top: 1rem; font-size: .49rem; letter-spacing: .07em; }
  .meta-rule { width: 1.3rem; }
  .print-composition { top: 17%; right: -5%; width: min(79vw, 440px); height: 53%; }
  .print-caption { right: .5rem; bottom: 8%; gap: .55rem; font-size: .43rem; }
  .headline-block { align-self: start; margin-top: clamp(3.6rem, 9vh, 5.4rem); }
  .eyebrow { margin: 0 0 1.1rem .15rem; font-size: .53rem; }
  h1 { font-size: clamp(4.3rem, 20vw, 9.7rem); }
  .last-name { margin-top: .16em; }
  .construction-note { min-height: 86px; gap: .4rem; }
  .construction-title { font-size: clamp(1.35rem, 6.4vw, 2rem); }
  .construction-star { font-size: .5em; }
  .construction-subtitle { max-width: 8rem; font-size: .53rem; line-height: 1.5; text-align: right; }
  .colophon { min-height: 50px; gap: .6rem; font-size: .48rem; }
  .colophon-note { display: none; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 2rem); }
  .live-status { gap: .45rem; font-size: .52rem; }
  .hero-meta { font-size: .44rem; }
  .print-composition { right: -10%; width: 88vw; }
  .print-caption { right: 12%; bottom: 8%; flex-direction: column; align-items: flex-end; gap: .08rem; }
  h1 { font-size: clamp(4rem, 19.2vw, 5.2rem); }
  .construction-title { font-size: 1.28rem; }
  .construction-subtitle { max-width: 6.8rem; font-size: .47rem; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero { min-height: 540px; }
  .print-composition { height: 82%; }
  h1 { font-size: clamp(7rem, 16vw, 13rem); }
  .construction-note { min-height: 82px; }
}

@media (max-height: 700px) and (max-width: 760px) {
  .hero { min-height: 540px; }
  .print-composition { top: 14%; height: 53%; }
  .construction-note { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pencil-line { stroke-dashoffset: 0; }
}
