/**
 * Design tokens.
 *
 * Brand design tokens — Τριαντάφυλλος Βασίλης design system (Figma file
 * QwM6xJk13nrzn0qS189Xd1, "Foundations"). Components read only the semantic
 * --sf-color-* tokens, never a primitive. One place to change a value
 * instead of hunting through component files. All custom tokens use the
 * `--sf-` namespace.
 *
 * Fluid values use clamp(min, preferred, max), where `preferred` is a
 * linear interpolation between a 320px (20rem) and a 1440px (90rem)
 * viewport — the same method as Utopia-style fluid scales. Below 320px the
 * token holds at `min`; above 1440px it holds at `max`, so nothing grows
 * unbounded on ultra-wide screens.
 */

:root {
	/* ---------------------------------------------------------------
	 * Colours — neutral placeholders, not brand colours. Chosen for
	 * accessible contrast on a white/near-black baseline so they can be
	 * swapped for brand values later without breaking contrast ratios.
	 * ------------------------------------------------------------- */
	/* ---------------------------------------------------------------
	 * BRAND FOUNDATIONS — Figma "Foundations" (262:514) + variables.
	 * Primitives are never used directly in components; components read
	 * the semantic --sf-color-* tokens below. The site default is the
	 * "Modern tones" light mode (owner decision 2026-10-27, Figma
	 * 288:908); `.sf-inverse` (navy surfaces) is the second mode.
	 * ------------------------------------------------------------- */
	--sf-navy-900: #0c273b;      /* brand dark: headings, dark sections, footer */
	--sf-ink-950: #0f1112;       /* body text on light only */
	--sf-sky-300: #abcfe0;       /* logo colour — accent on dark ONLY (1.65:1 on white) */
	--sf-sky-50: #eaf2f7;        /* pale sky: Modern-tones muted surface, inverse hover */
	--sf-warm-grey-400: #bbb7b8; /* decorative rules; muted text on navy */
	--sf-warm-grey-500: #8a8687;
	--sf-warm-grey-700: #5e5a5b;
	--sf-stone-100: #e4e1e1;
	--sf-paper-50: #f2f0ef;
	--sf-slate-blue-600: #4e5d68; /* Modern tones: muted text (Figma variable) */
	--sf-slate-blue-500: #7a8892; /* Modern tones: control borders */
	--sf-slate-blue-200: #cfd8de; /* Modern tones: subtle borders */
	--sf-mist-50: #f5f7f8;        /* Modern tones: page background (Figma 288:908) */
	--sf-white: #ffffff;
	--sf-red-700: #b3261e;
	--sf-red-200: #f2b8b5;

	/* Semantic — Light (Modern tones). Names match Figma's CSS column. */
	--sf-color-bg: var(--sf-mist-50);
	--sf-color-surface: var(--sf-white);
	--sf-color-surface-muted: var(--sf-sky-50);
	--sf-color-accent: var(--sf-sky-300);
	--sf-color-action: var(--sf-navy-900);
	--sf-color-action-hover: var(--sf-ink-950);
	--sf-color-on-action: var(--sf-white);
	--sf-color-text: var(--sf-ink-950);
	--sf-color-heading: var(--sf-navy-900);
	--sf-color-logo: var(--sf-navy-900);
	--sf-color-text-muted: var(--sf-slate-blue-600);
	/* Kept for backwards compatibility with header/mega-menu code that
	   reads it; now aliases the muted tone instead of a separate grey. */
	--sf-color-text-faint: var(--sf-slate-blue-600);
	--sf-color-border: var(--sf-slate-blue-200);
	--sf-color-border-strong: var(--sf-slate-blue-500);
	--sf-color-border-emphasis: var(--sf-navy-900);
	--sf-color-focus: var(--sf-navy-900);
	--sf-color-icon: var(--sf-navy-900);
	--sf-color-link: var(--sf-navy-900);
	--sf-color-link-hover: var(--sf-ink-950);
	--sf-color-overlay: rgb(12 39 59 / 50%);
	--sf-color-danger: var(--sf-red-700);
	--sf-shadow-raised: 0 12px 32px rgb(12 39 59 / 10%); /* Figma Shadow/Raised */
	--sf-shadow-menu: 0 12px 16px rgb(12 39 59 / 10%);   /* Figma mega menu / dropdown drop-shadow */

	/* ---------------------------------------------------------------
	 * Typography — Figma Foundations → Typography. Literata for titles,
	 * quotes and reading; Commissioner for interface, labels and meta.
	 * Self-hosted variable fonts, Greek + Latin (assets/css/fonts.css).
	 * ------------------------------------------------------------- */
	--sf-font-sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sf-font-serif: "Literata", Georgia, "Times New Roman", serif;
	--sf-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--sf-font-weight-regular: 400;
	--sf-font-weight-medium: 500;
	--sf-font-weight-semibold: 600;
	--sf-font-weight-bold: 700;

	--sf-leading-tight: 1.1;
	--sf-leading-heading: 1.2;
	--sf-leading-body: 1.6;
	--sf-leading-relaxed: 1.75;

	--sf-tracking-tight: -0.02em;
	--sf-tracking-normal: 0em;
	--sf-tracking-wide: 0.04em;

	/* ---------------------------------------------------------------
	 * Fluid type scale — 13 steps, xs through 6xl plus three display
	 * sizes reserved for future hero/section headings (not applied to
	 * any element yet — see typography.css).
	 * ------------------------------------------------------------- */
	--sf-text-xs: clamp(0.8125rem, 0.7946rem + 0.0893vw, 0.875rem);
	--sf-text-sm: clamp(0.875rem, 0.8571rem + 0.0893vw, 0.9375rem);
	--sf-text-base: clamp(1rem, 0.9821rem + 0.0893vw, 1.0625rem);
	--sf-text-lg: clamp(1.125rem, 1.0893rem + 0.1786vw, 1.25rem);
	--sf-text-xl: clamp(1.25rem, 1.1786rem + 0.3571vw, 1.5rem);
	--sf-text-2xl: clamp(1.5rem, 1.3929rem + 0.5357vw, 1.875rem);
	--sf-text-3xl: clamp(1.875rem, 1.7679rem + 0.5357vw, 2.25rem);
	--sf-text-4xl: clamp(2.25rem, 2.1071rem + 0.7143vw, 2.75rem);
	--sf-text-5xl: clamp(2.75rem, 2.5714rem + 0.8929vw, 3.375rem);
	--sf-text-6xl: clamp(3.25rem, 3.0357rem + 1.0714vw, 4rem);
	--sf-text-display-sm: clamp(3.5rem, 3.2143rem + 1.4286vw, 4.5rem);
	--sf-text-display-md: clamp(4rem, 3.5714rem + 2.1429vw, 5.5rem);
	--sf-text-display-lg: clamp(4.5rem, 3.9286rem + 2.8571vw, 6.5rem);
	--sf-text-display-xl: clamp(4.5rem, 2.9rem + 8vw, 8rem); /* Figma Display/XL 128px @1440 */
	/* Figma `text/page-title` — Display/Page: 88px @1440, 44px @390 (inner-page H1). */
	--sf-text-page-title: clamp(2.75rem, 1.7284rem + 4.1905vw, 5.5rem);
	--sf-sky-100: #d7e7f1; /* Figma sky/100 — video facade surface */

	/* ---------------------------------------------------------------
	 * Spacing scale — 12 steps. The four smallest are static (tight,
	 * component-level spacing has no reason to change with viewport
	 * width); md and up are fluid (content/section spacing genuinely
	 * benefits from more breathing room on larger screens).
	 * ------------------------------------------------------------- */
	--sf-space-3xs: 0.25rem;
	--sf-space-2xs: 0.5rem;
	--sf-space-xs: 0.75rem;
	--sf-space-sm: 1rem;
	--sf-space-md: clamp(1.25rem, 1.1071rem + 0.7143vw, 1.75rem);
	--sf-space-lg: clamp(1.75rem, 1.5357rem + 1.0714vw, 2.5rem);
	--sf-space-xl: clamp(2.5rem, 2.2143rem + 1.4286vw, 3.5rem);
	--sf-space-2xl: clamp(3rem, 2.4286rem + 2.8571vw, 5rem);
	--sf-space-3xl: clamp(4rem, 3.2857rem + 3.5714vw, 6.5rem);
	--sf-space-4xl: clamp(5rem, 4.1429rem + 4.2857vw, 8rem);
	--sf-space-5xl: clamp(6rem, 4.8571rem + 5.7143vw, 10rem);
	--sf-space-6xl: clamp(8rem, 6.5714rem + 7.1429vw, 13rem);

	/* Form-group spacing — Figma variables `space/group-top` (48) and
	   `space/legend-gap` (24), used by the order form (464:2814). */
	--sf-space-group-top: 3rem;    /* 48px — above a field group / fieldset */
	--sf-space-legend-gap: 1.5rem; /* 24px — legend to first control */

	/* Semantic section-spacing — reuses the spacing scale rather than
	   duplicating clamp() math, so .sf-section variants stay in lockstep
	   with the spacing system. */
	--sf-section-sm: var(--sf-space-xl);
	--sf-section-md: var(--sf-space-2xl);
	--sf-section-lg: var(--sf-space-4xl);
	--sf-section-xl: var(--sf-space-6xl);

	/* ---------------------------------------------------------------
	 * Layout grid — ONE shared content edge for the whole site (approved
	 * grid spec 2026-10-27). Every container is `.sf-shell` (layout.css):
	 * max content 1280px, side gutter FIXED per breakpoint (not fluid),
	 * 4 / 8 / 12 columns with a per-breakpoint column gap. The three
	 * values below are re-declared at the breakpoints at the end of this
	 * file; nothing else may define its own gutter or container width.
	 *
	 *   < 768        gutter 20   col-gap 16   4 columns
	 *   768 – 1023   gutter 40   col-gap 24   8 columns
	 *   1024 – 1279  gutter 64   col-gap 40   12 columns
	 *   >= 1280      gutter 80   col-gap 40   12 columns (content 1280 at 1440+)
	 *
	 * --sf-container-narrow (720) is a centred MEASURE inside the shell for
	 * long-form text, never a second edge. Line length elsewhere comes from
	 * text max-widths / --sf-measure*.
	 * ------------------------------------------------------------- */
	--sf-page-max: 80rem;                 /* 1280px content width */
	--sf-page-gutter: 1.25rem;            /* 20px */
	--sf-col-gap: 1rem;                   /* 16px */
	--sf-columns: 4;
	--sf-container-narrow: 45rem;         /* 720px — measure inside the shell */

	/* ---------------------------------------------------------------
	 * Measure — readable line length. ~65ch is the commonly cited
	 * comfortable default; sm/lg give room either side of it.
	 * ------------------------------------------------------------- */
	--sf-measure-sm: 45ch;
	--sf-measure: 65ch;
	--sf-measure-lg: 75ch;

	/* ---------------------------------------------------------------
	 * Borders & radius — conservative; final visual treatment (fully
	 * rounded, sharp, etc.) is a brand-identity decision, not this one.
	 * ------------------------------------------------------------- */
	--sf-border-width: 1px;
	--sf-radius-none: 0;
	--sf-radius-xs: 0.125rem; /* Figma radius/xs 2px — images (optional), tags */
	--sf-radius-sm: 0.25rem;  /* Figma radius/sm 4px — buttons, inputs */
	--sf-radius-md: 0.5rem;
	--sf-radius-lg: 1rem;
	--sf-radius-full: 9999px;

	/* ---------------------------------------------------------------
	 * Shadows — restrained, neutral. Not applied to anything globally;
	 * available for components that are deliberately elevated later.
	 * ------------------------------------------------------------- */
	--sf-shadow-sm: 0 1px 2px rgb(0 0 0 / 6%);
	--sf-shadow-md: 0 4px 12px rgb(0 0 0 / 8%);
	--sf-shadow-lg: 0 12px 32px rgb(0 0 0 / 10%);

	/* ---------------------------------------------------------------
	 * Motion — Figma collection «Motion» (550:64), modes Full / Reduced.
	 * Names match 1:1: `motion/duration/fast` ↔ `--sf-duration-fast`.
	 * Single source of truth: JS reads these (SF.motion.token()), nothing
	 * duplicates them. The Reduced mode is applied in ONE place, the
	 * prefers-reduced-motion block at the end of this file.
	 *
	 * Opening = base + settle. Closing = fast + exit (closes quicker than
	 * it opens). Entrances all use `settle`. Displacement never exceeds
	 * 24px (no token above `md`). Stagger: at most 6 items, ≤ 400ms total.
	 * Only transform and opacity are animated.
	 * ------------------------------------------------------------- */
	--sf-duration-fast: 150ms;   /* hover, focus, colour/border, closing */
	--sf-duration-base: 250ms;   /* opening menus/drawer/dialog, messages */
	--sf-duration-slow: 600ms;   /* section/card reveals, hero lead + CTAs */
	--sf-duration-slower: 900ms; /* hero H1, image settle */

	--sf-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);   /* colour / state changes */
	--sf-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);   /* every entrance */
	--sf-ease-exit: cubic-bezier(0.32, 0, 0.67, 0);     /* closings */
	--sf-ease-scroll: cubic-bezier(0.25, 1, 0.5, 1);    /* lenis.scrollTo; JS: t => 1 - (1 - t) ** 4 */

	--sf-distance-xs: 4px;   /* panels, messages, arrow nudge */
	--sf-distance-sm: 8px;   /* page-header intro, dialog panel */
	--sf-distance-md: 16px;  /* section reveal, hero */

	--sf-stagger-sm: 60ms;   /* lines, steps, lists */
	--sf-stagger-md: 100ms;  /* cards, pillars, columns */
	--sf-stagger-lg: 160ms;  /* hero beats */

	--sf-scale-settle: 1.04; /* start size of an image that settles */
	--sf-scale-hover: 1.02;  /* card image on hover (fine pointer only) */

	/* Retired aliases: kept so nothing that still reads an old name breaks;
	   new code uses the tokens above. Remove once grep shows no use. */
	--sf-ease-soft: var(--sf-ease-settle);
	--sf-ease-out: var(--sf-ease-settle);
	--sf-ease-emphasized: var(--sf-ease-settle);
	--sf-reveal-distance: var(--sf-distance-md);

	/* ---------------------------------------------------------------
	 * Z-index — semantic layers instead of arbitrary numbers. Leave
	 * headroom between steps for anything that needs to slot between.
	 * ------------------------------------------------------------- */
	--sf-z-base: 0;
	--sf-z-sticky: 10;
	--sf-z-header: 20;
	--sf-z-dropdown: 30;
	--sf-z-overlay: 40;
	--sf-z-modal: 50;
	--sf-z-toast: 60;

	/* ---------------------------------------------------------------
	 * Header & global navigation — Figma "Header & Menus" (273:537) and
	 * "Mobile Navigation" (273:538). Exact component measurements that
	 * have no step on the spacing scale get their own small fixed set.
	 * ------------------------------------------------------------- */
	--sf-topbar-height: 2.25rem;            /* 36px — Top Bar, every state */
	--sf-header-height-mobile: 4rem;        /* 64px — Mobile Header */
	--sf-header-height-desktop: 5.25rem;    /* 84px — Header / Desktop */
	--sf-header-nav-gap: 1.5rem;            /* 24px between nav items (20px at 1024–1439) */
	--sf-header-nav-gap-compact: 1.25rem;   /* 20px — Figma: "gap items 20" at 1024–1439 */
	--sf-header-tap: 2.75rem;               /* 44px — search / cart / menu-toggle target */
	--sf-header-dropdown-width: 20rem;      /* 320px — simple dropdown */
	--sf-nav-indicator: 1.5px;              /* nav underline thickness (Figma indicator) */
	--sf-focus-ring-width: 2px;             /* Figma focus: 2px ring, 2px offset */
	--sf-focus-ring-offset: 2px;

	/* Header open/close motion now reads the shared Motion tokens
	   (open = base + settle, close = fast + exit). These aliases keep the
	   historic names for any caller that still uses them. */
	--sf-header-ease: var(--sf-ease-settle);
	--sf-header-duration-menu: var(--sf-duration-base);
	--sf-header-duration-dropdown: var(--sf-duration-base);
	--sf-header-duration-drawer: var(--sf-duration-base);
	--sf-header-duration-accordion: var(--sf-duration-base);
	--sf-header-reveal-distance: var(--sf-distance-xs);
	--sf-header-reveal-distance-sm: var(--sf-distance-xs);

	/* ---------------------------------------------------------------
	 * Type roles — Figma text styles. Size/leading/tracking triples used
	 * by more than one component, so a role is changed in one place.
	 * ------------------------------------------------------------- */
	--sf-tracking-eyebrow: 0.08em;   /* Label/Eyebrow 8% (1.12px at 14px) */
	--sf-tracking-button: 0.01em;    /* Label/Button 1% */
	--sf-tracking-h1: -0.01em;       /* Heading/H1 -1% */
	--sf-tracking-h2: -0.005em;      /* Heading/H2 -0.5% */
	--sf-tracking-display: -0.015em; /* Display/Hero -1.5% */
	--sf-leading-label: 1.2;         /* Label/Button */
	--sf-leading-nav: 1.3;           /* Label/Nav, Label/Eyebrow */
	--sf-leading-meta: 1.4;          /* Label/Meta */
	--sf-leading-small: 1.55;        /* Body/Small */
	--sf-leading-h1: 1.12;
	--sf-leading-h2: 1.18;
	--sf-leading-h3: 1.25;
	--sf-leading-h4: 1.3;
	--sf-leading-h5: 1.35;
	--sf-leading-quote-lg: 1.3;
	--sf-leading-quote-md: 1.45;
}

/* -------------------------------------------------------------------
 * Inverse mode (Figma "Mode · Inverse") — navy surfaces: footer, dark
 * homepage sections, top bar. Apply `.sf-inverse` to the section; every
 * component inside reads the same semantic tokens and flips with it.
 * ----------------------------------------------------------------- */
.sf-inverse,
.sf-section--dark {
	--sf-color-bg: var(--sf-navy-900);
	--sf-color-surface: var(--sf-navy-900);
	--sf-color-surface-muted: var(--sf-navy-900);
	--sf-color-accent: var(--sf-sky-300);
	--sf-color-action: var(--sf-sky-300);
	--sf-color-action-hover: var(--sf-sky-50);
	--sf-color-on-action: var(--sf-navy-900);
	--sf-color-text: var(--sf-white);
	--sf-color-heading: var(--sf-white);
	--sf-color-logo: var(--sf-sky-300);
	--sf-color-text-muted: var(--sf-warm-grey-400);
	--sf-color-text-faint: var(--sf-warm-grey-400);
	--sf-color-border: var(--sf-warm-grey-700);
	--sf-color-border-strong: var(--sf-warm-grey-400);
	--sf-color-border-emphasis: var(--sf-sky-300);
	--sf-color-focus: var(--sf-sky-300);
	--sf-color-icon: var(--sf-white);
	--sf-color-link: var(--sf-sky-300);
	--sf-color-link-hover: var(--sf-white);
	--sf-color-danger: var(--sf-red-200);
	background-color: var(--sf-color-bg);
	color: var(--sf-color-text);
}

/* -------------------------------------------------------------------
 * Layout grid per breakpoint (see "Layout grid" above). Breakpoints are
 * 48em (768), 64em (1024), 80em (1280). The desktop-header breakpoint in
 * components.css / header.js (DESKTOP_QUERY) is 1024 as well.
 * ----------------------------------------------------------------- */
@media (min-width: 48em) {
	:root {
		--sf-page-gutter: 2.5rem;  /* 40px */
		--sf-col-gap: 1.5rem;      /* 24px */
		--sf-columns: 8;
	}
}

@media (min-width: 64em) {
	:root {
		--sf-page-gutter: 4rem;    /* 64px */
		--sf-col-gap: 2.5rem;      /* 40px */
		--sf-columns: 12;
	}
}

@media (min-width: 80em) {
	:root {
		--sf-page-gutter: 5rem;    /* 80px */
	}
}

/* -------------------------------------------------------------------
 * Motion — Reduced mode (Figma «Motion» collection, mode Reduced). One
 * place: every transition/animation in the theme reads these tokens, so
 * opening/closing/hover become fades ≤ 150ms with no displacement, no
 * stagger and no scaling. (GSAP and Lenis are not even loaded: see
 * assets/js/core/motion.js.)
 * ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	:root {
		--sf-duration-base: 150ms;
		--sf-duration-slow: 150ms;
		--sf-duration-slower: 150ms;
		--sf-distance-xs: 0px;
		--sf-distance-sm: 0px;
		--sf-distance-md: 0px;
		--sf-stagger-sm: 0ms;
		--sf-stagger-md: 0ms;
		--sf-stagger-lg: 0ms;
		--sf-scale-settle: 1;
		--sf-scale-hover: 1;
	}
}

/* -------------------------------------------------------------------
 * Large screens (≥1600): the whole system scales with the viewport, so a
 * 2560 screen shows the 1440 design at 125% instead of a 1280 column with
 * empty sides. Everything is in rem, so content width, type and spacing
 * grow together: 16px @1600 → ~17.7px @2000 → 20px @2560 (cap).
 * Media queries are in em and are not affected by this.
 * ----------------------------------------------------------------- */
@media (min-width: 100em) {
	html {
		font-size: clamp(100%, 0.4167vw + 0.5833rem, 125%);
	}
}
