/* SeaHome II design system: tokens
   Version 1.0, 2026-11-26. Faithful round: every value below was measured from the
   capture of seahome2.com (the site's own :root variables in its stylesheet, checked
   against the colors the browser computed). Nothing here is new to the brand.
   Naming: --c-* are primitives (raw values); everything else is a role that points at
   a primitive. A tone (data-tone="night") re-points the roles, never the primitives. */

:root {
  /* ---- Color primitives --------------------------------------------------
     Measured: the site's :root writes these 14 values; 10 are painted on the home. */
  --c-night: #0e1114;        /* the dark under the hero and the closing photo */
  --c-paper: #f6f3ee;        /* the page; 52% of the full-page picture */
  --c-ink: #1c1c1c;          /* text and the solid button */
  --c-teak: #b98e5e;         /* the accent: underlines and the quote rule */
  --c-hull: #d9d5cf;         /* behind a photograph while it loads */
  --c-grey-1: #4a4741;       /* quieter text */
  --c-grey-2: #6b665f;       /* labels and dates under quotes */
  --c-hairline: #1c1c1c24;   /* ink at 14%: rules on paper */
  --c-hairline-night: #f6f3ee4d; /* paper at 30%: rules on night */
  --c-scrim: #0e1114b3;      /* night at 70% over the closing photo */
  --c-paper-white: #fcfbf8;  /* field fill (forms, not on the home) */
  --c-field-line: #898885;   /* field border (forms, not on the home) */
  --c-hull-40: #eae7e2;      /* panel fill (not on the home) */
  --c-error: #9b2c1f;        /* error text (not on the home) */

  /* ---- Color roles (paper tone, the default) ------------------------------
     Contrast, measured against paper #f6f3ee. Text needs 4.5:1, large text
     (24 px and up, or 19 px bold) and lines/icons need 3:1. */
  --surface: var(--c-paper);
  --surface-night: var(--c-night);
  --surface-photo: var(--c-hull);
  --surface-field: var(--c-paper-white);
  --surface-panel: var(--c-hull-40);
  --text: var(--c-ink);              /* 15.40:1 on paper */
  --text-quiet: var(--c-grey-1);     /* 8.36:1 on paper */
  --text-label: var(--c-grey-2);     /* 5.14:1 on paper */
  --text-on-night: var(--c-paper);   /* 17.11:1 on night */
  --line: var(--c-hairline);         /* a divider, not a boundary: no 3:1 needed */
  --line-on-night: var(--c-hairline-night);
  --field-line: var(--c-field-line); /* 3.20:1 on paper */
  --accent: var(--c-teak);           /* 2.67:1 on paper, 6.40:1 on night. Kept as measured;
                                        see the report: the link underline under 3:1 is an offer */
  --scrim: var(--c-scrim);
  --error: var(--c-error);           /* 6.84:1 on paper */
  --focus: var(--c-ink);             /* 15.40:1 on paper */
  --focus-on-night: var(--c-teak);   /* 6.40:1 on night */
}

:root {
  /* ---- Type ----------------------------------------------------------------
     Measured: two families, both the site's own files (base.css loads them).
     Cormorant Garamond 300, 300 italic, 400, 500 for display and quotes;
     Instrument Sans 400, 500 for everything a visitor reads or presses.
     Decided: the roles below are the site's own sizes, kept exactly. */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --t-hero: clamp(40px, 5.3vw, 78px);   /* hero headline: 76.3 at 1440, 40 at 390 */
  --t-display: clamp(30px, 3vw, 44px);  /* section heading, dates: 43.2 at 1440, 30 at 390 */
  --t-title: clamp(26px, 2.2vw, 32px);  /* names, large quote: 31.7 at 1440, 26 at 390 */
  --t-quote: 26px;                      /* guest quote: 26, 20 at 390 */
  --t-mark: 20px;
  --t-body: 16px;                       /* 17 from 1200 up and at 390 */
  --t-small: 15px;                      /* 16 at 390 */
  --t-note: 14px;                       /* captions, footer, button: 16 at 390 */
  --t-label: 14px;                      /* section labels: 14 at every width */
  --t-field: 16px;
  --t-ui: 16px;                         /* the top bar's links and menu */

  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;

  --lh-tight: 1.06;
  --lh-serif: 1.2;
  --lh-text: 1.55;
  --track-mark: .02em;
  --track-ui: .03em;
  --track-button: .04em;
  --measure: 60ch;

  /* ---- Space -----------------------------------------------------------------
     Measured: the site's own scale, a 4 px base. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* ---- Layout ----------------------------------------------------------------
     Measured: 64 px page margin (24 from 900 down), 1312 px container, 12 columns,
     24 px gutter, 50 px section padding (36 at 600 down), 80 px after the hero.
     Breakpoints, named here because CSS cannot read a variable in a media query:
     wide 1200 and up, nav 1180 (the menu replaces the links), stack 900, phone 600. */
  --m: 64px;
  --gap: 24px;
  --sec: 50px;
  --sec-open: 80px;
  --wrap: 1312px;
  --bar: 84px;
  --bar-pin: 84px;
  --target: 44px;          /* the smallest thing a finger presses */
  --field: 52px;

  /* ---- Shape -----------------------------------------------------------------
     Measured: one radius, one rule weight, no shadows anywhere. */
  --radius: 2px;
  --rule: 1px;
  --focus-ring: 2px;       /* the browser outline the site relies on, written down */

  /* ---- Motion ----------------------------------------------------------------
     Measured. The signature moves: the hero lines rise out of a mask, and photographs
     open with a top-down wipe as they enter. Under reduced motion there is none:
     everything is simply there (the page script only switches motion on when welcome). */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --ease-line: cubic-bezier(.2, .7, .2, 1);
  --ease-wipe: cubic-bezier(.6, 0, .2, 1);
  --t-fast: .16s;
  --t-bar: .32s;
  --t-reveal: .7s;
  --t-wipe: 1.1s;
}

@media (width >= 1200px) {
  :root { --t-body: 17px; }
}
@media (width <= 900px) {
  :root { --m: 24px; --sec-open: 64px; }
}
@media (width <= 600px) {
  :root {
    --sec: 36px;
    --t-title: 26px;
    --t-quote: 20px;
    --t-display: 30px;
    --bar: 68px;
    --bar-pin: 68px;
    --t-mark: 18px;
    --t-body: 17px;
    --t-small: 16px;
    --t-note: 16px;
  }
}
