/* ==========================================================================
   Design tokens: colours, type and motion
   Source: references/wedding-colour-and-typography-guide-2.pdf
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Licensed display fonts (exact faces from references/reference-fonts.png)
   Put the licensed web fonts in /fonts/licensed/ and uncomment the url()
   lines. Until then, the open-licence stand-ins below are used.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Amsterdam Three";
  src: local("Amsterdam Three"), local("AmsterdamThree"), local("Amsterdam Three Regular");
       /* , url("../fonts/licensed/amsterdam-three.woff2") format("woff2") */
  font-display: swap;
}
@font-face {
  font-family: "Regular Vibes GR";
  src: local("Regular Vibes GR"), local("Regular Vibes"), local("RegularVibes-Regular");
       /* , url("../fonts/licensed/regular-vibes-gr.woff2") format("woff2") */
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Interim stand-ins (SIL Open Font Licence, self-hosted)
   Ms Madi: closest open match to Amsterdam Three (monoline handwriting).
   EB Garamond Italic: Greek letters only, until the Greek script file is
   supplied (no open script font with full Greek was found).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Ms Madi";
  src: url("../fonts/msmadi-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: "Ms Madi";
  src: url("../fonts/msmadi-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: "Greek Script Interim";
  src: url("../fonts/ebgaramond-italic-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  font-display: swap;
}
@font-face {
  font-family: "Greek Script Interim";
  src: url("../fonts/ebgaramond-italic-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
  font-display: swap;
}
/* Greek display dates use Amsterdam Three numerals (per the font reference):
   digits, punctuation and "&" come from the English display face. */
@font-face {
  font-family: "Display Numerals";
  src: local("Amsterdam Three"), local("AmsterdamThree"),
       url("../fonts/msmadi-latin.woff2") format("woff2");
  unicode-range: U+0020-0040, U+00B7, U+2013-2014, U+2026;
  font-display: swap;
}

/* Body: Arimo Regular / Bold (variable file covers both weights) */
@font-face {
  font-family: "Arimo";
  src: url("../fonts/arimo-latin.woff2") format("woff2");
  font-weight: 400 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("../fonts/arimo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("../fonts/arimo-greek.woff2") format("woff2");
  font-weight: 400 700;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
  font-display: swap;
}

:root {
  /* Exact palette (do not approximate) */
  --signature-purple: #6D6393; /* large headings, main buttons, key marks */
  --deep-plum: #4F4669;        /* body text, small links, labels, details */
  --sketch-lavender: #B5ACC8;  /* decorative sketch details */
  --lilac-mist: #E8E2EB;       /* pale washes, quieter panels */
  --warm-ivory: #F2EDEA;       /* primary paper and reading surfaces */
  --sunset-peach: #DABFB1;     /* warmth in sky and art */
  --powder-blue: #C1D4E2;      /* original upper sky */
  --sky-wash: #DDE8F0;         /* paler blue tint */
  --sage-haze: #E5E5E1;        /* near-neutral sky transition */
  --peach-veil: #F1DDD3;       /* pale warm transition */

  /* Derived helpers (mixes of the palette, for edges and states only) */
  --ivory-lilac: #EEE8EB;      /* warm ivory blended toward lilac mist */
  --ivory-peach: #F3E6E0;      /* warm ivory blended toward peach veil */
  --field-border: #857BA6;     /* purple/lavender mix, 3:1 against ivory */
  --rule: rgba(181, 172, 200, 0.6);
  --error: #9A4560;            /* muted rose that sits with the plum family */

  /* Type */
  --font-body: "Arimo", "Helvetica Neue", Arial, sans-serif;
  --font-display-en: "Amsterdam Three", "Ms Madi", "Snell Roundhand", cursive;
  --font-display-el: "Display Numerals", "Regular Vibes GR", "Greek Script Interim", "Ms Madi", serif;
  --font-display: var(--font-display-en);
  --display-scale: 1;          /* Greek is sized optically below */

  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);     /* 16 → 18px */
  --fs-small: 0.9375rem;                                 /* 15px */
  --fs-eyebrow: 0.8125rem;                               /* 13px */
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --fs-display: clamp(2.375rem, 1.55rem + 3.6vw, 5.25rem);  /* 38 → 84px */
  --fs-display-xl: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);   /* 44 → 88px */
  --fs-display-sm: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);
  --lh-body: 1.6;

  /* Space & layout */
  --container: 1200px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section-gap: clamp(72px, 4rem + 5vw, 140px);
  --header-h: 64px;
  --radius: 3px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.45, 0.05, 0.25, 1);
  --dur-reveal: 600ms;
  --dur-micro: 200ms;
  --reveal-shift: 10px;
}

:root:lang(el) {
  --font-display: var(--font-display-el);
  --display-scale: 0.86;
}

@media (max-width: 720px) {
  :root { --header-h: 58px; }
}
