/* ============================================================
   Adriel's Lab — hand-written CSS, no build step, no framework.
   Bones: apple.com 1998. Surfaces: apple.com 2001. One Aqua wink.
   ============================================================ */
/* Adriel's actual handwriting, traced from marker drill sheets.
   Served as a static file (never base64 in this sheet — we learned). */
@font-face {
  font-family: 'Adriel Hand';
  src: url('/fonts/AdrielHand-BoldMarker.woff2') format('woff2'),
       url('/fonts/AdrielHand-BoldMarker.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0; background: #fff; color: #111;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px; line-height: 1.65;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; color: #111; }
a { color: #0000ee; }
a:visited { color: #551a8b; }              /* the classic trail of purple */
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #0000ee; outline-offset: 2px; }
hr { border: 0; border-top: 1px solid #ccc; margin: 28px 0; }

/* ---- tab bar: the one playful (Aqua-ish) element ---- */
.tabs {
  display: flex; justify-content: center; gap: 2px;
  padding: 10px 8px 0; border-bottom: 2px solid #8a8a8a; background: #f3f3f3;
}
.tab {
  display: block; padding: 6px 16px 5px; font-size: 12.5px;
  color: #222 !important; text-decoration: none;
  border: 1px solid #9a9a9a; border-bottom: none; border-radius: 7px 7px 0 0;
  background: linear-gradient(#fdfdfd, #e8e8e8 45%, #d4d4d4);
  box-shadow: inset 0 1px 0 #fff; white-space: nowrap;
}
.tab:hover { background: linear-gradient(#fff, #f0f0f0 45%, #e0e0e0); text-decoration: none; }
.tab.on {
  background: #fff; border-color: #8a8a8a; position: relative; top: 2px;
  padding-bottom: 7px; font-weight: bold;
}
@media (max-width: 560px) { .tabs { flex-wrap: wrap; } .tab { flex: 1 1 auto; text-align: center; } }

/* ---- masthead / hero ----
   Full-bleed photo, Adriel's own (Esplanade Riel, Winnipeg). Dark scrim
   keeps the hand-lettered title legible without hiding the shot. */
.hero {
  text-align: center; padding: 76px 0 60px;
  background:
    linear-gradient(rgba(10, 10, 12, 0.58), rgba(10, 10, 12, 0.62)),
    url('images/hero-bridge.jpg') center 55% / cover no-repeat;
  color: #fff;
}
.hero h1 { font-family: 'Adriel Hand', Georgia, serif; font-size: 46px; margin: 0 0 6px; letter-spacing: 0; color: #fff; }
.slogan { font-family: 'Adriel Hand', Georgia, serif; font-size: 22px; color: #e8e8e8; margin: 0 0 10px; }
.hero-cred {
  font-family: 'Courier New', monospace; font-size: 11px; color: #b9b9b9;
  letter-spacing: 0.02em; margin: 0;
}
@media (max-width: 560px) { .hero { padding: 56px 0 40px; background-position: center 60%; } }

/* ---- honest placeholder slots for the ink drawings ---- */
.art-slot {
  border: 1px dashed #aaa; color: #888;
  font-family: 'Courier New', monospace; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin: 18px auto;
}
.art-slot.glyph { width: 72px; height: 72px; margin: 0 auto 10px; }
.art-slot.banner { width: 100%; max-width: 648px; height: 120px; }

/* ---- dateline + ticker ---- */
.dateline {
  text-align: right; font-size: 11px; color: #999;
  font-family: 'Courier New', monospace; margin: 4px 0;
}
.ticker { display: flex; border: 1px solid #bbb; font-size: 12px; margin: 6px 0 24px; }
.ticker .label {
  background: linear-gradient(#eee, #d5d5d5); border-right: 1px solid #bbb;
  padding: 5px 12px; font-weight: bold; white-space: nowrap;
}
.ticker .item { padding: 5px 12px; }

/* ---- stat band: exact numbers only ---- */
.stats { text-align: center; font-family: 'Courier New', monospace; font-size: 13px; color: #333; margin: 22px 0; }

/* ---- category cards (the 2001 promo row) ---- */
.cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.card { flex: 1 1 300px; border: 1px solid #ccc; padding: 16px 18px 14px; text-align: center; }
.card .eyebrow {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #888; font-family: Verdana, sans-serif;
}
.card h2 { font-size: 24px; margin: 2px 0 8px; }
.card p { font-size: 13px; margin: 0 0 10px; text-align: left; }
.card .spec { font-family: 'Courier New', monospace; font-size: 11.5px; color: #555; margin-bottom: 10px; }

/* ---- directory pages ---- */
.crumb { font-size: 12px; margin: 18px 0 0; }
.dir { list-style: none; padding: 0; margin: 10px 0; }
.dir li { padding: 13px 0; border-bottom: 1px solid #e2e2e2; }
.dir li:last-child { border-bottom: none; }
.dir b { font-size: 15px; }
.dir .desc { display: block; font-size: 13px; color: #333; }
.dir .spec { font-family: 'Courier New', monospace; font-size: 11.5px; color: #777; }

/* ---- roadmap ---- */
.construction { border: 1px solid #d9c76a; background: #fdf7dd; padding: 10px 14px; font-size: 13px; margin: 18px 0; }
.phases { padding-left: 0; list-style: none; counter-reset: ph; margin: 18px 0; }
.phases li { counter-increment: ph; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid #e2e2e2; }
.phases li:last-child { border-bottom: none; }
.phases li::before {
  content: counter(ph); position: absolute; left: 4px; top: 12px;
  width: 24px; height: 24px; border: 1px solid #999; border-radius: 50%;
  font-family: Georgia, serif; text-align: center; line-height: 24px; font-size: 13px;
}

/* ---- ink draws itself (zero JS; the one animation) ---- */
@media (prefers-reduced-motion: no-preference) {
  .ink path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---- footer ---- */
footer { margin: 40px 0 30px; text-align: center; font-size: 11.5px; color: #777; }
footer .badge {
  display: inline-block; border: 1px solid #bbb; padding: 3px 10px;
  font-family: 'Courier New', monospace; margin-bottom: 10px;
}
.icon-row { display: flex; justify-content: center; gap: 14px; margin: 10px 0 12px; font-size: 11.5px; }
.icon-row a { color: #777; display: inline-flex; }
.icon-row a:hover { color: #111; }
.icon-row svg { width: 21px; height: 21px; }

/* ---- b&w photo grid (creative) ---- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 20px 0; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; display: block; filter: grayscale(100%); }
.photos figcaption { font-family: 'Courier New', monospace; font-size: 11px; color: #777; margin-top: 3px; }

/* ---- blog: path bar, provenance, post typography ---- */
.pathbar {
  font-family: monospace; font-size: 12px; color: #666; background: #f5f5f5;
  border: 1px solid #ddd; padding: 7px 10px; margin: 16px 0 0;
  overflow-x: auto; white-space: nowrap;
}
.pathbar .sep { color: #aaa; padding: 0 2px; }
.pathbar .here { color: #111; }
.prov {
  display: inline-block; font-family: monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 7px; border: 1px solid; border-radius: 2px; vertical-align: middle;
}
.prov.hand { color: #2d6a2d; border-color: #9ac09a; background: #f0f7f0; }
.prov.lab  { color: #7a4fa3; border-color: #c3a8d8; background: #f7f2fb; }
.prov.log  { color: #5f5f5f; border-color: #bbb;    background: #f2f2f2; }
.postmeta { font-family: monospace; font-size: 11.5px; color: #777; margin: 8px 0 24px; }
.post p { margin: 0 0 15px; }
.post h2 { font-size: 20px; margin: 28px 0 8px; }
.lede { font-size: 16px; color: #333; border-left: 3px solid #ccc; padding-left: 13px; margin: 0 0 22px; }
.postlist { list-style: none; padding: 0; margin: 14px 0; }
.postlist li { padding: 15px 0; border-bottom: 1px solid #e2e2e2; }
.postlist li:last-child { border-bottom: none; }
.postlist .t { font-size: 16px; }
.postlist .d { display: block; font-size: 13px; color: #333; margin-top: 3px; }
.postlist .m { display: block; font-family: monospace; font-size: 11px; color: #888; margin-top: 5px; }
.postnav { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; margin: 32px 0 0; padding-top: 14px; border-top: 1px solid #ddd; }

/* ---- provenance containers ---- */
.ai-drafted { background: #f7f2fb; border-left: 3px solid #a97fd0; padding: 12px 16px; margin: 18px 0; }
.ai-drafted::before {
  content: "AI-drafted"; display: block; font-family: monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em; color: #7a4fa3; margin-bottom: 6px;
}
.chat { background: #f1f4f9; border: 1px solid #d4dce8; border-radius: 10px; padding: 11px 14px; margin: 14px 0; font-size: 13.5px; }
.chat::before {
  content: "AI"; display: inline-block; font-family: monospace; font-size: 9.5px;
  color: #5a7099; border: 1px solid #b9c6da; border-radius: 50%;
  width: 19px; height: 19px; line-height: 18px; text-align: center;
  margin-right: 9px; background: #fff;
}

/* ---- provenance key (top of blog index) ---- */
.key { border: 1px solid #ddd; background: #fafafa; padding: 12px 16px; margin: 18px 0 26px; }
.key .kh {
  font-family: 'Courier New', monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; color: #888; margin: 0 0 9px;
}
.key ul { list-style: none; padding: 0; margin: 0; }
.key li { padding: 4px 0; font-size: 12.5px; color: #444; }
.key li .prov { margin-right: 8px; min-width: 54px; text-align: center; }

/* ---- text-defined workflow diagrams (pre-rendered SVG, zero JS) ---- */
.diagram { margin: 26px 0; text-align: center; }
.diagram svg { width: 100%; max-width: 440px; height: auto; }
.diagram figcaption { font-family: 'Courier New', monospace; font-size: 11px; color: #888; margin-top: 8px; }
/* ink-drawn feel: wobbled paths, round caps, no perfect right angles.
   --ink-face is Adriel's own handwriting font, as promised. */
.diagram { --ink: #3d3d3d; --ink-face: 'Adriel Hand', 'Courier New', monospace; }
.diagram .bx { fill: #fbfbfa; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.diagram .bx-hi { fill: #f0f7f0; stroke: #3f6b3f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.diagram .lbl { font-family: var(--ink-face); font-size: 12px; fill: #111; }
.diagram .sub { font-family: var(--ink-face); font-size: 10px; fill: #6b6b6b; }
.diagram .note { font-family: var(--ink-face); font-size: 10px; fill: #949494; }
.diagram .arw { stroke: var(--ink); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the handoff: hard boundary between his notes and machine-written ---- */
.handoff { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; }
.handoff::before, .handoff::after { content: ""; flex: 1; height: 1px; background: #cbb9de; }
.handoff span {
  font-family: 'Courier New', monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .09em; color: #7a4fa3; white-space: nowrap;
}
.byline {
  font-family: 'Courier New', monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .09em; color: #2d6a2d; margin: 0 0 14px;
}
.ai-section { background: #faf7fd; border-left: 3px solid #a97fd0; padding: 4px 18px 6px; margin: 16px 0 0; }
.ai-section h2 { font-size: 18px; margin: 20px 0 8px; }
.ai-section p { font-size: 13.5px; margin: 0 0 13px; }
.ai-section ul { font-size: 13.5px; padding-left: 20px; }
.ai-section li { margin: 0 0 7px; }

/* ---- reference sources (foot of a post) ---- */
.sources { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid #ddd; }
.sources h3 {
  font-family: 'Courier New', monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: #888; margin: 0 0 10px; font-weight: normal;
}
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 8px 0; font-size: 13px; border-bottom: 1px solid #eee; }
.sources li:last-child { border-bottom: none; }
.sources .why { display: block; font-size: 12px; color: #777; margin-top: 2px; }

/* ---- corpus / insight-page entries ---- */
.entries { margin: 18px 0; }
.entry { padding: 16px 0; border-bottom: 1px solid #e2e2e2; }
.entry:last-child { border-bottom: none; }
.entry .src {
  font-family: 'Courier New', monospace; font-size: 11px; color: #888;
  text-transform: uppercase; letter-spacing: .06em;
}
.entry h3 { font-size: 16px; margin: 3px 0 6px; }
.entry p { font-size: 13.5px; margin: 6px 0; }
.entry blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid #ccc; font-style: italic; color: #444; font-size: 13px; }
.entry .caution { font-size: 12px; color: #a15a00; }
.corpus-group {
  margin: 30px 0 6px; font-family: 'Courier New', monospace; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #888;
  border-top: 1px solid #ddd; padding-top: 14px;
}

/* ---- newspaper issue pages (Log posts) ----
   The paper marks its own confidence inline; the site should show that rather
   than flatten it, so [VERIFIED]/[VERIFY] survive the conversion as pills. */
.issue h2 { font-size: 19px; margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid #eee; }
.issue blockquote {
  margin: 14px 0; padding: 3px 0 3px 14px; border-left: 3px solid #c9c9c9;
  font-size: 14px; color: #333;
}
.issue blockquote .attrib {
  display: block; font-family: 'Courier New', monospace;
  font-size: 11px; color: #777; margin-top: 6px;
}
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0 18px; }
.ledger th, .ledger td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #e8e8e8; }
.ledger th {
  font-family: 'Courier New', monospace; font-size: 10.5px; color: #777;
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #ccc;
}
.ledger td:last-child { font-family: 'Courier New', monospace; text-align: right; }
.vtag {
  display: inline-block; font-family: 'Courier New', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px;
  border: 1px solid; border-radius: 2px; white-space: nowrap;
}
.vtag.ok   { color: #2d6a2d; border-color: #9ac09a; background: #f0f7f0; }
.vtag.warn { color: #8a6d1f; border-color: #d9c76a; background: #fdf7dd; }
/* "we did this arithmetic ourselves" is a different claim from "nobody checked this", so it
   gets its own neutral grey rather than sharing warn's amber. Matches the newspaper's
   .tag-napkin. Added 2026-09-01 when lab_publish.py started emitting the class. */
.vtag.napkin { color: #4a5568; border-color: #c3cad6; background: #eef1f6; }
.tracebox { border: 1px solid #9ac09a; background: #f0f7f0; padding: 12px 16px; margin: 20px 0 26px; font-size: 12.5px; }
.tracebox .th {
  display: block; font-family: 'Courier New', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .08em; color: #2d6a2d; margin-bottom: 6px;
}
.tracebox p { margin: 0 0 8px; }
.tracebox p:last-child { margin-bottom: 0; }
.contents { border: 1px solid #ddd; background: #fafafa; padding: 12px 16px 14px; margin: 0 0 24px; }
.contents .ch {
  display: block; font-family: 'Courier New', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .08em; color: #777; margin-bottom: 8px;
}
.contents ol { margin: 0; padding-left: 20px; }
.contents li { font-size: 13px; padding: 3px 0; }
.contents .cd { display: block; font-size: 11.5px; color: #777; }

/* ---- hero photo (home page) ---- */
.hero-shot { margin: 20px auto 4px; max-width: 430px; }
.hero-shot img { width: 100%; height: auto; display: block; border: 1px solid #bbb; }
.hero-shot figcaption {
  font-family: 'Courier New', monospace; font-size: 11px; color: #777;
  margin-top: 6px; text-align: center;
}
/* a name written by hand, not typeset */
.photos figcaption.hand {
  font-family: 'Adriel Hand', 'Courier New', monospace;
  font-size: 17px; color: #333; margin-top: 5px;
}
/* a single full-width frame -- deliberately NOT in .photos, whose
   grayscale filter would erase the whole point of an aurora. */
.shot { margin: 24px 0 6px; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid #ccc; }
.shot figcaption {
  font-family: 'Courier New', monospace; font-size: 11px; color: #777; margin-top: 6px;
}

/* the GIF sits at its native 480px -- stretching a 96-colour frame to full width
   would only advertise the dither. */
.shot.gif img { width: 480px; max-width: 100%; }
