/* CC2ASN landing page. Direction: "The quiet instrument" (tasteskill seed 2035635075). */

/* ---------- local fonts (SIL OFL 1.1, licences in assets/fonts/) ---------- */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/familjen-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/familjen-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gugi"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/gugi-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #10150f;
  --surface: #242923;
  --ink: #ebf2e9;
  --muted: #b9c0b7;
  --accent: #ec9f96;
  --accent-ink: #110c0b;

  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-brand: "Gugi", system-ui, sans-serif;
  --font-text: "Familjen Grotesk", system-ui, sans-serif;
  --font-code: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; /* taste-skill-ignore: used only on <code>/<pre> */

  --step-small: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.277rem, 0.766rem + 0.63vw, 1.419rem);
  --step-sub: clamp(1.510rem, 0.906rem + 0.94vw, 1.887rem);
  --step-head: clamp(1.887rem, 1.132rem + 1.40vw, 2.519rem);
  --step-display: clamp(2.494rem, 1.496rem + 4.09vw, 5.938rem);

  --margin: clamp(1.5rem, 4.5vw, 4.5rem);
  --gutter: clamp(1rem, 1.8vw, 1.75rem);
  --section-gap: clamp(7rem, 12vh + 7vw, 15.75rem);
  --radius: 10px;
  --btn-radius: 4px;

  --replay-focus: var(--accent);
  --replay-focus-ink: var(--accent-ink);
}

html { background: var(--bg); }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; margin: 0; }
body { font-size: var(--step-body); line-height: 1.5; }
code, pre { font-family: var(--font-code); }
pre { margin: 0; white-space: pre-wrap; }
.head { font-size: var(--step-head); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.section { padding-block: calc(var(--section-gap) / 2); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--ink); color: var(--bg); border-radius: var(--btn-radius); }
.skip:focus { top: 1rem; }

/* ---------- buttons: slim-ink ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); font-size: 0.9375rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--quiet { background: var(--surface); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffffff; }
  .btn--quiet:hover { background: #313730; }
  .btn--accent:hover { background: #f4b8b0; }
}

/* ---------- navigation: floating pill ---------- */
.nav { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: 1.75rem; height: 54px; padding: 0 7px 0 24px; background: var(--surface); border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 0.4em; }
.brand__logo { width: auto; height: 1.15em; flex: none; background: none; }
.brand__name { font-family: var(--font-brand); font-weight: 400; letter-spacing: 0.02em; line-height: 1; }
.brand__two { color: var(--accent); }
.foot .brand__two { color: #b24134; } /* the accent, deepened for the light footer ground (5:1) */
.nav__mark { font-size: 1.125rem; text-decoration: none; }
.nav__mark .brand__logo { height: 26px; }
.nav__mark.brand { gap: 0.55em; }
.nav__links { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav__links a { font-size: 0.9375rem; text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__action { min-height: 40px; padding: 0 20px; border-radius: 999px; }
.nav__action.is-away { display: none; }
.nav__pill:has(.nav__action.is-away) { padding-right: 24px; }
.nav__menu { display: none; }

@media (max-width: 47.99em) {
  .nav { top: 12px; left: 12px; right: 12px; }
  .nav__pill { position: relative; width: 100%; height: 48px; justify-content: space-between; padding: 0 6px 0 18px; }
  .nav__pill:has(.nav__action.is-away) { padding-right: 6px; }
  .nav__action, .nav__action.is-away { display: none; }
  .nav__menu { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg); font-size: 0.9375rem; font-weight: 500; }
  .nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px; background: var(--surface); border-radius: var(--radius); }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 12px; font-size: 1.125rem; color: var(--ink); }
}

/* ---------- hero: words, window and facts in three columns ---------- */
.hero { position: relative; min-height: 100svh; padding-top: max(20svh, 120px); overflow: clip; }
.hero__grid { align-items: start; row-gap: 2rem; }
.hero__words { grid-column: 1 / 7; }
.hero__eyebrow { margin-bottom: 1.5rem; font-size: clamp(1.375rem, 1rem + 0.6vw, 1.75rem); }
.hero__eyebrow .brand__logo { height: 1.6em; }
.hero__title { font-size: var(--step-display); font-weight: 400; line-height: 0.99; letter-spacing: -0.041em; }
.hero__lead { margin-top: 2.25rem; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.hero__action { margin-top: 2.25rem; }

.hero__frame { grid-column: 7 / 11; height: calc(100svh - max(20svh, 120px)); border-radius: var(--radius) var(--radius) 0 0; --picture-ground: var(--surface); --window: 46% 30% 34% 30%; --from-scale: 1.1; }
.record { height: 100%; padding: 28px 28px 0; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; overflow: clip; }
.record__query { font-size: 0.9375rem; color: var(--muted); }
.record__head { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.record__cc { font-size: clamp(3rem, 2rem + 1.6vw, 4rem); font-weight: 500; line-height: 0.8; letter-spacing: -0.04em; }
.record__name { font-size: var(--step-lead); line-height: 1.2; }
.record__rir { font-size: 0.9375rem; color: var(--muted); }
.record__fields { margin: 2rem -12px 0; }
.record__fields div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px; border-radius: 6px; }
.record__fields dt { color: var(--muted); }
.record__fields dd { font-size: var(--step-sub); line-height: 1; font-variant-numeric: tabular-nums; }
.record__fields .is-selected { background: var(--accent); color: var(--accent-ink); }
.record__fields .is-selected dt { color: var(--accent-ink); }
.record__out--short { display: none; }
.record__out { margin-top: 1.25rem; font-size: 1rem; line-height: 1.75; color: var(--muted); columns: 2; column-gap: 1.5rem; }

.hero__facts { grid-column: 11 / 13; display: grid; gap: 40px; text-align: right; margin: 0; padding: 0; list-style: none; }
.hero__facts li { display: grid; gap: 4px; }
.hero__facts strong { font-size: var(--step-sub); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.hero__facts span { color: var(--muted); }

@media (max-width: 63.99em) {
  .hero__words { grid-column: 1 / 8; }
  .hero__frame { grid-column: 8 / 13; grid-row: 1 / span 2; }
  .record__out { columns: 1; }
  .hero__facts { grid-column: 1 / 8; grid-row: 2; text-align: left; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2rem; }
}
@media (max-width: 47.99em) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: 92px; padding-bottom: 0; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; flex: none; row-gap: 0; }
  .hero__grid > * { flex-shrink: 0; }
  .hero__eyebrow { display: none; } /* the bar right above already shows the logo and name */
  .hero__title { font-size: 10.5vw; }
  .hero__lead { margin-top: 1.25rem; font-size: 1.125rem; }
  .hero__action { margin-top: 1.25rem; }
  .hero__facts { order: 2; margin-top: 1.75rem; grid-template-columns: repeat(3, auto); gap: 1.25rem; justify-content: start; }
  .hero__facts strong { font-size: 1.1875rem; }
  .hero__facts span { font-size: 0.9375rem; line-height: 1.3; }
  .hero__frame { order: 3; flex: 0 0 auto; height: auto; margin-top: 1.75rem; border-radius: var(--radius); }
  .record { border-radius: var(--radius); padding-bottom: 12px; }
  .hero__frame { margin-top: 1.5rem; }
  .record__out--long { display: none; }
  .record__out--short { display: block; columns: 1; }
  .record { padding: 20px 20px 16px; }
  .record__head { margin-top: 1rem; }
  .record__cc { font-size: 2.25rem; }
  .record__fields { margin-top: 1rem; }
  .record__fields div { padding: 8px 12px; }
}

/* ---------- the data: one registry line, parsed (scroll scene) ---------- */
.data { padding-block: var(--section-gap) calc(var(--section-gap) / 2); }
.data__grid { align-items: center; row-gap: 3rem; }
.data__words { grid-column: 1 / 6; }
.data__lead { margin-top: 1.5rem; font-size: var(--step-body); max-width: 44ch; }
.data__steps { position: relative; display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.data__steps h3 { font-size: clamp(2.5rem, 1.6rem + 1.1vw, 2.75rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; }

.sef { grid-column: 6 / 13; padding: clamp(1.5rem, 2.4vw, 2.25rem); background: var(--surface); border-radius: var(--radius); }
.sef__file { font-size: 0.9375rem; color: var(--muted); }
.sef__lines { margin-top: 1.25rem; font-size: clamp(0.875rem, 0.42rem + 0.78vw, 1.25rem); line-height: 1.9; overflow-wrap: anywhere; }
.sef__ctx { color: var(--muted); opacity: 0.75; }
.sef__line { color: var(--ink); }
.sef__f { padding: 0.12em 0.2em; margin-inline: -0.05em; border-radius: 4px; }
.sef__fields { display: grid; gap: 0; margin: 1.75rem -12px 0; }
.sef__fields div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 12px; border-radius: 6px; font-size: var(--step-lead); }
.sef__fields dt { color: inherit; opacity: 0.78; }
.sef__result { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-top: 1.5rem; padding: 1.5rem 1.5rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.sef__result code { font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); letter-spacing: -0.02em; line-height: 1.1; }
.sef__result span { font-size: var(--step-lead); }

/* live: the steps share one place and the scroll steps through them */
.scene.is-live.data { padding-block: 0; }
.scene.is-live .data__grid { height: 100svh; align-content: center; }
.scene.is-live .data__steps { display: block; min-height: 6.5rem; }
.scene.is-live .data__steps li { position: absolute; inset: 0 auto auto 0; }
.scene.is-live .data__steps li:not(:first-child) { opacity: 0; visibility: hidden; }

@media (max-width: 47.99em) {
  .data { padding-top: 3.5rem; }
  .data__steps { display: none; } /* the phone shows the parsed record without the four statements */
  .sef__lines { overflow-wrap: normal; white-space: normal; font-size: 0.9375rem; line-height: 1.6; }
  .sef__lines > code > span { display: block; margin-bottom: 0.5em; }
  .sef__far { display: none !important; }
  .sef__fields div { grid-template-columns: 7rem 1fr; font-size: 1.0625rem; }
}
@media (max-width: 63.99em) {
  .data__words { grid-column: 1 / 13; }
  .sef { grid-column: 1 / 13; }
}

/* ---------- glossary: three terms side by side ---------- */
.glossary__list { margin: 48px 0 0; row-gap: 40px; }
.glossary__item { grid-column: span 4; border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); padding-top: 1.25rem; }
.glossary__item dt { font-size: var(--step-sub); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.glossary__item dfn { font-style: normal; }
.glossary__item dd { margin: 0.9rem 0 0; color: var(--muted); }
.glossary__item dd code { font-size: 0.9em; color: var(--ink); }
.glossary__item dd a { color: var(--ink); }
.glossary__item dd a:hover, .glossary__item dd a:focus-visible { color: var(--accent); }
@media (max-width: 63.99em) {
  .glossary__item { grid-column: 1 / 13; }
  .glossary__item dd p:first-child { max-width: 62ch; }
}

/* ---------- uses: pick a use case, read how it helps ---------- */
.uses__title { font-size: var(--step-head); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.uses__hint { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; color: var(--muted); }
.uses__grid { margin-top: 64px; align-items: start; }
.uses__group:nth-child(1) { grid-column: 1 / 4; }
.uses__group:nth-child(2) { grid-column: 4 / 7; }
.uses__group:nth-child(3) { grid-column: 7 / 10; }
.uses__group h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.25; }
.uses__group ul { margin-top: 0.9em; }
.uses__item { position: relative; display: block; width: 100%; padding: 0.3em 0 0.3em 22px; text-align: left; font-size: 1.125rem; line-height: 1.3; color: var(--muted); cursor: pointer; transition: color var(--t-hover) ease; }
.uses__item::before { content: ""; position: absolute; left: 4px; top: calc(0.3em + 0.65em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0.6); transition: transform var(--t-hover) var(--ease-out), opacity var(--t-hover) ease; }
.uses__item:hover, .uses__item:focus-visible, .uses__item[aria-pressed="true"] { color: var(--accent); }
.uses__item[aria-pressed="true"]::before { opacity: 1; transform: none; }
.uses__item:focus-visible { outline-offset: 2px; border-radius: 2px; }
.uses__box { grid-column: 10 / 13; grid-row: 1; padding: 36px 36px 40px; background: var(--ink); color: var(--bg); border-radius: var(--radius); min-height: 15rem; }
.uses__box-name { font-size: var(--step-sub); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.uses__box-desc { margin-top: 0.9rem; font-size: var(--step-lead); line-height: 1.4; }
.uses__box.is-swap > * { opacity: 0; }
.uses__box > * { transition: opacity 140ms ease; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .uses__group:nth-child(1) { grid-column: 1 / 5; }
  .uses__group:nth-child(2) { grid-column: 5 / 9; }
  .uses__group:nth-child(3) { grid-column: 9 / 13; }
  .uses__box { grid-column: 1 / 13; grid-row: 2; margin-top: 2.5rem; min-height: 0; }
}
@media (max-width: 47.99em) {
  .uses__grid { margin-top: 40px; row-gap: 36px; }
  .uses__group, .uses__group:nth-child(n) { grid-column: 1 / 13; }
  .uses__box { grid-column: 1 / 13; grid-row: auto; min-height: 0; padding: 24px 24px 28px; }
  .uses__group .uses__box { margin-top: 1rem; }
}

/* ---------- how it works: the product replay ---------- */
.replay-hold { padding: calc(var(--section-gap) / 2) var(--margin); }
.replay-stage { display: grid; gap: clamp(1rem, 2.6svh, 1.75rem); width: 100%; }
.replay-stage h2 { max-width: 24ch; }
.replay { width: 100%; }
.replay__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; }
.replay__said { color: var(--muted); max-width: 62ch; }
.replay__again { min-height: 2.75rem; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; }

.q { position: relative; padding: clamp(1.25rem, 2.6vw, 2.25rem); background: var(--surface); border-radius: var(--radius); font-size: clamp(1rem, 0.6rem + 0.65vw, 1.375rem); }
.q__src { font-size: 1.1em; line-height: 1.5; overflow-wrap: anywhere; }
.q__src code { font-size: 0.95em; }
.q__val { padding: 0.05em 0.3em; margin-inline: -0.05em; border-radius: 5px; text-decoration: underline 2px var(--accent); text-underline-offset: 0.25em; }
.q__val.is-focus { text-decoration-color: transparent; }
.q__menu { position: absolute; z-index: 2; left: clamp(1.25rem, 2.6vw, 2.25rem); top: calc(clamp(1.25rem, 2.6vw, 2.25rem) + 2.4em); width: min(34em, 56%); margin: 0; padding: 0.7em; list-style: none; display: grid; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-family: var(--font-code); font-size: 1.05em; }
.q__menu li { padding: 1em 1.1em; border-radius: 5px; }
.q__menu .pick { background: var(--bg); color: var(--ink); }
.q__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.q__col { display: grid; align-content: start; gap: 0.15em; margin: -0.6em; padding: 0.6em; border-radius: 8px; transition: background-color 320ms ease, color 320ms ease; }
.q__col.is-focus .q__h { color: inherit; }
.q__col code { font-size: 0.95em; line-height: 1.6; overflow-wrap: anywhere; }
.q__h { margin-bottom: 0.4em; color: var(--muted); }
.q__band { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25em 0.75em; margin-top: 1.75rem; padding: 0.9em 1.1em; border-radius: 8px; background: var(--bg); font-size: 1.1em; }
.q__fig { font-size: clamp(2.75rem, 1.5rem + 3.4vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.q__band.is-focus, .js [data-replay]:not(.is-armed) .q__band { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 47.99em) {
  .q__out { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .q__col:nth-child(3) { display: none; }
  .q__col code:nth-of-type(n + 6) { display: none; }
  .q__menu { width: 64%; top: calc(clamp(1.25rem, 2.6vw, 2.25rem) + 3.6em); }
}

/* ---------- usage: the query builder ---------- */
.usage__statement { text-align: center; }
.usage__word { display: inline-flex; align-items: center; gap: 0.2em; max-width: none; font-size: var(--step-display); line-height: 1; letter-spacing: -0.041em; }
.usage__word .br { font-size: 1.2em; line-height: 0.8; font-weight: 400; display: inline-block; }
.usage__sub { margin: 56px auto 0; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }

.usage__grid { margin-top: calc(var(--section-gap) / 2); align-items: start; row-gap: 3rem; }
.usage__controls { grid-column: 1 / 6; }
.usage__result { grid-column: 7 / 13; }
.tool { display: grid; gap: 1.75rem; margin-top: 2rem; }
.tool__row { margin: 0; padding: 0; border: 0; min-width: 0; }
.tool__label { display: block; padding: 0; margin-bottom: 0.6rem; font-weight: 600; }
.tool__cc { width: min(100%, 26rem); min-height: 56px; padding: 0 3rem 0 1rem; border-radius: var(--btn-radius); font-size: 1.1875rem; color-scheme: dark; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ebf2e9' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1.1rem center; }
@media (hover: hover) and (pointer: fine) { .tool__cc:hover { background-color: #313730; } }
.tool__cc:focus-visible { outline: 2px solid var(--accent); }
.tool__note { margin-top: 0.5rem; color: var(--muted); font-size: var(--step-body); }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius); background: var(--surface); color: var(--ink); font-size: 0.9375rem; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.step:active { transform: translateY(1px) scale(0.98); }
.step[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .step[aria-pressed="false"]:hover { background: #313730; } }
.tool__row[hidden] { display: none; }

.cmd__label { font-weight: 600; }
.cmd__code { margin-top: 0.75rem; padding: 1.5rem 1.75rem; background: var(--surface); border-radius: var(--radius); font-size: var(--step-lead); line-height: 1.4; overflow-wrap: anywhere; }
.cmd__what { margin-top: 1rem; }
.cmd__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.ref { width: auto; margin-top: 4rem; border-collapse: collapse; font-size: 1.0625rem; }
.ref caption { text-align: left; font-weight: 600; padding-bottom: 0.75rem; }
.ref th, .ref td { text-align: left; padding: 0.55rem 2.5rem 0.55rem 0; vertical-align: baseline; }
.ref thead th { color: var(--muted); font-weight: 400; }
.ref tbody th { font-weight: 400; }
.ref code { font-size: 0.95em; }
@media (max-width: 63.99em) {
  .usage__controls, .usage__result { grid-column: 1 / 13; }
}
@media (max-width: 47.99em) {
  .usage__word { font-size: 2.6rem; }
  .usage__sub { margin-top: 32px; }
  .cmd__code { padding: 1.1rem 1.2rem; font-size: 1.125rem; }
  .ref { font-size: 1rem; }
  .ref th, .ref td { padding-right: 0.6rem; }
}

/* ---------- FAQ: question index, one answer ---------- */
.faq__list { grid-column: 1 / 6; }
.faq__title { font-size: var(--step-head); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.faq__list ul { display: grid; gap: 18px; margin-top: 2rem; }
.faq__q { position: relative; display: block; width: 100%; padding: 0 0 0 26px; text-align: left; font-size: 1.125rem; line-height: 1.4; color: var(--muted); transition: color var(--t-hover) ease; }
.faq__q::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background-color var(--t-hover) ease; }
.faq__q[aria-expanded="true"] { color: var(--ink); }
.faq__q[aria-expanded="true"]::before { background: var(--accent); }
.faq__q:hover { color: var(--ink); }
.faq__a { padding: 0.6rem 0 0.4rem 26px; font-size: 1.1875rem; line-height: 1.45; }
.faq__a code { font-size: 0.9em; }
.faq__pane { display: none; }
@media (min-width: 48em) {
  .js .faq__a { display: none; }
  .js .faq__pane { display: block; grid-column: 7 / 13; position: sticky; top: 120px; padding: 40px 44px; min-height: 16rem; background: var(--ink); color: var(--bg); border-radius: var(--radius); }
  .faq__answer { font-size: var(--step-sub); line-height: 1.3; max-width: 30ch; transition: opacity 150ms ease; }
  .faq__answer code { font-size: 0.8em; }
  .faq__answer.is-swap { opacity: 0; }
}
@media (max-width: 47.99em) {
  .faq__list { grid-column: 1 / 13; }
}

/* ---------- footer: big link list on the ink ---------- */
.foot { background: var(--ink); color: var(--bg); min-height: 70svh; display: flex; align-items: stretch; }
.foot__grid { width: 100%; padding-block: clamp(4rem, 9vh, 7rem) 2.5rem; align-content: space-between; row-gap: 4rem; }
.foot__links { grid-column: 1 / 9; }
.foot__links ul { display: grid; gap: 0.15em; }
.foot__links a { display: inline-block; font-family: var(--font-display); font-size: var(--step-head); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 0.18em; transition: transform var(--t-hover) var(--ease-out), text-decoration-color var(--t-hover) ease; }
.foot__links a:hover, .foot__links a:focus-visible { transform: translateX(8px); text-decoration-color: var(--accent); }
.foot__side { grid-column: 9 / 13; display: grid; align-content: start; gap: 1rem; }
.foot__name { font-size: 1.375rem; }
.foot__name .brand__logo { height: 1.4em; }
.foot__social { display: flex; gap: 1.25rem; }
.foot ::selection { background: var(--bg); color: var(--ink); }
.foot :focus-visible { outline-color: var(--bg); }
.foot__sources h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.25; }
.foot__sources ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.5rem; }
.foot__legal { grid-column: 1 / 13; font-size: 0.9375rem; }
.foot__legal p { max-width: 90ch; }
.foot__legal .foot__disclaimer { font-size: var(--step-small); line-height: 1.5; color: #5d655b; } /* gray on the light footer, 5.3:1 */
@media (max-width: 47.99em) {
  .foot__links, .foot__side { grid-column: 1 / 13; }
}

/* ---------- brackets close in (scroll-linked; at rest they sit in place) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-brackets] .br { transition: none; will-change: transform; }
}

.usage { overflow-x: clip; }
.btn[hidden] { display: none; }
