/*
 * THEME: the only place colours, fonts and decorative images are defined.
 * To change the look, edit the values below. Nothing else hard-codes them.
 *
 * Fonts are loaded in index.html (<link> to Google Fonts). If you swap a
 * font here, update that link too.
 *
 * | Variable              | Used for                                           |
 * |-----------------------|----------------------------------------------------|
 * | --color-bg            | Page background                                    |
 * | --color-surface       | Music button, lightbox, loading veil               |
 * | --color-card          | Details card (with the calendar)                   |
 * | --color-rsvp-card     | RSVP card, on the Champagne RSVP band              |
 * | --color-text          | Body text, headings, names                         |
 * | --color-text-muted    | Secondary text (notes, hints, address)             |
 * | --color-accent        | Buttons, links, focus rings, selected options      |
 * | --color-accent-hover  | Primary button on hover                            |
 * | --color-accent-ink    | Text on top of --color-accent                      |
 * | --color-accent-soft   | Hover/selected backgrounds, placeholder frames     |
 * | --color-border        | Card and fieldset borders (decorative)             |
 * | --color-field-border  | Input borders (must reach 3:1 on the background)   |
 * | --color-placeholder   | Placeholder text in inputs                         |
 * | --color-error         | Error messages                                     |
 * | --color-header        | Sticky top menu background                         |
 * | --color-header-ink    | Text and logo on the top menu                      |
 * | --color-header-rule   | Rule above the menu links                          |
 * | --color-band          | Full-width bands (set per section by band-* class) |
 * | --color-band-champagne| .band-champagne: Details, RSVP, FAQs               |
 * | --color-band-elise    | .band-elise: Order of Events                       |
 * | --color-band-ink      | Text on bands                                      |
 * | --color-band-muted    | Secondary text on bands                            |
 * | --color-band-rule     | Rules on bands: band edges, heading rule, card mat |
 * | --color-footer        | Footer background                                  |
 * | --color-footer-ink    | Footer text                                        |
 * | --intro-ink           | Text on the entrance photo                         |
 * | --intro-scrim         | Shading over the photo so the text stays readable  |
 * | --intro-placeholder   | Entrance background until a photo is set           |
 * | --envelope            | Entrance envelope paper (pocket and flap)          |
 * | --envelope-inside     | Inside of the envelope                             |
 * | --envelope-seam       | Flap edge and the outlines of its lace cut-outs    |
 * | --envelope-edge       | Outline of the pocket                              |
 * | --seal                | Seal on the flap                                   |
 * | --seal-edge           | Seal's scalloped outline                           |
 * | --seal-ink            | Initials on the seal                               |
 * | --font-script         | Names, section headings, RSVP greeting             |
 * | --font-label          | Nav, buttons, labels, times (letter-spaced caps)   |
 * | --font-body           | Everything else                                    |
 * | --divider-image       | Lace edge on the share image (tools/og-image.html) |
 * | --frame-corner        | Ornament in each corner of the invitation card     |
 * | --answer-size         | FAQ answers and directions, below their headings   |
 * | --radius              | Corner rounding on cards, inputs, buttons          |
 */
:root {
  /* Palette (#73). Four colours, plus Sage for decoration and the error red:
       Warm Ivory #f7f5ef  page background, inputs, text on Tea Leaves
       Champagne  #f2ebdd  header, Details, RSVP and FAQ bands, Details card
       Elise      #d4d3b3  Order of Events band, RSVP card, soft fills
       Tea Leaves #4e5138  the only text colour; buttons, footer
       Sage       #8d926f  decoration only (rules, ornaments, band edges).
                           Never text: it is 2.1 to 3.0:1 on the light colours
     Tea Leaves is 7.5:1 on Ivory, 6.9:1 on Champagne and 5.4:1 on Elise (AA);
     Ivory on the hover colour is 5.4:1. Ivory and Champagne are only 1.09:1
     apart, so Sage rules mark where a Champagne band meets the page. Muted text is Tea Leaves too: set it apart
     with size or italics, not opacity. */
  --ivory: #f7f5ef;
  --champagne: #f2ebdd;
  --elise: #d4d3b3;
  --tea-leaves: #4e5138;
  --sage: #8d926f;

  --color-bg: var(--ivory);
  --color-surface: var(--champagne);
  --color-card: var(--champagne);
  --color-rsvp-card: var(--elise); /* Tea Leaves text 5.4:1; Ivory inputs stand out on it */
  --color-text: var(--tea-leaves);
  --color-text-muted: var(--tea-leaves);
  --color-accent: var(--tea-leaves);
  --color-accent-hover: #626747;
  --color-accent-ink: var(--ivory);
  --color-accent-soft: var(--elise);
  --color-border: var(--sage);
  --color-field-border: #d8ceba; /* 1.4:1 on Ivory: soft by design (#73); fields keep visible labels */
  --color-placeholder: #999486; /* 2.8:1 on Ivory: placeholder only, never the only label */
  --color-error: #8a3b2f; /* not in the palette; 6.4:1 or better on Ivory and Champagne */

  /* Light header with a Sage rule underneath, so it stays distinct over the
     Champagne bands while scrolling. */
  --color-header: var(--champagne);
  --color-header-ink: var(--tea-leaves);
  --color-header-rule: var(--sage);

  /* Bands: full-width section backgrounds. .band uses --color-band; the
     band-* classes in index.html pick the colour per section. */
  --color-band: var(--elise);
  --color-band-champagne: var(--champagne);
  --color-band-elise: var(--elise);
  --color-band-ink: var(--tea-leaves);
  --color-band-muted: var(--tea-leaves);
  --color-band-rule: var(--sage);

  --color-footer: var(--tea-leaves);
  --color-footer-ink: var(--ivory);

  --intro-ink: var(--color-text); /* Tea Leaves */
  --intro-scrim: none; /* e.g. linear-gradient(rgb(30 40 27 / 0.3), transparent 50%) if text gets hard to read */
  --intro-placeholder: linear-gradient(160deg, #d4d3b3, #8d926f 55%, #4e5138);
  /* Lace envelope (#47): creams outside the five-colour palette, chosen for
     this envelope's design. */
  --envelope: #f7f4e8;
  --envelope-inside: #e5dec9;
  --envelope-seam: #d5ccb6;
  --envelope-edge: #dfd7c2;
  --seal: var(--color-accent);
  --seal-edge: #3c3f2b;
  --seal-ink: var(--envelope);

  --font-script: 'Pinyon Script', cursive;
  --font-label: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;

  /* Placeholder lace edge (scallops with eyelets). P1: replace with final lace.
     SVG colours can't use the variables above; edit the hex inside if the palette changes. */
  --divider-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 1h24M0 1c0 7 6 11 12 11S24 8 24 1' fill='none' stroke='%238d926f' stroke-width='1'/%3E%3Ccircle cx='12' cy='6' r='1.6' fill='none' stroke='%234e5138' stroke-width='.8'/%3E%3C/svg%3E");

  /* Placeholder scroll flourish, drawn for the top-left corner and mirrored
     for the others. Replace with the final ornament (same 64x64 box). */
  --frame-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%234e5138' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 64V22C6 13 13 6 22 6h42'/%3E%3Cpath d='M12 64V28c0-9 7-16 16-16h36' stroke-width='.7'/%3E%3Cpath d='M6 22c6 0 10-3 10-8s-4-7-7-5-2 6 1 6'/%3E%3Cpath d='M22 6c0 6-3 10-8 10'/%3E%3Cpath d='M30 12c4-6 10-6 13-3m-13 3c5 1 9-1 11-4M12 30c-6 4-6 10-3 13m3-13c1 5-1 9-4 11'/%3E%3Ccircle cx='47' cy='9' r='1.3' fill='%238d926f' stroke='none'/%3E%3Ccircle cx='9' cy='47' r='1.3' fill='%238d926f' stroke='none'/%3E%3C/svg%3E");

  --answer-size: calc(1em * 16.8 / 18); /* FAQ answers and directions: a step below their sub-headings */

  --radius: 6px;
}
