@import url('/assets/fonts.css?v=5');

/* =========================================================================
   EVER Wedding Collection theme.
   Loads last, so it overrides the base tokens. The base system references
   tokens only, so re-skinning is exactly this: new token values, plus a few
   component overrides where a value (radius, weight, tracking) was not a token.

   Warm ivory ground (never stark white) with a faint paper grain, black type,
   nav and buttons, sage as the one selective accent, and champagne-foil gold
   (a gradient with a subtle grain, never a flat hex) for the wordmark, rules
   and eyebrows. Thin 1px lines, 2-4px corners, no heavy shadows.
   A wedding site is LIGHT — the base dark theme is neutralised below so a
   guest on a dark-mode phone still sees the ivory version.
   Fonts: Bodoni Moda (display), Montserrat 300/400/500 (everything else),
   Cormorant Garamond italic (taglines, sparingly). Six weights in total.
   ========================================================================= */
:root{
  --bg:var(--ground); --surface:var(--card); --surface-2:var(--ground); --sunken:#E8E4DB;
  --line:rgba(0,0,0,.12); --line-strong:rgba(0,0,0,.24);
  --ink:#000000; --ink-2:#3A3935; --ink-3:#6F6D66; --ink-inv:#F1EEE7;
  --brand:var(--ink); --brand-hi:#2A2A2A; --brand-lo:var(--ink);
  --brand-wash:var(--sage-wash); --brand-ring:rgba(128,132,106,.55);
  --sage:#80846A; --sage-wash:#E7E9DF; --sage-ink:#4F5340;
  --good:#80846A; --good-wash:#E7E9DF;
  --warn:#8F632D; --warn-wash:#F2EADB;
  --bad:#8C3A2E; --bad-wash:#F0E4E0;
  --field:#F8F6F1; --field-line:rgba(0,0,0,.24);
  --gold:#C59A55; --gold-soft:#DAB56E; --gold-deep:#8F632D;
  --gold-grad:var(--foil);
  --paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sans:'Montserrat',-apple-system,BlinkMacSystemFont,system-ui,'Segoe UI',sans-serif;
  --serif:'Bodoni Moda',Didot,'Bodoni 72','Times New Roman',Georgia,serif;
  --script:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --r-sm:2px; --r:3px; --r-lg:4px; --r-pill:2px;
  --shadow:none;
  --shadow-lift:0 1px 2px rgba(0,0,0,.06);
}
@media (prefers-color-scheme:dark){:root{
  --bg:var(--ground); --surface:var(--card); --surface-2:var(--ground); --sunken:#E8E4DB;
  --line:rgba(0,0,0,.12); --line-strong:rgba(0,0,0,.24);
  --ink:#000000; --ink-2:#3A3935; --ink-3:#6F6D66; --ink-inv:#F1EEE7;
  --brand:var(--ink); --brand-hi:#2A2A2A; --brand-lo:var(--ink);
  --brand-wash:var(--sage-wash); --brand-ring:rgba(128,132,106,.55);
  --good:#80846A; --good-wash:#E7E9DF;
  --warn:#8F632D; --warn-wash:#F2EADB;
  --bad:#8C3A2E; --bad-wash:#F0E4E0;
  --field:#F8F6F1; --field-line:rgba(0,0,0,.24);
  --shadow:none;
  --shadow-lift:0 1px 2px rgba(0,0,0,.06);
}}

/* ---------------------------------------------------------------- ground */
body{background:var(--paper),var(--bg);color:var(--ink);font-family:var(--sans);font-weight:400}
a{color:var(--ink)}
a:hover{color:var(--ink);text-decoration-color:var(--gold)}
.page p a,.help a,.sub a,.stat .n a,td a,.note a,li a,.muted a,.det a{
  text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(0,0,0,.35);text-underline-offset:3px;
}
a.btn,a.btn:hover,a.tile,a.tile:hover,a.navitem,a.navitem:hover,a.brand,a.pill{text-decoration:none}
:focus-visible{outline:2px solid var(--sage);outline-offset:2px;border-radius:2px}
::selection{background:var(--sage-wash);color:var(--ink)}

/* ---------------------------------------------------------------- gold foil */
.gold-text{
  background:var(--paper),var(--gold-grad);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
.gold-rule{display:block;height:1px;border:0;margin:0;padding:0;background:var(--gold-grad)}
.gold-fill{background:var(--paper),var(--gold-grad);color:#1B1408;border:0}

/* ---------------------------------------------------------------- type */
h1,.pagehead h1,.auth h1,.hero .v,.stat .v,.doc h1{
  font-family:var(--serif);font-weight:400;letter-spacing:.005em;
}
h1,.pagehead h1{font-size:30px;line-height:1.15}
h3{font-weight:500;letter-spacing:.01em}
.sub{font-weight:300;font-size:16px;color:var(--ink-2)}
.help,.muted,.det{font-weight:400}
.pagehead .eyebrow{
  display:inline-block;font-weight:500;letter-spacing:.28em;font-size:10.5px;margin-bottom:8px;
  background:var(--paper),var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
h2.sec{font-weight:500;letter-spacing:.24em;font-size:11px;color:var(--ink-3)}
.navsec{font-weight:500;letter-spacing:.24em;font-size:10px;color:var(--ink-3)}
th{font-weight:500;letter-spacing:.16em;font-size:10.5px;color:var(--ink-3);background:var(--surface-2)}
.stat .k,.hero .k,.stamp,.pill{font-weight:500;letter-spacing:.14em}
.stat .v{font-size:26px;letter-spacing:0}
.hero .v{letter-spacing:0}
label,.lab{font-weight:500;letter-spacing:.08em;font-size:11.5px;text-transform:uppercase;color:var(--ink-2)}
.chk{text-transform:none;letter-spacing:0;font-weight:400}

/* ---------------------------------------------------------------- shell + rail */
.side{background:var(--surface)}
.brand{gap:11px;padding:20px var(--s4) 16px;font-weight:400;align-items:center}
/* The real mark: the EVER wax seal, then the wordmark. The seal replaces the
   old gold-ring stand-in; the wordmark is set in black so it stays readable on
   the ivory ground (gold foil on ivory does not read at this size). */
.brand .logo{
  width:38px;height:38px;flex:none;margin:0;border:0;outline:0;border-radius:0;
  background:url(/assets/studio3d/ever-seal.webp) center/contain no-repeat;
  color:transparent;font-size:0;
}
.brand .logo::before{content:none}
/* EVER over WEDDING COLLECTION, both black, Montserrat spaced caps. */
.brand .word{font-size:0;line-height:1;display:flex;flex-direction:column;align-items:flex-start;letter-spacing:0;font-weight:400}
.brand .word::before{
  content:"EVER";font:500 16px/1 var(--sans);letter-spacing:.26em;padding-right:0;
  color:var(--ink);-webkit-text-fill-color:var(--ink);
}
.brand .word::after{
  content:"WEDDING COLLECTION";font:400 8px/1 var(--sans);letter-spacing:.28em;color:var(--ink);
  margin-top:5px;padding-bottom:0;
}
.sidetop .here{font-weight:500;letter-spacing:.02em}
.navtoggle{border-radius:2px;font-weight:500}
.navitem{font-weight:400;color:var(--ink-2);border-radius:2px}
.navitem:hover{background:var(--sunken);color:var(--ink)}
.navitem.on{background:var(--sage-wash);color:var(--ink);font-weight:500}
.sidefoot .who{font-weight:400}
.sidefoot a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(0,0,0,.3);text-underline-offset:3px}
.acctswitch .lab{font-weight:500}

/* ---------------------------------------------------------------- buttons */
.btn{
  background:var(--ink);color:var(--ink-inv);border:1px solid var(--ink);border-radius:2px;
  font-weight:500;font-size:13.5px;letter-spacing:.03em;min-height:44px;padding:11px 20px;
}
.btn:hover{background:var(--brand-hi);border-color:var(--brand-hi);color:var(--ink-inv)}
.btn.sm{min-height:36px;padding:7px 14px;font-size:12.5px}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.btn.ghost:hover{background:rgba(0,0,0,.05);color:var(--ink);border-color:var(--ink)}
.btn.danger{background:transparent;color:var(--bad);border-color:transparent}
.btn.danger:hover{background:var(--bad-wash);color:var(--bad);border-color:transparent}
.linkbtn{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(0,0,0,.35);text-underline-offset:3px;font-weight:400}

/* ---------------------------------------------------------------- surfaces */
.card,.stat,.tile,.tablewrap,.covrow,.mcard,.hero,.empty,.note,.toast{border-radius:3px;box-shadow:none}
.card,.stat,.tile,.tablewrap,.covrow,.mcard,.hero{border:1px solid var(--line)}
.empty{border:1px dashed var(--line-strong);background:transparent}
a.tile:hover{border-color:var(--ink);transform:none;box-shadow:none}
.mcard:hover{border-color:var(--ink)}
.mcard.has{border-left:2px solid var(--ink)}
.covrow.yes{border-left:2px solid var(--sage)}
.tile .ico{border-radius:2px;background:var(--sage-wash);color:var(--ink)}
.tile.locked .ico{background:var(--sunken);color:var(--ink-3)}
.pill{border-radius:2px;padding:3px 8px;background:var(--sunken);color:var(--ink-2)}
.pill.on,.pill.paid{background:var(--sage-wash);color:var(--sage-ink)}
.pill.submitted{background:var(--warn-wash);color:var(--warn)}
.note.info{background:var(--sage-wash);color:var(--sage-ink)}
@media (prefers-color-scheme:dark){.note.info{color:var(--sage-ink)}}
.stamp{border-radius:2px}
.toast{background:var(--ink);color:var(--ink-inv);border-radius:2px}
tr.total td{border-top:1px solid var(--line-strong)}

/* ---------------------------------------------------------------- forms */
input[type=text],input[type=email],input[type=number],input[type=date],input[type=password],
input:not([type]),input[type=tel],input[type=url],input[type=search],select,textarea{
  border-radius:2px;font-family:var(--sans);font-weight:400;background:var(--field);border:1px solid var(--field-line);font-size:16px;
}
input:focus,select:focus,textarea:focus,
input:not([type]):focus,input[type=tel]:focus,input[type=url]:focus,input[type=search]:focus{
  border-color:var(--ink);box-shadow:0 0 0 2px var(--brand-ring);
}
.chk input{border-radius:2px}
.chk input:checked{background:var(--ink);border-color:var(--ink)}

/* ---------------------------------------------------------------- sign in */
.auth{max-width:400px}
.auth .brand{
  flex-direction:column;align-items:center;justify-content:center;gap:16px;
  padding:0;margin-bottom:var(--s5);font-size:inherit;
}
.auth .brand .logo{width:58px;height:58px;margin:0}
.auth .brand .word{display:flex;align-items:center}
.auth .brand .word::before{font-size:30px;padding-left:.26em}
.auth .brand .word::after{font-size:9.5px;padding-left:.28em}
.auth h1{font-size:30px;text-align:center;margin-bottom:8px}
.auth .sub{text-align:center;font-weight:300;font-size:15px;margin:0 auto var(--s5)}
.auth form.card{
  background:var(--gold-grad) top/100% 1px no-repeat,var(--surface);
  border:1px solid var(--line);border-radius:3px;padding:var(--s5);box-shadow:none;
}
.auth form.card .btn{margin-top:4px}
#code{font-family:var(--serif);letter-spacing:.35em;font-size:26px;font-weight:400}
.authfoot{font-weight:300;font-size:13px}
.authfoot a,.authfoot .linkbtn{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:rgba(0,0,0,.35);text-underline-offset:3px;font-weight:400}
.auth .err{font-weight:400}

/* EVER readability pass (11 Sept, evening): Bodoni at a low optical size so hairlines survive phone screens, weight 500 for display; deep gold (no pale highlights) for text on ivory; body copy at 400. */
:root{--gold-text-grad:var(--gold-text)}
h1,h2,h3,.hero h1,.secintro h2,.dhead h1,.maphead h1,.phase-head h2,.pagehead h1{font-optical-sizing:none;font-variation-settings:"opsz" 12;font-weight:500;letter-spacing:.01em}
.gold-text,.eyebrow.gold{background:var(--paper),var(--gold-text-grad)!important;-webkit-background-clip:text!important;background-clip:text!important}
.gold-text{font-variation-settings:"opsz" 12;font-weight:500}
body,p,.sub,.hero p.lede,.dbody p.blurb,.maphead p,.card p,.feat p,.help,.muted,.det,.chip{font-weight:400}
.hero p.lede{color:#1A1917;font-size:clamp(16px,1.7vw,19px);line-height:1.6}
.sub,.card p,.feat p,.maphead p,.dbody p.blurb{color:#2B2A27}
.eyebrow{letter-spacing:.22em;font-weight:500}
@media(max-width:600px){.eyebrow{font-size:10.5px;letter-spacing:.18em}.hero h1{font-size:40px;line-height:1.08}.hero p.lede{font-size:16.5px}}

/* EVER empty-state (Opus, 11 Sept): a fine sage botanical sprig instead of the
   generic line icon, a serif title, unhurried spacing, one clear action. */
.empty{text-align:center;padding:44px 32px;background:transparent;border:1px dashed var(--line-strong)}
.empty .i{display:none}
.empty::before{content:"";display:block;width:62px;height:24px;margin:0 auto 12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='24' viewBox='0 0 62 24' fill='none' stroke='%2380846A' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M31 23V7'/%3E%3Cpath d='M31 16c-6 0-10-3-12-7 5 0 9 2 12 6'/%3E%3Cpath d='M31 16c6 0 10-3 12-7-5 0-9 2-12 6'/%3E%3Cpath d='M31 11c-4 0-7-2-9-5 4 0 7 2 9 5'/%3E%3Cpath d='M31 11c4 0 7-2 9-5-4 0-7 2-9 5'/%3E%3Ccircle cx='31' cy='6' r='1.5' fill='%2380846A' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat}
.empty h3{font-family:var(--serif);font-optical-sizing:none;font-variation-settings:"opsz" 12;font-weight:500;margin:0 0 6px}
.empty p{color:#2B2A27;max-width:46ch;margin:0 auto}
.empty .btn{margin-top:18px}

/* ---------------------------------------------------------------- rail groups (2026-09-12) */
/* The 14-item feature rail (lib/wed_shell.php) is grouped under four
   collapsible headers: Invitations and guests, Planning, The day, After.
   Layout, the toggle button and the chevron live inline with that markup
   (co-located with the script that drives them); this is the brand pass so
   a group header reads like the existing .navsec section labels instead of
   inventing a new type treatment, plus a hairline between groups. */
.navgrph .lbl{font-family:var(--sans);font-weight:500;letter-spacing:.24em;font-size:10px;text-transform:uppercase;color:var(--ink-3)}
.navgrp.act .navgrph .lbl{color:var(--brand)}
.navgrp{border-top:1px solid var(--line)}
.navgrp:first-of-type{border-top:0}

/* ---------------------------------------------------------------- input zoom fix */
input,select,textarea{font-size:max(16px,1em)}
