/* tom.here.now design tokens — v1
   Source of truth for colour: ~/.claude/skills/_patterns/brand-colors.md
   Lyons International: red #BE0000, black, white.
   Never hardcode a colour in a page. If a value is missing here, add it here first. */

:root {
  /* brand */
  --brand:            #BE0000;
  --brand-bright:     #E01B1B;
  --brand-deep:       #8A0000;
  --brand-wash:       rgba(190, 0, 0, 0.10);
  --brand-line:       rgba(190, 0, 0, 0.35);

  /* neutral ramp — dark is the default */
  --surface-0:        #0A0A0B;   /* page */
  --surface-1:        #131315;   /* card */
  --surface-2:        #1B1B1F;   /* raised / hover */
  --border:           #26262B;
  --border-strong:    #35353C;
  --text:             #F2F2F3;
  --text-muted:       #9A9AA2;
  --text-faint:       #6B6B73;

  /* semantic — decks and comparison tables ONLY, where they mean yes / no */
  --yes:              #2E9E5B;
  --no:               #D1453B;

  /* type — system stack, no webfont, so pages load instantly and offline */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --fs-1: 0.75rem;     /* caption, tag, footer */
  --fs-2: 0.875rem;    /* small, card description */
  --fs-3: 1rem;        /* body */
  --fs-4: 1.125rem;    /* lead */
  --fs-5: 1.375rem;    /* h3 */
  --fs-6: 1.75rem;     /* h2 */
  --fs-7: clamp(2rem, 5vw, 2.75rem);  /* h1, display */

  --lh-tight: 1.15;
  --lh-snug:  1.4;
  --lh-body:  1.65;

  /* spacing — 4px base */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

  /* shape and motion */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --measure: 68ch;     /* readable line length for long-form */
  --page: 720px;       /* hub / guide container */
  --ease: 0.18s ease;
}

/* Light mode is defined but not the default. A page opts in with data-theme="light";
   the media query only applies when the page has not forced dark. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface-0: #FFFFFF;
    --surface-1: #F7F7F8;
    --surface-2: #EFEFF1;
    --border:    #E2E2E6;
    --border-strong: #CFCFD6;
    --text:      #131315;
    --text-muted:#5A5A63;
    --text-faint:#8A8A93;
    --brand-wash: rgba(190, 0, 0, 0.07);
    --brand-line: rgba(190, 0, 0, 0.28);
  }
}

:root[data-theme="light"] {
  --surface-0: #FFFFFF;
  --surface-1: #F7F7F8;
  --surface-2: #EFEFF1;
  --border:    #E2E2E6;
  --border-strong: #CFCFD6;
  --text:      #131315;
  --text-muted:#5A5A63;
  --text-faint:#8A8A93;
  --brand-wash: rgba(190, 0, 0, 0.07);
  --brand-line: rgba(190, 0, 0, 0.28);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-3);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-bright); }
img, svg, video { max-width: 100%; height: auto; }

/* ---- shared components ---- */
.th-hero {
  background: linear-gradient(135deg, var(--brand-deep) -40%, var(--surface-0) 55%, var(--surface-0) 100%);
  border-bottom: 3px solid var(--brand);
  padding: var(--sp-16) var(--sp-4) var(--sp-12);
  text-align: center;
}
.th-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-6);
}
.th-hero h1 {
  font-size: var(--fs-7);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}
.th-hero h1 span { color: var(--brand); }
.th-hero p {
  color: var(--text-muted);
  font-size: var(--fs-4);
  line-height: var(--lh-snug);
  max-width: 34em;
  margin: 0 auto;
}

.th-container { max-width: var(--page); margin: 0 auto; padding: var(--sp-12) var(--sp-4) var(--sp-16); }

.th-label {
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-1);
}
.th-desc { font-size: var(--fs-2); color: var(--text-faint); margin-bottom: var(--sp-4); }

.th-cards { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-12); }
.th-card {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.th-card:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-1px); }
.th-card-icon {
  flex: 0 0 auto; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-5);
  background: var(--brand-wash);
  border-radius: var(--r-sm);
}
.th-card-body { flex: 1; min-width: 0; }
.th-card-title {
  font-size: var(--fs-3); font-weight: 700; line-height: var(--lh-snug);
  margin-bottom: var(--sp-1);
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
}
.th-card-desc { font-size: var(--fs-2); color: var(--text-muted); line-height: var(--lh-snug); }
.th-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); border: 1px solid var(--brand-line);
  border-radius: var(--r-pill); padding: 2px 8px;
}

.th-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-12);
}
.th-panel--accent { border-left: 3px solid var(--brand); }
.th-panel ul, .th-panel ol { margin: 0; padding-left: 1.15em; }
.th-panel li { color: var(--text-muted); margin-bottom: var(--sp-3); }
.th-panel li:last-child { margin-bottom: 0; }
.th-panel li strong { color: var(--text); }

.th-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  font-size: var(--fs-2);
  color: var(--text-faint);
}
.th-footer a { color: var(--brand-bright); text-decoration: none; }
.th-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .th-hero { padding: var(--sp-12) var(--sp-4) var(--sp-8); }
  .th-card { padding: var(--sp-4); }
  .th-card-icon { width: 40px; height: 40px; font-size: var(--fs-4); }
}

/* ---- hero agenda pills ---- */
.th-agenda { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-6); }
.th-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-2); color: var(--text-muted);
}
.th-pill b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 0.65rem; font-weight: 700;
}

/* ---- next-call banner ---- */
.th-next {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--brand-wash); border: 1px solid var(--brand-line);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}
.th-next-icon { font-size: var(--fs-5); }
.th-next-body { flex: 1; min-width: 200px; }
.th-next-body strong { display: block; font-size: var(--fs-3); margin-bottom: 2px; }
.th-next-body span { font-size: var(--fs-2); color: var(--text-muted); }
.th-next a { color: var(--brand-bright); font-size: var(--fs-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.th-next a:hover { text-decoration: underline; }

/* ---- card meta (right-hand column: file type, size) ---- */
.th-card-meta {
  flex: 0 0 auto; text-align: right;
  font-size: var(--fs-1); color: var(--text-faint); line-height: 1.35;
}
@media (max-width: 480px) { .th-card-meta { display: none; } }
