/* Page CSS: the brand block start.mjs printed, then only what sits inside the visuals (the live type pieces). */
:root {
  --p-bg: #f5f3f1; --p-surface: #ffffff; --p-ink: #171514; --p-muted: #615b56;
  --p-accent: #cc3328; --p-accent-ink: #f5f3f1; --p-action: #cc3328; --p-action-ink: #f5f3f1;
  --p-inv-bg: #171514; --p-inv-surface: #242120; --p-inv-ink: #f5f3f1; --p-inv-muted: #989694;
  --p-inv-accent: #cc3328; --p-inv-accent-ink: #f5f3f1; --p-inv-action: #cc3328; --p-inv-action-ink: #f5f3f1;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "DM Mono" /* taste-skill-ignore: code blocks only */, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;
  --display-stretch: 96%;
  --ly-scale: 1.04;
}
.ts-mark { flex: none; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
/* the vermilion action reads under 3:1 as a focus ring on the paper: the ring takes the ink */
:focus-visible { outline-color: var(--ink); }

/* nav menu cards */
.ts-menu { --p-h: 120px; display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 40px; line-height: 1; color: var(--ink); }
.ts-menu--pair { flex-direction: column; gap: 6px; font-size: 15px; }
.ts-menu--pair b { font-size: 34px; font-weight: 400; }

/* hero window */
.ts-hero { display: grid; gap: 14px; align-content: start; padding: 16px; }
.ts-hero__q { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ts-hero__q::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--ink); }
.ts-hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ts-tile { display: grid; gap: 8px; min-height: 118px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--u-bg, #fff); }
.ts-tile small { font-size: 12px; color: var(--muted); }
.ts-tile p { margin: 0; font-size: 24px; line-height: 1.12; color: var(--ink); }
@media (max-width: 639px) { .ts-hero__grid > :nth-child(n + 5) { display: none; } .ts-tile { min-height: 0; } .ts-tile p { font-size: 20px; } }

/* your own line */
.ts-try { display: grid; gap: 8px; }
.ts-try input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--p-surface); color: var(--ink); font: 400 17px/1 var(--font-text); }
.ts-try input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.ts-list { display: grid; align-content: start; padding: 8px 24px; border: 1px solid var(--u-border, var(--line)); border-radius: var(--r-lg, 16px); background: var(--p-surface); }
.ts-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.ts-row:first-child { border-top: 0; }
.ts-row small { font-size: 13px; color: var(--muted); }
.ts-row p { margin: 0; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 1023px) { .ts-row p { font-size: 24px; } .ts-row { padding: 8px 0; } }
@media (max-width: 639px) { .ts-list { padding: 4px 16px; } .ts-row p { font-size: 21px; } .ts-row:nth-child(n + 6) { display: none; } }

/* pairings */
.ts-pair-tabs { flex-wrap: wrap; }
.ts-pair { display: grid; align-content: start; gap: 16px; padding: 40px; border: 1px solid var(--u-border, var(--line)); border-radius: var(--r-lg, 16px); background: var(--p-surface); }
.ts-pair__kicker { margin: 0; }
.ts-pair__h { margin: 0; font-size: 48px; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ts-pair__b { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.65; color: var(--ink); }
.ts-pair__why { margin: 0; color: var(--ink); font-size: 14px; }
.ts-pair__code { margin: 8px 0 0; padding: 16px 18px; border-radius: 12px; background: #1b1918; color: #ece6e1; font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .ts-pair { padding: 28px; } .ts-pair__h { font-size: 38px; } }
@media (max-width: 639px) { .ts-pair { padding: 20px; gap: 12px; } .ts-pair__h { font-size: 30px; } .ts-pair__b { font-size: 16px; } .ts-pair__code { display: none; } }

/* axes */
.ts-controls { display: grid; gap: var(--s-5); }
.ts-ctl { display: grid; gap: 8px; font-size: 14px; }
.ts-ctl > span { display: flex; justify-content: space-between; color: var(--muted); }
.ts-ctl output { color: var(--ink); font-variant-numeric: tabular-nums; }
.ts-ctl input[type="range"] { width: 100%; margin: 0; min-height: 44px; accent-color: var(--p-accent); }
.ts-seg { display: inline-flex; gap: 4px; width: max-content; padding: 4px; border-radius: 10px; background: var(--surface); }
.ts-seg button { min-height: 44px; padding: 6px 16px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.ts-seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.ts-axes { display: grid; align-content: center; gap: 20px; min-width: 0; padding: 48px; border-radius: var(--r-lg, 16px); background: var(--surface); }
.ts-axes__big { margin: 0; font-size: clamp(88px, 12vw, 200px); line-height: 0.95; color: var(--ink); }
.ts-axes__line { margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; color: var(--ink); }
.ts-axes__css { margin: 12px 0 0; font: 13px/1.6 var(--font-mono); color: var(--muted); white-space: pre-wrap; }
@media (max-width: 639px) { .ts-axes { padding: 24px; gap: 12px; } .ts-axes__big { font-size: 72px; } .ts-axes__line { font-size: 24px; } .ts-axes__css { display: none; } .ts-controls { gap: var(--s-3); } }

/* code */
.ts-get { display: grid; margin: var(--s-4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ts-get li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid var(--line); }
.ts-get img { width: 24px; height: auto; }
.ts-get span { display: grid; }
.ts-get b { font-weight: 500; }
.ts-get small { color: var(--muted); font-size: 14px; }
.ts-code-win { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 480px; overflow: hidden; border-radius: var(--r-lg, 16px); background: #1b1918; color: #ece6e1; }
.ts-code-win__bar { display: flex; gap: 2px; padding: 10px; border-bottom: 1px solid rgb(255 255 255 / .08); overflow-x: auto; scrollbar-width: none; }
.ts-code-win__bar button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #a8a09a; font: 500 14px/1 var(--font-text); white-space: nowrap; cursor: pointer; }
.ts-code-win__bar button:hover { color: #fff; }
.ts-code-win__bar button[aria-selected="true"] { background: rgb(255 255 255 / .1); color: #fff; }
.ts-code-win__bar button:focus-visible { outline-color: #fff; }
.ts-code-win__file { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; font: 13px var(--font-mono); color: #a8a09a; }
.ts-code-win__aa { font-size: 22px; color: #fff; }
.ts-code-win__code { margin: 0; padding: 14px 20px 20px; overflow: hidden; font: 13px/1.7 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #ece6e1; }
@media (max-width: 639px) { .ts-code-win__bar button { height: 44px; } .ts-code-win { min-height: 300px; } .ts-code-win__code { font-size: 11.5px; } }

/* questions */
.ts-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.ts-stats .stat { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.ts-stats .stat p { margin: 0; }
@media (max-width: 639px) { .ts-hide-sm, .faq > .ts-hide-sm { display: none; } .ts-stats .stat { padding: var(--s-3) 0; } }

/* desktop screens are a fixed height: the visual on the right runs down to the screen's foot */
@media (min-width: 1280px) {
  :is(#find, #pairs, #axes, #code) .wrap > .grid { flex: 1 1 0; min-height: 0; }
  :is(.ts-list, .ts-pair, .ts-axes, .ts-code-win) { align-self: stretch; }
}

/* hero art: the collage recipe's lit ground (sand) with one soft light, the note card and its lines */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fbe6e3; color: #a3271b; font-style: normal; font-size: 13px; font-weight: 700; }
.d-note__line b { font-weight: 500; color: #16181a; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
.ts-code-win__bar img[src*="nextjs"] { filter: invert(1); }
/* the narrowest phones: the bar's button moves into the menu sheet so the menu button stays on screen */
@media (max-width: 359px) { .nav:not(.is-open) .nav__actions { display: none; } }
