/* ==========================================================================
   Adom design tokens

   The one token layer for every Adom web surface. Raw values live here and
   nowhere else; pages and components consume the semantic names below.
   See docs/DESIGN_SYSTEM.md section 2 and 3.
   ========================================================================== */

/* Inter is self-hosted so the critical path holds no third-party request and
   no visitor address reaches a font CDN. Variable weight axis 400 to 700. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Surfaces. Light surfaces are warm; night carries the photographic partials. */
  --canvas: #f8f7f2;
  --canvas-veil: rgba(248, 247, 242, 0.9);
  --surface: #fdfcf8;
  --surface-veil: rgba(253, 252, 248, 0.96);
  --surface-soft: #eef3ee;
  --night: #0e1c23;

  /* Text */
  --ink: #1d2b31;
  --body: #42535b;
  --muted: #5d6d74;
  --cream: #f7f3e9;
  --cream-muted: rgba(247, 243, 233, 0.84);

  /* Lines. Hairlines carry grouping wherever a border is not earned. */
  --line: #dfe3dc;
  --line-strong: #cbd3ca;
  --line-input: #9faf9f;
  --line-veil: rgba(29, 43, 49, 0.08);
  --line-tint: rgba(29, 43, 49, 0.14);

  /* Adom green. Action greens are darkened for 4.5:1 against warm white. */
  --green: #2f9a6c;
  --green-action: #1f7654;
  --green-action-hover: #185e43;
  --green-bright: #76d7aa;
  --green-soft: #dfeee4;
  --green-ink: #1d6146;
  --green-veil: rgba(47, 154, 108, 0.1);
  --green-edge: rgba(47, 154, 108, 0.36);

  /* Status. Amber means worth a look; risk is used sparingly and never as decor. */
  --amber-soft: #f3ead9;
  --amber-ink: #755421;
  --risk: #d85e5e;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Measure and rhythm */
  --page: min(100% - 48px, 1240px);
  --gutter: max(24px, calc((100vw - 1240px) / 2));
  --section-space: clamp(104px, 10vw, 152px);
  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 70px rgba(26, 43, 48, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 40px, 720px);
    --section-space: 96px;
  }
}

@media (max-width: 430px) {
  :root {
    --page: calc(100% - 32px);
    --section-space: 82px;
  }
}
