:root {
  --paper: #F3F5F1;
  --ink: #1F2A44;
  --body: #3A4458;
  --note: #545E72;
  --rule: #B8383A;
  --hair: #C9D0DA;
  --frame: #D3D9E2;
  --margin: 200px;
  --gap: 40px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161C29;
    --ink: #E7EAF0;
    --body: #C6CCD8;
    --note: #9AA3B5;
    --rule: #D9555A;
    --hair: #3A4357;
    --frame: #2E3648;
  }
}
:root[data-theme="dark"] {
  --paper: #161C29;
  --ink: #E7EAF0;
  --body: #C6CCD8;
  --note: #9AA3B5;
  --rule: #D9555A;
  --hair: #3A4357;
  --frame: #2E3648;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Alegreya", Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
}
a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--rule); }
:focus-visible { outline: 2px solid var(--rule); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
i, em { font-style: italic; }

.page {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 32px 120px;
  min-height: 100vh;
}
.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(32px + var(--margin));
  width: 1.5px;
  background: var(--rule);
}

.row {
  display: grid;
  grid-template-columns: var(--margin) minmax(0, 1fr);
  align-items: baseline;
}
.row.top { align-items: start; }
.m {
  padding-right: 28px;
  text-align: right;
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--note);
}
.c { padding-left: var(--gap); min-width: 0; }
.measure { max-width: 36em; }

/* Opening */
.intro { margin-bottom: 80px; }
.portrait {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: cover;
  margin: 0 0 14px auto;
  outline: 1px solid var(--frame);
}
.name { font-size: 22px; font-weight: 700; margin-bottom: 40px; letter-spacing: 0.005em; }
.lede { font-size: 38px; line-height: 1.32; max-width: 21em; }
.lede + .lede { margin-top: 28px; }

.now { margin-bottom: 88px; }
.now p { font-size: 20px; max-width: 34em; }

/* Sections */
section { margin-bottom: 88px; }
.section-title {
  margin: 0 0 32px calc(var(--margin) + var(--gap));
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
}
.sub-title {
  margin: 0 0 4px calc(var(--margin) + var(--gap));
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
}
.sub-note {
  margin: 0 0 24px calc(var(--margin) + var(--gap));
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--note);
}
.item { margin-bottom: 40px; }
.item.tight { margin-bottom: 26px; }
.item:last-child { margin-bottom: 0; }
.item h3 { font-size: 23px; font-weight: 500; margin-bottom: 6px; line-height: 1.3; }
.item h4 { font-size: 20px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.item p { color: var(--body); }
.item .small { font-size: 18px; line-height: 1.5; }
.status {
  margin-top: 10px;
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--note);
}
.gap-before { margin-top: 48px; }

/* Film */
.film { max-width: 800px; margin-bottom: 56px; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1F2A44;
  outline: 1px solid var(--frame);
}
.screen video { width: 100%; height: 100%; display: block; background: #1F2A44; }
.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 0;
  border-radius: 50%;
  background: #1F2A44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.big-play svg { margin-left: 5px; }
.film.playing .big-play { display: none; }
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 26px;
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--note);
}
.controls button {
  border: 0;
  background: none;
  padding: 12px 0;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.controls .play {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
  min-width: 3.2em;
  text-align: left;
}
.controls .time { white-space: nowrap; }
.seek {
  flex: 1;
  min-width: 60px;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.seek::-webkit-slider-runnable-track { height: 1.5px; background: linear-gradient(to right, var(--rule) var(--p, 0%), var(--hair) var(--p, 0%)); }
.seek::-moz-range-track { height: 1.5px; background: var(--hair); }
.seek::-moz-range-progress { height: 1.5px; background: var(--rule); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3.75px; border-radius: 50%; background: var(--rule); border: 0; }
.seek::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); border: 0; }
.film h3 { font-size: 26px; font-weight: 500; margin-bottom: 2px; line-height: 1.25; }
.film .subtitle { font-size: 21px; font-style: italic; margin-bottom: 12px; color: var(--ink); }
.film .measure p + p { margin-top: 12px; }
.disclosure {
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--note);
}
video::cue { font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 0.9em; background: rgba(22, 28, 41, 0.82); }

footer p { line-height: 1.9; }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { padding: 48px 20px 64px 48px; }
  .page::before { left: 28px; }
  .row, .row.top { display: block; }
  .m { text-align: left; padding: 0; font-size: 14px; margin-bottom: 2px; }
  .c { padding-left: 0; }
  .intro .m { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
  .portrait { width: 88px; height: 88px; margin: 0; }
  .name { font-size: 20px; margin-bottom: 24px; }
  .lede { font-size: 27px; }
  .lede + .lede { margin-top: 20px; }
  .intro { margin-bottom: 52px; }
  .now { margin-bottom: 56px; }
  .now p { font-size: 18px; }
  section { margin-bottom: 56px; }
  .section-title { margin-left: 0; font-size: 25px; margin-bottom: 22px; }
  .sub-title, .sub-note { margin-left: 0; }
  .item h3 { font-size: 21px; }
  .item h4 { font-size: 18px; }
  .item .small { font-size: 16px; }
  .film h3 { font-size: 22px; }
  .film .subtitle { font-size: 18px; }
  .big-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .big-play svg { width: 22px; height: 22px; margin-left: 4px; }
  .controls { gap: 12px; font-size: 14px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
