/* ═══════════════════════════════════════════════════════════════
   SANTA MIAMI — The Nicholas Ledger
   Shared by index.html (English) and es/index.html (Spanish).
   Red is Santa's. Green is the grown-ups'. The ground tells the
   reader which room they are in.
   ═══════════════════════════════════════════════════════════════ */

:root{
  --seal:#A81F2D;        --seal-deep:#8A1825;
  --evergreen:#1C4034;   --evergreen-deep:#122C23;
  --ivory:#FAF6EF;       --ivory-warm:#F1EBE0;
  --ink:#1F1A17;         --ink-soft:#5E554D;
  --gilt-bright:#E2C17A; --gilt:#C79A42;  --gilt-dark:#96702A;

  --serif:'EB Garamond',Garamond,'Adobe Garamond Pro','Times New Roman',serif;
  --measure:34rem;
  --gut:clamp(1.25rem,4vw,2.5rem);
  --stack:clamp(3.25rem,8vw,6rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;background:var(--ivory);color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(1.0625rem,.35vw + 1rem,1.1875rem);
  line-height:1.68;text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}

.wrap{width:100%;max-width:64rem;margin-inline:auto;padding-inline:var(--gut)}
.narrow{max-width:var(--measure);margin-inline:auto}

h1,h2,h3{margin:0;font-weight:500;line-height:1.16;text-wrap:balance;letter-spacing:.005em}

.eyebrow{
  font-size:.6875rem;letter-spacing:.22em;text-transform:uppercase;
  margin:0 0 1.1rem;color:var(--gilt-dark);
}

/* gold rule with a centered diamond */
.orn{display:flex;align-items:center;justify-content:center;gap:.9rem;color:var(--gilt);margin:0}
.orn::before,.orn::after{content:'';height:1px;flex:1;max-width:5rem;
  background:linear-gradient(90deg,transparent,currentColor)}
.orn::after{background:linear-gradient(270deg,transparent,currentColor)}
.orn span{font-size:.7rem;line-height:1}

a{color:inherit}
:focus-visible{outline:2px solid var(--gilt);outline-offset:3px}

/* ── language switch ─────────────────────────────────────────── */
.lang{background:var(--ink);color:var(--ivory);font-size:.75rem;
  letter-spacing:.18em;text-transform:uppercase}
.lang .wrap{display:flex;justify-content:flex-end;padding-block:.6rem}
.lang a{color:var(--gilt-bright);text-decoration:none;
  border-bottom:1px solid rgba(226,193,122,.4);padding-bottom:1px}
.lang a:hover{border-bottom-color:var(--gilt-bright)}

/* ── masthead ────────────────────────────────────────────────── */
.masthead{background:var(--seal);color:var(--ivory);text-align:center;
  padding:clamp(2.75rem,7vw,4.5rem) 0 clamp(2.5rem,6vw,4rem);position:relative}
.masthead::after{content:'';position:absolute;inset:.85rem;
  border:1px solid rgba(226,193,122,.3);pointer-events:none}
.masthead>.wrap{position:relative;z-index:1}

/* Referenced as a file, never inlined — the SVG in brand/ is the only
   source of truth for the crest geometry. */
.crest{width:clamp(5.5rem,13vw,7rem);height:auto;aspect-ratio:1;
  margin:0 auto 1.4rem;display:block}

.masthead h1{font-size:clamp(2.125rem,6.5vw,3.75rem);margin-bottom:1rem}
.masthead .sub{font-style:italic;color:rgba(251,243,231,.92);
  font-size:clamp(1.0625rem,1.3vw + .75rem,1.4375rem);
  max-width:32rem;margin:0 auto}
.masthead .orn{color:var(--gilt-bright);margin:1.6rem auto 0;max-width:20rem}

/* the hero photograph, framed like a plate in an album */
.plate{margin:clamp(2rem,5vw,2.75rem) auto 0;max-width:24rem;
  background:var(--ivory);padding:.65rem;
  box-shadow:0 1px 0 rgba(0,0,0,.15),0 0 0 1px rgba(226,193,122,.5)}
.plate--wide{max-width:46rem}
.plate img{width:100%}
.plate figcaption{font-size:.8125rem;font-style:italic;color:var(--ink-soft);
  padding:.6rem .2rem 0;text-align:center;line-height:1.5}

/* ── generic section ─────────────────────────────────────────── */
section{padding:var(--stack) 0}
.sec-title{font-size:clamp(1.625rem,3.4vw + .5rem,2.5rem);color:var(--seal);
  text-align:center;margin-bottom:.8rem}
.sec-lede{text-align:center;color:var(--ink-soft);max-width:36rem;
  margin:0 auto clamp(2.25rem,5vw,3.25rem)}
/* when a title carries the section alone, it inherits the lede's breathing room */
.sec-title.solo{margin-bottom:clamp(2.25rem,5vw,3.25rem)}
.center{text-align:center}
.align-left{text-align:left}

/* ── the letter ──────────────────────────────────────────────── */
.letter{background:var(--ivory-warm)}
.letter-grid{display:grid;gap:clamp(1.75rem,4vw,3rem);align-items:start}
@media(min-width:52rem){.letter-grid{grid-template-columns:22rem 1fr}}
/* framed as a plate, like the album, since it now belongs to the album */
.letter-photo{margin:0;background:var(--ivory);padding:.6rem;
  box-shadow:0 0 0 1px rgba(176,141,87,.45)}
.letter-photo img{width:100%}
.letter-photo figcaption{font-size:.875rem;font-style:italic;color:var(--ink-soft);
  padding:.55rem .25rem 0;line-height:1.5;text-align:center}
.letter p{margin:0 0 1.15rem}
.letter p:last-of-type{margin-bottom:0}
.letter .dropcap::first-letter{float:left;font-size:3.7rem;line-height:.84;
  padding:.06em .1em 0 0;color:var(--seal)}
.letter .sign{font-style:italic;font-size:1.1875rem;color:var(--seal);margin-top:1.6rem}
.letter .sec-title{margin-bottom:1.4rem}

/* ── services ────────────────────────────────────────────────── */
.services{display:grid;gap:1px;background:rgba(176,141,87,.42);
  border:1px solid rgba(176,141,87,.42)}
@media(min-width:44rem){.services{grid-template-columns:1fr 1fr}}
.svc{background:var(--ivory);padding:clamp(1.6rem,3.2vw,2.35rem)}
.svc h3{font-size:1.3125rem;color:var(--seal);margin-bottom:.55rem}
.svc p{margin:0;color:var(--ink-soft);font-size:1rem}
.svc p+p{margin-top:.8rem}

/* ── the two choices made after the event type ───────────────── */
.choose{display:grid;gap:clamp(1.75rem,4vw,3rem);
  border:1px solid rgba(176,141,87,.42);padding:clamp(1.6rem,3.2vw,2.35rem)}
@media(min-width:46rem){.choose{grid-template-columns:1fr 1fr}}
.choose h3{font-size:1.25rem;color:var(--seal);margin-bottom:.85rem}
.choose ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.choose li{padding-left:1.4rem;position:relative;color:var(--ink-soft);font-size:1rem}
.choose li::before{content:'';position:absolute;left:0;top:.62em;width:5px;height:5px;
  background:var(--gilt);transform:rotate(45deg)}
.choose .opt{margin-bottom:1.05rem}
.choose .opt:last-child{margin-bottom:0}
.choose .opt b{display:block;color:var(--seal);font-weight:500;font-size:1.0625rem;
  margin-bottom:.15rem}
.choose .opt span{color:var(--ink-soft);font-size:1rem}

/* ── the album ───────────────────────────────────────────────── */
.album{background:var(--ink);color:var(--ivory)}
.album .sec-title{color:var(--gilt-bright)}
.album .sec-lede{color:rgba(251,243,231,.72)}
.album .eyebrow{color:var(--gilt)}

/* Column flow rather than grid: photographs vary in shape, and a grid
   stretches the short ones into tall empty boxes. Columns also read more
   like a pasted-up album, which is the point. */
.plates{columns:1;column-gap:clamp(1.25rem,3vw,2rem)}
@media(min-width:38rem){.plates{columns:2}}
@media(min-width:60rem){.plates{columns:3}}
.plates figure{margin:0 0 clamp(1.25rem,3vw,2rem);background:var(--ivory);padding:.6rem;
  box-shadow:0 0 0 1px rgba(226,193,122,.28);break-inside:avoid}
.plates img{width:100%}
.plates figcaption{font-size:.875rem;font-style:italic;color:var(--ink-soft);
  padding:.55rem .25rem 0;line-height:1.5}

/* Album photographs are buttons so the keyboard gets them for free. */
.plate-btn{display:block;width:100%;padding:0;border:0;background:none;
  cursor:zoom-in;font:inherit;color:inherit;position:relative}
.plate-btn img{transition:opacity .2s}
.plate-btn:hover img,.plate-btn:focus-visible img{opacity:.86}

/* ── lightbox ────────────────────────────────────────────────── */
.lb{position:fixed;inset:0;z-index:100;display:grid;place-items:center;
  padding:clamp(.75rem,3vw,2.5rem)}
.lb[hidden]{display:none}
.lb-backdrop{position:absolute;inset:0;background:rgba(16,13,11,.94);border:0;padding:0;
  cursor:zoom-out}

.lb-frame{position:relative;z-index:1;background:var(--ivory);padding:.6rem;
  max-width:min(92vw,64rem);box-shadow:0 0 0 1px rgba(226,193,122,.3),0 18px 50px rgba(0,0,0,.5)}
.lb-img{max-width:100%;max-height:72vh;width:auto;height:auto;margin-inline:auto}
.lb-cap{font-size:clamp(.875rem,1vw + .5rem,1rem);font-style:italic;color:var(--ink-soft);
  padding:.65rem .3rem .1rem;margin:0;text-align:center;line-height:1.5}

.lb-count{position:relative;z-index:1;margin:.9rem 0 0;font-family:var(--serif);
  font-size:.6875rem;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(226,193,122,.75);text-align:center;font-variant-numeric:tabular-nums}

.lb-btn{position:absolute;z-index:2;display:grid;place-items:center;
  width:2.9rem;height:2.9rem;border:1px solid rgba(226,193,122,.4);
  background:rgba(16,13,11,.72);color:var(--gilt-bright);
  cursor:pointer;padding:0;transition:background .16s,border-color .16s}
.lb-btn:hover{background:rgba(168,31,45,.9);border-color:var(--gilt-bright)}
.lb-btn svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lb-prev{left:clamp(.4rem,2vw,2rem);top:50%;transform:translateY(-50%)}
.lb-next{right:clamp(.4rem,2vw,2rem);top:50%;transform:translateY(-50%)}
.lb-close{top:clamp(.4rem,2vw,1.5rem);right:clamp(.4rem,2vw,1.5rem)}
.lb-btn[disabled]{opacity:.3;cursor:default}
.lb-btn[disabled]:hover{background:rgba(16,13,11,.72);border-color:rgba(226,193,122,.4)}

@media(max-width:34rem){
  .lb-img{max-height:62vh}
  .lb-prev{left:.4rem}
  .lb-next{right:.4rem}
}
.credit{text-align:center;font-size:.8125rem;color:rgba(251,243,231,.5);
  margin:clamp(1rem,2vw,1.5rem) 0 0;font-style:italic}

/* ── the door: child-facing invite ───────────────────────────── */
.invite{background:var(--seal);color:var(--ivory);text-align:center}
.invite h2{font-size:clamp(1.75rem,4vw + .5rem,2.75rem);margin-bottom:1rem;color:var(--ivory)}
.invite p{font-size:clamp(1.125rem,1.4vw + .75rem,1.4375rem);
  max-width:28rem;margin:0 auto;color:rgba(251,243,231,.94)}
.invite .orn{color:var(--gilt-bright);margin:1.75rem auto 0;max-width:18rem}

/* ── grown-ups: the ground changes, and that IS the door ─────── */
.grown{background:var(--evergreen);color:#EAE3D4}
.grown .eyebrow{color:var(--gilt)}
.grown h2,.grown .sec-title{color:var(--gilt-bright)}
.grown h3{color:var(--gilt-bright);font-size:1.1875rem;margin-bottom:.7rem}
.grown .sec-lede{color:rgba(234,227,212,.78)}
.grown a{color:var(--gilt-bright)}
.grown strong{color:var(--gilt-bright);font-weight:500}

form{max-width:40rem;margin-inline:auto}
.field{margin-bottom:1.3rem}
.row{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem}
@media(max-width:34rem){.row{grid-template-columns:1fr;gap:0}}

label{display:block;font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(234,227,212,.72);margin-bottom:.45rem}
label .req{color:var(--gilt-bright)}

input,select,textarea{
  width:100%;font-family:var(--serif);font-size:1.0625rem;
  color:var(--ink);background:var(--ivory);
  border:1px solid rgba(226,193,122,.5);border-radius:0;
  padding:.68rem .8rem;-webkit-appearance:none;appearance:none;
  transition:border-color .15s,box-shadow .15s;
}
select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2396702A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .85rem center;
  background-size:.7rem;padding-right:2.2rem;
}
textarea{min-height:7rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gilt-bright);
  box-shadow:0 0 0 3px rgba(226,193,122,.22)}

/* checkbox group — a heading plus wrappable options, not a single label */
.group-label{display:block;font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(234,227,212,.72);margin:0 0 .6rem}
.checks{display:grid;gap:.55rem}
@media(min-width:34rem){.checks{grid-template-columns:1fr 1fr}}
.checks label{display:flex;align-items:flex-start;gap:.55rem;margin:0;cursor:pointer;
  font-size:1rem;letter-spacing:normal;text-transform:none;color:#EAE3D4}
.checks input[type="checkbox"]{width:1.05rem;height:1.05rem;flex:none;margin:.25rem 0 0;
  padding:0;accent-color:var(--seal)}

.honeypot{position:absolute;left:-9999px;opacity:0;pointer-events:none}

button{
  width:100%;font-family:var(--serif);
  font-size:.8125rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--ivory);background:var(--seal);
  border:none;border-radius:0;padding:1.05rem 1.5rem;cursor:pointer;
  margin-top:.4rem;box-shadow:inset 0 0 0 1px rgba(226,193,122,.4);
  transition:background .16s,transform .06s;
}
button:hover{background:var(--seal-deep)}
button:active{transform:translateY(1px)}
button[disabled]{opacity:.62;cursor:progress}

.form-status{text-align:center;margin:1.15rem 0 0;font-style:italic;min-height:1.6rem}
.form-status.ok{color:var(--gilt-bright)}
.form-status.err{color:#F0B7BD}

/* grown-ups detail blocks */
.details{display:grid;gap:clamp(1.75rem,4vw,2.75rem);
  margin-top:clamp(2.5rem,5vw,3.5rem);
  padding-top:clamp(2.25rem,5vw,3rem);border-top:1px solid rgba(226,193,122,.28)}
@media(min-width:46rem){.details{grid-template-columns:1fr 1fr}}
.details p{margin:0 0 1rem;font-size:1rem;color:rgba(234,227,212,.85)}
.details p:last-child{margin-bottom:0}
.details ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.details li{padding-left:1.35rem;position:relative;font-size:1rem;color:rgba(234,227,212,.85)}
.details li::before{content:'';position:absolute;left:0;top:.62em;width:5px;height:5px;
  background:var(--gilt);transform:rotate(45deg)}
.details h3+h3,.details ul+h3{margin-top:2rem}

.contact-elf{margin-top:clamp(2.25rem,5vw,3rem);padding-top:1.6rem;
  border-top:1px solid rgba(226,193,122,.28);text-align:center;font-size:1rem}
.contact-elf p{margin:0}
.contact-elf .name{color:var(--gilt-bright)}
.contact-elf .aside{font-style:italic;color:rgba(234,227,212,.7);
  font-size:.9375rem;margin-top:.5rem}

/* ── kind words ──────────────────────────────────────────────── */
.words{background:var(--ivory-warm)}
.pull{max-width:34rem;margin:0 auto clamp(2.5rem,5vw,3.25rem);text-align:center}
.pull blockquote{margin:0;font-size:clamp(1.5rem,3vw + .5rem,2.125rem);
  font-style:italic;color:var(--seal);line-height:1.28}
.pull footer{font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-soft);margin-top:1.1rem}
.quotes{display:grid;gap:clamp(1.6rem,3.5vw,2.5rem)}
@media(min-width:46rem){.quotes{grid-template-columns:repeat(3,1fr)}}
.quotes blockquote{margin:0;display:flex;flex-direction:column;height:100%}
.quotes blockquote p{font-style:italic;margin:0 0 .9rem;flex:1;font-size:1rem}
.quotes blockquote .tr{font-style:italic;color:var(--ink-soft);font-size:.9375rem;
  margin:-.4rem 0 .9rem}
.quotes blockquote footer{font-size:.6875rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--gilt-dark)}
.quotes blockquote footer span{display:block;text-transform:none;letter-spacing:.02em;
  color:var(--ink-soft);font-size:.8125rem;margin-top:.2rem}

/* ── footer ──────────────────────────────────────────────────── */
footer.site{background:var(--ink);color:rgba(251,243,231,.72);
  text-align:center;padding:clamp(2.75rem,6vw,4rem) 0 2rem;font-size:.9375rem}
footer.site .orn{color:var(--gilt);margin:0 auto 1.6rem;max-width:16rem}
footer.site a{color:var(--gilt-bright);text-decoration:none;
  border-bottom:1px solid rgba(226,193,122,.28)}
footer.site .plain{border:none}
.f-lines{margin:0 0 1.4rem;line-height:2}
.f-social{display:flex;gap:1.4rem;justify-content:center;margin:0 0 1.9rem;
  font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase}
.f-fine{font-size:.8125rem;color:rgba(251,243,231,.45);line-height:1.8;
  border-top:1px solid rgba(226,193,122,.15);padding-top:1.5rem;margin:0}
