/* young.is — compiled from designs/soviet/tokens.json. Do not edit dist/. */
:root {
  --void: #0A0A0A;
  --panel: #111111;
  --panel-alt: #161616;
  --rule: #3A0D0D;
  --red: #E01B24;
  --red-bright: #FF2D3B;
  --red-dim: #8A1218;
  --ember: #FF6B4A;
  --bone: #D8D2C8;
  --muted: #7A6F6A;
  --shadow: #000000;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-xs: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-base: 0.94rem;
  --fs-lg: 1.25rem;
  --fs-xl: 2.1rem;
  --fs-xxl: 3.6rem;
  --tr-tight: -0.02em;
  --tr-normal: 0;
  --tr-wide: 0.08em;
  --tr-wider: 0.18em;
  --lh-tight: 1.15;
  --lh-normal: 1.6;
  --sp-cell: 1ch;
  --sp-row: 1.6rem;
  --sp-gut: 2rem;
  --sp-pad: 1.15rem;
  --bd-hair: 1px;
  --bd-heavy: 3px;
  --bd-slab: 10px;
  --mo-scan: 7.5s;
  --mo-blink: 1.05s;
  --mo-boot: 900ms;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; border-bottom: var(--bd-hair) solid var(--red-dim); }
a:hover, a:focus-visible { color: var(--red-bright); border-bottom-color: var(--red-bright); background: rgba(224,27,36,.09); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
code { color: var(--ember); font-size: 0.92em; }
strong { color: var(--bone); font-weight: 600; }

/* --- CRT sweep ------------------------------------------------ */
.scan {
  position: fixed; inset: 0; z-index: 9; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(224,27,36,.05) 48%, transparent 52%);
  background-size: 100% 220vh;
  animation: sweep var(--mo-scan) linear infinite;
}
@keyframes sweep { from { background-position: 0 -120vh; } to { background-position: 0 120vh; } }

/* --- Masthead ------------------------------------------------- */
.mast { border-bottom: var(--bd-heavy) solid var(--red); }

.slab {
  background: var(--red);
  color: var(--void);
  display: flex; align-items: center; gap: var(--sp-pad);
  padding: 0.55rem clamp(1rem, 5vw, 3rem);
  position: relative; overflow: hidden;
}
.slab::after {
  content: ""; position: absolute; top: -60%; right: -4%;
  width: 22vw; height: 220%;
  background: var(--void);
  transform: rotate(12deg);
  opacity: .92;
}
.mark {
  font-size: var(--fs-lg); font-weight: 700; letter-spacing: var(--tr-tight);
  color: var(--void); border: 0;
}
.mark:hover { color: var(--void); background: transparent; }
.star { font-size: var(--fs-lg); line-height: 1; }
.mast-key {
  margin-left: auto; position: relative; z-index: 1;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tr-wider); text-transform: uppercase;
  color: var(--red-bright);
}
.ticker {
  margin: 0; padding: 0.45rem clamp(1rem, 5vw, 3rem);
  background: var(--panel-alt);
  font-size: var(--fs-xs); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: none;
}

/* --- Tabs ----------------------------------------------------- */
.tabs { border-bottom: var(--bd-hair) solid var(--rule); background: var(--panel); }
.tabs-inner {
  max-width: 78rem; margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0;
}
.tab {
  border: 0; border-right: var(--bd-hair) solid var(--rule);
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-xs); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--muted);
}
.tab-ord { color: var(--red-dim); }
.tab:hover { background: var(--panel-alt); color: var(--bone); }
.tab.on { background: var(--red); color: var(--void); }
.tab.on .tab-ord { color: var(--void); opacity: .6; }

/* --- Main ----------------------------------------------------- */
main {
  max-width: 78rem; margin: 0 auto;
  padding: var(--sp-gut) clamp(1rem, 5vw, 3rem) 3rem;
}
p { max-width: var(--measure); margin: 0 0 var(--sp-pad); }

/* --- Section rules -------------------------------------------- */
h2.rule {
  display: flex; align-items: center; gap: 1ch;
  margin: 2.6rem 0 1.1rem;
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: var(--tr-wider); text-transform: uppercase;
  color: var(--red);
}
h2.rule .ord {
  background: var(--red); color: var(--void);
  padding: 0.1rem 0.55rem; letter-spacing: var(--tr-normal);
}
h2.rule::after {
  content: ""; flex: 1; height: var(--bd-hair);
  background: repeating-linear-gradient(90deg, var(--red-dim) 0 4px, transparent 4px 8px);
}
h3 { font-size: var(--fs-base); font-weight: 600; letter-spacing: var(--tr-tight); margin: 1.4rem 0 .5rem; }

/* --- Panel ---------------------------------------------------- */
.panel {
  position: relative;
  border: var(--bd-hair) solid var(--rule);
  border-left: var(--bd-slab) solid var(--red);
  background: var(--panel);
  padding: 1.5rem var(--sp-pad) var(--sp-pad);
  margin: 0 0 2rem;
}
.panel-key {
  position: absolute; top: -0.62rem; left: var(--sp-pad);
  background: var(--void); padding: 0 .6ch;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--tr-wider); text-transform: uppercase;
  color: var(--red);
}
.panel-body > *:last-child { margin-bottom: 0; }

/* --- Entries -------------------------------------------------- */
.entry { border-top: var(--bd-hair) solid var(--rule); padding: 1rem 0; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-gut); }
.entry-title { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--bone); letter-spacing: var(--tr-tight); }
.entry-dates { font-size: var(--fs-xs); letter-spacing: var(--tr-wide); color: var(--red); white-space: nowrap; }
.entry-org { margin: .15rem 0 .6rem; font-size: var(--fs-xs); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--muted); }

/* --- Lists ---------------------------------------------------- */
ul.points { list-style: none; margin: 0 0 var(--sp-pad); padding: 0; max-width: var(--measure); }
ul.points li { position: relative; padding-left: 2.5ch; margin-bottom: .35rem; }
ul.points li::before { content: "▚"; position: absolute; left: 0; color: var(--red); }

hr { border: 0; height: var(--bd-hair); background: var(--rule); margin: 2rem 0; }

/* --- Footer --------------------------------------------------- */
.foot {
  border-top: var(--bd-heavy) solid var(--red);
  background: var(--panel);
  padding: var(--sp-pad) clamp(1rem, 5vw, 3rem);
}
.prompt { margin: 0 0 .4rem; font-size: var(--fs-sm); }
.host { color: var(--red); }
.path { color: var(--muted); }
.cmd { color: var(--bone); }
.cursor { color: var(--red-bright); animation: blink var(--mo-blink) step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.colophon { margin: 0; font-size: var(--fs-xs); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--muted); max-width: none; }

/* --- Narrow --------------------------------------------------- */
@media (max-width: 640px) {
  .entry-head { flex-direction: column; gap: .1rem; }
  .mast-key { display: none; }
  .slab::after { display: none; }
  .tab { flex: 1 0 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scan { animation: none; opacity: .35; }
  .cursor { animation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .scan, .tabs { display: none; }
  a { color: #000; }
}
