/* ==========================================================================
   foundation.css — Responsive foundation (shared by all public pages)
   Hinsch Portrait Studio

   This file is the SINGLE source of the site's responsive design tokens:
   the fluid type scale, the spacing scale, and the base safety rules.
   It is linked FIRST on every public page; page stylesheets build on it
   and must not redefine these tokens.

   Canonical breakpoints (use ONLY these — see
   deployment/RESPONSIVE_CONVENTIONS.md):
     400px   small phones            900px   tablet / small laptop
     480px   large phones            1080px  desktop
     640px   phones / phablets       1240px  wide desktop + nav collapse
     768px   tablets (portrait)
   The one sanctioned min-width query is (min-width: 641px), the exact
   complement of (max-width: 640px), for the homepage hero's tall layout.
   ========================================================================== */

:root {
  /* Fluid type scale — clamp(min, preferred, max). One control point
     per step; change a step here and it changes everywhere it is used. */
  --fs-hero: clamp(2.5rem, 5vw, 5.1rem);          /* homepage hero headline */
  --fs-display: clamp(2.7rem, 6vw, 5.8rem);       /* page titles (.studio-title) */
  --fs-section: clamp(2.35rem, 5vw, 4.2rem);      /* section headings */
  --fs-h2: clamp(2rem, 4vw, 3.4rem);              /* secondary headings */
  --fs-h3: 2rem;                                  /* card headings */
  --fs-lede: clamp(1.18rem, 2vw, 1.48rem);        /* intro / lede text */
  --fs-body: 1.125rem;                            /* default body copy */
  --fs-small: 1rem;

  /* Line heights */
  --lh-display: 1.02;
  --lh-heading: 1.12;
  --lh-body: 1.55;

  /* Spacing scale (rem-based, doubles-ish rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 5.5rem;

  /* Layout */
  --wrap-max: 1180px;                             /* .studio-wrap width */
  --page-max: 1360px;                             /* widest content rows */

  /* Buttons — one minimum size for every button style on the site */
  --btn-min-height: 48px;
  --btn-pad-y: 14px;
  --btn-pad-x: 24px;
}

/* Base safety rules (apply on every public page) */
*, *::before, *::after { box-sizing: border-box; }
/* Outer page margin — the announcement banner, header and hero run
   edge to edge. This rule is the ONLY control point for the page's
   outer margin: page stylesheets must not set a body margin. (Four
   legacy page stylesheets repeat `margin: 0` on their body class;
   harmless, same value.) */
body { margin: 0; }
html, body { overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }

/* Every button style meets the same minimum size, so buttons feel
   consistent and stay tappable on touch screens. Page stylesheets set
   padding/appearance; this floor is not to be undercut. */
.btn, .studio-button, .gallery-card__button {
  min-height: var(--btn-min-height);
}
