/* KAST Next website: tokens and components from docs/design/kast-next-baseline-v1.12.html (approved 24 Oct 2026).
   Fonts are bundled locally (Geist and Geist Mono, SIL OFL 1.1, see fonts/OFL-Geist.txt). No external requests. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --font-sans: "Geist", "Geist Variable", ui-sans-serif, system-ui, sans-serif;     /* measured family (bundled locally) */
  --font-mono: "Geist Mono", "Geist Mono Variable", ui-monospace, "SF Mono", Menlo, monospace; /* measured */
  --surface: #fff;            /* measured --color-surface-primary */
  --surface-2: #fafaf7;       /* measured --color-surface-secondary */
  --surface-tint: #f5f5f0;    /* measured --color-surface-tinted */
  --text: #1a1a1a;            /* measured --color-text-primary */
  --text-muted: #6b6b6b;      /* measured --color-text-muted */
  --text-dim: #a8a8a8;        /* measured --color-text-dim (decorative only) */
  --heading: oklch(.141 .005 285.823); /* measured DOM heading colour (zinc-950) */
  --border: #ececea;          /* measured */
  --border-soft: #f1f1ee;     /* measured */
  --border-hover: #9b9b96;    /* measured */
  --orange: #c8743a;          /* measured --color-accent-orange */
  --orange-soft: #ecd6c1;     /* measured */
  --orange-deep: #a75d27;     /* measured */
  --error: #a32d2d;           /* measured */
  --cream: #f4ede1;           /* measured pastel-cream */
  --r-card: 24px;             /* measured rounded-[24px] */
  --r-sheet: 28px;            /* measured rounded-[28px] */
  --r-input: 14px;            /* measured rounded-[14px] */
  --r-pill: 999px;            /* measured rounded-full */
  --shadow-card: 0 1px 2px rgba(41,37,36,.04), 0 14px 34px -22px rgba(41,37,36,.28); /* measured */
  --ring: inset 0 0 0 1px var(--border-soft); /* measured pattern */
  --ease: cubic-bezier(.23,1,.32,1);          /* measured --ease-out-strong */
  --gutter: 20px;             /* PROPOSED phone gutter (live: 16 mobile / 32 desktop) */
}
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 15px/1.5 var(--font-sans); font-feature-settings: "cv11","ss01"; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* ===== shared components (PROPOSED baseline) ===== */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--gutter); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 15px/1 var(--font-sans); letter-spacing: .14em; color: var(--heading); }
.mk { width: 13px; height: 18px; }
.link { font: 500 14px/1 var(--font-sans); color: var(--text); text-decoration: none; padding: 10px 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 0; cursor: pointer; font: 500 15px/1 var(--font-sans); text-decoration: none; transition: transform .15s var(--ease), background-color .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .link:focus-visible, input:focus-visible, .pill:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card), var(--ring); padding: 20px; }
.eyebrow { margin: 0 0 6px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.fine { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.empty { display: grid; place-items: center; text-align: center; gap: 4px; min-height: 220px; padding: 28px 20px; border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--ring); }
.empty-h { margin: 0; font: 600 18px/1.25 var(--font-sans); letter-spacing: -.02em; color: var(--heading); }
.empty-s { margin: 0; font-size: 14px; color: var(--text-muted); }
.d-cards-empty { max-width: 520px; }
.kcard { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-card), var(--ring); }
.sample-note { margin: 8px 0 0; font: 400 12px/1.4 var(--font-mono); color: var(--orange-deep); min-height: 1.4em; }

/* website */
.w-hero { display: grid; gap: 32px; align-items: center; padding: 40px var(--gutter) 28px; }
.w-hero-copy, .home-card { min-width: 0; }
.w-hero h1 { margin: 0; font: 700 46px/.98 var(--font-sans); letter-spacing: -.045em; color: var(--heading); }
.w-hero p { margin: 18px 0 24px; font-size: 18px; line-height: 1.45; color: var(--text-muted); max-width: 30ch; }
.w-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-card { width: min(340px, 100%); justify-self: center; }
.home-card-unavailable { min-height: 260px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--ring); }
.home-card-unavailable h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.home-card .home-card-unavailable p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.home-card-visual { margin: 0; }
.home-card-visual > svg { display: block; width: 100%; height: auto; aspect-ratio: 53 / 86; box-shadow: var(--shadow-card), var(--ring); }
.home-card-visual figcaption { margin: 10px 0; }
.inspection-detail { padding: 14px 0 0; min-height: 108px; border-bottom: 1px solid var(--border-soft); }
.inspection-detail h3 { font-size: 19px; margin: 0 0 4px; }
.home-card .inspection-detail p, .home-card .inspection-total, .home-card .inspection-provenance { margin: 4px 0 12px; font-size: 13px; line-height: 1.5; max-width: none; }
.home-card .inspection-provenance { overflow-wrap: anywhere; color: var(--text-muted); font-size: 11px; }
.inspection-controls summary { padding: 12px 0; cursor: pointer; font-size: 14px; }
.inspection-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.inspection-button { display: flex; align-items: center; gap: 6px; padding: 8px; min-height: 44px; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; font-size: 12px; overflow-wrap: anywhere; cursor: pointer; }
.inspection-button svg { width: 8px; height: 8px; flex-shrink: 0; }
.inspection-button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--orange); background: var(--surface-tint); }
.inspection-button:focus-visible, .inspection-controls summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.w-card { padding: 8px var(--gutter) 28px; }
.w-card figure { margin: 0; max-width: 260px; margin-inline: auto; }
.w-card figcaption { margin-top: 12px; text-align: center; font: 400 12px/1.4 var(--font-mono); color: var(--text-muted); }
.w-foot { padding: 20px var(--gutter) 36px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; }
/* page heads, panels and references */
.t-head { padding: 28px var(--gutter) 6px; }
.t-head h1 { margin: 0; font: 700 34px/1.02 var(--font-sans); letter-spacing: -.04em; color: var(--heading); }
.t-head p { margin: 10px 0 0; color: var(--text-muted); font-size: 15px; }
.perceive-panel { padding: 4px var(--gutter) 8px; }
.perceive-panel p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.ref { font: 400 10px/1 var(--font-mono); color: var(--orange-deep); vertical-align: 2px; margin-left: 0; text-decoration: none; display: inline-block; min-width: 24px; min-height: 24px; text-align: center; line-height: 24px; }
.pc-btn { height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font: 500 13px/1 var(--font-sans); cursor: pointer; color: var(--text); }
.pc-btn[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }
.t-refs { margin: 6px var(--gutter) 0; }
.t-refs summary { cursor: pointer; font: 500 13px/1 var(--font-sans); padding: 12px 0; }
.t-refs ol { margin: 0; padding: 0 0 0 18px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }



/* ===== site layout (desktop up to 1280) ===== */
main { display: block; max-width: 1280px; margin: 0 auto; outline: none; }
.topbar { padding: 0 max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }
.w-foot { max-width: 1280px; margin: 0 auto; }
.w-foot .fine { margin: 0; max-width: 72ch; }
.w-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal { max-width: 72ch; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.legal h2 { font-size: 17px; font-weight: 600; margin: 28px 0 6px; }
.legal p { margin: 0 0 10px; line-height: 1.65; }
.empty-s, .eyebrow { color: var(--text-muted); }
.pc-btn:focus-visible, .t-refs summary:focus-visible, .ref:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.perceive-panel p { max-width: 62ch; }
.t-notes { margin-bottom: 28px; }
.t-notes p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.nojs { padding: 20px; }
@media (min-width: 900px) {
  .topbar { height: 72px; padding-inline: max(clamp(20px, 3vw, 48px), calc((100% - 1280px) / 2 + clamp(20px, 3vw, 48px))); }
  .w-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: 40px; padding: clamp(32px, 6vw, 96px) clamp(20px, 3vw, 48px) clamp(40px, 6vw, 96px); }
  .w-hero h1 { font-size: clamp(48px, 7.8vw, 112px); line-height: .94; letter-spacing: -.05em; max-width: 9ch; }
  .w-hero-copy > p { margin: 28px 0 32px; font-size: clamp(18px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.015em; max-width: 24ch; }
  .w-card { padding: 8px clamp(20px, 3vw, 48px) 56px; }
  .w-card .empty { max-width: 520px; margin-inline: auto; }
  .t-head { padding: 56px clamp(20px, 3vw, 48px) 8px; }
  .t-head h1 { font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
  .t-head p { font-size: 22px; }
  .perceive-panel, .t-refs { margin-left: auto; margin-right: auto; max-width: 720px; }
  .w-foot { padding-inline: clamp(20px, 3vw, 48px); }
}
/* Motion: everything animated has a static equivalent. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.canonical-sample{margin:0 auto;max-width:300px}.canonical-sample svg{display:block;width:100%;height:auto}.canonical-sample .stem{stroke:#ccc;stroke-width:.7}.canonical-sample .leaf{stroke:none}
