/* ============================================================
   The Shays — shared design system
   Page #FFFFFF · Band #F4F2EC · Ink #14120F · Body #4F4B45
   Muted #9A948A · Hairline #E4E1D9 · Navy #1F3347
   ============================================================ */

:root {
  --page: #FFFFFF;
  --band: #F4F2EC;
  --ink: #14120F;
  --body: #4F4B45;
  --muted: #9A948A;
  --hairline: #E4E1D9;
  --navy: #1F3347;

  /* Charlotte's birthday palette */
  --pink-band: #FFF2F6;
  --pink-rule: #F4CAD6;
  --pink: #DD8B99;
  --pink-dark: #B15C6C;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 640px;
  --gutter: 22px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---------- Type roles ---------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
  padding-left: 0.26em;
}

.eyebrow--muted { color: var(--muted); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

h1.display { font-size: 38px; }
h2.display { font-size: 27px; }

.lede {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  margin: 12px 0 0;
}

.meta {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ---------- Sections ---------- */

.section { padding: 34px var(--gutter); }
.section--band { background: var(--band); }
.rule-top { border-top: 1px solid var(--hairline); }

/* Band sections break out to the full viewport width, while their
   contents stay aligned to the same column as everything else. */
.section--band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(var(--gutter), calc(50vw - (var(--measure) / 2)));
  padding-right: max(var(--gutter), calc(50vw - (var(--measure) / 2)));
}

/* Text should never run edge to edge on a wide screen. Everything in
   the page column stays within a comfortable measure. */
.section > .eyebrow,
.section > .display,
.section > .lede {
  max-width: 560px;
}

.details > *,
.section--band > .eyebrow,
.section--band > .display {
  margin-left: auto;
  margin-right: auto;
}

body { overflow-x: hidden; }

/* ---------- Top bar ---------- */

.topbar {
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--hairline);
}

.backlink {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.backlink:hover { color: var(--ink); }

/* ---------- Gathering cards ---------- */

.card {
  display: block;
  padding: 20px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.card--live {
  background: var(--band);
  transition: background 0.2s ease;
}

.card--live:hover { background: #EDEAE2; }

.card--pending {
  background: var(--page);
  border: 1px solid var(--hairline);
}

.card__date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 11px;
}

.card__date--pending { color: var(--muted); }

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 6px;
}

.card__sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 14px;
}

.card__sub--last { margin-bottom: 0; }

.card__cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--band);
  padding: 22px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   Charlotte's birthday page
   ============================================================ */

.pink .eyebrow { color: var(--pink-dark); }
.pink .section--band { background: var(--pink-band); border-top: 1px solid var(--pink-rule); border-bottom: 1px solid var(--pink-rule); }
.pink .footer { background: var(--pink-band); border-top: 1px solid var(--pink-rule); }
.pink .backlink:hover { color: var(--pink-dark); }

/* Full-bleed pink field. The artwork sits centred inside it, so on
   wide screens the pink fills the space rather than white bars. */
.cover-field {
  background: var(--pink-band);
  border-bottom: 1px solid var(--pink-rule);
  display: flex;
  justify-content: center;
  padding: 0;
}

.cover {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

@media (min-width: 700px) {
  .cover-field { padding: 40px var(--gutter); }
  .cover { max-width: 420px; }
}

@media (min-width: 1000px) {
  .cover-field { padding: 56px var(--gutter); }
}

.details { text-align: center; }
.section.details { padding-bottom: 30px; }
.details .display { margin-bottom: 6px; }
.details p { margin: 0 0 4px; font-size: 15px; color: var(--body); }

.divider {
  width: 34px;
  height: 1px;
  background: var(--pink);
  border: 0;
  margin: 22px auto;
}

.maplink {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--pink-rule);
  padding-bottom: 3px;
}

.maplink:hover { border-bottom-color: var(--pink); }

/* ---------- Form ---------- */

/* The pink band spans the whole window, but the form inside stays at a
   comfortable width. Inputs stretched to 2000px look broken. */
#rsvp {
  max-width: 420px;
  margin: 0 auto;
}

.field { margin-bottom: 16px; }

.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 7px;
}

.label .optional {
  letter-spacing: 0.1em;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--pink-rule);
  border-radius: 0;
  padding: 11px 12px;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

textarea { resize: vertical; min-height: 64px; }

.help {
  font-size: 12px;
  line-height: 1.6;
  color: #8E7B72;
  margin: 6px 0 0;
}

.counts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.counts input { text-align: center; }

.counts span {
  display: block;
  font-size: 11px;
  color: #8E7B72;
  text-align: center;
  margin-top: 6px;
}

button {
  width: 100%;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--pink);
  color: var(--ink);
  border: 1px solid var(--pink);
  margin-bottom: 12px;
}

.btn-primary:hover { background: var(--pink-dark); color: #FFFFFF; }

.btn-secondary {
  background: transparent;
  color: var(--pink-dark);
  border: 1px solid var(--pink);
}

.btn-secondary:hover { background: var(--pink-band); }

.deadline {
  font-size: 13px;
  color: #8E7B72;
  text-align: center;
  margin: 16px 0 0;
}

.status {
  font-size: 14px;
  text-align: center;
  margin: 14px 0 0;
  color: var(--ink);
}

.hidden { display: none; }

/* ---------- Live bunnies ---------- */

/* Two classes so this beats the wider .section padding on desktop */
.section.bunnies {
  text-align: center;
  padding-top: 30px;
}

/* Hairline between the details and this section, matching the
   rules used in the gift list rather than spanning the whole page */
.bunnies-rule {
  border: 0;
  border-top: 1px solid #F0E4E8;
  max-width: 520px;
  margin: 0 auto;
}

.bunny-art {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 4px;
}

.plan {
  max-width: 360px;
  margin: 22px auto 0;
  text-align: left;
}

.plan-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid #F0E4E8;
}

.plan-row:last-child { border-bottom: 1px solid #F0E4E8; }

.plan-time {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-dark);
}

.plan-what {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.bunny-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
  margin: 22px auto 0;
}

@media (min-width: 700px) {
  .bunny-art { width: 180px; }
}

/* ---------- Gift list ---------- */

.gift {
  border-top: 1px solid #F0E4E8;
  padding: 14px 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gift:last-of-type { border-bottom: 1px solid #F0E4E8; }

.gift__name {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 3px;
}

.gift__eg {
  font-size: 14px;
  line-height: 1.6;
  color: #7A6E69;
  margin: 0;
}

.gift-link {
  color: var(--pink-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--pink-rule);
}

.gift-link:hover { border-bottom-color: var(--pink); }

/* ---------- Larger screens ---------- */

@media (min-width: 700px) {
  :root { --gutter: 48px; }
  h1.display { font-size: 52px; }
  h2.display { font-size: 32px; }
  .section { padding: 56px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
