/* Self-hosted fonts (latin subset, WOFF2, from Google Fonts). Cormorant Garamond is a variable font:
   one file covers every roman weight, one every italic weight. */
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: block;   /* a script face swapped in late reads as a different design */
  src: url("assets/fonts/allura-400-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-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-roman-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-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-italic-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;
}

/* Tokens · "Nashik at harvest": shamiana stripes, grape ink, marigold gold, watercolour paper */
:root {
  /* Paper & card */
  --color-paper:    oklch(95.8% 0.024 83);   /* matches the painted artwork's ground */
  --color-paper-2:  oklch(92.5% 0.03 82);
  --color-card:     oklch(98.6% 0.008 85);   /* photo prints, form fields */

  /* Ink */
  --color-ink:      oklch(27% 0.03 340);
  --color-ink-2:    oklch(40% 0.03 340);
  --color-muted:    oklch(52% 0.025 340);
  --color-rule:     oklch(84% 0.03 80);      /* decorative hairlines */
  --color-rule-strong: oklch(66% 0.04 70);   /* control borders: fields, tabs, chips */

  /* Voice colours */
  --color-grape:    oklch(40% 0.11 340);     /* script, caps, rope, buttons */
  --color-grape-2:  oklch(32% 0.10 340);     /* button hover */
  --color-gold:     oklch(60% 0.12 72);      /* event titles, ampersands */
  --color-heart:    oklch(53% 0.19 22);      /* sparkle confetti */
  --color-string:   oklch(55% 0.06 60);      /* line the couple photos hang from */
  --color-peg:      oklch(68% 0.07 60);
  --color-peg-edge: oklch(55% 0.07 60);
  --color-marigold: oklch(80% 0.15 75);
  --color-on-dark:  oklch(98% 0.01 85);

  /* Shamiana stripes */
  --color-stripe-a: oklch(87% 0.10 84);      /* soft marigold */
  --color-stripe-b: oklch(96.5% 0.02 85);    /* ivory */
  --color-stripe-c: oklch(83% 0.06 10);      /* dusty rani-pink thread */
  --color-stripe-d: oklch(91% 0.06 84);      /* pale haldi */

  /* RSVP card wash */
  --color-wash:     oklch(93% 0.05 84);

  /* States */
  --color-focus:    oklch(45% 0.18 340);
  --color-error:    oklch(48% 0.17 25);

  /* Shadows (tinted) */
  --shadow-card: 0 1px 2px oklch(27% 0.03 340 / 0.10), 0 14px 30px -12px oklch(27% 0.03 340 / 0.28);
  --shadow-soft: 0 10px 40px -18px oklch(27% 0.03 340 / 0.35);
  --color-scrim: oklch(20% 0.04 330 / 0.55);
  --color-dusk:  oklch(22% 0.045 330);       /* the band under the closing painting */

  /* Type */
  --font-serif:  "Cormorant Garamond", Georgia, serif;
  --font-script: "Allura", Georgia, "Times New Roman", serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.875rem;
  --text-body-s: 1.0625rem;
  --text-base: 1.1875rem;
  --text-md:   1.375rem;
  --text-lg:   1.75rem;
  --text-xl:   2.5rem;
  --text-2xl:  3.25rem;

  --track-caps: 0.16em;   /* labels, meta, pills, tabs */
  --track-wide: 0.24em;   /* the one wide caps title */

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --gutter: 1.5rem;
  --invite-width: 30rem;
  --radius-xs:   2px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --radius-card: 14px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short: 220ms;
  --dur-draw:  2600ms;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   /* polaroid drop only */

  --z-float: 200;
  --z-opener: 400;
  --z-sparkle: 500;
}
