/* ==========================================================================
   blip.technology
   ALL design tokens live in this :root block. Re-skinning the site means
   editing this block (and the @font-face below), nothing else.
   Values from the redesign-2026 direction, which Fred has NOT approved yet.
   ========================================================================== */
:root {
  /* colors (dark only) */
  --bg: #0b0c0d;
  --panel: #111314;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecef;
  --text-soft: #c3cbd1;
  --muted: #98a2aa;
  --accent: #7fd9b6;
  --frame-bg: #000;
  --btn-hover: #fff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --sel-bg: rgba(127, 217, 182, 0.28);
  --sel-text: #fff;
  --code-bg: #0b0c0d;

  /* type */
  --font-display: 'Kanit', ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --body-size: 1.0625rem;
  --body-leading: 1.6;
  --h1-size: clamp(3rem, 8vw, 4.75rem);
  --h1-leading: 1.02;
  --h1-tracking: -0.01em;
  --lead-size: clamp(1.25rem, 2.6vw, 1.625rem);
  --lead-leading: 1.4;
  --h3-size: 1.5rem;
  --h3-leading: 1.2;
  --eyebrow-size: 0.8125rem;
  --eyebrow-tracking: 0.14em;
  --note-size: 0.875rem;

  /* layout */
  --container: min(1080px, 100% - 3rem);
  --gap: 1.5rem;
  --section-pad: 3rem 0;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-focus: 4px;
  --logo-h: 44px;
  --tap: 44px;

  /* motion */
  --t: 0.15s;
}

@media (max-width: 640px) {
  :root {
    --body-size: 1rem;
    --body-leading: 1.5;
    --h1-size: 2.5rem;
    --lead-size: 1.1875rem;
    --lead-leading: 1.35;
    --h3-size: 1.25rem;
    --h3-leading: 1.15;
    --note-size: 0.8125rem;
    --container: calc(100% - 2.5rem);
    --gap: 0.625rem;
    --section-pad: 1.5rem 0;
    --radius-card: 10px;
    --radius-btn: 999px;
    --logo-h: 32px;
  }
}

/* Kanit 500, latin subset, SIL OFL (see /fonts/OFL.txt) */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/kanit-500.woff2') format('woff2');
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: var(--sel-bg); color: var(--sel-text); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}
.wrap { width: var(--container); margin-inline: auto; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-btn);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- header ---------- */
.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.5rem 0;
}
.logo { display: inline-flex; align-items: center; min-height: var(--tap); flex: 0 0 auto; }
.logo img { display: block; height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t);
}
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 5.5rem 0 4.5rem; }
.hero-in { max-width: 800px; }
.eyebrow, .sec > .wrap > h2 {
  margin: 0 0 1.75rem;
  font-size: var(--eyebrow-size);
  font-weight: 500;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--h1-size);
  line-height: var(--h1-leading);
  letter-spacing: var(--h1-tracking);
}
.lead {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: var(--lead-size);
  line-height: var(--lead-leading);
  color: var(--text);
}
.sub { margin: 0.875rem 0 0; max-width: 62ch; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--ghost-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t);
}
.link-quiet:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- sections ---------- */
.sec { padding: var(--section-pad); border-top: 1px solid var(--line); }
.sec > .wrap > p { max-width: 70ch; color: var(--text-soft); }
.sec > .wrap > p:first-of-type { margin-top: 0; }
.ul-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--t);
}
.ul-link:hover { color: var(--accent); }

/* install */
.code {
  position: relative;
  margin: 0 0 1.25rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.code pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code .cm { color: var(--muted); }
.copy {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  min-height: var(--tap);
  padding: 0 0.9rem;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.js .copy { display: inline-flex; align-items: center; }
.js .code pre { padding-right: 6rem; }
.copy:hover { border-color: var(--text); }
.copy.done { color: var(--accent); border-color: var(--accent); }
.lbl { margin: 1.5rem 0 0.25rem; font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--muted); }
.reqs { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--text-soft); }
.reqs li { margin: 0.2rem 0; }
.note { font-size: var(--note-size); color: var(--muted); max-width: 70ch; margin: 0.75rem 0 0; }
.sec > .wrap > p.note { color: var(--muted); }

/* showcase and demo scenes */
.hero-shot { margin-top: 3rem; }
.shot { margin: 0; }
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--gap); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.frame {
  background: var(--frame-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 0.75rem; font-size: var(--note-size); color: var(--muted); max-width: 80ch; }
.shot figcaption strong { color: var(--text-soft); font-weight: 500; }

/* Mac requirement callout */
.callout {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.5rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  max-width: 70ch;
}
.callout p { margin: 0; color: var(--text-soft); }
.sec > .wrap > .callout p { max-width: none; }
.callout .callout-t { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; color: var(--text); }

/* feature cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.tag { font-size: var(--eyebrow-size); color: var(--accent); }
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}
.card p { margin: 0; font-size: 1rem; color: var(--text-soft); }
.card .short { display: none; }

/* stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stats b { color: var(--text); font-weight: 500; }

/* proof */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.quotes > li { display: flex; }
.quotes .quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.quotes .quote blockquote { font-size: 1rem; line-height: 1.55; color: var(--text); }
.quote { margin: 0; max-width: 62ch; }
.quote blockquote { margin: 0; font-size: var(--body-size); color: var(--text); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 0.75rem; font-size: var(--note-size); color: var(--muted); }
.quote figcaption a { color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.quote figcaption a:hover { color: var(--text); }

/* contributors */
.count { margin: 1.25rem 0 1.5rem; color: var(--text-soft); }
.count b { color: var(--text); font-weight: 500; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.person {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.125rem 1.25rem 1.125rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.who { display: flex; align-items: center; gap: 0.75rem; }
.av { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--frame-bg); border: 1px solid var(--line); }
.av-none { display: inline-block; }
.person h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.2; }
.person .handle { margin: 0.1rem 0 0; font-size: var(--note-size); color: var(--muted); }
.person .did { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text-soft); flex: 1 1 auto; }
.person .did a, .note a:not(.ul-link) { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.person .meta { display: flex; flex-wrap: wrap; gap: 0.125rem 1rem; margin: 0; font-size: var(--note-size); }
.person .meta a { color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.person .meta a:hover, .person .did a:hover { color: var(--accent); }

/* back link row */
.back { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0; }
.back span { color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 4rem; }
.foot-link {
  display: inline-block;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--t);
}
.foot-link:hover { color: var(--accent); }
.foot p { margin: 0.75rem 0 0; font-size: var(--note-size); color: var(--muted); }
.foot p a { color: var(--muted); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.foot p a:hover { color: var(--text); }

/* 404 */
.nf { padding: 4rem 0 5rem; }

/* ---------- breakpoints ---------- */
@media (max-width: 1000px) {
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 3.5rem 0 3rem; }
  .grid { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bar-in { padding: 0.375rem 0; }
  .nav { gap: 0; }
  .nav a { padding: 0 0.5rem; font-size: 0.875rem; }
  .hero { padding: 1rem 0 1.75rem; }
  .eyebrow, .sec > .wrap > h2 { margin-bottom: 0.875rem; }
  .links { margin-top: 1.25rem; gap: 0.5rem; }
  .card { padding: 1rem 1.125rem 1.125rem; gap: 0.375rem; }
  .card .long { display: none; }
  .card .short { display: block; }
  .card p { font-size: 0.9375rem; }
  .stats { font-size: 0.8125rem; }
  .hero-shot { margin-top: 1.25rem; }
  .scenes { gap: 1.5rem; }
  /* quotes: one swipe row */
  .quotes {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    scroll-padding-inline: 1.25rem;
    overscroll-behavior-x: contain;
  }
  .quotes > li { flex: 0 0 84%; scroll-snap-align: start; }
  .quotes .quote { padding: 1rem 1.125rem; }
  .quotes:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .people { grid-template-columns: 1fr; }
  .person { padding: 0.875rem 1rem; gap: 0.5rem; }
  .av { width: 40px; height: 40px; }
  .person .did { font-size: 0.875rem; }
  .person .meta a, .note a, .did a { padding-block: 0.875rem; margin-block: -0.875rem; }
  .person .meta { gap: 0 0.75rem; }
  .quote figcaption a, .back a, .foot p a, .foot-link { padding-block: 0.875rem; margin-block: -0.875rem; }
  .foot { padding: 1.5rem 0 2rem; }
  .code pre { padding: 0.875rem 1rem; font-size: 0.8125rem; }
  .js .code pre { padding-right: 1rem; padding-bottom: 3.5rem; }
  .copy { top: auto; bottom: 0.5rem; }
  .nf { padding: 1.5rem 0 3rem; }
}
@media (max-width: 360px) {
  .nav a { padding: 0 0.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
