/* Aly & Mimi — design tokens. Sampled from the PSD's flattened render
   (the type layers' own fills are #848A70 sage and #DEB3AD rose; the
   colour-correction stack on top darkens them to what is seen below).
   This file is owned by the orchestrator. */

@font-face {
  font-family: "Reggie";
  src: url("../assets/fonts/cs-reggie-drawn.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Youth";
  src: url("../assets/fonts/the-youth.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  /* Vladimir Script: the script "Aly" and "Mimi's" are set in on the card.
     Used for the handwritten line on the envelope. block: that line starts
     masked anyway, so it never shows in a fallback face first. */
  font-family: "Vladimir";
  src: url("../assets/fonts/vladimir-script.woff2") format("woff2");
  font-display: block;
}

@font-face {
  /* The Youth for numerals that must sit centred in a frame. The font's own
     line metrics are lopsided (ascent 2230 / descent 1081 on a 1000 em, digits
     inked from -10 to 710), so digits sit low in any box. These overrides make
     the line box symmetric about the digits' centre (350): with line-height 1
     the ink is optically centred. Use var(--font-num-box). */
  font-family: "Youth Num";
  src: url("../assets/fonts/the-youth.woff2") format("woff2");
  font-display: swap;
  ascent-override: 85%;
  descent-override: 15%;
  line-gap-override: 0%;
}

:root {
  /* paper */
  --paper: #f2d6ce;          /* card centre */
  --paper-edge: #f0d1c9;     /* toward the vignette */
  --paper-deep: #e6c2b9;     /* emboss shadow side */
  --paper-light: #f8ede4;    /* emboss highlight, filigree white */
  --linen: #e9ddd3;          /* table surface under the envelope */

  /* ink */
  --sage: #757d5e;           /* lettering + details as rendered */
  --sage-type: #848a70;      /* the type layers' own fill */
  --sage-soft: #aca088;      /* botanical mid-tone */
  --sage-deep: #5f6749;      /* pressed/hover, wax seal shadow */
  --rose: #d7aea6;           /* "&", "Engagement" as rendered */
  --rose-type: #deb3ad;
  --rose-deep: #c9978f;      /* accents that must read on paper */

  /* type */
  --font-text: "Reggie", "Cormorant Garamond", Georgia, serif;
  --font-script: "Vladimir", "Reggie", Georgia, serif; /* the names' script */
  --font-num: "Youth", "Cormorant Garamond", Georgia, serif;
  --font-num-box: "Youth Num", "Cormorant Garamond", Georgia, serif; /* centred numerals; line-height: 1 */

  /* motion (owner's doctrine: timed, starts and settles). --tempo scales every
     duration (js/tempo.js sets it; 1.3 = the owner's slower pace). */
  --tempo: 1.3;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bloom: cubic-bezier(0.34, 1.26, 0.64, 1);
  --dur-quick: 320ms;
  --dur-base: 620ms;
  --dur-slow: 900ms;

  /* layout */
  --card-ratio: 1620 / 2160;
  --gutter: 16px;
}
