/* The Vault (writing index) and article reading pages. Shares the home page's tokens and type. */
:root {
  --bg: #000;
  --paper: #0b0b0a;          /* reading surface: off-black, easier on the eyes for long text */
  --fg: #f5f5f5;
  --ink: #e6e3dc;            /* warm reading text */
  --muted: #8a8a8a;
  --line: rgba(255,255,255,.16);
  --accent: #c9a96e;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 20px var(--gutter); background: rgba(0,0,0,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff0d; }
.logo { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .32em; }
.crumb, .btn, .eyebrow, .label { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; }
.crumb { color: var(--muted); transition: color .3s; }
.crumb:hover { color: var(--fg); }
.btn { display: inline-block; border: 1.5px solid var(--fg); padding: 11px 20px; transition: background .3s, color .3s; }
.btn:hover { background: var(--fg); color: #000; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 30; }

/* ---------- Vault index ---------- */
.vault-hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; padding: 0 var(--gutter) 8vh; overflow: hidden; }
.vault-hero .poster { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 70% 40%, #2a2620 0%, #12100d 45%, #000 80%); }
.vault-hero .poster img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 58%; filter: brightness(.72) contrast(1.05); }
.vault-hero .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, #0000 55%), linear-gradient(90deg, #000c 0%, #0000 60%); }
.vault-hero .ph-tag { position: absolute; right: var(--gutter); top: 40%; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase;
  font-size: 12px; color: #ffffff55; border: 1px dashed #ffffff33; padding: 10px 14px; }
.eyebrow { color: var(--muted); display: block; margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .95; font-size: clamp(56px, 9vw, 120px); }
.vault-hero p { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); color: #cfcbc2; font-style: italic; margin-top: 18px; max-width: 560px; line-height: 1.5; }

.entries { padding: 4vh var(--gutter) 14vh; }
.entries .count { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.entry .year { font-family: var(--display); font-size: 15px; letter-spacing: .14em; color: var(--accent); }
.entry h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); line-height: 1.02; transition: color .3s; }
.entry .meta { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.entry .excerpt { margin-top: 14px; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: #b9b5ad; max-width: 640px; }
.entry .read { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; white-space: nowrap; }
.entry:hover h2 { color: var(--accent); }
.entry.soon { opacity: .45; pointer-events: none; }

/* ---------- Article ---------- */
.article { background: var(--paper); }
.article-head { max-width: 780px; margin: 0 auto; padding: 12vh 24px 6vh; text-align: center; }
.article-head .label { color: var(--accent); }
.article-head h1 { font-size: clamp(40px, 6.4vw, 78px); margin: 18px 0 22px; }
.article-head .standfirst { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: #cfcbc2; }
.byline { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); }

.prose { max-width: 680px; margin: 0 auto; padding: 4vh 24px 10vh; font-family: var(--serif); font-size: clamp(18px, 1.35vw, 20.5px); line-height: 1.72; color: var(--ink); }
.prose p + p { margin-top: 1.15em; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 600; font-size: 4.2em; line-height: .82; margin: .06em .1em 0 0; color: var(--fg); }
.prose h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--accent); margin: 2.6em 0 1em; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); }
.prose blockquote p { font-style: italic; font-size: 1.12em; line-height: 1.55; color: var(--fg); }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); }
.prose .signoff { margin-top: 2.2em; font-style: italic; }
.prose .thanks { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .86em; color: var(--muted); }

.after { max-width: 780px; margin: 0 auto; padding: 0 24px 14vh; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.after a { display: block; padding: 28px; background: #141412; transition: background .3s; }
.after a:hover { background: #1c1b18; }
.after .label { color: var(--muted); display: block; margin-bottom: 10px; }
.after strong { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 22px; line-height: 1.1; }

footer { padding: 36px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); border-top: 1px solid #111; }

@media (max-width: 720px) {
  .top .btn { display: none; }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry .read { margin-top: 6px; }
  .after { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
