/* off frequency */

:root {
  --bg: #0C0C0E;
  --text: #EDEAE4;
  --read: #DAD6CE;
  --muted: #8E8A82;
  --rule: rgba(237, 234, 228, 0.12);
  --acc: #9BE564;
  --pad: clamp(20px, 4vw, 56px);
  --wide: 1180px;
  --semi: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Barlow', system-ui, sans-serif; font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
::selection { background: var(--acc); color: var(--bg); }

/* the hiss: a fine, still grain over everything */
.grain { position: fixed; inset: -50%; z-index: 10; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* tuning in: once, on arrival, then still */
@keyframes tune { 0% { filter: blur(7px); opacity: 0.15; transform: translateX(4px); } 55% { filter: blur(1.5px); opacity: 0.85; transform: translateX(-1px); } 100% { filter: none; opacity: 1; transform: none; } }
@keyframes hiss { 0% { opacity: 0.45; } 100% { opacity: 0.07; } }
.tune { animation: tune 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.grain { animation: hiss 1.1s ease-out both; }
@media (prefers-reduced-motion: reduce) { .tune, .grain { animation: none; } }

.page { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }
.logo { display: block; width: 40px; color: var(--text); line-height: 0; }
.logo svg { width: 100%; height: auto; }

/* ---------- home ---------- */
.masthead { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.name { margin: 0; font-weight: 700; text-transform: uppercase; font-size: clamp(58px, 14.5vw, 196px); line-height: 0.84; letter-spacing: -0.012em; }
.name span { display: block; }
.name .off { width: fit-content; margin-left: auto; margin-bottom: 0.1em; }
.tagline { margin: clamp(20px, 3vw, 36px) 0 0; max-width: 34ch; font-family: var(--semi); font-style: italic; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; color: var(--muted); }

.index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); align-items: baseline; column-gap: clamp(12px, 2vw, 28px); padding: clamp(16px, 1.8vw, 24px) 0; border-bottom: 1px solid var(--rule); }
.entry .no { font-family: var(--semi); font-weight: 500; font-size: 15px; letter-spacing: 0.04em; color: var(--acc); font-variant-numeric: tabular-nums; }
.entry .t { font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 3.1vw, 44px); line-height: 0.96; letter-spacing: -0.005em; overflow-wrap: anywhere; transition: color 0.15s; }
.entry:hover .t, .entry:focus-visible .t { color: var(--acc); }

.foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 56px 0 40px; font-family: var(--semi); font-size: 14px; color: var(--muted); }

/* ---------- piece ---------- */
.reading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 11; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }
.crumb { padding: 26px 0 0; font-family: var(--semi); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; color: var(--muted); }
.crumb a:hover { color: var(--acc); }
.piece-head { padding: clamp(48px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); }
.meta { margin: 0 0 clamp(18px, 2vw, 28px); font-family: var(--semi); font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.meta .no { color: var(--acc); font-weight: 500; letter-spacing: 0.04em; }
.meta time { font-style: italic; }
.meta time span { font-style: normal; color: var(--text); }
.ptitle { margin: 0; font-weight: 700; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.012em; overflow-wrap: anywhere; text-wrap: balance; }
.t-xl { font-size: clamp(64px, 12vw, 168px); }
.t-l  { font-size: clamp(52px, 9vw, 128px); }
.t-m  { font-size: clamp(40px, 6.4vw, 92px); }
.t-s  { font-size: clamp(32px, 4.6vw, 64px); }

.body { max-width: 34em; font-size: 20px; line-height: 1.7; color: var(--read); letter-spacing: 0.003em; }
.body p { margin: 0 0 1.15em; }
.body .verse p { margin: 0 0 1.4em; }
.pull { margin: 1.8em 0; }
.pull svg { display: none; }
.pull p { margin: 0; padding-left: 0.6em; border-left: 3px solid var(--acc); font-weight: 600; font-style: normal; text-transform: uppercase; font-size: 1.5em; line-height: 1.05; color: var(--text); }

.after { position: relative; margin-top: clamp(56px, 8vw, 110px); padding: 36px 0 44px; border-top: 1px solid var(--rule); }
.next { display: block; }
.next .lbl { display: block; margin-bottom: 12px; font-family: var(--semi); font-weight: 500; font-size: 15px; letter-spacing: 0.04em; color: var(--acc); }
.next .t { display: block; max-width: 12ch; font-weight: 700; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em; transition: color 0.15s; overflow-wrap: anywhere; }
.next:hover .t { color: var(--acc); }
.n-xl { font-size: clamp(44px, 7vw, 104px); }
.n-l  { font-size: clamp(38px, 5.6vw, 84px); }
.n-m  { font-size: clamp(32px, 4.2vw, 64px); }
.n-s  { font-size: clamp(26px, 3.2vw, 48px); }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; font-family: var(--semi); font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--acc); }
.after .logo { position: absolute; right: 0; bottom: 44px; }

@media (max-width: 640px) {
  .name { font-size: 15.5vw; }
  .entry { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .body { font-size: 18px; line-height: 1.66; }
  .t-xl { font-size: 17vw; } .t-l { font-size: 13vw; } .t-m { font-size: 10vw; } .t-s { font-size: 8vw; }
  .after .logo { position: static; margin-top: 36px; }
}
