:root {
  --canvas: #fff;
  --ink: #090909;
  --muted: #565656;
  --line: #c5c5c5;
  --rail-width: clamp(42px,4.17vw,60px);
  font: 18px/1.5 Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { background: var(--canvas); color: var(--ink); }
body.article-page { --canvas: #080808; --ink: #f4f4f4; --muted: #b6b6b6; --line: #4b4b4b; }
a { color: inherit; }
img { width: 100%; height: auto; display: block; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #9b7654; outline-offset: 3px; }
.skip { position: absolute; clip-path: inset(50%); }
.skip:focus { clip-path: none; z-index: 3; background: var(--canvas); color: var(--ink); padding: 0.5rem; }

.rails { position: fixed; z-index: 2; top: 0; bottom: 0; left: 0; display: flex; }
.tools, .rail, .topics-rail { width: var(--rail-width); background: var(--canvas); }
.tools, .rail { border-right: 1px solid var(--line); }
.tools { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: 4.1rem; }
.tools > a:first-child { font-size: 1.7rem; line-height: 1; text-decoration: none; }
.mark { display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: currentColor; }
.rail, .topics-rail { display: grid; place-items: center; writing-mode: vertical-rl; text-transform: uppercase; font-size: 0.96rem; text-decoration: none; }
.rail { transform: rotate(180deg); border-right: 0; border-left: 1px solid var(--line); }
.rail-current { display: none; }
.article-page .rail-current { display: grid; }
.topics-rail { position: fixed; inset: 0 0 0 auto; background: var(--ink); color: var(--canvas); }
.rail:hover { background: color-mix(in srgb,var(--ink) 8%,var(--canvas)); }

.frame { margin-left: calc(3 * var(--rail-width) + 2.7rem); margin-right: calc(2 * var(--rail-width) + 2.7rem); }
.article-page .frame { margin-left: calc(4 * var(--rail-width) + 2.7rem); margin-right: calc(var(--rail-width) + 2.7rem); }
.opening, .story-head { padding-top: 4.1rem; }
.context, .metadata { text-transform: uppercase; font-size: 0.92rem; }
.opening h1, .story-head h1 {
  font-size: clamp(2.4rem,5.7vw,5.1rem);
  line-height: 1.05;
  letter-spacing: -0.072em;
  font-weight: 400;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.opening h1 { margin: 5.55rem 0 2.1rem; }
.story-head h1 { margin: 2.2rem 0 2.4rem; }
.bullet { text-decoration: none; }
.bullet::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; vertical-align: 0.085em; margin-right: 0.35em; }
.deck { max-width: 47ch; font-size: clamp(1rem,2vw,1.3rem); line-height: 1.4; }
.metadata { color: var(--muted); margin-top: 1.15rem; }
.opening .metadata { margin-top: 3.15rem; }

.archive { padding-top: 1.6rem; }
.editorial-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); column-gap: 10.8%; row-gap: 5.3rem; align-items: start; }
.tile { min-width: 0; }
.tile:nth-child(5n + 1), .tile:nth-child(5n + 4) { margin-top: 13.2rem; }
.tile:nth-child(5n + 3) { grid-column: 1 / -1; }
.tile .photo { display: block; }
.tile .photo img, .tile .placeholder { aspect-ratio: 0.92; object-fit: cover; width: 100%; }
.tile:nth-child(5n + 2) .photo img, .tile:nth-child(5n + 2) .placeholder,
.tile:nth-child(5n + 5) .photo img, .tile:nth-child(5n + 5) .placeholder { aspect-ratio: 0.68; border-radius: 999px; }
.tile:nth-child(5n + 3) .photo img, .tile:nth-child(5n + 3) .placeholder { aspect-ratio: 1.59; }
.tile .date { font-size: 0.78rem; text-transform: uppercase; margin-top: 1.45rem; }
.tile h3 { font-size: clamp(1.05rem,2vw,1.45rem); line-height: 1.14; font-weight: 400; letter-spacing: -0.035em; text-transform: uppercase; border-top: 1px solid var(--ink); margin-top: 0.4rem; padding-top: 0.6rem; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; }
.tile .excerpt { color: var(--muted); margin-top: 0.55rem; font-size: 0.82rem; }
.placeholder { background: #c2b7a7; }
.pagination:not([hidden]) { display: flex; gap: 0.65rem; justify-content: center; margin-top: 2.1rem; }
.pagination button { background: var(--canvas); color: var(--ink); border: 1px solid var(--ink); padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.tile:nth-child(2n) .placeholder { background: #8a9693; }
.topics { border-block: 1px solid var(--line); padding-block: 1.1rem; margin-top: 4rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.35rem; }
.topics a { font-size: 0.9rem; }

.story-content { padding-block: 5.5rem 0; }
.story-figure img, .story-figure .placeholder { aspect-ratio: 1.72; border-radius: 40% / 67%; object-fit: cover; width: 100%; }
.story-figure figcaption { color: var(--muted); font-size: 0.78rem; }
.reading { margin-block: 4.8rem 5rem; overflow-wrap: anywhere; }
.reading > :where(p,ul,ol,table,blockquote) { width: min(66%,68ch); margin: 0 0 1.15rem auto; }
.reading h2, .reading h3 { text-transform: uppercase; letter-spacing: -0.05em; font-weight: 400; line-height: 1.21; margin-block: 2em 0.75em; }
.reading h2 { font-size: clamp(1.65rem,4vw,3.4rem); }
.reading h3 { font-size: clamp(1.3rem,3vw,2.2rem); }
.reading img { display: block; border-radius: 6px; margin-block: 1rem; }
.reading table { display: block; overflow-x: auto; }
.related { border-top: 1px solid var(--line); padding-top: 2.2rem; }
.related h2 { max-width: 18ch; text-transform: uppercase; font: 400 clamp(1.8rem,4vw,3rem)/1.05 Arial,sans-serif; letter-spacing: -0.06em; }
.related .editorial-grid { margin-top: 2.1rem; }
.related .tile { margin-top: 0; max-width: 390px; }
.related .tile .photo img, .related .tile .placeholder { border-radius: 999px; aspect-ratio: 0.68; }

.directory { padding-block: 4rem; }
.directory h1 { font-size: clamp(2.1rem,5vw,4rem); letter-spacing: -0.06em; }
.directory .editorial-grid { margin-top: 1.7rem; }
.search-form { display: flex; gap: 0.5rem; margin-block: 1rem; }
.search-form input { width: min(25rem,100%); min-width: 0; }
#results a { display: block; padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
footer.frame { border-top: 1px solid var(--line); margin-top: 4.6rem; padding-block: 1.3rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-size: 0.85rem; }
.foot .mark { margin-right: auto; }
.editorial-preferences { display: block; margin-top: 0.65rem; border: 1px solid var(--line); color: inherit; background: transparent; padding: 0.2rem 0.45rem; font-size: 0.83rem; }
.editorial-consent { max-width: min(94%,26rem); color: var(--ink); background: var(--canvas); border: 1px solid var(--line); padding: 1rem; }
.editorial-consent::backdrop { background: #151515a8; }
.editorial-consent p { margin-block: 0.65rem; }
.editorial-consent-actions { display: flex; gap: 0.45rem; }
.editorial-consent-actions button { flex: 1; padding: 0.45rem; }

@media (max-width: 780px) {
  .frame, .article-page .frame { margin-inline: max(16px,4vw); }
  .rails { position: sticky; top: 0; align-items: center; justify-content: space-between; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 0 16px; min-height: 56px; }
  .tools { border: 0; width: auto; flex-direction: row-reverse; gap: 0.85rem; padding: 0; }
  .rail, .topics-rail, .article-page .rail-current { position: static; transform: none; writing-mode: horizontal-tb; height: auto; width: auto; border: 0; display: none; }
  .topics-rail { display: block; color: var(--ink); background: transparent; font-size: 0.84rem; }
  .opening, .story-head { padding-top: 2.5rem; }
  .opening h1 { margin: 2.2rem 0 1.35rem; }
  .story-head h1 { margin: 1.5rem 0 1.5rem; }
  .opening h1, .story-head h1 { font-size: clamp(2.5rem,12.2vw,4rem); }
  .opening .metadata { margin-top: 1.5rem; }
  .story-content { padding-top: 3.1rem; }
  .editorial-grid { display: grid; gap: 2.1rem; grid-template-columns: minmax(0,1fr); }
  .tile:nth-child(n) { grid-column: 1; margin-top: 0; }
  .tile:nth-child(5n + 2) .photo img, .tile:nth-child(5n + 2) .placeholder,
  .tile:nth-child(5n + 5) .photo img, .tile:nth-child(5n + 5) .placeholder { width: 85%; margin-inline: auto; }
  .reading { margin-block: 2.5rem; }
  .reading > :where(p,ul,ol,table,blockquote) { width: 100%; }
}

