@import "tailwindcss";

@source "../../views/**/*.erb";
@source "../../helpers/**/*.rb";
@source "../../javascript/**/*.js";

/* Sideline brand: Figtree + practice-cone orange on warm stone neutrals. */
@theme {
  --font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;

  /* Elevation. Warm, stone-tinted, multi-layer shadows so depth reads
     on-brand instead of harsh neutral gray. These override Tailwind's
     defaults, so every shadow-* utility across the app warms up at once. */
  --shadow-2xs: 0 1px 1px 0 rgb(28 25 23 / 0.04);
  --shadow-xs: 0 1px 2px 0 rgb(28 25 23 / 0.05);
  --shadow-sm: 0 1px 2px -1px rgb(28 25 23 / 0.06), 0 2px 5px -1px rgb(28 25 23 / 0.07);
  --shadow-md: 0 2px 4px -1px rgb(28 25 23 / 0.06), 0 6px 14px -3px rgb(28 25 23 / 0.09);
  --shadow-lg: 0 4px 8px -2px rgb(28 25 23 / 0.07), 0 16px 32px -6px rgb(28 25 23 / 0.13);
  --shadow-xl: 0 10px 20px -5px rgb(28 25 23 / 0.10), 0 28px 56px -12px rgb(28 25 23 / 0.17);

  /* Component tokens (used by the design-system helpers). */
  --shadow-raised: 0 1px 2px 0 rgb(28 25 23 / 0.05), 0 2px 4px 0 rgb(28 25 23 / 0.05), inset 0 1px 0 0 rgb(255 255 255 / 0.7);
  --shadow-btn: inset 0 1px 0 0 rgb(255 255 255 / 0.16), 0 1px 2px 0 rgb(28 25 23 / 0.28);
  --shadow-input: inset 0 1px 1px 0 rgb(28 25 23 / 0.05);
}

/* Soft warm ambient glow behind the app shell — sunlight on the sideline.
   Drop it on a fixed, non-interactive -z-10 layer so content floats over it. */
@utility app-glow {
  background-image: radial-gradient(55rem 30rem at 85% -10%, rgb(255 237 213 / 0.55), transparent 60%);
}

/* Recessed section "well": the enriched flat-panel surface used app-wide — a
   top-down gradient, a soft inset shadow (reads as genuinely recessed), and a
   crisp hairline edge. Stays recessed (no OUTER shadow, per surface rules).
   Replaces a hand-rolled `bg-stone-50` rounded panel so depth is consistent
   without re-typing it everywhere; single source for the look. */
@utility well {
  background-image: linear-gradient(to bottom, var(--color-stone-100), color-mix(in oklab, var(--color-stone-200) 70%, transparent));
  box-shadow: inset 0 1px 2px 0 color-mix(in oklab, var(--color-stone-950) 6%, transparent);
  outline: 1px solid color-mix(in oklab, var(--color-stone-950) 8%, transparent);
  outline-offset: -1px;
}

/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/Figtree-f7c28c58.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;
}

/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/Figtree-ext-ce5692a4.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;
}
