/* yharon.dev — one stylesheet, no framework. Forged with care. */
@font-face { font-family: "Serif"; src: url(/assets/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif"; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mono"; src: url(/assets/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Brush"; src: url(/assets/fonts/brush-jp.woff2) format("woff2"); font-display: swap; unicode-range: U+3000-9FFF; }

:root {
  --bg: #0a0605;               /* ash-black, warm */
  --bg-2: #130b08;
  --bg-3: #1c110c;
  --ink: #f3e7d7;
  --ink-2: #d6c8b6;
  --ink-3: #a69484;
  --ink-4: #75655a;
  --line: rgba(243, 231, 215, .11);
  --line-2: rgba(243, 231, 215, .22);
  --shu: #ff6a2b;              /* 炎 — flame */
  --shu-2: #ffb24d;            /* the gold at the heart of the fire */
  --shu-dim: rgba(255, 106, 43, .16);
  --ember: #c92a12;            /* deep coal red */
  --ice: #ffd88a;              /* white-hot, used sparingly */
  --amber: #f0b54a;
  --fire: linear-gradient(0deg, #fff3cf 0%, #ffc45c 20%, #ff7a2b 46%, #e8361a 70%, #6e1206 100%);
  --serif: "Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brush: "Brush", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --w: 1520px;
  --gutter: clamp(18px, 4.2vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { background: #0b0605; color-scheme: dark; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink-2); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: var(--shu); }
:focus-visible { outline: 1px solid var(--shu); outline-offset: 4px; }
::selection { background: var(--shu); color: #1a0904; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 90; background: var(--ink); color: var(--bg); padding: 6px 10px; font: 12px var(--mono); }
.skip:focus { left: 8px; }
.wrap { position: relative; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.jp { font-family: var(--brush); }
.mi { width: 1em; height: 1em; }
.shu { color: var(--shu); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e1d15; border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--shu); }

/* ── ambient layers: stars, grain, column lines ─────────────────── */
#stars { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' 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 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-2%, -2%) } 100% { transform: translate(3%, 3%) } }
.columns { position: fixed; inset: 0; z-index: -2; pointer-events: none; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.columns i { border-left: 1px solid rgba(243, 231, 215, .025); }
.columns i:last-child { border-right: 1px solid rgba(243, 231, 215, .025); }
.aura { position: fixed; inset: 0; z-index: -4; pointer-events: none; background: radial-gradient(70% 55% at 100% 0%, rgba(255, 110, 40, .10), transparent 65%), radial-gradient(60% 60% at 0% 45%, rgba(170, 30, 12, .13), transparent 70%), radial-gradient(90% 60% at 50% 120%, rgba(201, 42, 18, .30), transparent 70%), linear-gradient(180deg, #0b0605, #120806 60%, #1a0a06); }
.regfield { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(rgba(255, 196, 150, .16) .9px, transparent 1.3px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(120% 90% at 50% 100%, #000 10%, rgba(0, 0, 0, .25) 60%, transparent 90%); mask: radial-gradient(120% 90% at 50% 100%, #000 10%, rgba(0, 0, 0, .25) 60%, transparent 90%); }
.hearth { position: fixed; left: -10%; right: -10%; bottom: -35vh; height: 85vh; z-index: -2; pointer-events: none; background: radial-gradient(50% 55% at 50% 100%, rgba(255, 96, 30, .24), rgba(201, 42, 18, .09) 55%, transparent 78%); animation: hearth 4.5s ease-in-out infinite alternate; }
@keyframes hearth { 0% { opacity: .75; } 30% { opacity: 1; } 55% { opacity: .82; } 80% { opacity: .95; } 100% { opacity: .7; } }
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, .55) 100%); }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--shu), var(--shu-2)); box-shadow: 0 0 12px var(--shu); }

/* ── top bar ────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 50; background: linear-gradient(rgba(10, 6, 5, .92), rgba(10, 6, 5, .72)); backdrop-filter: blur(10px) saturate(130%); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: stretch; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.brand .mi { width: 28px; height: 28px; flex: none; }
.brand span { font: 400 23px/1 var(--serif); }
.brand .mi { color: var(--shu); filter: drop-shadow(0 0 8px rgba(255, 90, 30, .45)); transition: color .3s, filter .3s; }
.brand:hover .mi { color: var(--shu-2); filter: drop-shadow(0 0 14px rgba(255, 120, 40, .8)); }
.nav { display: flex; flex: 1; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.nav a small { color: var(--ink-3); font-size: 11px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 1px; background: var(--shu); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { background: linear-gradient(0deg, rgba(255, 106, 43, .12), transparent 70%); }
.nav a:hover small, .nav a[aria-current] small { color: var(--shu); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 106, 43, 0); } }
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 3px var(--shu-dim), 0 0 10px var(--shu); animation: pulse 2.4s ease-in-out infinite; }
.bar .cta { display: flex; align-items: center; padding-left: 16px; border-left: 1px solid var(--line); gap: 8px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); font: 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: rgba(10, 6, 5, .4); cursor: pointer; overflow: hidden; transition: border-color .25s, color .25s, background .25s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: none; }
.btn { isolation: isolate; }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid::before { background: linear-gradient(90deg, var(--shu), var(--shu-2)); }
.btn.solid:hover { color: #1a0904; border-color: var(--shu); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.menu-btn { display: none; }

/* ── HOME: hero ─────────────────────────────────────────────────── */
.hero { position: relative; height: calc(100svh - 60px); min-height: 680px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { height: 100%; }
.layer { position: absolute; will-change: transform; }
.h-glow { inset: -10%; background: radial-gradient(36% 44% at 62% 48%, rgba(255, 110, 40, .13), transparent 70%), radial-gradient(20% 26% at 62% 46%, rgba(255, 200, 120, .07), transparent 70%); pointer-events: none; }
.h-kanji { right: -3vw; top: 50%; margin-top: -45vh; font: 400 90vh/1 var(--brush); color: rgba(255, 120, 60, .035); pointer-events: none; user-select: none; }
.h-heat { position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none; background: radial-gradient(55% 75% at 62% 100%, rgba(255, 100, 30, .2), rgba(201, 42, 18, .06) 50%, transparent 72%); animation: hearth 3.6s ease-in-out infinite alternate; }
.h-stage { --s: min(68vh, 700px); position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2 + 11vw); }
/* the emblem: 炎 in brush, printed as a halftone of fire */
.h-emblem { position: absolute; inset: 0; display: grid; place-items: center; }
.h-emblem > * { grid-area: 1 / 1; }
.h-flame { font: 400 calc(var(--s) * .8)/1 var(--brush); user-select: none; transform-origin: 50% 85%; }
.h-flame.glow { color: #ff4d14; filter: blur(calc(var(--s) * .07)); opacity: .5; animation: flicker 3.2s steps(1) infinite, sway 7s ease-in-out infinite; }
.h-flame.core, .h-flame.dots { background: var(--fire); background-size: 100% 130%; background-position: 0 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: burn 5s ease-in-out infinite alternate, sway 7s ease-in-out infinite; }
.h-flame.core { opacity: .16; }
.h-flame.dots { -webkit-mask: radial-gradient(circle, #000 42%, transparent 58%) 0 0 / 5px 5px, linear-gradient(0deg, #000 50%, rgba(0, 0, 0, .35)); -webkit-mask-composite: source-in; mask: radial-gradient(circle, #000 42%, transparent 58%) 0 0 / 5px 5px, linear-gradient(0deg, #000 50%, rgba(0, 0, 0, .35)); mask-composite: intersect; filter: drop-shadow(0 0 6px rgba(255, 110, 40, .55)); }
.h-aura { width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 120, 40, .16), rgba(201, 42, 18, .06) 60%, transparent); animation: hearth 3s ease-in-out infinite alternate; }
@keyframes burn { to { background-position: 0 0; } }
@keyframes sway { 0%, 100% { transform: none; } 30% { transform: skewX(-1.4deg) scaleY(1.015); } 65% { transform: skewX(1deg) scaleY(.99); } }
@keyframes flicker { 0% { opacity: .5; } 17% { opacity: .62; } 31% { opacity: .46; } 48% { opacity: .66; } 63% { opacity: .52; } 81% { opacity: .6; } }
/* latest transmission card (bottom-right of the hero) */
.h-card { position: absolute; right: var(--gutter); bottom: 48px; z-index: 4; width: min(360px, 30vw); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line-2); background: rgba(10, 6, 5, .62); backdrop-filter: blur(8px); text-decoration: none; transition: border-color .4s, background .4s; }
.h-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border-left: 1px solid var(--shu); border-top: 1px solid var(--shu); }
.h-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-right: 1px solid var(--shu); border-bottom: 1px solid var(--shu); }
.h-card:hover { border-color: rgba(255, 106, 43, .5); background: rgba(22, 12, 9, .8); }
.h-card-top { display: flex; justify-content: space-between; }
.h-card b { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.h-card-meta { display: flex; justify-content: space-between; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.h-card:hover .arr { transform: translateX(4px); color: var(--shu); }
.h-card .arr { transition: transform .3s var(--ease); }
.h-card-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.h-card-bars i { flex: 1; height: calc(var(--h) * 2px); background: var(--ink-4); animation: bars 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -90ms); transform-origin: bottom; }
.h-card-bars i:nth-child(7n) { background: var(--shu); }
@keyframes bars { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.h-copy { position: absolute; left: var(--gutter); bottom: 15%; z-index: 3; max-width: 640px; }
.h-copy .status { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.h-title { margin: 0; font: 400 clamp(84px, 15vw, 240px)/.82 var(--serif); letter-spacing: -.04em; color: var(--ink); filter: drop-shadow(0 0 34px rgba(255, 90, 30, .22)); }
.h-title .ch { padding-bottom: .08em; background: linear-gradient(180deg, #fff8ec 0%, #f3e7d7 42%, #ffbe6a 74%, #ff6a2b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-title .ch { display: inline-block; opacity: 0; transform: translateY(.25em) rotate(4deg); filter: blur(8px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .07s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.h-motto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 22px 0 30px; opacity: 0; animation: fade 1s .9s forwards; }
.h-motto .jp { font-size: 27px; color: var(--shu-2); letter-spacing: .08em; text-shadow: 0 0 18px rgba(255, 106, 43, .45); }
.h-motto em { font: italic 400 25px var(--serif); color: var(--ink-2); }
@keyframes fade { to { opacity: 1; } }
.h-copy .actions { opacity: 0; animation: fade 1s 1.15s forwards; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.h-vert { position: absolute; right: calc(var(--gutter) + 6px); top: 12%; writing-mode: vertical-rl; font: 15px/1 var(--brush); letter-spacing: .55em; color: var(--ink-3); }
.h-vert b { color: var(--shu); font-weight: 400; text-shadow: 0 0 14px var(--shu); }
.hud { position: absolute; font: 10px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); z-index: 3; }
.hud.tl { top: 28px; left: var(--gutter); }
.hud.tr { top: 28px; right: calc(var(--gutter) + 40px); text-align: right; }
.hud b { color: var(--ink-2); font-weight: 400; }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); font: 10px var(--mono); letter-spacing: .3em; color: var(--ink-3); text-decoration: none; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink-3), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--shu); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ── HOME: section index ────────────────────────────────────────── */
.home-intro { padding: clamp(90px, 12vw, 170px) 0 60px; }
.home-intro p.big { margin: 0; max-width: 24ch; font: 400 clamp(38px, 4.6vw, 74px)/1.08 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.home-intro p.big em { color: var(--ink-3); }
.home-intro .kicker { display: flex; justify-content: space-between; margin-bottom: 36px; }
.idx { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: clamp(90px, 10vw, 150px); }
.tile { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; background: rgba(10, 6, 5, .35); transition: background .5s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 43, .12), transparent 70%); opacity: 0; transition: opacity .4s; }
.tile:hover { background: rgba(22, 12, 9, .75); }
.tile:hover::before { opacity: 1; }
.tile .n { font: 11px var(--mono); letter-spacing: .16em; color: var(--ink-3); display: flex; justify-content: space-between; }
.tile .k { margin: auto 0 18px; font: 96px/1 var(--brush); color: var(--ink); opacity: .9; transform-origin: left bottom; transition: transform .6s var(--ease), color .4s; }
.tile:hover .k { transform: scale(1.12) rotate(-3deg); color: var(--shu); text-shadow: 0 0 34px rgba(255, 90, 30, .55); }
.tile h3 { margin: 0 0 6px; font: 400 32px/1.05 var(--serif); color: var(--ink); }
.tile p { margin: 0; font-size: 15px; color: var(--ink-3); transition: color .3s; }
.tile:hover p { color: var(--ink-2); }
.tile .go { position: absolute; right: 22px; bottom: 24px; font: 12px var(--mono); color: var(--ink-4); transform: translate(-8px, 8px); opacity: 0; transition: all .4s var(--ease); }
.tile:hover .go { opacity: 1; transform: none; color: var(--shu); }
.tile .count { color: var(--ink-2); }

/* latest strip */
.latest { display: grid; grid-template-columns: 1fr 2fr; gap: 0; border: 1px solid var(--line); margin-bottom: clamp(90px, 10vw, 150px); background: rgba(10, 6, 5, .5); }
.latest > div { padding: 34px; }
.latest > div + div { border-left: 1px solid var(--line); }
.latest h3 { margin: 10px 0 10px; font: 400 clamp(30px, 3vw, 46px)/1.08 var(--serif); color: var(--ink); }
.latest a.read { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* ── shared page header ─────────────────────────────────────────── */
.reg::before, .reg::after { content: "+"; position: absolute; z-index: 3; font: 300 18px/1 var(--mono); color: rgba(255, 170, 110, .45); pointer-events: none; }
.reg::before { left: calc(var(--gutter) - 22px); top: 18px; }
.reg::after { right: calc(var(--gutter) - 22px); bottom: 18px; }
.ph { position: relative; padding: clamp(80px, 11vw, 150px) 0 clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.ph-num { position: absolute; right: calc(var(--gutter) - 2vw); top: 6%; font: 400 clamp(220px, 34vw, 520px)/.8 var(--serif); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 140, 70, .1); pointer-events: none; user-select: none; }
.ph .crumb { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ph .crumb a { color: var(--ink-3); text-decoration: none; }
.ph .crumb a:hover { color: var(--ink); }
.ph .crumb .k { font: 26px/1 var(--brush); color: var(--shu); letter-spacing: 0; text-shadow: 0 0 14px rgba(255, 90, 30, .5); }
.ph h1 { position: relative; margin: 0; font: 400 clamp(56px, 8.2vw, 136px)/.92 var(--serif); letter-spacing: -.03em; color: var(--ink); max-width: 14ch; }
.ph h1 em { color: var(--ink-3); }
.ph .lede { position: relative; max-width: 58ch; margin: 28px 0 0; font-size: 19px; color: var(--ink-2); }
.ph .meta-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px; }

.page { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 10vw, 150px); }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── MANIFESTO (editorial) ──────────────────────────────────────── */
.mf { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 clamp(30px, 5vw, 90px); }
.mf-vert { writing-mode: vertical-rl; font: 44px/1.2 var(--brush); color: var(--ink); letter-spacing: .3em; position: sticky; top: 110px; height: max-content; }
.mf-vert small { display: block; margin-top: 20px; font: 10px var(--mono); letter-spacing: .3em; color: var(--ink-3); }
.mf-body > p.drop { font: 400 clamp(26px, 2.6vw, 38px)/1.35 var(--serif); color: var(--ink); max-width: 30ch; margin: 0 0 60px; }
.mf-body > p.drop::first-letter { float: left; font-size: 4.2em; line-height: .78; padding: 6px 14px 0 0; color: var(--shu); }
.principle { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.principle .k { font: clamp(120px, 12vw, 190px)/.8 var(--brush); color: var(--ink); }
.principle h2 { margin: 0 0 14px; font: italic 400 clamp(40px, 4.4vw, 68px)/1 var(--serif); color: var(--ink); }
.principle p { max-width: 56ch; font-size: 18px; margin: 0 0 12px; }
.principle .label { margin-bottom: 10px; display: block; }
.oath { margin: 80px 0 0; padding: 60px 0 0; border-top: 1px solid var(--line); font: italic 400 clamp(36px, 4.6vw, 76px)/1.08 var(--serif); color: var(--ink); max-width: 22ch; }
.oath span { color: var(--ink-3); }

/* ── work-in-progress pages (Path, Tools) ─────────────────────── */
.wip { padding: clamp(28px, 4vw, 50px); border: 1px dashed rgba(255, 140, 70, .45); background: linear-gradient(160deg, rgba(255, 106, 43, .08), rgba(10, 6, 5, .5) 55%); }
.wip h2 { margin: 16px 0 10px; font: 400 clamp(34px, 3.6vw, 54px)/1.05 var(--serif); color: var(--ink); }
.wip > p { max-width: 64ch; font-size: 18px; }
.wip .state { color: var(--shu-2); border-color: rgba(255, 178, 77, .6); border-style: dashed; }
.wip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wip-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.wip-list li span { font: 12px/1.9 var(--mono); color: var(--shu); }
.wip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); margin-top: clamp(50px, 6vw, 90px); }
.wip-cols p { font-size: 17px; }
.wip-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wip-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 21px/1.3 var(--serif); }
.wip-links a:hover { color: var(--shu-2); }

/* ── TOOLS: the arsenal grid + the forge ───────────────────────── */
.arsenal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: clamp(60px, 7vw, 100px); }
.arm { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 20px 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .4s; }
.arm:hover { background: rgba(255, 106, 43, .06); }
.arm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.arm b { font: 400 34px/1 var(--serif); color: var(--ink); }
.arm .tagline { font-size: 15px; color: var(--ink-3); }
.state { display: inline-block; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.st-stable .state, .st-pre-release .state { color: #1a0904; background: var(--shu); border-color: var(--shu); }
.st-building .state { color: var(--shu-2); border-color: rgba(255, 178, 77, .6); }
.st-idea .state { border-style: dashed; }
.st-idea b, .forge .st-idea h3 { color: var(--ink-2); }
.forge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.forge article { padding: 26px; border: 1px dashed var(--line-2); background: rgba(10, 6, 5, .45); scroll-margin-top: 90px; }
.forge h3 { margin: 14px 0 4px; font: 400 36px/1 var(--serif); color: var(--ink); }
.forge .tagline { margin: 0 0 12px; font: italic 400 20px/1.3 var(--serif); color: var(--shu-2); }
.forge p { font-size: 15px; }
.forge .tags { margin: 16px 0 0; }

/* ── TOOLS (product showcase) ───────────────────────────────────── */
.tl-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 4vw, 70px); align-items: start; }
.tl-name { margin: 0; font: 400 clamp(80px, 10vw, 170px)/.85 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.tl-name b { font-weight: 400; color: var(--shu); display: inline-block; animation: flick 6s infinite; }
@keyframes flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .2; } 94% { opacity: 1; } 96% { opacity: .4; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; padding: 0; list-style: none; }
.tags li { padding: 4px 9px; border: 1px solid var(--line-2); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tags li.hot { border-color: rgba(255, 106, 43, .55); color: var(--shu); }
.install { margin: 26px 0; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(6, 3, 2, .7); font: 13px var(--mono); color: var(--ink); }
.cmd + .cmd { border-top: 0; }
.cmd .p { color: var(--shu); }
.tl-hero > * { min-width: 0; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.copy { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: none; border: 1px solid var(--line-2); padding: 4px 8px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink-3); }
.copy.ok { color: var(--bg); background: var(--shu); border-color: var(--shu); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: clamp(60px, 7vw, 110px); }
.features article { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.features article:hover { background: rgba(22, 12, 9, .7); }
.features .fn { font: 11px var(--mono); color: var(--shu); letter-spacing: .16em; }
.features h3 { margin: 14px 0 8px; font: 400 28px/1.1 var(--serif); color: var(--ink); }
.features p { margin: 0; font-size: 15px; }
.roadmap { margin-top: clamp(60px, 7vw, 110px); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.roadmap ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.roadmap li { counter-increment: r; display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.roadmap li::before { content: counter(r, decimal-leading-zero); font: 11px var(--mono); color: var(--ink-3); }
.roadmap li b { font: 400 22px var(--serif); color: var(--ink); }
.roadmap li span { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.roadmap li.done span { color: var(--shu); }

/* terminal */
.term { position: relative; background: rgba(5, 3, 2, .92); border: 1px solid var(--line-2); font: 13px/1.7 var(--mono); color: var(--ink-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5); }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px); mix-blend-mode: multiply; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2e1d15; }
.term-bar i:first-child { background: var(--shu); }
.term-bar span { flex: 1; text-align: center; letter-spacing: .1em; }
.term-bar button { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: none; border: 1px solid var(--line-2); padding: 3px 8px; cursor: pointer; position: relative; z-index: 2; }
.term-bar button:hover { color: var(--ink); }
.term pre { margin: 0; padding: 20px 18px 24px; overflow-x: auto; font: inherit; white-space: pre; min-height: 380px; }
.term .ln { display: inline; }
.term .p { color: var(--shu); }
.term .c { color: var(--ink); }
.term .d { color: var(--ink-3); }
.term .hi { color: #ec9078; }
.term .ok { color: var(--ink); font-weight: 600; }
.term .chk { color: var(--amber); }
.term .cve { color: #9fc6cb; }
.term .typed { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: pre; }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term.play .typed { width: 0; animation: type 1.5s steps(var(--n)) .4s forwards; }
.js .term.play .out { opacity: 0; animation: show .01s linear forwards; animation-delay: calc(2.1s + var(--i) * 85ms); }
@keyframes type { to { width: calc(var(--n) * 1ch); } }
@keyframes show { to { opacity: 1; } }

/* ── JOURNAL (magazine) ─────────────────────────────────────────── */
.feature-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border: 1px solid var(--line); text-decoration: none; margin-bottom: 70px; background: rgba(10, 6, 5, .55); transition: border-color .4s; }
.feature-post:hover { border-color: var(--line-2); }
.feature-post .fp-art { position: relative; min-height: 380px; border-right: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.feature-post .fp-art .k { font: clamp(200px, 22vw, 340px)/1 var(--brush); color: rgba(243, 231, 215, .07); transition: transform 1.2s var(--ease), color .6s; }
.feature-post:hover .fp-art .k { transform: scale(1.08) rotate(-4deg); color: rgba(255, 106, 43, .2); }
.feature-post .fp-art .label { position: absolute; left: 24px; top: 22px; }
.feature-post .fp-body { padding: 40px; display: flex; flex-direction: column; }
.feature-post h2 { margin: 14px 0 16px; font: 400 clamp(34px, 3.4vw, 54px)/1.04 var(--serif); color: var(--ink); }
.feature-post p { margin: 0 0 auto; color: var(--ink-2); }
.feature-post .more { margin-top: 30px; }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a.row { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; gap: 28px; align-items: baseline; padding: 28px 0; text-decoration: none; transition: padding .4s var(--ease); }
.list a.row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 106, 43, .08), transparent 60%); opacity: 0; transition: opacity .4s; }
.list a.row:hover { padding-left: 18px; }
.list a.row:hover::before { opacity: 1; }
.row time, .row .meta { font: 12px var(--mono); letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
time small.ago { display: block; margin-top: 4px; font-size: .92em; color: var(--ink-4); letter-spacing: .06em; text-transform: none; }
.meta-row time small.ago { display: inline; }
.row .go { display: inline-block; margin-top: 12px; font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--shu-2); }
.list a.row:hover h3 { color: var(--shu-2); }
.row .meta { text-align: right; }
.row h3 { margin: 0; font: 400 32px/1.15 var(--serif); color: var(--ink); }
.row p { margin: 8px 0 0; font-size: 16px; color: var(--ink-2); max-width: 70ch; }
.badge { display: inline-block; margin-left: 12px; padding: 1px 6px; border: 1px solid var(--amber); color: var(--amber); font: 10px var(--mono); letter-spacing: .12em; vertical-align: 8px; text-transform: uppercase; }
.more { display: inline-flex; gap: 8px; font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.more:hover { color: var(--shu); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.filters { gap: 8px; align-items: center; }
.filters .label { margin-right: 6px; }
.filters button { font: 13px var(--mono); letter-spacing: .04em; color: var(--ink-2); background: rgba(243, 231, 215, .04); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filters button:hover { color: var(--ink); border-color: var(--shu); }
.filters button[aria-pressed="true"] { color: #1a0904; background: var(--shu); border-color: var(--shu); }
.filters .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; }
.planned { margin: 50px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.planned li { padding: 7px 12px; border: 1px dashed var(--line-2); font: 11px var(--mono); color: var(--ink-3); letter-spacing: .06em; }

/* research: list kinds + advisories sub-section */
.row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row .meta .kind { color: var(--shu); }
.sec-h { display: flex; align-items: baseline; gap: 18px; margin: clamp(100px, 11vw, 170px) 0 14px; padding-top: 40px; border-top: 1px solid var(--line); font: 400 clamp(40px, 4.6vw, 72px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 90px; }
.sec-h em { color: var(--ink-3); }
.sec-h .k { font: .7em/1 var(--brush); color: var(--shu); text-shadow: 0 0 18px rgba(255, 90, 30, .45); }
.sec-lede { max-width: 60ch; margin: 0 0 34px; font-size: 18px; }

/* ── WHOAMI (portfolio) ─────────────────────────────────────────── */
.console a { color: var(--shu-2); text-decoration: none; }
.console a:hover { color: var(--ink); }
.console .c { color: var(--ink); }
.me { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.me-pic { position: relative; margin: 0; padding: 26px; border: 1px solid var(--line-2); background: radial-gradient(70% 60% at 50% 45%, rgba(255, 100, 30, .16), transparent 75%), rgba(10, 6, 5, .5); }
.me-pic::before, .me-pic::after { content: "+"; position: absolute; font: 300 18px/1 var(--mono); color: rgba(255, 170, 110, .55); }
.me-pic::before { left: 8px; top: 6px; }
.me-pic::after { right: 8px; bottom: 6px; }
.me-pic img { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(255, 90, 30, .35)); }
.me-pic figcaption { margin-top: 14px; text-align: center; color: var(--ink-3); }
.me-text p { font-size: 19px; line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; }
.me-text p.first { font: 400 clamp(24px, 2.2vw, 31px)/1.4 var(--serif); color: var(--ink); }
.me-text .status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255, 106, 43, .45); border-radius: 999px; font: 13px var(--mono); color: var(--shu-2); background: rgba(255, 106, 43, .07); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--shu); }
.facts dd { margin: 4px 0 0; font-size: 16px; color: var(--ink); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 4vw, 70px); }
.skill-g { padding-bottom: 40px; }
.skill-g h3 { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font: 400 28px/1.1 var(--serif); color: var(--ink); }
.skill-g ul { list-style: none; margin: 0; padding: 0; }
.skill-g li { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 64px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sk-name { font-size: 16px; color: var(--ink); }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 18px; height: 6px; border: 1px solid var(--line-2); transform: skewX(-18deg); }
.meter i.on { background: linear-gradient(90deg, var(--shu), var(--shu-2)); border-color: var(--shu); box-shadow: 0 0 8px rgba(255, 106, 43, .4); }
.sk-lv { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sk-proof { font: 12px var(--mono); color: var(--shu-2); text-decoration: none; text-align: right; }
.sk-proof:hover { color: var(--ink); }
.sk-proof.none { color: var(--ink-4); }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ways article { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.ways article:hover { background: rgba(255, 106, 43, .05); }
.ways .k { display: block; font: 64px/1 var(--brush); color: var(--shu); text-shadow: 0 0 24px rgba(255, 90, 30, .4); }
.ways h3 { margin: 18px 0 6px; font: italic 400 32px/1 var(--serif); color: var(--ink); }
.ways p { margin: 0; font-size: 15px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(70px, 8vw, 120px); }
.door { position: relative; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line-2); background: rgba(10, 6, 5, .55); }
.door.hot { border-color: rgba(255, 106, 43, .5); background: linear-gradient(160deg, rgba(255, 106, 43, .12), rgba(10, 6, 5, .6) 60%); }
.door .label { color: var(--shu-2); }
.door h3 { margin: 8px 0 14px; font: 400 clamp(34px, 3.4vw, 50px)/1 var(--serif); color: var(--ink); }
.door ul { margin: 0 0 26px; padding: 0; list-style: none; }
.door li { position: relative; padding: 8px 0 8px 24px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.door li::before { content: "◆"; position: absolute; left: 0; top: 10px; font-size: 10px; color: var(--shu); }

/* ── RESOURCES (the library shelves) ────────────────────────────── */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(30px, 4vw, 70px); }
.shelf-g { padding-bottom: 54px; }
.shelf-g h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font: 400 32px/1.1 var(--serif); color: var(--ink); }
.shelf-g h2 span { font: 11px var(--mono); letter-spacing: .16em; color: var(--shu); }
.shelf-g ol { list-style: none; margin: 0; padding: 0; }
.shelf-g li > a, .shelf-g li > .book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), background .35s; }
.shelf-g li > a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 106, 43, .08), transparent 70%); opacity: 0; transition: opacity .35s; }
.shelf-g li > a:hover { padding-left: 14px; }
.shelf-g li > a:hover::before { opacity: 1; }
.shelf-g b { font: 400 22px/1.2 var(--serif); color: var(--ink); }
.shelf-g li span { grid-column: 1; font-size: 15px; color: var(--ink-3); }
.shelf-g i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: normal 12px var(--mono); letter-spacing: .12em; color: var(--ink-4); text-transform: uppercase; transition: color .3s, transform .3s var(--ease); }
.shelf-g a:hover i { color: var(--shu); transform: translate(3px, -3px); }
.shelf-g a:hover b { color: var(--shu-2); }

/* ── WRITEUPS (CTF board) ───────────────────────────────────────── */
.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; padding: 0 16px 14px 0; border-bottom: 1px solid var(--line-2); }
.board td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tr { transition: background .3s; }
.board tbody tr:hover { background: rgba(22, 12, 9, .8); }
.board td.t a { font: 400 26px/1.15 var(--serif); color: var(--ink); text-decoration: none; }
.board td.t a:hover { color: var(--shu); }
.board td.m { font: 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.diff { display: inline-flex; gap: 3px; vertical-align: middle; }
.diff i { width: 7px; height: 14px; border: 1px solid var(--line-2); transform: skewX(-12deg); }
.diff i.on { background: var(--shu); border-color: var(--shu); }
.board-empty { padding: 60px 0; text-align: center; font: 12px var(--mono); color: var(--ink-3); letter-spacing: .14em; }
.wu-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 70px; }
.wu-legend div { padding: 24px; }
.wu-legend div + div { border-left: 1px solid var(--line); }
.wu-legend b { display: block; font: 400 24px var(--serif); color: var(--ink); margin: 6px 0 4px; }
.wu-legend p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ── ADVISORIES (console) ───────────────────────────────────────── */
.console { border: 1px solid var(--line-2); background: rgba(5, 3, 2, .9); font: 13px/1.8 var(--mono); padding: 26px 28px; color: var(--ink-2); }
.console .d { color: var(--ink-3); }
.console .w { color: var(--amber); }
.console .s { color: var(--shu); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 7vw, 100px); position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, var(--shu), var(--line-2) 70%, transparent); }
.flow div { position: relative; padding: 70px 26px 0 0; }
.flow div::before { content: ""; position: absolute; left: 0; top: 29px; width: 11px; height: 11px; border: 1px solid var(--shu); background: var(--bg); transform: rotate(45deg); }
.flow .day { font: 11px var(--mono); color: var(--shu); letter-spacing: .16em; }
.flow h3 { margin: 8px 0 8px; font: 400 28px/1.1 var(--serif); color: var(--ink); }
.flow p { margin: 0; font-size: 15px; }
.rules { margin-top: clamp(60px, 7vw, 100px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.rules p { margin: 0; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rules p:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.rules p:nth-child(even) { padding-left: 40px; }
.rules p b { display: block; font: 400 22px var(--serif); color: var(--ink); margin-bottom: 4px; }

/* ── PATH (constellation + road) ────────────────────────────────── */
.sky { position: relative; border: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 40%, rgba(255, 140, 60, .06), transparent 70%), rgba(6, 3, 2, .6); overflow: hidden; }
.sky svg { width: 100%; height: auto; }
.sky .edge { stroke: rgba(243, 231, 215, .22); stroke-width: 1; stroke-dasharray: 4 6; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.sky .star { fill: var(--ink); }
.sky .star.big { fill: var(--shu); }
.sky .halo { fill: none; stroke: rgba(255, 106, 43, .4); animation: halo 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.sky text { fill: var(--ink-2); font: 13px var(--mono); letter-spacing: .06em; }
.sky text.t { fill: var(--ink); font: 400 20px var(--serif); letter-spacing: 0; }
.sky .caption { position: absolute; left: 22px; bottom: 18px; }
.road { position: relative; margin-top: clamp(70px, 8vw, 120px); padding-left: 0; }
.road-line { position: absolute; left: 150px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.road-line i { position: absolute; left: 0; top: 0; width: 1px; height: var(--fill, 0%); background: linear-gradient(var(--shu), var(--shu-2)); box-shadow: 0 0 10px var(--shu); }
.step { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; padding: 0 0 54px; }
.step .when { font: 400 34px/1 var(--serif); color: var(--ink); padding-right: 30px; text-align: right; }
.step .body { position: relative; padding-left: 40px; }
.step .body::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--shu); background: var(--bg); }
.step .kind { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--shu); }
.step .what { margin: 6px 0 0; font-size: 19px; color: var(--ink); }
.step.todo { opacity: .55; }
.step.todo .body::before { border-style: dashed; border-color: var(--amber); }
.step.todo .what::after { content: "edit me"; margin-left: 10px; padding: 0 6px; border: 1px dashed var(--amber); color: var(--amber); font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 3px; }

/* ── PATH (learning roadmap) ───────────────────────────────────── */
.rm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 80px); padding-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.rm-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-self: start; }
.rm-stats div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rm-stats b { display: block; font: 400 clamp(44px, 4.4vw, 68px)/1 var(--serif); color: var(--ink); }
.rm-stats div:last-child b { color: var(--shu); }
.rm-stats span { font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rm-how ol { margin: 10px 0 20px; padding-left: 22px; }
.rm-how li { margin: 0 0 8px; font-size: 17px; color: var(--ink-2); }
.rm-how li::marker { color: var(--shu); font-family: var(--mono); }
.rm-free { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 13px var(--mono); color: var(--ink); cursor: pointer; }
.rm-note { margin: 12px 0 0; font: 12px/1.6 var(--mono); color: var(--ink-3); }
.rm { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(30px, 4vw, 70px); margin-top: clamp(40px, 5vw, 70px); }
.rm-index { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.rm-index ol { list-style: none; margin: 10px 0 0; padding: 0; border-left: 1px solid var(--line); }
.rm-index a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 0 8px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-3); font-size: 15px; transition: color .2s, border-color .2s, background .2s; }
.rm-index a .n { font: 11px var(--mono); color: var(--ink-4); }
.rm-index a .c { font: 11px var(--mono); color: var(--ink-4); }
.rm-index a:hover, .rm-index a.on { color: var(--ink); border-left-color: var(--shu); background: linear-gradient(90deg, rgba(255, 106, 43, .08), transparent); }
.rm-index a.on .n, .rm-index a .c.full { color: var(--shu); }
.phase { padding: 0 0 clamp(60px, 7vw, 100px); scroll-margin-top: 90px; }
.phase + .phase { padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.phase header { display: flex; gap: 22px; align-items: flex-end; }
.phase .pn { font: 400 clamp(70px, 8vw, 120px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(255, 140, 70, .55); }
.phase h2 { margin: 0; font: 400 clamp(34px, 3.6vw, 54px)/1.05 var(--serif); color: var(--ink); }
.phase .meta { margin: 8px 0 0; }
.phase .time { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 12px var(--mono); color: var(--shu-2); }
.phase .goal { max-width: 62ch; margin: 22px 0 18px; font: italic 400 24px/1.4 var(--serif); color: var(--ink); }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.topics li { padding: 4px 10px; background: rgba(243, 231, 215, .05); border: 1px solid var(--line); font: 12px var(--mono); color: var(--ink-2); }
.res { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.res li { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity .3s, background .3s; }
.res li:hover { background: linear-gradient(90deg, rgba(255, 106, 43, .05), transparent 70%); }
.res input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--shu); cursor: pointer; }
.res li:has(input:checked) { opacity: .55; }
.res li:has(input:checked) a, .res li:has(input:checked) b { text-decoration: line-through; text-decoration-color: var(--shu); }
.res .type { margin-top: 3px; padding: 2px 0; text-align: center; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); }
.res .t-lab { color: var(--shu-2); border-color: rgba(255, 178, 77, .5); }
.res .t-course { color: #ffd88a; border-color: rgba(255, 216, 138, .4); }
.res .t-tool { color: #9fc6cb; border-color: rgba(159, 198, 203, .4); }
.res .t-cert { color: var(--shu); border-color: rgba(255, 106, 43, .5); }
.res .body a, .res .body b { font: 400 21px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.res .body a:hover { color: var(--shu-2); }
.res .note { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.res .price { margin-top: 4px; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8fbf7f; }
.res .paid .price { color: var(--amber); }
.free-only .res li.paid { display: none; }
.check { position: relative; margin: 24px 0 0; padding: 18px 20px 18px 22px; border-left: 2px solid var(--shu); background: linear-gradient(90deg, rgba(255, 106, 43, .1), transparent 80%); font-size: 17px; color: var(--ink); }
.check .label { display: block; margin-bottom: 4px; color: var(--shu-2); }
.rm-end { margin: 0; padding-top: 30px; border-top: 1px solid var(--line); font-size: 17px; }

/* ── CHANGELOG (git log) ────────────────────────────────────────── */
.kings { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: clamp(60px, 7vw, 100px); }
.kings div { position: relative; padding: 28px 24px; min-height: 210px; display: flex; flex-direction: column; }
.kings div + div { border-left: 1px solid var(--line); }
.kings .dir { font: 10px var(--mono); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.kings .kk { margin-top: auto; font: 34px/1 var(--brush); color: var(--shu); text-shadow: 0 0 18px rgba(255, 90, 30, .4); }
.kings .kk + b { margin-top: 12px; }
.kings b { margin-top: auto; font: italic 400 34px/1 var(--serif); color: var(--ink); }
.kings p { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.kings .now { background: linear-gradient(180deg, rgba(255, 106, 43, .1), transparent); }
.kings .now::after { content: "current"; position: absolute; right: 18px; top: 24px; font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--shu); }
.kings .later { opacity: .5; }
.kings .later .kk { color: var(--ink-3); text-shadow: none; }
.gitlog { font: 13px/1.75 var(--mono); }
.gitlog article { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 18px; padding-bottom: 46px; }
.gitlog article::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: var(--line-2); }
.gitlog article:last-child::before { display: none; }
.gitlog .node { width: 13px; height: 13px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--shu); background: var(--bg); position: relative; z-index: 1; }
.gitlog .head { color: var(--amber); }
.gitlog .head b { color: var(--shu); font-weight: 400; }
.gitlog h2 { margin: 6px 0 4px; font: 400 clamp(32px, 3.4vw, 50px)/1.05 var(--serif); color: var(--ink); }
.gitlog h2 em { color: var(--shu); }
.gitlog .date { color: var(--ink-3); }
.gitlog ul { margin: 14px 0 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 16px; }
.gitlog li { padding: 4px 0 4px 22px; position: relative; color: var(--ink-2); }
.gitlog li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: #8fbf7f; }

/* ── CONTACT (letter + seal) ────────────────────────────────────── */
.letter { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(22, 12, 9, .85), rgba(10, 6, 5, .85)); }
.letter-body { position: relative; padding: clamp(30px, 4vw, 60px) clamp(30px, 4vw, 60px) clamp(130px, 12vw, 170px); border-right: 1px solid var(--line); }
.letter-body .to { font: 11px var(--mono); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.letter-body p.salute { margin: 26px 0 18px; font: italic 400 30px var(--serif); color: var(--ink); }
.letter-body p { font-size: 18px; max-width: 48ch; }
.mail { display: inline-block; margin-top: 18px; font: 400 clamp(36px, 4.4vw, 70px)/1.05 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.mail:hover { color: var(--shu-2); border-color: var(--shu); }
.seal { position: absolute; right: clamp(24px, 4vw, 60px); bottom: clamp(24px, 4vw, 60px); width: 110px; height: 110px; display: grid; place-items: center; background: linear-gradient(160deg, var(--shu-2), var(--shu) 50%, var(--ember)); color: #1a0904; font: 64px/1 var(--brush); border-radius: 6px; transform: rotate(-8deg) scale(1.6); opacity: 0; box-shadow: inset 0 0 0 4px rgba(26, 9, 4, .25), inset 0 0 18px rgba(0, 0, 0, .35); }
.seal::after { content: ""; position: absolute; inset: 7px; border: 2px solid rgba(26, 9, 4, .5); border-radius: 3px; }
.in .seal, .seal.stamp { animation: stamp .7s .4s var(--ease) forwards; }
@keyframes stamp { 60% { transform: rotate(-8deg) scale(.94); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: .92; } }
.letter-side { padding: clamp(30px, 4vw, 50px); }
.socials { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.socials a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 13px var(--mono); letter-spacing: .06em; color: var(--ink); transition: padding .3s var(--ease), color .3s; }
.socials a span { color: var(--ink-3); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }
.socials a:hover { color: var(--shu-2); padding-left: 8px; }
.pgp { margin-top: 28px; padding: 16px; border: 1px dashed var(--line-2); font: 11px/1.7 var(--mono); color: var(--ink-3); }

/* ── article pages ──────────────────────────────────────────────── */
.post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(40px, 6vw, 110px); }
.prose { max-width: 72ch; padding: 60px 0 110px; font-size: 18.5px; line-height: 1.75; }
.prose > p:first-of-type::first-letter { float: left; font: 5.2em/.8 var(--serif); padding: 8px 12px 0 0; color: var(--shu); }
.prose h2 { position: relative; margin: 2.2em 0 .5em; font: 400 38px/1.12 var(--serif); color: var(--ink); }
.prose h3 { margin: 1.8em 0 .4em; font: 400 27px/1.2 var(--serif); color: var(--ink); }
.prose h2 .anchor { position: absolute; left: -1.1em; color: var(--ink-4); text-decoration: none; opacity: 0; transition: opacity .2s; font-size: .7em; top: .2em; }
.prose h2:hover .anchor { opacity: 1; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--shu); font: italic 400 28px/1.4 var(--serif); color: var(--ink); }
.prose code { font: 14.5px var(--mono); color: var(--ink); background: var(--bg-2); padding: 1px 6px; }
.prose pre { position: relative; overflow-x: auto; padding: 18px; background: rgba(5, 3, 2, .9); border: 1px solid var(--line); font: 13.5px/1.65 var(--mono); }
.prose pre code { background: none; padding: 0; }
.prose pre .copy { position: absolute; top: 10px; right: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.6em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose td:first-child { white-space: nowrap; font: 13px var(--mono); color: var(--ink); }
.prose th { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.prose hr { border: 0; height: 1px; margin: 3.4em 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.prose hr::after { content: "炎"; display: block; width: 40px; margin: -12px auto 0; text-align: center; background: var(--bg); font: 18px/1 var(--brush); color: var(--ink-3); }
.toc { position: sticky; top: 100px; align-self: start; padding: 60px 0 0; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--shu); }
.draft-note { position: relative; margin: 30px 0 0; padding: 12px 16px; border: 1px dashed var(--amber); color: var(--amber); font: 12px/1.6 var(--mono); max-width: 80ch; }
.post-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }

/* ── next / previous room ───────────────────────────────────────── */
.rooms { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.rooms a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 34px var(--gutter); text-decoration: none; transition: background .4s; }
.rooms a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.rooms a:hover { background: linear-gradient(90deg, rgba(255, 106, 43, .08), transparent); }
.rooms a + a:hover { background: linear-gradient(270deg, rgba(255, 106, 43, .08), transparent); }
.rooms .label { color: var(--shu-2); }
.rooms b { display: flex; align-items: baseline; gap: 14px; font: 400 clamp(30px, 3.4vw, 50px)/1 var(--serif); color: var(--ink); }
.rooms b .k { font: .8em/1 var(--brush); color: var(--shu); }
.rooms span.t { font-size: 15px; color: var(--ink-3); }

/* ── footer ─────────────────────────────────────────────────────── */
.foot { position: relative; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(0, 0, 0, .5)); overflow: hidden; }
.foot-big { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: clamp(60px, 8vw, 110px) 0 40px; }
.foot-big p { margin: 0; font: 400 clamp(46px, 7vw, 120px)/.9 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.foot-big p em { color: var(--ink-3); }
.foot-seal { flex: none; width: 92px; height: 92px; display: grid; place-items: center; background: linear-gradient(160deg, var(--shu-2), var(--shu) 50%, var(--ember)); color: #1a0904; border-radius: 6px; transform: rotate(-6deg); transition: transform .6s var(--ease), box-shadow .6s; box-shadow: inset 0 0 0 3px rgba(26, 9, 4, .25), 0 0 40px -6px rgba(255, 90, 30, .5); }
.foot-seal .mi { width: 56px; height: 56px; }
.foot-seal:hover { transform: rotate(4deg) scale(1.05); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: space-between; padding: 22px 0 40px; border-top: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.foot-row a { color: var(--ink-2); text-decoration: none; }
.foot-row a:hover { color: var(--shu); }
.kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; font: 10px/16px var(--mono); text-align: center; color: var(--ink-2); }

/* shortcuts dialog */
dialog.keys { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); padding: 28px 30px; max-width: 420px; width: calc(100% - 32px); }
dialog.keys::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
dialog.keys h2 { margin: 0 0 14px; font: 400 30px var(--serif); color: var(--ink); }
dialog.keys dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
dialog.keys dd { margin: 0; }

/* logo stroke drawing (first visit of the session) */
.draw .mi path { stroke: currentColor; stroke-width: 18; fill: transparent; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 1.8s .2s var(--ease) forwards, fillin .6s 1.6s forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: currentColor; stroke-width: 0; } }

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 1400px) { @media (max-width: 1240px) { .nav a { padding: 0 10px; letter-spacing: .1em; } .nav a small { display: none; } }
@media (max-width: 1180px) {
  .arsenal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forge { grid-template-columns: 1fr 1fr; }
  .idx { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .kings { grid-template-columns: repeat(2, 1fr); }
  .kings div:nth-child(3) { border-left: 0; }
  .kings div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .post-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 16px var(--gutter); border-top: 1px solid var(--line); height: auto; }
  .nav.open a small { display: inline; }
  .bar .wrap { justify-content: space-between; }
  .menu-btn { display: inline-flex; }
  .bar .cta .btn:not(.menu-btn) { display: none; }
  .bar .cta { border-left: 0; }
}
@media (max-width: 980px) {
  .wip-list { grid-template-columns: 1fr 1fr; }
  .wip-cols { grid-template-columns: 1fr; }
  .rm-top, .rm { grid-template-columns: 1fr; }
  .rm-index { position: static; max-height: none; }
  .me, .doors { grid-template-columns: 1fr; }
  .me-pic { max-width: 420px; }
  .skills { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
  .shelf { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  .h-stage { --s: min(86vw, 480px); position: relative; left: auto; top: auto; margin: 30px auto 0; }
  .h-copy { position: relative; left: auto; bottom: auto; padding: 0 var(--gutter) 70px; }
  .hud.tl { left: var(--gutter); }
  .h-vert, .hud.tr, .scroll-cue { display: none; }
  .h-card { position: relative; right: auto; bottom: auto; width: auto; margin: 0 var(--gutter) 60px; }
  .tl-hero, .latest, .letter, .feature-post, .roadmap { grid-template-columns: 1fr; }
  .latest > div + div, .letter-body, .feature-post .fp-art { border-left: 0; border-right: 0; }
  .latest > div + div { border-top: 1px solid var(--line); }
  .letter-body { border-bottom: 1px solid var(--line); }
  .feature-post .fp-art { min-height: 220px; border-bottom: 1px solid var(--line); }
  .mf { grid-template-columns: 1fr; }
  .mf-vert { position: static; writing-mode: horizontal-tb; font-size: 32px; margin-bottom: 30px; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .rules { grid-template-columns: 1fr; }
  .rules p:nth-child(odd) { border-right: 0; padding-right: 0; }
  .rules p:nth-child(even) { padding-left: 0; }
  .wu-legend { grid-template-columns: 1fr 1fr; }
  .wu-legend div:nth-child(3) { border-left: 0; }
  .wu-legend div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .road-line { left: 0; }
  .step { grid-template-columns: 1fr; padding-left: 28px; }
  .step .when { text-align: left; font-size: 26px; padding: 0 0 6px; }
  .step .body { padding-left: 0; }
  .step .body::before { left: -34px; }
  .columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .idx, .features, .kings { grid-template-columns: 1fr; }
  .kings div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tile { min-height: 230px; }
  .tile .k { font-size: 72px; }
  .list a.row { grid-template-columns: 1fr; gap: 6px; }
  .row .meta { text-align: left; flex-direction: row; align-items: center; gap: 12px; }
  .ways, .facts, .arsenal, .forge, .wip-list { grid-template-columns: 1fr; }
  .res li { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .res .type { display: none; }
  .skill-g li { grid-template-columns: minmax(0, 1fr) auto; }
  .sk-lv { display: none; }
  .sk-proof { grid-column: 2; }
  .flow, .wu-legend { grid-template-columns: 1fr; }
  .wu-legend div + div { border-left: 0; border-top: 1px solid var(--line); }
  .board thead { display: none; }
  .board td { display: block; padding: 4px 0; border: 0; }
  .board tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .term { font-size: 11px; }
  .term pre { min-height: 0; }
  .seal { width: 84px; height: 84px; font-size: 48px; }
  .rooms { grid-template-columns: 1fr; }
  .rooms a + a { border-left: 0; border-top: 1px solid var(--line); }
  .foot-big { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .h-title .ch, .h-motto, .h-copy .actions, .seal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .term.play .typed { width: auto; }
  .js .term.play .out { opacity: 1; }
  .grain { display: none; }
}
@media print {
  .aura, .regfield, .rooms, #stars, .hearth, .grain, .columns, .vignette, .bar, .foot, .progress, .toc { display: none !important; }
  body { background: #fff; color: #111; }
  .prose p, .prose li, .prose h2, .ph h1 { color: #111; }
}
