.dashboard-title {
  font-size: clamp(34px, 5vw, 56px);
}
:root {
  --ink: #424956;
  --muted: #656876;
  --white: #fffcf9;
  --pink: #f4d5df;
  --blue: #dceaf7;
  --peach: #f9dfc8;
  --yellow: #fbefc0;
  --line: #ddd7d2;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
a,
button,
input,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #526a99;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.header {
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: var(--white);
}
.monogram {
  font: 28px var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.monogram i {
  font-size: 22px;
  color: #846a74;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav a {
  text-decoration: none;
  font-size: 14px;
}
.nav-rsvp {
  border-bottom: 1px solid var(--ink);
  padding: 4px 8px;
}
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  min-height: 740px;
  overflow: hidden;
  display: grid;
  place-items: start center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 65px 20px 235px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 0 0 24px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}
h1 {
  font-size: clamp(55px, 7vw, 96px);
  margin: 14px 0 12px;
  letter-spacing: -0.045em;
}
h1 em {
  font-size: 0.72em;
  color: #92717e;
  font-weight: 400;
}
h2 {
  font-size: clamp(37px, 4vw, 56px);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 30px;
  margin: 22px 0;
}
p {
  margin: 12px 0;
}
.hero-sub {
  font: italic 23px var(--serif);
  color: #6a6771;
}
.date-line {
  display: flex;
  justify-content: center;
  margin: 29px 0 13px;
  font-family: var(--serif);
  font-size: 28px;
}
.date-line span {
  padding: 0 23px;
}
.date-line span + span {
  border-left: 1px solid #b9a6af;
}
.muted,
.field-help {
  color: var(--muted);
}
.hero-flowers {
  position: absolute;
  z-index: -1;
  bottom: -9%;
  left: 0;
  width: 100%;
  height: 65%;
  object-fit: cover;
  object-position: center 60%;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}
.hero .button {
  margin-top: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  transition: transform 0.15s;
}
.button:hover {
  transform: translateY(-2px);
}
.secondary {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
}
.peach {
  background: var(--peach);
  color: var(--ink);
  border-color: var(--peach);
}
.countdown-section {
  background: var(--blue);
  padding: 36px 20px 38px;
  text-align: center;
}
.countdown-section .eyebrow {
  margin-bottom: 18px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 54px;
}
.countdown > div {
  min-width: 65px;
  display: flex;
  flex-direction: column;
}
.countdown strong {
  font: 40px var(--serif);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: 13px;
  margin-top: 5px;
  letter-spacing: 0.06em;
}
.section {
  max-width: 1180px;
  margin: auto;
  padding: 90px 36px;
}
.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-card {
  padding: 34px 28px;
  min-height: 300px;
  border-radius: 140px 140px 6px 6px;
  text-align: center;
  padding-top: 65px;
}
.pink {
  background: #fae8ed;
}
.blue {
  background: #eaf1f8;
}
.yellow {
  background: #fbf3d8;
}
.card-number {
  font-size: 12px;
  letter-spacing: 0.13em;
}
.detail-card p {
  font-size: 15px;
}
.detail-card .time {
  font-weight: 600;
}
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 20px;
}
.story-art {
  height: 440px;
  border-radius: 220px 220px 5px 5px;
  overflow: hidden;
  background: #f8e9e3;
}
.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.story-copy {
  max-width: 430px;
}
.story-copy p {
  line-height: 1.9;
}
.signature {
  font: italic 29px var(--serif);
  padding-top: 15px;
}
.rsvp-section {
  padding: 80px 24px;
  background: #f9e9ed;
}
.form-card {
  max-width: 680px;
  margin: auto;
  background: var(--white);
  border: 1px solid #e8d7db;
  padding: 36px;
  border-radius: 6px;
  box-shadow: 0 12px 30px #7b566608;
}
label,
legend {
  font-size: 15px;
  font-weight: 600;
}
label {
  display: block;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
  border: 1px solid #b9b3b7;
  border-radius: 3px;
  padding: 12px;
  background: white;
  color: var(--ink);
  min-height: 48px;
}
textarea {
  resize: vertical;
  margin: 8px 0 20px;
}
.lookup-row {
  display: flex;
  gap: 12px;
}
.lookup-row input {
  min-width: 0;
  flex: 1;
}
.lookup-row button {
  white-space: nowrap;
  gap: 0;
}
.field-help {
  font-size: 14px;
  font-weight: 400;
  margin: 7px 0 16px;
  line-height: 1.6;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 24px;
}
legend {
  margin-bottom: 5px;
}
.guest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 13px;
  margin: 8px 0;
  font-weight: 400;
  cursor: pointer;
}
.guest-option input {
  width: 19px;
  height: 19px;
  accent-color: #626e88;
  flex-shrink: 0;
}
.decline {
  background: #edf1f7;
}
.household-header {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.household-header h3 {
  margin: 0 0 8px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  padding: 5px 0;
  font-size: 14px;
}
.error {
  color: #943644;
}
.success {
  color: #326047;
}
.gifts {
  text-align: center;
  max-width: 830px;
}
.gifts p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px auto;
}
.gift-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 70px;
  border-top: 1px solid var(--line);
  padding-top: 65px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 16px;
}
.faq details p {
  font-size: 15px;
  color: var(--muted);
}
footer {
  padding: 40px 20px;
  text-align: center;
  background: var(--yellow);
}
footer p {
  font-size: 14px;
}
.admin-wrap {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 24px;
}
.admin-wrap .form-card {
  margin: 35px 0;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.admin-summary div {
  padding: 16px 22px;
  background: var(--blue);
  border-radius: 5px;
}
.admin-summary strong {
  font-size: 26px;
  display: block;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #fae8ed;
}
td {
  white-space: pre-line;
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.privacy-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
}
@media (max-width: 700px) {
  .header {
    padding: 18px 20px;
    gap: 12px;
  }
  nav {
    gap: 15px;
  }
  nav a {
    font-size: 13px;
  }
  .monogram {
    font-size: 23px;
  }
  .hero {
    min-height: 690px;
  }
  .hero-inner {
    padding-top: 55px;
    padding-bottom: 210px;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .hero-flowers {
    height: 49%;
    bottom: -3%;
  }
  .hero-sub {
    font-size: 21px;
  }
  .countdown {
    gap: 23px;
  }
  .countdown > div {
    min-width: 48px;
  }
  .countdown strong {
    font-size: 32px;
  }
  .section {
    padding: 65px 22px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-card {
    min-height: 0;
    border-radius: 90px 90px 5px 5px;
    padding: 45px 25px 28px;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 0;
  }
  .story-art {
    height: 350px;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .story-copy {
    text-align: center;
    margin: auto;
  }
  .story-copy h2 br {
    display: none;
  }
  .rsvp-section {
    padding: 60px 16px;
  }
  .form-card {
    padding: 24px 18px;
  }
  .lookup-row {
    flex-direction: column;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gifts h2 {
    font-size: 38px;
  }
  .admin-top {
    align-items: flex-start;
  }
  .date-line span {
    padding: 0 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
/* Wedding opening */
.wedding-opening {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);

  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}

.opening-copy {
  min-width: 0;
}

.opening-eyebrow {
  margin: 0 0 24px;
  color: #765366;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.wedding-opening h1 {
  margin: 0;
  color: #424956;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.8vw, 80px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.opening-tagline {
  margin: 22px 0 0;
  color: #716571;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.2vw, 27px);
  font-style: italic;
  line-height: 1.5;
}

.opening-rule {
  width: 86px;
  height: 3px;
  margin: 30px 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #e9b6c8, #bad5ed, #f1c9a7, #edda93);
}

.opening-date {
  margin: 0 0 10px;
  color: #424956;
  font-size: 18px;
  font-weight: 600;
}

.opening-location {
  max-width: 430px;
  margin: 0;
  color: #656876;
  font-size: 15px;
  line-height: 1.7;
}

.opening-welcome {
  max-width: 420px;
  margin: 24px 0 0;
  color: #656876;
  font-size: 16px;
  line-height: 1.85;
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}

.opening-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 50px;
  padding: 13px 25px;
  border: 1px solid #424956;
  border-radius: 6px;
  background: #424956;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.opening-rsvp:hover {
  background: #596174;
}

.opening-details {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #424956;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.opening-photo {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.opening-photo-frame {
  padding: 10px;
  border: 1px solid #e8d8df;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    12px 12px 0 #f4e1e8,
    0 18px 40px rgba(66, 73, 86, 0.09);
}

.opening-photo-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.opening-photo figcaption {
  margin-top: 26px;
  color: #716571;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 760px) {
  .wedding-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 44px 24px 52px;
  }

  .opening-copy {
    text-align: center;
  }

  .opening-rule {
    margin-right: auto;
    margin-left: auto;
  }

  .opening-location,
  .opening-welcome {
    margin-right: auto;
    margin-left: auto;
  }

  .opening-actions {
    justify-content: center;
  }

  .opening-photo {
    max-width: 380px;
  }

  .opening-photo-frame {
    box-shadow:
      7px 7px 0 #f4e1e8,
      0 12px 28px rgba(66, 73, 86, 0.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-rsvp {
    transition: none;
  }
}

#rsvp-status:not(:empty) {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid #e8d8df;
  border-radius: 12px;
  white-space: pre-line;
  line-height: 1.7;
}

#rsvp-status.success:not(:empty) {
  background: #fff5f8;
  color: #424956;
}

#rsvp-status.error:not(:empty) {
  background: #fff4f2;
  border-color: #e7b7af;
  color: #862f27;
}
.wedding-photos {
  text-align: center;
  background: linear-gradient(135deg, #fff3f7 0%, #fffaf3 50%, #eef5fc 100%);
  border: 1px solid #eadfe3;
  border-radius: 24px;
  padding: clamp(36px, 6vw, 72px) 24px;
  margin: 32px auto 64px;
  width: calc(100% - 40px);
  max-width: 1000px;
  box-sizing: border-box;
}

.wedding-photos h2 {
  margin: 12px 0 20px;
}

.wedding-photos .photos-description {
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.wedding-photos .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.wedding-photos .photos-note {
  max-width: 440px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.7;
  color: #68616b;
}

.wedding-photos .photos-signature {
  margin: 28px 0 0;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
  color: #765366;
}
/* Floral borders beside the opening section */
.floral-opening {
  --floral-width: clamp(24px, 7vw, 130px);

  position: relative;
  isolation: isolate;
  padding-inline: var(--floral-width);
}

.floral-opening::before,
.floral-opening::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--floral-width);
  background-image: url("/assets/florals.png");
  background-repeat: no-repeat;
  background-size: auto 100%;
  pointer-events: none;
  opacity: 0.8;
  z-index: -1;
}

.floral-opening::before {
  left: 0;
  background-position: left bottom;
  mask-image: linear-gradient(to right, black 65%, transparent);
}

.floral-opening::after {
  right: 0;
  background-position: right bottom;
  mask-image: linear-gradient(to left, black 65%, transparent);
}

/* Narrower borders on phones */
@media (max-width: 760px) {
  .floral-opening {
    --floral-width: 18px;
  }

  .floral-opening::before,
  .floral-opening::after {
    opacity: 0.55;
  }
}
