/* huntonandmaggie.com — shared styles. Matches the wedding website (maggieandhunton.minted.us):
   white paper, slate-blue ink, a slate nav band, spaced small caps and italic serif. */
:root {
  --bg: #ffffff;
  --paper: #f4f7f9;
  --surface: #ffffff;
  --ink: #3b556f;
  --text: #33475b;
  --muted: #6b7d8f;
  --line: #d6dee5;
  --slate: #657c8e;
  --mist: #9fb3c1;
  --mist-soft: #e9eff3;
  --good: #3d6b5c;
  --good-soft: #e3efe9;
  --warn: #9a5b2e;
  --warn-soft: #f6ebe1;
  --font-caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --font-italic: "Cormorant Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }

/* Masthead: names, mountain range, slate nav band */
.masthead { display: grid; justify-items: center; gap: 6px; padding: 34px 16px 0; text-align: center; }
.masthead .names {
  font-family: var(--font-caps); font-weight: 500; color: var(--ink); text-decoration: none;
  font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: 0.08em; line-height: 1.05;
}
.masthead .amp { font-family: var(--font-italic); font-style: italic; font-weight: 400; letter-spacing: 0; margin: 0 0.12em; }
.range { width: min(560px, 100%); height: auto; display: block; margin-top: 4px; }
.range path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.range .snow { stroke: var(--mist); stroke-width: 1; }
.band {
  background: var(--slate);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px;
  padding: 13px 16px;
}
.band a {
  color: #ffffff; text-decoration: none;
  font-family: var(--font-caps); font-weight: 600; font-size: 1rem; letter-spacing: 0.16em;
}
.band a[aria-current="page"] { color: #c9d4dc; }
.band a:hover { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 40px 72px;
  display: grid;
  gap: 44px;
}
.wrap.wide { max-width: 1040px; }

h1, h2 { font-family: var(--font-caps); font-weight: 500; letter-spacing: 0.1em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; }
h2 { font-size: 1.5rem; }
h3 { font-family: var(--font-body); font-weight: 500; font-size: 1.25rem; line-height: 1.25; margin: 0; color: var(--ink); }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.italic { font-family: var(--font-italic); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }
.small-text { font-size: 0.95rem; }
.fine { font-size: 0.88rem; color: var(--muted); max-width: 62ch; }
.lede { max-width: 58ch; font-family: var(--font-italic); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.center { text-align: center; justify-items: center; margin-inline: auto; }

/* Pale-blue band for intros, like the wedding site's "See you on the slopes" block */
.mist-band { background: var(--mist); color: #ffffff; padding: 30px 22px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.mist-band h2, .mist-band .lede { color: #ffffff; }
.mist-band .lede { color: #f4f7f9; }

/* Buttons and inputs */
.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font: 600 0.82rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--mist-soft); filter: none; }
.btn.slate { background: var(--slate); border-color: var(--slate); }
.btn.good { background: var(--good); border-color: var(--good); }
.btn.danger { background: transparent; border-color: var(--warn); color: var(--warn); }
.btn.danger.armed { background: var(--warn); color: #ffffff; }
.btn.small { padding: 10px 15px; font-size: 0.76rem; }
.btn.tiny { padding: 7px 11px; font-size: 0.7rem; letter-spacing: 0.1em; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}
/* Block, not grid, so "Email <span class=hint>(optional)</span>" stays on one line */
label { font-size: 0.95rem; font-weight: 600; color: var(--ink); display: block; min-width: 0; }
label .hint { font-weight: 400; color: var(--muted); }
label > input, label > textarea, label > select { display: block; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], textarea, select {
  font: 400 1.05rem var(--font-body);
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; min-height: 84px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--text); }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.error { color: var(--warn); font-size: 0.95rem; min-height: 1.4em; }

/* Gate */
.gate {
  min-height: 52vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 22px;
  max-width: 420px;
  margin-inline: auto;
}
.gate form { display: grid; gap: 12px; width: 100%; text-align: left; }

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px;
}
.section { display: grid; gap: 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }

.pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--mist-soft);
  color: var(--ink);
  white-space: nowrap;
}
.pill.done { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.price { font-variant-numeric: lining-nums tabular-nums; font-size: 1.05rem; color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 0.95rem;
  z-index: 20;
  max-width: calc(100vw - 32px);
}

footer.site-foot { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); border-top: 3px double var(--slate); padding-top: 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
