/* One AI Skill hub: free guides. Flat, calm, phone first. Brand: cream, ink, one yellow accent word,
   red only for "missing" / SKIP / MYTH. Fredoka for type, JetBrains Mono for chips and prompts. */

:root {
  --cream: #F4ECDE;
  --paper: #FFFBF3;
  --ink: #25272D;
  --ink-2: #4A4C55;
  --line: rgba(37, 39, 45, 0.14);
  --yellow: #F5B927;
  --yellow-soft: #FCE7B0;
  --red: #E2483D;
  --red-soft: #FBE1DE;
  --grey: #9C9486;
  --radius: 22px;
  --sans: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }

/* ---------- top bar ---------- */
/* .top shares an element with .wrap; set only top/bottom padding so .wrap keeps its 18px side gutters
   (the old "padding: 16px 0 6px" zeroed them, pushing "All guides" flush against the screen edge at 390 px). */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding-top: 16px; padding-bottom: 6px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); }
.toplink { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); white-space: nowrap; max-width: 100%; flex: 0 0 auto; }
.toplink:hover { background: var(--yellow-soft); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); white-space: nowrap; }
.chip--ink { background: var(--ink); color: var(--cream); }
.chip--yellow { background: var(--yellow); }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; }
h1 { font-weight: 700; font-size: clamp(34px, 9.2vw, 50px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 14px; }
.hl { background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 92%, transparent 92%); padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; max-width: 34em; }
.hero-art { margin: 22px auto 4px; display: flex; justify-content: center; }
.hero-art img { max-height: 260px; width: auto; }

/* ---------- sections ---------- */
main { padding-bottom: 8px; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink); padding: 22px 20px 20px; margin: 22px 0; }
.card > :last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
h2 { font-weight: 700; font-size: 25px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { font-weight: 600; }
q { quotes: "\201C" "\201D"; }
.quote { border-left: 4px solid var(--yellow); padding: 2px 0 2px 14px; margin: 10px 0 14px; color: var(--ink); }
.quote cite { display: block; font-style: normal; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* numbered recipe rows */
.steps { list-style: none; padding: 0; margin: 4px 0 12px; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 14px 50px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); font-weight: 700; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.steps > li > b:first-child { display: block; font-size: 19px; }

/* checklists */
.check { list-style: none; padding: 0; margin: 4px 0 12px; }
.check > li { position: relative; padding-left: 34px; margin: 0 0 10px; }
.check > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }

/* prompt boxes: tap once to select the whole prompt (no script needed) */
.prompt-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 6px; font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.prompt-label span:first-child { min-width: 0; }
.prompt-label span:last-child { font-weight: 500; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
.prompt { background: var(--ink); color: #F8F2E7; font-family: var(--mono); font-weight: 500; font-size: 14.5px; line-height: 1.6; border-radius: 16px; padding: 16px 16px; margin: 0 0 14px; white-space: pre-wrap; -webkit-user-select: all; user-select: all; cursor: text; }
.prompt .slot { color: var(--yellow); }

/* key/value rows */
.kv { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 12px; }
.kv > div { border-top: 1.5px solid var(--line); padding-top: 9px; }
.kv dt, .kv .k { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 2px; }
.kv dd { margin: 0; }
dl.kv { margin-top: 6px; }

/* verdict cards (AI Drop) */
.launch { position: relative; }
.launch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.launch-head h3 { margin-top: 4px; }
.stamp { width: 112px; flex: 0 0 auto; transform: rotate(-6deg); margin: -6px -4px 0 0; }
.rule { list-style: none; padding: 0; margin: 4px 0 4px; }
.rule li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; margin: 0 0 12px; }
.rule img { width: 88px; }

/* verdict box (Myth or Fact) */
.verdict { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.verdict img { width: 96px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 14px; border-radius: 14px; border: 1.5px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; background: var(--paper); }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1.5px solid var(--line); }
th { font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); background: #FAF3E6; }
tr:last-child td { border-bottom: 0; }
.blank td { height: 44px; }

/* product cards (fact-check) */
.product { border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 16px; }
.product:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }

/* notes */
.note { background: var(--yellow-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.note > :last-child { margin-bottom: 0; }
.note--red { background: var(--red-soft); }

/* sources */
.sources { font-size: 15px; padding-left: 20px; }
.sources li { margin-bottom: 8px; }
.sources .meta { color: var(--ink-2); }

/* ---------- hub ---------- */
.hub-hero { text-align: left; padding-top: 22px; }
.leo { width: 116px; height: 116px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); margin: 0 0 18px; }
.guides { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 16px; }
.guide { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: center; text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink); padding: 16px 14px 16px 18px; transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
.guide:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.guide:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.guide .chips { margin-bottom: 8px; gap: 6px; }
.guide .chip { font-size: 10.5px; padding: 6px 8px; }
.guide h2 { font-size: 21px; margin: 0 0 4px; line-height: 1.2; }
.guide p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin: 0 0 8px; }
.guide .kw { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; }
.guide .kw b { background: var(--yellow); padding: 1px 6px; border-radius: 6px; }
.guide .thumb { width: 92px; height: 92px; display: grid; place-items: center; }
.next-guides { margin: 2px 4px 0; }
.guide .thumb img { max-width: 92px; max-height: 92px; width: auto; height: auto; }
@media (prefers-reduced-motion: reduce) { .guide { transition: none; } .guide:hover, .guide:active { transform: none; } }

/* ---------- footer ---------- */
.foot { margin-top: 34px; padding-top: 0; padding-bottom: 40px; font-size: 14.5px; color: var(--ink-2); }
.foot::before { content: ""; display: block; border-top: 2px solid var(--ink); margin-bottom: 18px; }
.foot p { margin: 0 0 8px; }
.foot .brand { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.foot .brand img { width: 30px; height: 30px; }

@media (min-width: 560px) {
  .kv.two { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .card { padding: 26px 26px 24px; }
  .guide { grid-template-columns: 1fr 120px; padding: 18px 18px 18px 22px; }
  .guide .thumb { width: 120px; height: 110px; }
  .guide .thumb img { max-width: 120px; max-height: 110px; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .top .toplink, .hero-art, .guide .thumb, .no-print { display: none !important; }
  .card, .guide { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .prompt { background: #fff; color: #000; border: 1px solid #999; }
  .prompt .slot { color: #000; font-weight: 700; }
  a { text-decoration: none; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* 404 page: the "All guides" pill sits inside a <p>; inline-block keeps its padding and border inside the line box. */
p > .toplink { display: inline-block; }
