/* ==========================================================================
   tronny.dev - the design system
   Direction B2 "Slab", locked by Chris Shanku 2026-08-25.

   WHAT THIS INHERITS FROM brand-guide.md, unchanged:
     - The palette. --cyan is Cyclotron's literal extracted #60D8EE; the navy
       family and the violet lift are the guide's.
     - The faces. Inter Tight display / Inter body / IBM Plex Mono, self-hosted
       woff2, SIL OFL 1.1. Never plain Inter as the identity face.
     - The disclosure badge as a structural, template-injected element.
     - Space ladder 4/8/12/16/24/40/64/96.

   WHAT WAS RENEGOTIATED, on Chris's explicit instruction 2026-08-25 ("tear it
   up - flashy and modern"). Each of these was a hard rule in the guide and is
   deliberately no longer one. Recorded so nobody "restores" them as drift:
     - DISPLAY SCALE. The guide capped display at 34px. The hero now runs to
       104px and the wordmark to 210px. 34px on a 1440px page was the single
       biggest reason the first build read as unstyled.
     - GLOW. The guide said "Never a glow. Never a coloured shadow." The figure
       is lit, and there is a light pool behind it. That is the point now.
     - GRADIENT. The guide allowed one 7% nod per page. Gradients are a real
       surface here.
     - MOTION. The guide capped motion at hover feedback, 300ms. There are slow
       ambient animations (the light pool swells).
     - LIGHT MODE IS DROPPED. The guide shipped verified light AND dark themes.
       This direction is designed dark; a light derivation is not a repoint, it
       is a re-design. Dark-only is a deliberate call, not an oversight.

   Radius grammar, by role, still enforced:
     4px  chips and small meta
     0    buttons and the stream grid - hard edges are the direction's spine
     999  the disclosure badge only
   ========================================================================== */

/* --- Faces. Self-hosted; no external runtime dependency. ------------------ */
@font-face { font-family:'Inter Tight'; font-weight:600; font-display:swap; src:url('fonts/InterTight-600.woff2') format('woff2'); }
@font-face { font-family:'Inter Tight'; font-weight:700; font-display:swap; src:url('fonts/InterTight-700.woff2') format('woff2'); }
@font-face { font-family:'Inter Tight'; font-weight:800; font-display:swap; src:url('fonts/InterTight-800.woff2') format('woff2'); }
@font-face { font-family:'Inter';       font-weight:400; font-display:swap; src:url('fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter';       font-weight:600; font-display:swap; src:url('fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:400; font-display:swap; src:url('fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-weight:500; font-display:swap; src:url('fonts/IBMPlexMono-500.woff2') format('woff2'); }

:root {
  /* Tier 1 - primitives. Never referenced from markup. */
  --cy-cyan:   #60D8EE;   /* cyclotron.com's literal anchor, carried forward */
  --cy-navy:   #0C1629;
  --n-black:   #05080F;
  --n-900:     #080D18;
  --n-850:     #0D1524;
  --n-line:    rgba(255,255,255,.11);
  --n-line-2:  rgba(255,255,255,.16);
  --n-ink:     #F0F4FA;
  --n-dim:     #9AAAC4;
  --n-mute:    #74849E;
  --a-violet:  #A78BFF;

  /* Tier 2 - semantics. The only tier markup may reference. */
  --bg:         var(--n-black);
  --surface:    var(--n-850);
  --ink:        var(--n-ink);
  --dim:        var(--n-dim);
  --mute:       var(--n-mute);
  --primary:    var(--cy-cyan);
  --accent:     var(--a-violet);
  --line:       var(--n-line);
  --line-2:     var(--n-line-2);
  --on-primary: #04121A;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:40px; --s-7:64px; --s-8:96px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { display:block; max-width:100%; height:auto; }
h1,h2,h3 { margin:0; text-wrap: balance; }
p { margin:0; }
ul { margin:0; padding:0; list-style:none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.skip {
  position:absolute; left:var(--s-4); top:-100px; z-index:20;
  background:var(--surface); color:var(--ink); border:1px solid var(--line-2);
  padding:var(--s-2) var(--s-3); text-decoration:none;
  font:400 13px/1 Inter, sans-serif;
  transition: top .15s var(--ease);
}
.skip:focus { top: var(--s-4); }

.wrap { width:100%; max-width:1240px; margin-inline:auto; padding-inline:32px; }
@media (max-width:720px){ .wrap { padding-inline:20px; } }

.mono {
  font:500 12px/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing:.14em; text-transform:uppercase;
}

/* --- Masthead ------------------------------------------------------------ */
.masthead { position:relative; z-index:10; border-bottom:1px solid var(--line); }
.masthead .wrap { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:76px; }
.brand {
  display:inline-flex; align-items:center; gap:10px;
  font:700 19px/1 'Inter Tight', sans-serif; letter-spacing:-.02em;
  color:var(--ink); text-decoration:none; flex:none;
}
.brand img { width:24px; height:24px; border-radius:6px; }
.nav { display:flex; gap:28px; }
.nav a {
  font:400 14px/1 Inter, sans-serif; color:var(--dim); text-decoration:none;
  padding-block:6px; border-bottom:1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color:var(--ink); }
.nav a[aria-current="page"] { color:var(--ink); font-weight:600; border-bottom-color:var(--primary); }

/* The nav wrapped "Build log" onto two lines at 375px. Rather than a
   JS hamburger on a zero-JS site, the masthead stacks: brand on top, nav as a
   full-width row beneath it. */
@media (max-width:620px) {
  .masthead .wrap { flex-direction:column; align-items:stretch; gap:0; padding-block:14px; min-height:0; }
  .nav { gap:0; justify-content:space-between; padding-top:12px; margin-top:12px; border-top:1px solid var(--line); }
  .nav a { font-size:13px; }
}

/* --- Shared atmosphere --------------------------------------------------- */
.pool {
  position:absolute; z-index:0; pointer-events:none;
  right:-6%; bottom:-30%; width:1180px; height:1180px;
  background: radial-gradient(circle,
    rgba(96,216,238,.20) 0%, rgba(96,216,238,.09) 30%,
    rgba(90,20,247,.07) 52%, transparent 72%);
  filter: blur(20px);
  animation: swell 11s var(--ease) infinite;
}
@keyframes swell { 0%,100%{opacity:.85;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }

.pool.top {
  right:auto; left:52%; bottom:auto; top:-58%;
  width:900px; height:900px;
}

.grain {
  position:absolute; inset:0; z-index:6; pointer-events:none;
  opacity:.14; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Home hero ----------------------------------------------------------- */
.shell { min-height:100svh; display:flex; flex-direction:column; }
.hero {
  position:relative; flex:1;
  display:grid; grid-template-columns:1.02fr .98fr; align-items:center;
  overflow:hidden;
}
.floorline {
  position:absolute; z-index:1; pointer-events:none;
  left:30%; right:-4%; bottom:7%; height:1px;
  background:linear-gradient(90deg, transparent, rgba(96,216,238,.34) 30%, rgba(96,216,238,.14));
}
.floorline::after {
  content:""; position:absolute; left:14%; top:-4px; width:520px; height:84px;
  background:radial-gradient(ellipse at center, rgba(96,216,238,.22), transparent 70%);
  filter:blur(14px);
}
.slab {
  position:relative; z-index:4; max-width:680px;
  padding: clamp(40px,5.5vw,86px) clamp(24px,3.4vw,56px) clamp(40px,5.5vw,86px) clamp(28px,4.4vw,78px);
}
.eyebrow { color:var(--primary); margin-bottom:26px; display:flex; align-items:center; gap:14px; }
.eyebrow::after { content:""; flex:1; height:1px; background:linear-gradient(90deg, rgba(96,216,238,.45), transparent); }

.slab h1 { font:800 clamp(48px,6.6vw,104px)/0.92 'Inter Tight', sans-serif; letter-spacing:-.05em; margin-bottom:30px; }
.slab h1 em { font-style:normal; display:block; color:transparent; -webkit-text-stroke:1.5px rgba(240,244,250,.5); }
.slab .say { font-size:clamp(15px,1.3vw,17.5px); color:var(--dim); max-width:44ch; margin-bottom:34px; }
.slab .say b { color:var(--ink); font-weight:600; }

/* Wordmark and figure share ONE anchor so the figure occludes its own name.
   65%, not 50%: the cutout's head/torso centroid sits at 65% of the image
   width because the extended arm pads the left side. Measured, not eyeballed -
   translateX(-50%) put him squarely on the first N and the wordmark read
   "TRONY". 39% + -65% lands his body on the O|N boundary. */
.stage { position:relative; z-index:2; align-self:stretch; --anchor:39%; }
.wordmark {
  position:absolute; z-index:2; top:47%; left:var(--anchor);
  transform:translate(-50%,-50%);
  font:800 clamp(88px,14vw,210px)/0.84 'Inter Tight', sans-serif;
  letter-spacing:-.06em; white-space:nowrap; user-select:none;
  color:rgba(240,244,250,.14); -webkit-text-stroke:1px rgba(96,216,238,.20);
}
.figure {
  position:absolute; z-index:3; bottom:7%; left:var(--anchor);
  transform:translateX(-65%);
  height:min(82%,640px); width:auto;
  filter: drop-shadow(0 0 70px rgba(96,216,238,.30))
          drop-shadow(0 0 160px rgba(96,216,238,.16))
          drop-shadow(0 26px 46px rgba(0,0,0,.6));
}

/* --- Interior page head -------------------------------------------------- */
.pagehead { position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.pagehead .wrap { position:relative; z-index:2; padding-block: clamp(56px,8vh,104px) clamp(48px,7vh,88px); }
.pagehead h1 { font:800 clamp(42px,6vw,86px)/0.94 'Inter Tight', sans-serif; letter-spacing:-.05em; margin-bottom:22px; }
.pagehead .lede { color:var(--dim); font-size:clamp(15.5px,1.35vw,18px); max-width:56ch; }

/* Byline. Carries the disclosure badge on pages whose heading does not
   already contain the name. A block, never spliced inline into a sentence -
   .badge is inline-flex and mid-prose it breaks the paragraph's leading. */
.byline { display:flex; align-items:center; gap:14px; margin-bottom:22px; font:700 18px/1 'Inter Tight', sans-serif; }

.badge {
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  font:600 11px/1 Inter, system-ui, sans-serif;
  padding:5px 11px 5px 9px; border-radius:999px;
  background:rgba(96,216,238,.12); color:var(--primary);
  border:1px solid rgba(96,216,238,.35);
}
.badge svg { width:12px; height:12px; flex:none; stroke-width:1.8; }

/* --- Sections ------------------------------------------------------------ */
.section { position:relative; border-top:1px solid var(--line); }
.section:first-of-type { border-top:none; }
.section .wrap { padding-block: clamp(64px,9vh,120px); }
.kicker { color:var(--primary); display:block; margin-bottom:20px; }
.section h2 { font:800 clamp(28px,4.2vw,54px)/1.04 'Inter Tight', sans-serif; letter-spacing:-.04em; margin-bottom:16px; }
.section h3 { font:700 clamp(20px,2.4vw,28px)/1.15 'Inter Tight', sans-serif; letter-spacing:-.025em; margin-bottom:12px; }
.intro { color:var(--dim); max-width:60ch; font-size:16px; }
.prose { color:var(--dim); max-width:66ch; display:grid; gap:var(--s-4); font-size:15.5px; }
.prose b, .prose strong { color:var(--ink); font-weight:600; }
.cols { display:grid; gap:var(--s-6); }
@media (min-width:860px){ .cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--s-7); } }

/* Definition rows on hairlines. Not a rounded card per paragraph. */
.rows { display:grid; margin-top:var(--s-6); border-top:1px solid var(--line-2); }
.row { display:grid; gap:var(--s-2); padding-block:var(--s-5); border-bottom:1px solid var(--line); }
@media (min-width:820px){ .row { grid-template-columns:230px minmax(0,1fr); gap:var(--s-6); } }
.row dt { font:700 17px/1.3 'Inter Tight', sans-serif; color:var(--ink); letter-spacing:-.015em; }
.row dd { margin:0; color:var(--dim); font-size:15px; }

/* --- The signal streams -------------------------------------------------- */
.streams {
  display:grid; gap:1px; margin-top:var(--s-6);
  grid-template-columns:repeat(3,1fr);
  background:var(--line-2); border:1px solid var(--line-2);
}
.stream { background:var(--bg); padding:30px 26px; transition:background .25s var(--ease); }
.stream:hover { background:rgba(96,216,238,.05); }
.stream h3 { font:700 21px/1.2 'Inter Tight', sans-serif; letter-spacing:-.02em; margin-bottom:6px; }
.stream .count { display:block; font:400 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; color:var(--primary); letter-spacing:.08em; margin-bottom:16px; }
.stream p { color:var(--dim); font-size:14.5px; line-height:1.6; }
@media (max-width:860px){ .streams { grid-template-columns:1fr; } }

/* --- Pillars ------------------------------------------------------------- */
.pillars { display:grid; margin-top:var(--s-7); border-top:1px solid var(--line-2); }
.pillar {
  display:grid; grid-template-columns:82px 1fr; gap:30px;
  padding:38px 0; border-bottom:1px solid var(--line);
  transition:background .2s var(--ease), padding-left .2s var(--ease);
}
.pillar:hover { background:rgba(96,216,238,.045); padding-left:16px; }
.pillar .n { font:500 12px/1 'IBM Plex Mono', monospace; color:var(--primary); letter-spacing:.14em; padding-top:10px; }
.pillar .q { display:block; font:500 12px/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--mute); margin-bottom:12px; }
.pillar h3 { font:700 clamp(24px,3vw,36px)/1.1 'Inter Tight', sans-serif; letter-spacing:-.03em; margin-bottom:14px; }
.pillar p { color:var(--dim); font-size:15.5px; max-width:62ch; }
@media (max-width:720px){ .pillar { grid-template-columns:46px 1fr; gap:18px; } }

/* --- Built-on strip. The Microsoft stack, carried on every page. --------- */
.builton {
  margin-top:var(--s-6); padding-top:var(--s-5);
  border-top:1px solid var(--line-2);
  display:flex; gap:24px; align-items:baseline; flex-wrap:wrap;
}
.builton .mono { color:var(--primary); flex:none; }
.builton p { color:var(--dim); font-size:15px; max-width:60ch; }
.builton b { color:var(--ink); font-weight:600; }

/* --- Buttons and links --------------------------------------------------- */
.row-btn { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.btn {
  font:600 15px/1 Inter, sans-serif; text-decoration:none;
  padding:16px 28px; background:var(--primary); color:var(--on-primary);
  border:1px solid var(--primary);
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform:translate(-2px,-2px); box-shadow:4px 4px 0 rgba(96,216,238,.35); }
.btn.ghost { background:transparent; color:var(--ink); border-color:var(--line-2); }
.btn.ghost:hover { border-color:var(--primary); color:var(--primary); box-shadow:4px 4px 0 rgba(96,216,238,.18); }

.tlink { color:var(--primary); text-decoration:none; border-bottom:1px solid rgba(96,216,238,.4); transition:border-color .15s var(--ease); }
.tlink:hover { border-bottom-color:var(--primary); }

.chip {
  display:inline-block; font:400 12px/1.4 'IBM Plex Mono', ui-monospace, monospace;
  color:var(--dim); background:var(--surface); border:1px solid var(--line-2);
  padding:5px 9px; border-radius:4px; white-space:nowrap;
}
.note { border-left:2px solid var(--primary); padding:var(--s-1) 0 var(--s-1) var(--s-4); color:var(--dim); max-width:66ch; font-size:15.5px; }

/* --- Empty state --------------------------------------------------------- */
.empty {
  border:1px solid var(--line-2); background:var(--surface);
  padding:var(--s-6); max-width:660px; margin-top:var(--s-6);
}
.empty img { width:30px; height:30px; border-radius:6px; margin-bottom:var(--s-4); }
.empty h3 { margin-bottom:var(--s-3); }
.empty p { color:var(--dim); font-size:15.5px; }

/* --- Newsletter ---------------------------------------------------------- */
.issues { display:grid; margin-top:var(--s-6); border-top:1px solid var(--line-2); }
.issue { display:grid; gap:var(--s-3); padding-block:var(--s-6); border-bottom:1px solid var(--line); }
@media (min-width:760px){ .issue { grid-template-columns:96px minmax(0,1fr); gap:var(--s-6); } }
.issue .no { font:500 13px/1 'IBM Plex Mono', monospace; color:var(--accent); letter-spacing:.1em; padding-top:8px; }
.issue h3 { margin-bottom:var(--s-2); }
.issue p { color:var(--dim); font-size:15px; }
.issue .meta { color:var(--mute); font:400 13px/1.4 Inter, sans-serif; margin-top:var(--s-3); }

.issue-body { max-width:68ch; display:grid; gap:var(--s-4); color:var(--dim); font-size:16px; line-height:1.7; }
.issue-body h3 { color:var(--ink); margin-top:var(--s-5); margin-bottom:0; }
.issue-body b, .issue-body strong { color:var(--ink); font-weight:600; }
.issue-body ul { display:grid; gap:var(--s-3); }
.issue-body li { padding-left:var(--s-4); position:relative; }
.issue-body li::before { content:""; position:absolute; left:0; top:.72em; width:6px; height:1px; background:var(--primary); }

/* --- Build log ----------------------------------------------------------- */
.log { width:100%; border-collapse:collapse; text-align:left; margin-top:var(--s-6); }
.log caption { text-align:left; color:var(--mute); font:400 13px/1.4 Inter, sans-serif; padding-bottom:var(--s-4); }
.log th {
  font:500 11px/1 'IBM Plex Mono', monospace; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mute); padding:0 var(--s-5) var(--s-3) 0; border-bottom:1px solid var(--line-2); white-space:nowrap;
}
.log td { padding:var(--s-5) var(--s-5) var(--s-5) 0; border-bottom:1px solid var(--line); vertical-align:top; color:var(--dim); font-size:15px; }
.log td:last-child, .log th:last-child { padding-right:0; }
.log .c-date { font:400 13px/1.5 'IBM Plex Mono', monospace; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--mute); }
.log .c-what { color:var(--ink); }
.log .c-ref  { font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:760px){
  .log, .log tbody, .log tr, .log td { display:block; width:100%; }
  .log thead { display:none; }
  .log tr { border-bottom:1px solid var(--line); padding-block:var(--s-5); }
  .log td { border:none; padding:0 0 var(--s-2) 0; }
  .log tr:last-child { border-bottom:none; }
}

/* --- Footer -------------------------------------------------------------- */
.footer { border-top:1px solid var(--line); }
.footer .wrap { padding-block:var(--s-7); display:grid; gap:var(--s-4); }
.footer .fbrand { display:flex; align-items:center; gap:10px; font:700 17px/1 'Inter Tight', sans-serif; margin-bottom:var(--s-2); }
.footer .fbrand img { width:22px; height:22px; border-radius:5px; }
.footer p { font-size:14px; color:var(--dim); max-width:70ch; }
.footer .fine { color:var(--mute); font-size:13px; }
.footer .fnav { display:flex; gap:var(--s-5); flex-wrap:wrap; padding-top:var(--s-4); border-top:1px solid var(--line); }
.footer .fnav a { font-size:14px; color:var(--dim); text-decoration:none; }
.footer .fnav a:hover { color:var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* Heading + badge on one line, for pages whose <h1> already carries the name
   (About). Pages whose heading does not carry it use .byline instead. */
.h1row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.h1row h1 { margin-bottom:0; }

/* --- Spacing utilities -----------------------------------------------------
   These exist so no page needs an inline style= attribute. That keeps the
   Content-Security-Policy at `style-src 'self'` with no 'unsafe-inline', which
   is worth more than the handful of characters the inline version saved. */
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-5 { margin-bottom: var(--s-5); }
.ink  { color: var(--ink); }
