/* ==========================================================================
   ArtShotPro design tokens
   --------------------------------------------------------------------------
   Every font, colour, size, radius, shadow and timing on the site comes from
   here. Change a value once and it changes everywhere.

   Examples:
     New display font  -> add its @font-face below, then set --font-display.
     New accent colour -> --accent.
     Tighter sections  -> --section-pad.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL Open Font License; licences in assets/fonts) */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ---- Typography ------------------------------------------------------- */
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --weight-body: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-heading: 700;
  --weight-display: 800;

  --tracking-display: -0.025em;
  --tracking-heading: -0.015em;
  --tracking-eyebrow: 0.16em;
  --leading-tight: 1.04;
  --leading-heading: 1.15;
  --leading-body: 1.6;

  /* Fluid type scale: min, preferred, max */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 0.4vw + 1.05rem, 1.3rem);
  --text-xl: clamp(1.3rem, 0.8vw + 1.1rem, 1.65rem);
  --text-2xl: clamp(1.6rem, 1.4vw + 1.2rem, 2.3rem);
  --text-3xl: clamp(2rem, 2.4vw + 1.3rem, 3.4rem);
  --text-4xl: clamp(2.5rem, 3.6vw + 1.4rem, 4.6rem);
  --text-hero: clamp(2.8rem, 5.2vw + 1.2rem, 6.4rem);

  /* ---- Brand colours (from the logo) ------------------------------------ */
  --brand-navy: #13436b;
  --brand-orange: #dc6b2c;
  --brand-ink: #0f1d29;
  --frame-blue: #62b4d9;
  --frame-orange: #f2a03e;
  --frame-purple: #8e6ca7;
  --frame-red: #e54d47;
  --wood: #e1a865;

  /* ---- Theme: dark is the default ---------------------------------------- */
  --bg: #0a0f16;
  --bg-elev: #101824;
  --bg-elev-2: #172131;
  --bg-glass: rgb(10 15 22 / 0.72);
  --text: #eef2f6;
  --text-muted: #9eabbb;
  --text-faint: #6c7a8b;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.18);
  --accent: var(--brand-orange);
  --accent-hover: #ea7d3f;
  --accent-text: #ffffff;
  --accent-soft: rgb(220 107 44 / 0.14);
  --focus: var(--frame-blue);
  --pass: #3fb27f;
  --miss: #e5574d;
  --info: var(--frame-blue);

  /* Light "gallery wall" sections use .theme-light, which swaps these. */
  --gallery-bg: #f5f1ea;
  --gallery-bg-2: #ebe5da;
  --gallery-text: #15212d;
  --gallery-muted: #586472;
  --gallery-line: rgb(21 33 45 / 0.12);

  /* ---- Space, layout ----------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-height: 68px;

  /* ---- Shape, depth -------------------------------------------------------*/
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-s: 0 2px 8px rgb(0 0 0 / 0.25);
  --shadow-m: 0 18px 50px -18px rgb(0 0 0 / 0.55);
  --shadow-l: 0 40px 120px -30px rgb(0 0 0 / 0.75);
  --shadow-art: 0 30px 80px -25px rgb(0 0 0 / 0.65), 0 8px 20px -10px rgb(0 0 0 / 0.5);

  /* Viewfinder corners (the logo's frame motif) */
  --vf-size: clamp(28px, 5vw, 64px);
  --vf-thick: clamp(3px, 0.5vw, 6px);
  --vf-gap: clamp(10px, 1.6vw, 22px);

  /* ---- Motion -------------------------------------------------------------*/
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 900ms;
}

/* Gallery-wall sections: same component styles, light palette. */
.theme-light {
  --bg: var(--gallery-bg);
  --bg-elev: #fffdf9;
  --bg-elev-2: var(--gallery-bg-2);
  --bg-glass: rgb(245 241 234 / 0.8);
  --text: var(--gallery-text);
  --text-muted: var(--gallery-muted);
  --text-faint: #8a939d;
  --line: var(--gallery-line);
  --line-strong: rgb(21 33 45 / 0.22);
  --accent-soft: rgb(220 107 44 / 0.12);
  --shadow-m: 0 18px 50px -22px rgb(40 30 20 / 0.35);
  --shadow-art: 0 30px 70px -28px rgb(40 30 20 / 0.45), 0 6px 16px -8px rgb(40 30 20 / 0.3);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}
