/* ============================================================================
   guide.css — long-form guides on the Aperture system.
   ----------------------------------------------------------------------------
   Two things live here that the shared sheet has no reason to carry:

   1. Illustration slots (.ill) — a frame that looks deliberate whether or not
      the artwork has landed yet. See bloks/illustration.html.
   2. The countdown spine (.spine / .phase) — a hackathon runbook IS a clock,
      so the structure is time, not a list. Every marker on the page is a real
      offset from T-0, the moment hacking starts.

   Load AFTER clusterhack.css. Prefixes: .ill- .spine- .phase- .guide-
   ========================================================================== */

/* ---- illustration slots ------------------------------------------------ */
.ill{margin:0 0 18px;width:100%}
.ill-img,.ill-empty{width:100%;aspect-ratio:var(--ill-ratio,16 / 9);border-radius:var(--hk-radius);
  border:1px solid var(--hk-line);display:block}
.ill-img{object-fit:cover;background:var(--hk-surface-2)}
/* An empty slot keeps its proportions but not its full size: a page still
   waiting on artwork should read as reserved, not as half a page of nothing.
   The real image takes the full width, so the shift happens at deploy time. */
.ill-empty{background:
  repeating-linear-gradient(135deg,transparent 0 9px,rgba(147,162,190,.045) 9px 10px),
  var(--hk-bg-2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  width:auto;height:200px;max-width:100%;margin:0 auto}
.ill-mark{font-size:20px;color:var(--hk-faint);line-height:1}
.ill-slot{font-family:var(--hk-mono);font-size:11.5px;letter-spacing:.06em;color:var(--hk-faint)}
.ill-cap{font-family:var(--hk-mono);font-size:12px;color:var(--hk-dim);margin-top:8px;line-height:1.6}

/* ---- page frame -------------------------------------------------------- */
.guide-wrap{max-width:1000px;margin:0 auto;padding:0 24px}
.guide-hero{padding:56px 0 8px}
.guide-hero .hk-sub{max-width:60ch}
.guide-sec{padding:52px 0 0;scroll-margin-top:72px}
.guide-sec-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;
  border-bottom:1px solid var(--hk-line);padding-bottom:12px;margin-bottom:26px}
.guide-sec-head h2{font-family:var(--hk-mono);font-size:15px;font-weight:600;margin:0;color:var(--hk-ink)}
.guide-sec-head .note{font-family:var(--hk-mono);font-size:12.5px;color:var(--hk-dim);margin-left:auto}
.guide-lead{font-size:17px;color:var(--hk-muted);line-height:1.7;max-width:64ch;margin:0 0 24px}
.guide-body p{color:var(--hk-muted);line-height:1.75;margin:0 0 14px}
.guide-body p b,.guide-body strong{color:var(--hk-ink);font-weight:600}
.guide-body ul{margin:0 0 16px;padding-left:20px;color:var(--hk-muted);line-height:1.75}
.guide-body li{margin-bottom:7px}
.guide-body li::marker{color:var(--hk-faint)}
.guide-body h3{font-family:var(--hk-sans);font-size:18px;font-weight:700;letter-spacing:-.01em;
  color:var(--hk-ink);margin:26px 0 10px}

/* ---- the spine: the page's argument and its table of contents ---------- */
.spine{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;margin:30px 0 6px;
  border:1px solid var(--hk-line);border-radius:var(--hk-radius);overflow:hidden;background:var(--hk-surface)}
.spine a{display:block;padding:13px 12px;border-right:1px solid var(--hk-line);
  transition:background .16s var(--hk-ease),color .16s var(--hk-ease)}
.spine a:last-child{border-right:0}
.spine a:hover,.spine a:focus-visible{background:var(--hk-surface-2)}
.spine .t{display:block;font-family:var(--hk-mono);font-size:12px;color:var(--hk-amber);letter-spacing:.02em}
.spine .n{display:block;font-family:var(--hk-sans);font-size:13.5px;font-weight:600;color:var(--hk-ink);margin-top:3px}
.spine-note{font-family:var(--hk-mono);font-size:12px;color:var(--hk-dim);margin:0 0 8px}

/* ---- one phase of the runbook ------------------------------------------ */
.phase{padding:44px 0 0;scroll-margin-top:72px}
.phase + .phase{border-top:1px solid var(--hk-line-2)}
.phase-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:8px}
.phase-t{font-family:var(--hk-mono);font-size:13px;color:var(--hk-amber);border:1px solid rgba(255,138,61,.28);
  background:var(--hk-amber-wash);border-radius:7px;padding:3px 9px;letter-spacing:.02em;white-space:nowrap}
.phase-head h3{font-family:var(--hk-sans);font-size:clamp(21px,2.6vw,28px);font-weight:700;
  letter-spacing:-.02em;color:var(--hk-ink);margin:0}
.phase-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:start;margin-top:20px}

/* "on clusterhack" — the exact screen that does the thing just described. */
.on-ch{background:var(--hk-surface);border:1px solid var(--hk-line);border-radius:var(--hk-radius);
  overflow:hidden;position:sticky;top:76px}
.on-ch-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--hk-surface-2);
  border-bottom:1px solid var(--hk-line);font-family:var(--hk-mono);font-size:11.5px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--hk-muted)}
.on-ch-bar .p{color:var(--hk-amber);text-transform:none;letter-spacing:0}
.on-ch ul{list-style:none;margin:0;padding:12px 14px}
.on-ch li{font-family:var(--hk-mono);font-size:12.5px;line-height:1.6;color:var(--hk-muted);
  padding:8px 0;border-bottom:1px dashed var(--hk-line-2)}
.on-ch li:last-child{border-bottom:0}
.on-ch code{font-family:var(--hk-mono);font-size:12.5px;color:var(--hk-cyan);display:block;margin-bottom:3px}
.on-ch a code{color:var(--hk-cyan)}
.on-ch a:hover code{color:var(--hk-amber)}

/* ---- what each part is for --------------------------------------------- */
.map-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.map-card{background:var(--hk-surface);border:1px solid var(--hk-line);border-radius:var(--hk-radius);
  padding:17px;transition:border-color .16s var(--hk-ease),transform .16s var(--hk-ease)}
.map-card:hover{border-color:var(--hk-faint);transform:translateY(-2px)}
.map-card .who{font-family:var(--hk-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--hk-dim);display:block;margin-bottom:8px}
.map-card h4{font-family:var(--hk-sans);font-size:16.5px;font-weight:700;letter-spacing:-.01em;
  color:var(--hk-ink);margin:0 0 6px}
.map-card p{font-size:14px;color:var(--hk-muted);line-height:1.6;margin:0 0 10px}
.map-card .go{font-family:var(--hk-mono);font-size:12px;color:var(--hk-cyan)}
.map-card:hover .go{color:var(--hk-amber)}

/* ---- what not to do ----------------------------------------------------- */
.dont{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.dont-item{border:1px solid var(--hk-line);border-left:2px solid var(--hk-red);border-radius:var(--hk-radius-sm);
  background:var(--hk-surface);padding:15px 17px}
.dont-item h4{font-family:var(--hk-sans);font-size:15.5px;font-weight:700;color:var(--hk-ink);margin:0 0 6px}
.dont-item p{font-size:14px;color:var(--hk-muted);line-height:1.65;margin:0}

/* ---- closing call ------------------------------------------------------- */
.guide-end{margin:56px 0 20px;border:1px solid var(--hk-line);border-radius:var(--hk-radius-lg);
  background:linear-gradient(120deg,var(--hk-surface),var(--hk-bg-2));padding:34px;text-align:center}
.guide-end h2{font-family:var(--hk-sans);font-size:clamp(22px,3vw,30px);font-weight:700;
  letter-spacing:-.02em;color:var(--hk-ink);margin:0 0 10px}
.guide-end p{color:var(--hk-muted);max-width:50ch;margin:0 auto 20px;line-height:1.7}
.guide-end .hk-cta-row{justify-content:center}

@media(max-width:900px){
  .phase-grid{grid-template-columns:1fr;gap:22px}
  .on-ch{position:static}
  .spine{grid-template-columns:repeat(4,minmax(0,1fr))}
  .spine a:nth-child(4){border-right:0}
  .spine a:nth-child(-n+4){border-bottom:1px solid var(--hk-line)}
  .map-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .spine{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spine a{border-right:1px solid var(--hk-line);border-bottom:1px solid var(--hk-line)}
  .spine a:nth-child(2n){border-right:0}
  .spine a:nth-last-child(-n+2){border-bottom:0}
  .map-grid,.dont{grid-template-columns:1fr}
  .guide-end{padding:26px 20px}
}
@media(prefers-reduced-motion:reduce){.map-card{transition:none}}
