@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --hair: #000000;
  --serif: 'Libre Baskerville', 'Songti SC', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant Garamond', 'Songti SC', Georgia, serif;
  --measure: 66ch;
  --pad: clamp(1rem, 4vw, 2.6rem);
  --rail: 19rem;
}

*,
*::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-family: var(--serif);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1rem; }
hr { border: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem var(--pad);
  background: var(--paper);
  border-bottom: 3px solid var(--hair);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--hair);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.mark-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.mark-word {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.mark:hover { background: var(--ink); color: var(--paper); }

.pills { min-width: 0; }

.pills ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--hair);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- page ---------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.8rem) var(--pad) 0;
}

.lede {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
  min-height: 45vh;
  padding: clamp(1rem, 3vw, 1.8rem) 0 clamp(1.6rem, 4vw, 2.4rem);
  border-bottom: 3px solid var(--hair);
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
}

.lede-fig {
  margin: 0;
  align-self: stretch;
  min-height: 30vh;
  border: 2px solid var(--hair);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
}

.lede-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.lede-copy { text-align: center; }

.lede h1 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.dek {
  margin: 0 auto;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: #101010;
}

/* ---------- spread ---------- */

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 3.4rem) 0;
}

.prose {
  max-width: var(--measure);
  counter-reset: sec;
}

.prose div { scroll-margin-top: 7.5rem; }

.prose div + div {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: clamp(1.8rem, 4vw, 2.4rem);
  border-top: 1px solid var(--hair);
}

.prose h2 {
  counter-increment: sec;
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.prose h2::before {
  display: block;
  content: counter(sec, decimal-leading-zero);
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
}

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

.prose div:first-of-type > p:first-of-type::first-letter {
  float: left;
  padding: 0.22rem 0.55rem 0.05rem 0;
  font-family: var(--display);
  font-size: 4.3rem;
  font-weight: 700;
  line-height: 0.78;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35rem 0; }

.prose a {
  border-bottom: 1px solid var(--hair);
  transition: background 0.2s ease, color 0.2s ease;
}

.prose a:hover { background: var(--ink); color: var(--paper); }

.prose blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 5px solid var(--hair);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.35;
}

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

.prose figure {
  margin: 2rem 0;
  border: 1px solid var(--hair);
  border-radius: 28px;
  overflow: hidden;
}

.prose figcaption {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
  line-height: 1.5;
}

.prose strong { font-weight: 700; }
.prose img { border-radius: 28px; }

/* ---------- rail ---------- */

.rail {
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.rail h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.rail hr {
  border-top: 3px solid var(--hair);
  margin: 0 0 1rem;
}

.rail-list li + li { margin-top: 0.5rem; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--hair);
  border-bottom-width: 3px;
  border-radius: 28px;
  font-size: 16px;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(-3px);
}

/* ---------- colophon ---------- */

.colophon {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.4rem) var(--pad) 2rem;
  border-top: 3px solid var(--hair);
}

.mega {
  margin: 0 0 1.3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  word-break: break-word;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
}

address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- reveal ---------- */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .rail {
    position: static;
    padding-top: 1.6rem;
    border-top: 1px solid var(--hair);
  }

  .rail-list ul { margin: 0; }
  .rail-list li { margin: 0; }

  .prose { max-width: none; }
}

@media (max-width: 820px) {
  .lede {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1.2rem;
  }

  .lede-copy { order: -1; text-align: left; }
  .dek { margin: 0; }
  .lede-fig { min-height: 26vh; }
}

@media (max-width: 760px) {
  .masthead { flex-wrap: nowrap; padding: 0.55rem var(--pad); }

  .pills {
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .pills ul { flex-wrap: nowrap; justify-content: flex-start; }
  .pill { font-size: 16px; }
}

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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