/* ==========================================================================
   PATH: /css/tokens.css
   TYPE: stylesheet
   STATUS: shared
   USES: global design tokens for color, surfaces, borders, overlays, spacing
         references, shadows, typography, and shared image variables

   PURPOSE
   This file owns the core design-token layer for the Atera Design Studio site.
   It defines the shared custom properties that other stylesheets consume,
   including color palette values, accent treatments, overlays, panel surfaces,
   typography stacks, container width, and shared image variables.

   KEEP IN THIS FILE
   - root-level custom properties only
   - global palette and semantic color tokens
   - shared accent, border, and surface tokens
   - reusable overlay and panel variables
   - typography stack variables
   - layout-width and general shadow tokens
   - shared image-path variables used across files

   DO NOT PUT IN THIS FILE
   - element selectors like body, h1, a, img, button
   - layout rules
   - component styling
   - page-specific overrides
   - breakpoint rules
   - one-off temporary values for a single page

   OWNERSHIP NOTES
   - If a value is reused across multiple files, it belongs here.
   - If a variable only exists to support one page-specific override, it should
     usually live with that page or component instead.
   - This file should stay declarative: token definitions only, no presentation
     rules beyond :root custom properties.
   ========================================================================== */

:root {
  /* ==========================================================================
     Core palette
     Base dark/light surfaces, primary text, muted text, and shared divider
     colors used throughout the site.
     ========================================================================== */

  --dark: var(--ink-deep);
  --dark-2: #434341;
  --light: var(--porcelain);
  --text-dark: var(--ink);
  --text-light: var(--porcelain);
  --muted-dark: var(--ink-muted);
  --muted-light: var(--porcelain-muted);
  --line-dark: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-light: color-mix(in srgb, var(--porcelain) 18%, transparent);
  --band-media-max-height: 380px;

  /* ==========================================================================
     Ink & Stone palette (Atera Design Studio)
     Band and footer tones below the hero. The header and hero keep the values
     above and in the hero/overlay groups.
     - Porcelain: light bands and footer (.band-light, .site-footer)
     - Ink: closing band (.band-ink) and primary text on light tones
     - Mist: third band tone (.band-mist)
     - Slate: supporting labels, accents, fine lines
     ========================================================================== */

  --porcelain: #f5f5f2;
  --ink: #243746;
  --mist: #dce1e3;
  --slate: #5f747d;
  --ink-muted: rgba(36, 55, 70, 0.82);
  --porcelain-muted: rgba(245, 245, 242, 0.8);
  --line-slate: rgba(95, 116, 125, 0.45);

  /* Deep Ink: Ink darkened, for the dark band, card bodies on it, menus,
     overlays and the photo viewer (replaces the old warm near-black). */
  --ink-deep: color-mix(in srgb, var(--ink) 70%, black);
  --ink-deeper: color-mix(in srgb, var(--ink) 58%, black);

  /* ==========================================================================
     Accents
     The old Atera Homes gold/tan accent set was removed. Accents use the
     Ink & Stone palette above: Mist on dark grounds, Slate on light ones.
     ========================================================================== */

  --dark-hover: color-mix(in srgb, var(--ink-deep) 0%, transparent);

  /* ==========================================================================
     Shared button tokens
     Buttons have no border. Their fill depends on where they sit:
     - on light bands (Porcelain, Mist): Ink fill, Porcelain text
     - on dark grounds (Ink band, hero and image overlays, header, mobile
       sticky bar): Mist fill, Ink text
     Hover moves the fill one shade (darker Ink, lighter Mist); no border.
     The --btn-* values are the active set. They default to the dark-ground
     set here and are switched to the light-band set on .band-light and
     .band-mist in bands.css. site.css reads only --btn-*.
     ========================================================================== */

  --button-ink-bg: var(--ink);
  --button-ink-bg-hover: #1a2a37;
  --button-ink-text: var(--porcelain);
  --button-mist-bg: var(--mist);
  --button-mist-bg-hover: #eaeef0;
  --button-mist-text: var(--ink);

  --btn-bg: var(--button-mist-bg);
  --btn-bg-hover: var(--button-mist-bg-hover);
  --btn-text: var(--button-mist-text);

  /* ==========================================================================
     Hero overlays
     Overlay values used to control hero-image readability and depth over the
     shared rotating hero background.
     ========================================================================== */

  --hero-overlay-strong: color-mix(in srgb, var(--ink-deep) 76%, transparent);
  --hero-overlay-mid: color-mix(in srgb, var(--ink-deep) 42%, transparent);
  --hero-overlay-soft: color-mix(in srgb, var(--ink-deep) 16%, transparent);
  --hero-overlay-top: color-mix(in srgb, var(--ink-deep) 16%, transparent);
  --hero-overlay-center: color-mix(in srgb, var(--ink-deep) 8%, transparent);
  --hero-overlay-bottom: color-mix(in srgb, var(--ink-deep) 70%, transparent);

  /* ==========================================================================
     Ink image overlays (tune here)
     Opacity of the Ink (#243746) screen laid over photos.
     - --hero-ink-overlay: even screen over the rotating hero image.
     - --hero-ink-overlay-top: extra Ink at the top edge of the hero, fading
       out by 40% of its height, so the header and menu stay readable.
     - --closing-ink-overlay: screen over the footer photo in the closing
       band (.cta-band.band-ink in modules.css).
     ========================================================================== */

  --hero-ink-overlay: 0.85;
  --hero-ink-overlay-top: 0.3;
  --closing-ink-overlay: 0.8;

  /* ==========================================================================
     Glass and form surfaces
     Dark translucent surfaces, field borders, placeholder color, and related
     values used in the hero lead form and other dark-overlay UI.
     ========================================================================== */

  --glass-dark: color-mix(in srgb, var(--ink-deep) 58%, transparent);
  --glass-dark-strong: color-mix(in srgb, var(--ink-deep) 74%, transparent);
  --glass-dark-soft: color-mix(in srgb, var(--ink-deep) 22%, transparent);
  --glass-dark-mid: color-mix(in srgb, var(--ink-deep) 64%, transparent);
  --glass-border-light: color-mix(in srgb, var(--porcelain) 14%, transparent);
  --field-border-light: color-mix(in srgb, var(--porcelain) 12%, transparent);
  --field-bg-light: rgba(255, 255, 255, 0.03);
  --placeholder-light: color-mix(in srgb, var(--porcelain) 62%, transparent);
  --scroll-light: color-mix(in srgb, var(--porcelain) 72%, transparent);

  /* ==========================================================================
     Panels, overlays, and utility surfaces
     Shared panel, lightbox, mobile sticky, CTA, image placeholder, and quote
     values used by site shell elements and utility UI.
     ========================================================================== */

  --panel-dark: color-mix(in srgb, var(--ink-deep) 98%, transparent);
  --panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --lightbox-bg: color-mix(in srgb, var(--ink-deep) 88%, transparent);
  --lightbox-close-bg: color-mix(in srgb, var(--ink-deep) 92%, transparent);
  --lightbox-close-bg-hover: color-mix(in srgb, var(--ink) 96%, transparent);
  --lightbox-image-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --mobile-sticky-bg: color-mix(in srgb, var(--ink-deep) 96%, transparent);
  --cta-bg: var(--ink-deep);
  --image-placeholder: var(--mist);
  --quote-mark: color-mix(in srgb, var(--ink) 50%, transparent);

  /* ==========================================================================
     Layout and elevation
     Shared container width and general-purpose shadow values.
     ========================================================================== */

  --content: 1380px;
  --content-wide: 1400px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.14);

  /* ==========================================================================
     Typography
     Shared font stacks and reusable type tokens consumed across band shells,
     CTA, plan cards, and site-owned sections.
     ========================================================================== */

  /* Below the hero: system stacks only, no web fonts. Large headlines use
     --font-display (Georgia, regular); body text, navigation and buttons use
     --font-body (Arial, regular). */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;

  /* Header and hero only: the fonts they were built with. Set on .site-header
     and .hero in site.css so they stay exactly as built. */
  --font-hero-display: 'Cormorant Garamond', Georgia, serif;
  --font-hero-body: 'Manrope', sans-serif;

  --type-label-size: 0.72rem;
  --type-label-size-sm: 0.68rem;
  --type-label-tracking: 0.14em;
  --type-label-tracking-wide: 0.16em;

  --type-button-size: 0.76rem;
  --type-button-size-sm: 0.72rem;
  --type-button-tracking: 0.13em;

  --type-meta-size: 0.8rem;
  --type-meta-tracking: 0.1em;

  --type-body-size: 1rem;
  --type-body-size-sm: 0.95rem;
  --type-body-line: 1.6;
  --type-body-line-loose: 1.7;

  --type-link-size: 0.76rem;
  --type-link-tracking: 0.14em;

  --type-heading-xl: clamp(2.1rem, 4vw, 3.25rem);
  --type-heading-lg: clamp(1.8rem, 2vw, 2.45rem);
  --type-heading-md: clamp(1.35rem, 2.2vw, 1.95rem);
  --type-heading-sm: clamp(1.3rem, 2vw, 1.7rem);

  --measure-copy: 40ch;
  --measure-copy-wide: 54ch;
  --measure-copy-xl: 60ch;

  /* ==========================================================================
     Shared image variables
     Global image tokens that can be swapped at runtime, including the hero
     background image variable used by shared page heroes.
     ========================================================================== */

  --hero-image: url('/assets/hero/hero-1.webp');
}