@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rail: 272px;
  --bar: 44px;
  --maxw: 1180px;
  --f-disp: 'Cormorant Garamond', Georgia, 'Songti SC', 'Times New Roman', serif;
  --f-body: 'Crimson Pro', Georgia, 'Songti SC', 'Times New Roman', serif;
  --f-cap: 'Cinzel', Georgia, 'Songti SC', serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.72 var(--f-body);
  letter-spacing: .004em;
  overflow-x: hidden;
}

main { display: block; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 1rem 0 1.5rem;
}

h1, h2, h3 { text-wrap: balance; }

/* ---------- skip ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--paper);
  color: var(--ink);
  padding: .7rem 1rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.skip:focus { left: .8rem; top: calc(var(--bar) + .6rem); }

/* ---------- top ticker ---------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .4rem;
  z-index: 70;
}

.ticker a,
.menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .85rem;
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--f-cap);
  font-size: 16px;
  letter-spacing: .16em;
  text-decoration: none;
}

.ticker a:hover,
.menu-btn:hover { background: rgba(255, 255, 255, .16); }
.menu-btn { display: none; }

/* ---------- left rail ---------- */
.rail {
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--rail);
  padding: 2rem 1.6rem 1.4rem;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  overflow-y: auto;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-decoration: none;
  word-break: break-word;
}

.rail-nav dl {
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 .8rem;
  align-items: baseline;
}

.rail-nav dt { margin: 0; }

.rail-nav dd {
  margin: 0;
  font-family: var(--f-cap);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(0, 0, 0, .5);
  text-align: right;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: letter-spacing .25s ease, color .25s ease;
}

.mk {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

a:hover .mk { transform: rotate(45deg) scale(1.7); }
.rail-nav a:hover { letter-spacing: .07em; }

.rail-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--f-cap);
  font-size: 14px;
  letter-spacing: .14em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* ---------- shell ---------- */
.shell {
  padding-top: var(--bar);
  margin-left: var(--rail);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 3.2rem);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  min-height: 62vh;
  padding: 2.6rem 0 2.4rem;
  border-bottom: 1px solid var(--ink);
}

.hero-fig {
  margin: 0;
  height: clamp(280px, 58vh, 520px);
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}

.hero-fig:empty { background: var(--ink); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-txt {
  position: relative;
  text-align: right;
  overflow: hidden;
  padding-top: 1rem;
}

.hero-ghost {
  position: absolute;
  right: -.03em;
  top: -.3em;
  z-index: 0;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(3.2rem, 8.5vw, 6.6rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .28);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-txt h1 {
  position: relative;
  z-index: 1;
  margin: 2.2rem 0 .9rem;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.9vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.022em;
}

.deck {
  position: relative;
  z-index: 1;
  margin: 0 0 0 auto;
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, .72);
}

/* ---------- stage ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  padding: 3rem 0 4rem;
}

.prose { min-width: 0; font-size: 1.06rem; }
.prose [id] { scroll-margin-top: calc(var(--bar) + 1.5rem); }

.prose > div { padding-bottom: 1.2rem; }

.prose h2 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -.012em;
  margin: 2.1rem 0 .4rem;
}

.prose h2 + hr { margin-top: .35rem; margin-bottom: 1.2rem; }

.prose h3 {
  font-family: var(--f-cap);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .1em;
  margin: 1.6rem 0 .5rem;
}

.prose p { margin: 0 0 1.05rem; }

.prose > div > p:first-of-type::first-letter {
  float: left;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: .8;
  padding: .08em .12em 0 0;
}

.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.prose ul,
.prose ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }

.prose blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid var(--ink);
  font-family: var(--f-disp);
  font-size: 1.5rem;
  line-height: 1.34;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 1.4rem 0; }
.prose figure img { border-radius: 4px; }
.prose figcaption {
  margin-top: .45rem;
  font-size: .9rem;
  font-style: italic;
  color: rgba(0, 0, 0, .6);
}

.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th,
.prose td { border-bottom: 1px solid rgba(0, 0, 0, .2); padding: .55rem .4rem; text-align: left; }

/* ---------- aside ---------- */
.side {
  position: sticky;
  top: calc(var(--bar) + 1.6rem);
  align-self: start;
  border-left: 1px solid var(--ink);
  padding-left: 1.1rem;
}

.side h2 {
  margin: 0 0 .35rem;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
}

.side hr { margin: .3rem 0 1rem; }

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}

.side-list li {
  counter-increment: s;
  border-bottom: 1px solid rgba(0, 0, 0, .14);
}

.side-list a {
  display: block;
  padding: .6rem 0;
  min-height: 44px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
}

.side-list a::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--f-cap);
  font-size: 12px;
  letter-spacing: .12em;
  margin-right: .6rem;
  color: rgba(0, 0, 0, .55);
}

.side-list a:hover { background: var(--ink); color: var(--paper); }
.side-list a:hover::before { color: rgba(255, 255, 255, .7); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1.5fr 1fr .9fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: 2.6rem clamp(1.1rem, 4vw, 3.2rem) 3rem;
}

.foot-mark {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  word-break: break-word;
}

.foot-nav dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 .7rem;
  align-items: baseline;
}

.foot-nav dt { margin: 0; }

.foot-nav dd {
  margin: 0;
  font-family: var(--f-cap);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(0, 0, 0, .5);
  text-align: right;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .3rem 0;
  font-size: 1rem;
  text-decoration: none;
}

.foot-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.copy {
  margin: 0 0 .5rem;
  font-family: var(--f-cap);
  font-size: 15px;
  letter-spacing: .06em;
  color: rgba(0, 0, 0, .75);
}

.copy a { text-decoration: none; border-bottom: 1px solid var(--ink); }

/* ---------- reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- wide ---------- */
@media (min-width: 1200px) {
  .prose > div {
    column-count: 2;
    column-gap: 2.6rem;
    column-rule: 1px solid rgba(0, 0, 0, .12);
  }
  .prose h2,
  .prose h3 { break-after: avoid; break-inside: avoid; }
  .prose blockquote,
  .prose figure,
  .prose li { break-inside: avoid; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }

  .menu-btn { display: inline-flex; }

  .rail {
    top: var(--bar);
    width: min(84vw, 320px);
    transform: translateX(-101%);
    transition: transform .3s ease;
    box-shadow: 1px 0 0 var(--ink);
  }

  .rail.open { transform: none; }

  .shell { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.6rem;
  }

  .hero-txt { text-align: left; order: 1; padding-top: .4rem; }
  .hero-fig { order: 2; height: clamp(220px, 44vh, 320px); }
  .hero-txt h1 { margin-top: 1.8rem; }
  .hero-ghost { font-size: clamp(3rem, 15vw, 5rem); }
  .deck { margin-left: 0; }

  .stage {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.2rem 0 2.6rem;
  }

  .side {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding-left: 0;
    padding-top: 1.1rem;
  }

  .foot { grid-template-columns: 1fr; gap: 1.8rem; }
  .foot-mark { font-size: clamp(2.2rem, 13vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rail { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
