/* =============================================================
   Serenity Smart Homes — tokens.css
   Colors, type and spacing. Every other file uses these names.

   Accessibility floor (the site sells accessibility, so it meets it):
   - base text 18px minimum, line height 1.6
   - every text color passes WCAG AA on its background (checked 2026-12-02)
   - focus ring always visible
   - no motion that a visitor cannot stop (reduced-motion honored)
   - light only (Ashley, 2026-12-02): the brand graphics were made for a
     light background, so there is no dark palette

   Font: Atkinson Hyperlegible Next, self-hosted (SIL OFL 1.1).
   Designed by the Braille Institute for readers with low vision.
   ============================================================= */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  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: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  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-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --teal:        #086972;  /* the Serenity teal. 6.4:1 on white */
  --teal-deep:   #054f56;  /* hover / pressed. 9.3:1 on white */
  --teal-wash:   #e7f2f1;  /* pale section wash */
  --amber:       #8a5a14;  /* small accent text only. 5.3:1 on --bg */

  /* Surfaces and text */
  --bg:          #f6f3ee;  /* warm off-white page */
  --bg-raised:   #ffffff;  /* cards, forms */
  --bg-inverse:  #0f3f44;  /* dark bands (call-to-action, footer) */
  --fg:          #1d2a2c;  /* body text. 13.4:1 on --bg */
  --fg-muted:    #4f5d5f;  /* captions, meta. 6.2:1 on --bg */
  --fg-heading:  #0f3f44;
  --fg-inverse:  #ffffff;
  --link:        var(--teal);
  --link-hover:  var(--teal-deep);
  --border:      #d9dedd;
  --focus:       #c26a00;  /* amber ring: visible on light surfaces and the dark teal bands */

  --btn-bg:      var(--teal);
  --btn-fg:      #ffffff;
  --btn-hover:   var(--teal-deep);

  /* Type */
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-base: 1.125rem;   /* 18px */
  --fs-sm:   1rem;       /* 16px: the smallest size on the site */
  --fs-lg:   1.3125rem;  /* 21px lead text */
  --fs-h4:   1.375rem;
  --fs-h3:   1.625rem;
  --fs-h2:   clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --fs-h1:   clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --lh:      1.6;
  --lh-tight: 1.2;
  --measure: 68ch;

  /* Space and shape */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 63, 68, .06), 0 6px 20px rgba(15, 63, 68, .08);
  --wrap: 72rem;
  --tap: 48px;           /* minimum tap target */
}
