/* ============================================================================
   base.css — reset, typography, layout primitives, utilities.
   Knows nothing about color values; everything comes from tokens.css.
   ========================================================================= */

*,*::before,*::after{box-sizing:border-box}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:5.5rem;      /* clears the sticky header on anchor jumps */
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--step-0);
  line-height:1.72;
  font-variant-ligatures:common-ligatures;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img,svg,video{max-width:100%;height:auto;display:block}
[hidden]{display:none!important}
::selection{background:var(--accent-wash);color:var(--ink)}

/* ---------------------------------------------------------------- headings */

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:var(--display-weight);
  letter-spacing:var(--display-tracking);
  line-height:var(--display-leading);
  margin:0;
  text-wrap:balance;
}
h1{font-size:var(--step-4)}
h2{font-size:var(--step-3)}
h3{font-size:var(--step-2)}
h4{font-size:var(--step-1);line-height:1.25}

.display{
  font-family:var(--font-display);
  font-weight:var(--display-weight);
  letter-spacing:var(--display-tracking);
  line-height:var(--display-leading);
}

/* An "eyebrow" is the small letterspaced label above a heading. It carries
   most of the formal register on this site — reuse it, do not invent a
   second variety of small label. */
.eyebrow{
  display:block;
  margin:0 0 var(--space-s);
  font-family:var(--font-ui);
  font-size:var(--step--1);
  font-weight:400;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink-muted);
}
.eyebrow--accent{color:var(--accent)}

/* --------------------------------------------------------------- body copy */

p{margin:0 0 1.1em;max-width:var(--measure)}
p:last-child{margin-bottom:0}
.lede{font-size:var(--step-1);line-height:1.6;color:var(--ink-soft)}
.small{font-size:.9375rem;line-height:1.65;color:var(--ink-muted)}
.fine{
  font-family:var(--font-ui);
  font-size:var(--step--1);
  line-height:1.6;
  letter-spacing:.01em;
  color:var(--ink-muted);
}
strong,b{font-weight:600}
em,i{font-style:italic}

a{color:var(--accent);text-decoration:none}
a:where(:not(.btn,.navlink,.card)){
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.18em;
  text-decoration-color:var(--hair-strong);
  transition:text-decoration-color var(--dur) var(--ease),color var(--dur) var(--ease);
}
/* Looks like a link but is not one: for text guests copy, such as payment handles. */
.linklike{
  color:var(--accent);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.18em;
  text-decoration-color:var(--hair-strong);
}
a:where(:not(.btn,.navlink,.card)):hover{
  color:var(--accent-hover);
  text-decoration-color:currentColor;
}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius)}

ul,ol{margin:0 0 1.1em;padding-left:1.25em;max-width:var(--measure)}
li{margin-bottom:.4em}
li::marker{color:var(--ornament)}

/* Unbulleted list with hairline separators — the workhorse list here. */
.list-rule{list-style:none;padding:0;margin:0;max-width:var(--measure-wide)}
.list-rule>li{margin:0;padding:var(--space-s) 0;border-top:var(--rule) solid var(--hair)}
.list-rule>li:last-child{border-bottom:var(--rule) solid var(--hair)}

/* ------------------------------------------------------------------ layout */

.wrap{max-width:var(--page);margin-inline:auto;padding-inline:var(--gutter)}
.wrap--narrow{max-width:50rem}

.section{padding-block:var(--space-xl)}
.section--tight{padding-block:var(--space-l)}
.section--alt{background:var(--ground-alt)}
.section--inverse{background:var(--inverse);color:var(--on-inverse)}
.section--inverse .eyebrow,
.section--inverse .small,
.section--inverse .fine{color:color-mix(in srgb,var(--on-inverse) 70%,transparent)}
/* --accent is picked for contrast against --ground, not against --inverse: in
   Pierre it is rosewood on deep green, about 1.8:1. On inverted grounds a link
   therefore keeps the body colour and is signalled by a brass underline. */
.section--inverse a:where(:not(.btn)){
  color:inherit;
  text-decoration-color:var(--ornament);
  text-decoration-thickness:1px;
  text-underline-offset:.18em;
}
.section--inverse a:where(:not(.btn)):hover{color:inherit;text-decoration-color:currentColor}

.measure{max-width:var(--measure)}
.measure-wide{max-width:var(--measure-wide)}
/* Centring text is not enough on its own. Nearly every block here is capped
   at --measure, and a capped block keeps margin-inline:0 — so it sits hard
   against the left edge of its container while its text centres inside that
   narrower box. Beside a heading that spans the full column, the two centres
   disagree and the whole block reads as crooked. A centred context therefore
   has to centre the BOXES as well as the text. */
.center{text-align:center;margin-inline:auto}
.center-x{margin-inline:auto}
.center :where(p,ul,ol,dl,figure,blockquote,.measure,.measure-wide){margin-inline:auto}
/* An unclassed paragraph in a centred block also wants the standard cap.
   :where() contributes no specificity, so .measure / .measure-wide / .lede
   still win over it. */
.center>:where(p:not([class])){max-width:var(--measure)}

/* Editorial split: meta rail left, content right. One column under 56rem. */
.split{display:grid;gap:var(--space-m) var(--space-l);align-items:start}
@media (min-width:56rem){
  .split{grid-template-columns:13rem 1fr}
  .split--even{grid-template-columns:1fr 1fr}
}

.grid{display:grid;gap:var(--space-m)}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(18rem,1fr))}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}

.row{display:flex;flex-wrap:wrap;gap:var(--space-s);align-items:center}

/* ---------------------------------------------------------------- ornament */

/* A hairline with a small brass lozenge — the one decorative motif this site
   repeats. At most once per viewport. */
.flourish{
  display:flex;align-items:center;justify-content:center;gap:.9rem;
  margin-block:var(--space-m);
  color:var(--ornament);
}
.flourish::before,.flourish::after{
  content:"";flex:1 1 auto;max-width:7rem;height:1px;
  background:linear-gradient(to right,transparent,var(--hair-ornate),transparent);
}
.flourish span{
  display:block;width:.45rem;height:.45rem;
  border:1px solid currentColor;transform:rotate(45deg);
}

.rule{border:0;border-top:var(--rule) solid var(--hair);margin-block:var(--space-m)}
.rule--short{max-width:4rem;margin-inline:0;border-top-width:2px;border-top-color:var(--ornament)}

/* ------------------------------------------------------------------ states */

/* ===== RSVP SWITCH ==========================================================
   Who's Coming stays hidden until RSVP opens. Everything that depends on it
   is marked in the HTML with one of two classes:

     .when-rsvp-open     shown only once RSVP is open — the nav and footer
                         links, the home-page card, the sentences that
                         mention the guest page
     .when-rsvp-closed   the stand-in wording used until then

   TO OPEN RSVP: in the one line below, change  when-rsvp-open  to
   when-rsvp-closed.  That is the whole switch. Nothing else to edit.     */

.when-rsvp-open{display:none!important}

/* ======================================================================== */

/* Marks one specific fact that is not confirmed. Every instance is something
   the couple still has to supply. Search the HTML for "tbd" to list them. */
.tbd{
  border-bottom:1px dashed var(--ornament);
  padding-bottom:1px;
  cursor:help;
}
.tbd::after{
  content:"\00a0\25b8";
  font-size:.6em;
  vertical-align:.35em;
  color:var(--ornament);
}

.skip{
  position:absolute;left:var(--gutter);top:-4rem;z-index:200;
  padding:.7rem 1.1rem;border-radius:var(--radius);
  background:var(--inverse);color:var(--on-inverse);
  font-family:var(--font-ui);font-size:var(--step--1);
  letter-spacing:.1em;text-transform:uppercase;
  transition:top var(--dur) var(--ease);
}
.skip:focus{top:.75rem}
