/* effieandjack.com theme. The ONE place to change when the save-the-date
   typography and palette are final: swap the fonts and the color tokens here
   and every page follows. Page files should never hard-code a color or a
   font family; they use the variables below. */

/* Old Standard TT (SIL OFL, fonts/OFL.txt), Google's Latin cut, served from
   this site so pages don't wait on Google's servers (2026-11-05). The other
   looks' faces (Dorsa, Inter, Cormorant, Great Vibes) come from Google only on
   a ?look= preview; the look script in each page's head adds them. */
@font-face {
  font-family: "Old Standard TT";
  src: url(/fonts/old-standard-400.woff2?v=48f9f02f) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url(/fonts/old-standard-700.woff2?v=b57915f2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url(/fonts/old-standard-400-italic.woff2?v=37de00fa) format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* Britannic Medium Compressed, the save-the-date's caps face. Paid Linotype
   font: until a licensed web file is added at /fonts/britannic-medium-compressed.woff2
   (then add it as a url() source below), only a copy installed on the viewer's
   own machine is used and everyone else sees --font-body. */
@font-face {
  font-family: "Britannic Compressed";
  src: local("Britannic LT Medium Compressed"), local("BritannicLT-MediumCompressed"), local("Britannic Medium Compressed");
  font-display: swap;
}

/* Roboto Flex (SIL OFL, fonts/OFL.txt), fixed at settings close to Britannic
   Medium Compressed (thick uprights, thin crossbars) and cut down to Latin,
   about 14 KB. Used for the names, date line and THANK YOU only. */
@font-face {
  font-family: "EJ Flex Display";
  src: url(/fonts/ej-flex-display.woff2?v=4b8441ea) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* type */
  --font-display: "Dorsa", "Arial Narrow", sans-serif;   /* names, headings, dates: the save-the-date face */
  --font-body: "Inter", system-ui, sans-serif;            /* everything else */
  --font-caps: "Britannic Compressed", var(--font-body);      /* small caps lines: date kicker, day, city */
  --font-heading: var(--font-display);                    /* step headings and instructions */
  --font-script: "Great Vibes", "Snell Roundhand", cursive; /* envelope preview, calligraphy touches */
  --text-case: none;      /* whole-page case */
  --display-case: none;   /* the names; uppercase in the soft look */
  --menu-ink: var(--ink); /* the site menu; its own color in the soft look */

  /* palette, light */
  --bg: #dcebe3;          /* page ground */
  --ink: #1c3a34;         /* text */
  --muted: #5c7d73;       /* secondary text, kickers */
  --line: #b9d2c8;        /* borders, rules */
  --card: #ffffff;        /* print borders, cards, inputs */
  --accent: #1f4740;      /* buttons, links */
  --accent-ink: #f3f8f5;  /* text on accent */
  --error: #a33b2c;
  --ok: #2e6b4f;
  --warn: #9a6b12;
  --shadow: rgba(28, 58, 52, 0.2);

  /* The Winter Garden's marble floor, sampled from photos (2026-10-31). The
     building's colors, so the same in every look: the travel page's bullets
     are its tile, a green diamond in white with a rose dot for the discs. */
  --floor-green: #2b4b4b;  /* the dark verde marble */
  --floor-white: #e1e2dc;  /* the white marble */
  --floor-rose: #8d6e62;   /* the rose discs */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12211d;
    --ink: #dcebe3;
    --muted: #8fada2;
    --line: #2f4a43;
    --card: #1a2f29;
    --accent: #cfe5db;
    --accent-ink: #12211d;
    --error: #e39a8c;
    --ok: #9fd3b6;
    --warn: #e0b45c;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

/* Save-the-date looks, to compare on the preview (Effie, 2026-10-15). Add
   ?look=green or ?look=white to any page URL. The grass green is matched from
   photos of the card stock, so it may need a nudge. These win over dark mode:
   the card is the card. Grass green on white is too faint for small text, so
   the white look sets body text in a deeper green from the same family. */
:root[data-look="green"] {
  --bg: #a4b448;
  --ink: #1f2b0e;
  --muted: #3a4a18;
  --line: #7f8e2e;
  --card: #f6f8ea;
  --accent: #1f2b0e;
  --accent-ink: #e9efc8;
  --error: #7a1f12;
  --ok: #1f2b0e;
  --warn: #5a3d00;
  --shadow: rgba(31, 43, 14, 0.3);
}
:root[data-look="white"] {
  --bg: #ffffff;
  --ink: #5f6e1c;
  --muted: #7d8b3a;
  --line: #d9e0b4;
  --card: #ffffff;
  --accent: #7d8d2c;
  --accent-ink: #ffffff;
  --error: #a33b2c;
  --ok: #5f6e1c;
  --warn: #9a6b12;
  --shadow: rgba(95, 110, 28, 0.2);
}

/* Soft look (Jack, 2026-10-15): the softer green from the comparison page with
   dark green type. The Britannic-like Roboto Flex cut, in capitals, for the
   names and date; Old Standard TT in normal case for everything people read, with
   level numbers so street numbers and ZIPs are easy to check. The
   address page opens on it;
   ?look=green, white or mint still switch. */
:root[data-look="soft"] {
  --font-display: "EJ Flex Display", "Arial Narrow", sans-serif;
  --font-body: "Old Standard TT", Georgia, serif;
  --font-heading: "Old Standard TT", Georgia, serif;
  --numerals: lining-nums;
  --font-caps: "EJ Flex Display", "Arial Narrow", sans-serif;
  --font-script: "EJ Flex Display", "Arial Narrow", sans-serif;
  --display-case: uppercase;
  /* Jack, 2026-11-01: the menu stands out in its own color, the floor's
     verde marble green. */
  --menu-ink: var(--floor-green);
  --bg: #b6c27f;
  --ink: #1f2b0e;
  --muted: #34431a;
  --line: #8f9c58;
  --card: #f6f8ea;
  --accent: #1f2b0e;
  --accent-ink: #eef2d8;
  --error: #7a1f12;
  --ok: #1f2b0e;
  --warn: #5a3d00;
  --shadow: rgba(31, 43, 14, 0.3);
}
