/* NightArk. Colours live here, and only here. */
:root {
  --indigo: #403D79;   /* the boards, section numbers, link underlines */
  --ink: #151B32;      /* body text, the wordmark */
  --paper: #F4F2EC;    /* page background */
  --grey: #6F6D76;     /* rules and captions */
  --board: color-mix(in srgb, var(--indigo) 50%, var(--ink)); /* dark background of the boards */
  --board-fade: linear-gradient(180deg, var(--indigo) 0%, var(--board) 55%, var(--ink) 100%); /* indigo deepening to navy, as in the brand preview */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 38rem;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--indigo); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; top: 12px; left: 12px; z-index: 50; background: var(--paper); padding: 8px 12px; }

/* Quiet underline that draws in on hover */
.u {
  background-image: linear-gradient(var(--indigo), var(--indigo));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease);
}
.u:hover, .u:focus-visible { background-size: 100% 1px; }
.is-indigo .u, .board .u { background-image: linear-gradient(var(--paper), var(--paper)); }

/* Small letter-spaced capitals, as on the holding page */
.eyebrow, .masthead__nav a, .menu summary, .foot__nav a, .foot__contact,
.figures dt, .person__role, .glance th, .contact dt, .journal-list time, .post__date {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
}
.eyebrow { color: var(--grey); }

.num {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.08em;
  color: var(--indigo);
}

/* ------------------------------------------------------------ boards (indigo + grain) */
.board {
  position: relative;
  background-color: var(--board);
  background-image: var(--board-fade);
  color: var(--paper);
  isolation: isolate;
}
.board::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("/img/grain.png");
  background-repeat: repeat;
  background-size: 100vw 100vh;
  background-position: left top;
  opacity: .55;
}
@media (max-width: 768px) {
  .board::after { background-image: url("/img/grain-mobile.png"); background-size: 100vw 100vh; }
}
.board > * { position: relative; }

/* ------------------------------------------------------------ header */
.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
}
.masthead__mark img { width: 120px; }
.masthead__nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.masthead__nav a { font-weight: 300; }
.masthead__nav a[aria-current="page"] { background-size: 100% 1px; }
.masthead--light { color: var(--paper); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 0; font-weight: 300; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center;
  padding: var(--gutter);
  background: var(--paper);
  color: var(--ink);
}
.menu__panel ul { display: grid; gap: 18px; }
.menu__panel a { font-family: var(--serif); font-weight: 300; font-size: 2rem; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.menu[open] summary { position: fixed; top: 22px; right: var(--gutter); z-index: 41; color: var(--ink); }
.menu[open] summary::before { content: "Close"; }
.menu[open] summary { font-size: 0; }
.menu[open] summary::before { font-size: 0.75rem; }

@media (max-width: 960px) {
  .masthead__nav { display: none; }
  .menu { display: block; }
  .masthead__mark img { width: 104px; }
}

/* ------------------------------------------------------------ home cover */
.cover {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cover .masthead { flex: none; }
.cover .masthead__mark img { width: 128px; }
.cover__inner {
  flex: 1;
  display: grid;
  grid-template-rows: 1.25fr auto 1fr auto;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
}
.cover__mark {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(78vw, 1080px);
}
.cover__mark img { width: 100%; }
.cover__text { position: relative; z-index: 2; max-width: 52rem; grid-row: 2; }
.cover__cue { grid-row: 4; }
.cover__text .eyebrow { color: var(--paper); opacity: .8; margin-bottom: 14px; }
.cover__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.cover__cue {
  position: relative; z-index: 2;
  justify-self: center;
  display: block;
  width: 24px; height: 56px;
  margin-top: clamp(20px, 4vh, 40px);
}
.cover__cue::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--paper); opacity: .7;
}
.cover__cue::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 7px; height: 7px; margin-left: -3px;
  border-right: 1px solid var(--paper); border-bottom: 1px solid var(--paper);
  transform: rotate(45deg); opacity: .7;
}
@media (max-width: 640px) {
  .cover__mark { width: min(42vw, 200px); }
}

/* First-load choreography: the wordmark fades in, then the words arrive. */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mark-arrive { from { opacity: 0; transform: translateY(3.5vh); } 60% { opacity: .85; } to { opacity: 1; transform: none; } }
html.first .cover__mark img { animation: mark-arrive 2.2s cubic-bezier(.16, .7, .2, 1) both; }
html.first .cover .masthead { animation: fade-in 1.6s ease-out .1s both; }
html.first .cover__text > *,
html.first .cover__cue { animation: rise-in .9s var(--ease) 1.6s both; }
html.first .cover__text > * { animation-delay: 1s; }
html.first .cover__text > * + * { animation-delay: 1.2s; }

/* Turning the cover: the sheet slides over the indigo as it recedes. */
.sheet { position: relative; z-index: 2; background: var(--paper); }
.foot { z-index: 2; }
@supports (animation-timeline: scroll()) {
  @keyframes recede { to { opacity: 0; transform: translateY(-6vh) scale(.985); } }
  .cover__mark, .cover__text {
    animation: recede linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100svh;
  }
}

/* ------------------------------------------------------------ editorial sheet */
.section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(64px, 10vw, 144px) var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent);
  max-width: 1360px;
  margin: 0 auto;
}
.sheet > .section:first-child { border-top: 0; }
@media (min-width: 900px) {
  .section { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; }
  .section__body { grid-column: 2; }
  .section__head { padding-top: .35em; }
}
.section--opening { padding-top: clamp(40px, 7vw, 96px); }

.section__body > * + * { margin-top: 1.25em; }
.section__body > p:not(.lede):not(.sources):not(.more) { max-width: var(--measure); }

.headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.headline--page { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 20ch; }
.lede {
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  max-width: 40rem;
}

/* Headline figures */
.figures {
  display: flex; flex-wrap: wrap;
  gap: clamp(28px, 7vw, 96px);
  margin-top: clamp(40px, 6vw, 72px) !important;
}
.figures div { display: flex; flex-direction: column-reverse; gap: 6px; }
.figures dd, .stat__figure {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.figures dt { color: var(--grey); }

/* Numbered points */
.points { counter-reset: none; }
.points li { padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.points h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 12px 0 8px;
}
.points p { color: var(--ink); max-width: 34rem; }
.points--grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .points--grid { grid-template-columns: 1fr 1fr; gap: 48px 56px; } }
.points--steps { display: grid; gap: 0; }
.points--steps li { display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 12px; padding: 22px 0; }
.points--steps li .num { grid-row: span 2; padding-top: 3px; }
.points--steps h3 { margin-top: 0; }
@media (min-width: 900px) {
  .points--steps li { grid-template-columns: 4rem 12rem 1fr; }
  .points--steps li .num { grid-row: auto; }
  .points--steps h3 { margin: 0; }
  .points--long li { grid-template-columns: 4rem 1fr; }
  .points--long li .num { grid-row: span 2; }
  .points--long h3 { margin: 0 0 8px; }
}
.more { margin-top: 32px !important; }

/* Statistics */
.stats { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px) !important; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.stat { border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); padding-top: 22px; }
.stat__figure { color: var(--indigo); }
.stat__note { margin-top: 14px; font-size: .9375rem; line-height: 1.5; max-width: 22rem; }
.sources { font-size: .8125rem; color: var(--grey); margin-top: 40px !important; max-width: 46rem; }

/* At a glance */
.glance { width: 100%; border-collapse: collapse; }
.glance tr { border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.glance tr:last-child { border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 16px 0; }
.glance th { color: var(--grey); width: 34%; padding-right: 24px; padding-top: 19px; }
@media (max-width: 600px) {
  .glance tr { display: block; padding: 14px 0; }
  .glance th, .glance td { display: block; width: auto; padding: 0; }
  .glance td { margin-top: 4px; }
}

/* The bar */
.the-bar li {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent);
}
.the-bar li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }

/* People */
.people { display: grid; gap: 56px; }
@media (min-width: 900px) { .people { grid-template-columns: 1fr 1fr; gap: 64px; } }
.person__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.15; }
.person__role { color: var(--grey); margin: 8px 0 18px; }
.backgrounds { margin-top: 56px !important; color: var(--grey); font-size: .9375rem; }

/* Contact */
.contact { margin-top: clamp(40px, 6vw, 72px) !important; max-width: 40rem; }
.contact div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.contact div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
@media (min-width: 700px) { .contact div { grid-template-columns: 10rem 1fr; } }
.contact dt { color: var(--grey); padding-top: 3px; }
.contact dd { font-size: 1.125rem; }

/* Journal teaser */
.teaser p a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Placeholders still to be confirmed: deliberately visible */
.todo { background: color-mix(in srgb, var(--indigo) 12%, transparent); outline: 1px dashed var(--indigo); padding: 0 .2em; }

/* ------------------------------------------------------------ footer band */
.foot { padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; }
.foot__inner { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; display: grid; gap: 40px; }
.foot__nav ul, .foot__contact { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.foot__nav a, .foot__contact { font-size: 14px; font-weight: 300; letter-spacing: 0.2em; }
.foot__legal { display: grid; gap: 10px; font-size: .75rem; line-height: 1.6; opacity: .75; max-width: 60rem; font-weight: 300; }
@media (max-width: 640px) {
  .foot__nav ul, .foot__contact { flex-direction: column; }
}

/* ------------------------------------------------------------ indigo plates (gate, 404) */
.is-indigo { background: var(--ink); }
.is-indigo .masthead { position: absolute; top: 0; left: 0; right: 0; }
.plate {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(32px, 6vh, 64px);
  padding: 120px var(--gutter) 80px;
  text-align: center;
}
.plate__mark { position: relative; z-index: 2; width: min(72vw, 880px); }
.plate__mark img { width: 100%; }
@media (max-width: 640px) { .plate__mark { width: min(36vw, 170px); } }
.plate__text { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; font-weight: 300; font-size: 1.0625rem; }
.is-indigo .foot { border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }

/* Journal gate */
.gate { display: grid; gap: 12px; justify-items: center; width: min(100%, 22rem); margin-top: 8px; }
.gate label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gate input {
  width: 100%;
  font: inherit; font-weight: 300; font-size: 1rem;
  text-align: center;
  color: var(--paper);
  background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 60%, transparent);
  border-radius: 0;
  padding: 10px 4px;
  -webkit-appearance: none; appearance: none;
}
.gate input:focus { outline: none; border-bottom-color: var(--paper); }
.gate button {
  font: inherit; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 300;
  color: var(--paper); background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.gate__error { font-size: .875rem; opacity: .85; }
.gate__request { font-size: .875rem; opacity: .8; }

/* Journal, inside the wall */
.journal-list li { border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.journal-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.journal-list a { display: grid; gap: 6px; padding: 26px 0; }
@media (min-width: 800px) { .journal-list a { grid-template-columns: 12rem 1fr; column-gap: 24px; } .journal-list a > :not(time) { grid-column: 2; } .journal-list time { grid-row: span 2; padding-top: .5em; } }
.journal-list time { color: var(--grey); }
.journal-list h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.journal-list p { color: var(--grey); }
.journal-list a:hover h2 { color: var(--indigo); }
.journal-empty { color: var(--grey); }

.post { max-width: 44rem; }
.post__date { color: var(--grey); display: block; margin-bottom: 18px; }
.post__body { margin-top: 48px; font-size: 1.125rem; line-height: 1.7; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2, .post__body h3, .post__body h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin-top: 2em; }
.post__body h2 { font-size: 1.6rem; }
.post__body h3 { font-size: 1.3rem; }
.post__body ul, .post__body ol { padding-left: 1.25em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li + li { margin-top: .4em; }
.post__body blockquote { border-left: 1px solid var(--indigo); padding-left: 1.25em; font-family: var(--serif); font-size: 1.3rem; font-weight: 300; }
.post__body hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); margin: 2.5em 0; }
.post__body strong { font-weight: 400; color: var(--indigo); }
.post__back { margin-top: 64px; }

/* ------------------------------------------------------------ reveals */
html.reveal [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
html.reveal [data-reveal].is-in { opacity: 1; transform: none; }
html.reveal .points li[data-reveal], html.reveal .stat[data-reveal] { position: relative; border-top-color: transparent; }
html.reveal .points li[data-reveal]::before, html.reveal .stat[data-reveal]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: color-mix(in srgb, var(--grey) 45%, transparent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease);
}
html.reveal .points li[data-reveal].is-in::before, html.reveal .stat[data-reveal].is-in::before { transform: scaleX(1); }

/* ------------------------------------------------------------ page-to-page fade */
@view-transition { navigation: auto; }
body > .masthead { view-transition-name: masthead; }
.bar { view-transition-name: bar; }
::view-transition-group(masthead), ::view-transition-group(bar) { animation: none; }
::view-transition-old(masthead), ::view-transition-new(masthead),
::view-transition-old(bar), ::view-transition-new(bar) { animation: none; }
::view-transition-old(masthead), ::view-transition-old(bar) { display: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .7, .2, 1) .05s both; }

/* ------------------------------------------------------------ reduced motion: everything still, everything visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal [data-reveal] { opacity: 1; transform: none; }
  html.reveal .points li[data-reveal]::before, html.reveal .stat[data-reveal]::before { transform: none; }
  @view-transition { navigation: none; }
}

.more a { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--indigo); }

/* Tables inside letters */
.post__body .table { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
.post__body table { border-collapse: collapse; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.post__body th, .post__body td { padding: 9px 12px; text-align: right; border-bottom: 1px solid color-mix(in srgb, var(--grey) 35%, transparent); }
.post__body th:first-child, .post__body td:first-child { text-align: left; padding-left: 0; }
.post__body th { font-weight: 400; color: var(--grey); font-size: .75rem; letter-spacing: .06em; }
.post__body hr { text-align: center; }
.post__body .caption, .post__body p small { font-size: .8125rem; color: var(--grey); }
.post__notes { font-size: .875rem; color: var(--grey); }
.gate__title { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 8px; }
.gate__date { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-bottom: 22px; }
.journal-note { margin-top: 40px !important; color: var(--grey); font-size: .9375rem; }
sup.fn { font-size: .65em; line-height: 0; color: var(--indigo); margin-left: 1px; }
.post__body .chart { margin: 2.2em 0; }
.post__body .chart img { width: 100%; height: auto; border: 1px solid color-mix(in srgb, var(--grey) 25%, transparent); }
@media (min-width: 1100px) { .post__body .chart { margin-left: -6rem; margin-right: -6rem; } }
.person__seats { margin-top: 22px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); display: flex; align-items: baseline; gap: 12px; }
.person__seats span { font-family: var(--serif); font-weight: 300; font-size: 2.5rem; letter-spacing: -0.01em; line-height: 1; color: var(--indigo); text-transform: none; }

/* ------------------------------------------------------------ the banner that slides down */
.bar {
  position: fixed; left: 0; right: 0; top: -80px; z-index: 30;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--grey) 30%, transparent);
  transition: top .45s var(--ease);
}
html.bar-on .bar { top: 0; }
.bar__mark img { width: 104px; }
.bar__nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.bar__nav a {
  font-size: 0.75rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase;
}
.bar__nav a[aria-current="page"] { background-size: 100% 1px; }
.bar .menu { display: none; }
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .bar .menu { display: block; }
  .bar { height: 54px; }
  .bar__mark img { width: 92px; }
}

/* ------------------------------------------------------------ letters: head, opening, passcode */
.post__subtitle { margin-top: 18px !important; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--grey); max-width: 34rem; }
.post__body--opening { position: relative; }
.post__body--opening > p:last-child {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.passcode { margin-top: 28px; }
.passcode__inner {
  position: relative; z-index: 2;
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px);
}
.passcode .eyebrow { color: var(--paper); opacity: .7; }
.passcode__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; max-width: 24ch; }
.passcode__form { display: grid; gap: 14px; justify-items: center; width: min(100%, 19rem); margin-top: 10px; }
.passcode__form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.passcode__form input {
  width: 100%;
  font: inherit; font-weight: 300; font-size: 1.125rem; letter-spacing: .35em; text-align: center;
  color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); border-radius: 0;
  padding: 10px 4px; -webkit-appearance: none; appearance: none;
  transition: border-color .3s ease;
}
.passcode__form input::placeholder { color: color-mix(in srgb, var(--paper) 45%, transparent); letter-spacing: .3em; text-transform: uppercase; font-size: .75rem; }
.passcode__form input:focus { outline: none; border-bottom-color: var(--paper); }
.passcode__form button {
  font: inherit; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 300;
  color: var(--paper); background: none; border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
  padding: 11px 26px; cursor: pointer; transition: background-color .3s ease, color .3s ease;
}
.passcode__form button:hover, .passcode__form button:focus-visible { background: var(--paper); color: var(--ink); }
.passcode__error { font-size: .875rem; opacity: .9; }
.passcode__request { font-size: .8125rem; opacity: .75; margin-top: 6px; }

/* Charts are for reading here, not for saving */
.post__body .chart img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }

/* Legal and privacy pages */
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.3; margin-top: 2.2em !important; }
.prose p, .prose ul { max-width: var(--measure); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: .6em; }
.prose strong { font-weight: 400; }
.contact dd { line-height: 1.55; }
@media (min-width: 700px) { .contact div { grid-template-columns: 16rem 1fr; } }
.sources a { color: inherit; }


/* ------------------------------------------------------------ design pass */
/* Home headline accent */
.cover__title em { font-style: italic; font-weight: 300; }

/* Section numbers in the serif */
.num { font-family: var(--serif); font-weight: 300; font-size: 1.3rem; letter-spacing: 0; line-height: 1.1; }
.points--steps li .num { padding-top: 0; }

/* Section labels carry a short indigo rule */
.section__head .eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 22px; height: 1px; margin: -2px 12px 0 0;
  background: var(--indigo); transform-origin: left center;
}
html.reveal .section__head[data-reveal] { transform: none; }
html.reveal .section__head[data-reveal] .eyebrow::before { transform: scaleX(0); transition: transform .7s var(--ease) .15s; }
html.reveal .section__head[data-reveal].is-in .eyebrow::before { transform: scaleX(1); }

/* Page titles come into focus as the page opens */
@keyframes title-in { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.headline--page { animation: title-in 1.1s cubic-bezier(.2, .7, .2, 1) .08s both; }
.post__subtitle, .post__date { animation: title-in 1.1s cubic-bezier(.2, .7, .2, 1) .28s both; }

/* Journal list: titles ease across on hover */
.journal-list h2 { transition: color .35s ease, transform .5s var(--ease); }
.journal-list a:hover h2, .journal-list a:focus-visible h2 { transform: translateX(8px); }

/* Faint wordmark signing off the footer */
.foot__sign { margin-top: clamp(40px, 6vw, 72px); opacity: .07; }
.foot__sign img { width: 100%; }

/* Reading progress on letters: a hairline under the banner */
@supports (animation-timeline: scroll()) {
  @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .letter .bar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--indigo); transform-origin: left center;
    animation: read-progress linear both; animation-timeline: scroll(root);
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline--page, .post__subtitle, .post__date { animation: none !important; filter: none; }
  html.reveal .section__head[data-reveal] .eyebrow::before { transform: none; }
  .letter .bar::after { display: none; }
}

/* Small firm facts line at the foot of the home page */
.firm-line { padding-top: 32px; padding-bottom: 40px; }
.firm-line p { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); line-height: 1.8; max-width: none !important; }
.person__seats em { font-style: normal; }
.person__link { margin-top: 18px; }
.person__link a { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--indigo); }

/* The N of the footer wordmark is a quiet door */
.foot__sign { position: relative; }
.foot__door { position: absolute; left: 0; top: 0; bottom: 0; width: 17%; cursor: default; -webkit-tap-highlight-color: transparent; }

/* ------------------------------------------------------------ private track-record page */
.room-page { -webkit-user-select: none; user-select: none; }
.room { position: relative; }
.room::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background-image: url("/partners/mark.svg"); background-size: 460px 300px; }
.room__notice { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); line-height: 1.7; max-width: 44rem !important; }
.room .figures dt { max-width: 14rem; }
.room__people { margin-top: 48px !important; }
.room__sub { font-family: var(--sans); font-weight: 400; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 48px !important; }
.advisors { display: grid; gap: 28px 48px; }
@media (min-width: 700px) { .advisors { grid-template-columns: 1fr 1fr; } }
.advisors li { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.advisors h3 { font-family: var(--serif); font-weight: 300; font-size: 1.4rem; line-height: 1.2; margin-bottom: 6px; }
.advisors p { font-size: .9375rem; }
.exits th { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 300; letter-spacing: 0; text-transform: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px !important; }
.filters button {
  font: inherit; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); padding: 8px 14px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.filters button:hover { border-color: var(--indigo); }
.filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.filters__count { margin-left: auto; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.holdings { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; margin-top: 20px !important; }
.holdings li { display: grid; align-content: start; gap: 6px; padding: 0 0 12px; animation: tile-in .35s var(--ease) both; }
.holdings li[hidden] { display: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } }
.holdings li { min-width: 0; }
.holding__logo { height: 84px; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid color-mix(in srgb, var(--grey) 22%, transparent); transition: border-color .3s ease; }
.holding__logo img { display: block; max-width: 100%; height: auto; pointer-events: none; opacity: .82; transition: opacity .3s ease; }
.holdings li:hover .holding__logo { border-color: color-mix(in srgb, var(--indigo) 55%, transparent); }
.holdings li:hover .holding__logo img { opacity: 1; }
.holding__name { font-size: .8125rem; margin-top: 4px; }
.holding__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.holding__note { font-size: .75rem; color: var(--grey); line-height: 1.4; }
.holding__tags span, .support__tags span { font-family: var(--sans); font-size: .5625rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); border: 1px solid color-mix(in srgb, var(--indigo) 45%, transparent); padding: 2px 6px; white-space: nowrap; }
.support__tags span { font-size: .625rem; }
.room__points { margin-top: 56px !important; }
@media (min-width: 900px) { .room__points { grid-template-columns: repeat(3, 1fr); } }
.support { display: grid; gap: 0; }
.support article { display: grid; gap: 14px 40px; padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
@media (min-width: 900px) { .support article { grid-template-columns: 15rem 1fr; } }
.support h3 { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.2; }
.support header p { color: var(--grey); font-size: .875rem; margin-top: 4px; }
.support__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.support ul, .case ul { list-style: disc; padding-left: 1.1em; }
.support li + li, .case li + li { margin-top: .45em; }
.case { margin-top: 28px !important; border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.case:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.case summary { list-style: none; cursor: pointer; display: grid; gap: 8px 32px; align-items: center; padding: 26px 44px 26px 0; position: relative; }
.case summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .case summary { grid-template-columns: 12rem 1fr auto; } }
.case__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.case__what { color: var(--grey); font-size: .9375rem; }
.case__move { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 300; font-size: 1.35rem; white-space: nowrap; }
.case__move b { font-weight: 300; }
.case__move b:last-child { color: var(--indigo); }
.case__move i { display: block; width: 44px; height: 1px; background: var(--indigo); transform-origin: left center; }
.case__toggle { position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; }
.case__toggle::before, .case__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.case__toggle::after { transform: rotate(90deg); }
.case[open] .case__toggle::after { transform: rotate(0deg); }
.case__body { padding: 4px 0 36px; animation: tile-in .45s var(--ease) both; }
.case__body > * + * { margin-top: 1.1em; }
.case__figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 24px 32px; margin: 8px 0 28px !important; }
.case__figures div { display: flex; flex-direction: column-reverse; gap: 6px; }
.case__figures dd { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1; color: var(--indigo); }
.case__figures dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.case h4 { font-size: .75rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 28px; }
.case blockquote { border-left: 1px solid var(--indigo); padding-left: 1.25em; margin-top: 28px; max-width: 40rem; }
.case blockquote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1.3rem; line-height: 1.4; }
.case blockquote footer { margin-top: 10px; font-size: .8125rem; color: var(--grey); }
/* Section menu that follows the reader */
.room__nav { position: sticky; top: 59px; z-index: 20; background: var(--paper); border-top: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.room__nav ul { display: flex; gap: clamp(18px, 3vw, 40px); max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.room__nav ul::-webkit-scrollbar { display: none; }
.room__nav a { display: block; padding: 14px 0 12px; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--grey); border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.room__nav a:hover { color: var(--ink); }
.room__nav a[aria-current="true"] { color: var(--indigo); border-bottom-color: var(--indigo); }
.room .section { scroll-margin-top: 110px; }
.room .section:nth-of-type(2) { border-top: 0; }
@media (max-width: 960px) { .room__nav { top: 53px; } }
@media print { .room-page { display: none !important; } }
.figures div, .case__figures div { justify-content: flex-end; }
.exits .tag { margin-left: 10px; vertical-align: middle; }
.plate .passcode__form { gap: 16px; }

/* Map on the private page */
.map { margin-top: 28px !important; }
.map__svg { width: 100%; height: auto; display: block; }
.map__dots { fill: none; stroke: color-mix(in srgb, var(--grey) 55%, transparent); stroke-width: 1.5; stroke-linecap: round; }
.pin { cursor: pointer; }
.pin__halo { fill: var(--indigo); fill-opacity: .16; transition: fill-opacity .3s ease; }
.pin__dot { fill: var(--indigo); }
.pin:hover .pin__halo, .pin.is-on .pin__halo { fill-opacity: .45; }
.map__places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.map__places button { font: inherit; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: transparent; cursor: pointer; border: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); padding: 7px 12px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.map__places button b { font-weight: 400; color: var(--indigo); margin-left: 4px; }
.map__places button:hover { border-color: var(--indigo); }
.map__places button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.map__places button[aria-pressed="true"] b { color: var(--paper); }
.map__panel { margin-top: 20px; min-height: 3.2em; font-family: var(--serif); font-weight: 300; font-size: 1.3rem; line-height: 1.4; max-width: none !important; }
.journal-open { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo) !important; }

/* TL;DR at the head of a letter */
.tldr { margin-top: 40px !important; padding: 24px 0 26px; border-top: 1px solid var(--indigo); border-bottom: 1px solid color-mix(in srgb, var(--grey) 45%, transparent); }
.tldr .eyebrow { color: var(--indigo); margin-bottom: 14px; }
.tldr ul { display: grid; gap: 12px; }
.tldr li { position: relative; padding-left: 1.4em; font-size: 1.0625rem; line-height: 1.55; }
.tldr li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--indigo); }
.tldr + .post__body { margin-top: 36px; }
