/* ==========================================================================
   THEME — every colour, font and size that defines the look.
   Change values here; nothing else needs to be touched for a re-skin.
   ========================================================================== */
:root {
  /* page background (the "linen" the envelope sits on): soft sage */
  --linen: #eceee2;
  --linen-2: #dde1d0;

  /* envelope paper, outside — lightest to darkest (ivory) */
  --paper-hi: #fbf8f1;
  --paper: #f5f0e5;
  --paper-mid: #f1ebdf;
  --paper-2: #ebe4d6;
  --paper-lo: #e6dece;
  --paper-fold: #efe9dc;

  /* envelope paper, inside: blush lining, like the frame's pink buds */
  --inside-1: #e6c8c1;
  --inside-2: #efd9d4;
  --inside-3: #f3e2dd;
  --inside-pocket: #e8cec7;
  --gum: #efe6d8;            /* the gummed strip on the open lid */
  --fold-shadow: #3e4a33;    /* colour of shadows cast by folds */
  --lid-shade: #2a3320;      /* darkening on the lid as it turns */

  /* invitation card and the cards below it */
  --card: #fdf9f2;           /* ivory */
  --ink: #2f3b26;
  --ink-soft: #5d6b50;
  --gold: #8c8445;           /* olive: rules, dividers, ampersand on the envelope */
  --olive: #7a7130;          /* the times on the card */

  /* accent: names, text on the card, seal, RSVP button */
  --green: #435b31;
  --seal-hi: #6b8257;
  --seal-lo: #2a3a1e;

  /* fonts (loaded in index.html from Google Fonts) */
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", Garamond, Georgia, serif;

  /* the M&E monogram on the wax seals: same in every language */
  --monogram: "Pinyon Script", "Snell Roundhand", cursive;

  /* Hebrew fonts (the Latin ones above have no Hebrew letters); used on :lang(he) below */
  --script-he: "Bellefair", "Frank Ruhl Libre", "David", serif;
  --caps-he: "Bellefair", "Frank Ruhl Libre", "David", serif;
  --body-he: "Frank Ruhl Libre", "David", Georgia, serif;

  /* envelope size: 88% of screen width, never wider than 420px */
  --env-w: min(88vw, 420px);
  --env-h: calc(var(--env-w) / 1.4);

  /* card text size relative to the envelope */
  --card-text: calc(var(--env-w) * .021);

  /* paper grain texture */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
