/* ============================================================
   Jude & Rox — design tokens
   Theme (Rox's Canva design, 10 Nov 2026): olive-green textured
   paper, a green envelope with a silver wax seal, real calla lilies,
   anthurium and baby's breath, lace, and the couple's caricatures.
   Colours sampled from her pages. Every colour on the site comes
   from this set; do not add colours outside it. The old names
   (leaf, matcha, forest) are kept, now holding her greens, so every
   section speaks the same palette.
   ============================================================ */

:root {
  /* --- greens (her olive) --- */
  --leaf:          #4F5B3F;   /* buttons, links, headings: her "open note" green */
  --leaf-light:    #7C8A68;   /* secondary lines */
  --olive:         #697858;   /* the envelope */
  --matcha:        #9AA585;   /* soft accents */
  --matcha-pale:   #D9DDCB;   /* pale fills, text on dark green */
  --matcha-mist:   #EFF1E8;   /* the faintest wash */
  --forest:        #454C35;   /* her green paper: the dark bands */
  --forest-deep:   #2A2F20;   /* footer, deepest shade */

  /* --- grounds & ink --- */
  --paper:         #F5F4F0;   /* her light paper: the page */
  --paper-2:       #EFECE7;   /* her card stock: RSVP card, notes */
  --cream:         #EEEAE0;   /* the countdown pill */
  --surface:       #FFFFFF;
  --ink:           #33372B;   /* her text: a dark olive grey */
  --ink-soft:      #4D5244;
  --muted:         #62675A;
  --gold:          #6E6322;   /* the countdown (on --cream: 5:1, readable at label size too) */
  --on-dark:       #F3F1EA;
  --on-dark-soft:  rgba(243, 241, 234, 0.8);

  /* --- what to wear: her fabric palette (p10) --- */
  --wear-white:    #F4F1EA;
  --wear-cream:    #E3D7C3;
  --wear-sand:     #C8B79E;
  --wear-mushroom: #9F9183;
  --wear-almond:   #8B7560;
  --wear-brown:    #5E4A32;

  /* --- shade over photo backgrounds, so text on them stays readable --- */
  --scrim-top:    rgba(42, 47, 32, 0.15);
  --scrim-mid:    rgba(42, 47, 32, 0.45);
  --scrim-bottom: rgba(42, 47, 32, 0.6);

  /* --- cat disco lights ---
     Only the secret cat disco (disco.js, sections.css "Cat disco") uses
     these: white, red and green lights. White is --paper. */
  --disco-red:     #FF4A4A;
  --disco-green:   #7DFF7A;

  /* --- lines --- */
  --rule:          rgba(51, 55, 43, 0.16);
  --rule-soft:     rgba(51, 55, 43, 0.08);
  --rule-on-dark:  rgba(243, 241, 234, 0.3);

  /* --- type ---
     Two fonts only (Earl, 3 Dec 2026), after the invite he chose as the
     reference (brief/inspiration/canva-digital-invite.jpg). Both free
     (SIL OFL), from Google Fonts.
     main  Cormorant Garamond: headings, names, dates and every italic
           line (taglines, captions, signatures). Its letters are small
           for their size, so it is never set under 1.0625rem (17px).
     sub   Jost: body text, labels, buttons and fields. Always upright
           (its italics are not loaded); 16px for anything to read. */
  --f-main: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-sub:  "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* sub font, modular scale 1.25 */
  --t-xs:   0.75rem;    /* 12px  — labels; the smallest text on the site */
  --t-sm:   0.875rem;   /* 14px  — notes */
  --t-base: 1rem;       /* 16px  — body */
  --t-md:   1.1875rem;  /* 19px */
  --t-lg:   1.5rem;     /* 24px */
  --t-xl:   2rem;       /* 32px */
  --t-2xl:  2.75rem;    /* 44px */

  /* main font: one size per role, so every section speaks alike */
  --t-accent: 1.25rem;                                  /* 20px: a short italic line */
  --t-lead:   clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);  /* 20-24px: a lead or a sub-heading */
  --t-title:  clamp(2.5rem, 1.85rem + 2.9vw, 4rem);     /* 40-64px: section titles */

  --track-label: 0.14em;  /* uppercase label letter-spacing: wide enough to
                             feel like a label, not so wide words fall apart */
  --track-util:  0.1em;

  /* --- rhythm --- */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap:    1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 5.5rem;

  --pad-section: clamp(3.5rem, 1rem + 7.5vw, 8rem);
  --pad-edge:    clamp(1.25rem, 5vw, 3.5rem);

  /* Edge padding that also clears the notch / home indicator. In
     landscape the notch is on the left or right, so each side is
     computed separately. env() resolves to 0 on devices without one. */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad-l:  max(var(--pad-edge), env(safe-area-inset-left, 0px));
  --pad-r:  max(var(--pad-edge), env(safe-area-inset-right, 0px));

  --measure: 62ch;        /* running text width */
  --page:    1180px;      /* outer content max */
  --page-narrow: 720px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* The site commits to one visual world — the room it invites people
   into. No dark-mode inversion: every colour below is painted
   explicitly so the page holds on any host background. */
:root { color-scheme: light; }

/* Landscape phones: a 390px-tall viewport can't afford 150px of
   section padding at every boundary, a 70px nav, or a scroll cue
   crowding the hero. Height-gated so tablets and desktops are
   untouched. */
@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --pad-section: clamp(2.5rem, 6vh, 3.5rem);
    --t-title: 2.75rem;
  }
}
