/* Fonts (self-hosted), base typography, focus, selection, scrollbar. Colors/sizes come from assets/design-tokens.css. */
@font-face {
  font-family: 'Gloock';
  src: url('../assets/f/gloock.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  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;
}
/* The colon sign (₡) lives in its own ~1 KB file: prices need it on every visit, and the rest of Latin Extended-A/B is not used,
   so the 15-45 KB "-x" files are no longer downloaded for a single currency glyph. */
@font-face {
  font-family: 'Gloock';
  src: url('../assets/f/gloock-crc.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+20A1;
}
@font-face {
  font-family: 'Gloock';
  src: url('../assets/f/gloock-x.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  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, U+20A2-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/f/literata.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
  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: 'Literata';
  src: url('../assets/f/literata-crc.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+20A1;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/f/literata-x.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
  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, U+20A2-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/f/literata-i.woff2') format('woff2');
  font-weight: 200 900; font-style: italic; font-display: swap;
  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: 'Great Vibes';
  src: url('../assets/f/script.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

@layer base {
  :root { --dock-h: calc(3.5rem + env(safe-area-inset-top)); --page-max: 86rem; }
  html.has-peek { scroll-padding-bottom: 5.5rem; }
  html {
    font-family: var(--font-text);
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    color: var(--color-ink);
    background: var(--color-paper);
    scroll-padding-top: var(--dock-h);
    scrollbar-color: var(--color-brand) var(--color-tint);
  }
  html[data-motion="on"] { scroll-behavior: smooth; }
  body {
    min-height: 100svh;
    margin: 0;
    line-height: 1.55;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    touch-action: manipulation;
  }
  ::selection { background: var(--color-brand); color: var(--color-on-brand); }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  h1, h2, h3 { margin: 0; text-wrap: balance; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  svg { max-width: none; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-thumb { background: var(--color-brand); border-radius: 999px; border: 3px solid var(--color-paper); }
  ::-webkit-scrollbar-track { background: var(--color-tint); }
  .ico { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .mark { width: 1.75rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .noscript { padding: 2rem var(--space-gutter); text-align: center; }
}

@layer components {
  .skip { position: fixed; left: 0.75rem; top: -4rem; z-index: 200; padding: 0.75rem 1.1rem; border-radius: 999px; background: var(--color-paper); color: var(--color-brand-strong); font-weight: 700; box-shadow: var(--shadow-md); transition: top var(--duration-ui) var(--ease-out); }
  .skip:focus { top: 0.75rem; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--button-height); padding: 0 1.4rem; border-radius: var(--button-radius); background: var(--button-bg); color: var(--button-fg); font: 600 1rem/1 var(--font-text); border: 1.5px solid var(--button-bg); transition: background-color var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out); }
  .btn:active { transform: scale(0.97); }
  .btn--ghost { background: transparent; color: var(--color-brand-strong); border-color: var(--color-brand-strong); }
  .linkbtn { color: var(--color-brand-strong); text-decoration: underline; text-underline-offset: 0.22em; font: inherit; text-align: left; }
  @media (hover: hover) and (pointer: fine) {
    .btn:hover { background: var(--button-bg-hover); border-color: var(--button-bg-hover); }
    .btn--ghost:hover { background: var(--color-tint); border-color: var(--color-brand-strong); }
  }
  .badge { display: inline-grid; justify-items: center; gap: 0.2rem; padding: 0.9rem 1.7rem 1.05rem; background: var(--logo-bg); color: var(--logo-fg); border-radius: 0.9rem; text-align: center; line-height: 1; }
  .badge-mark { display: block; color: var(--logo-fg); }
  .badge-mark .mark { width: 1.75rem; }
  .badge-script { font: 400 2.6rem/1 var(--font-script); }
  .badge-caps { display: flex; align-items: center; gap: 0.55rem; font: 500 0.8125rem/1 var(--font-text); letter-spacing: 0.16em; text-transform: uppercase; }
  .badge-caps i { width: 1px; height: 1em; background: currentColor; opacity: 0.85; }
  .badge-tag { font: 400 1.125rem/1.1 var(--font-script); opacity: 0.95; }
}
