/* =================================================================
   Wedding invitation - stylesheet
   Rules are layered: later blocks refine earlier ones, so the
   order in this file is deliberate.
   ================================================================= */

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--serif);
}

img {
  display: block;
  width: 100%;
  height: auto
}

a {
  color: inherit
}

button,
input,
select {
  font: inherit;
}

.wrap {
  margin: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: .92;
  margin-bottom: 22px
}

h2 {
  font-weight: 400;
}

h3 {
  font-weight: 400;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
}

.btn {
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Hero */
.hero {
  display: grid;
  position: relative;
  overflow: hidden;
  background: #111;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero p {
  color: rgba(255, 255, 255, .82);
}

.hero-date {
  text-transform: uppercase;
}

.count-item {
  padding: 16px 8px;
}

.count-item strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 3px;
}

.count-item span {
  font-family: var(--sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .75);
}

/* Story */
.story-grid {
  display: grid;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 30px;
}

.timeline-date {
  margin-bottom: 8px;
}

/* Family and location cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid rgba(80, 65, 54, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0
}

.wedding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.location-card {
  min-height: 330px;
  justify-content: flex-end;
}

/* RSVP */
.rsvp {
  color: white;
}

.rsvp p {
  color: rgba(255, 255, 255, .72);
}

.rsvp-box {
  display: grid;
  align-items: start;
}

label {
  display: block;
  font-family: var(--sans);
  margin: 0 0 7px;
}

input,
select {
  width: 100%;
  border: 1px solid #d9d2cc;
  border-radius: 12px;
  padding: 13px 14px;
}

.radios {
  flex-wrap: wrap;
}

.radios input {
  width: auto
}

.form-note {
  font-family: var(--sans);
  font-size: .78rem;
}

footer {
  text-align: center;
  font-family: var(--sans);
  font-size: .8rem;
}

@media(max-width:780px) {

  .story-grid,
  .rsvp-box,
  .wedding-grid,
  .cards {
    grid-template-columns: 1fr
  }

  .gallery img {
    min-height: 0;
  }

}

/* =================================================================
   Base theme: elegant calligraphic design
   ================================================================= */
:root {
  --radius: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --script: "Segoe Script", "Snell Roundhand", "Monotype Corsiva", "Apple Chancery", "Brush Script MT", cursive;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.section {
  padding: 100px 0
}

.wrap {
  width: min(1140px, 92vw)
}

h1,
h2,
h3 {
  font-weight: 400
}

/* Calligraphic typography */

h2 {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 1;
  margin-bottom: 32px;
  letter-spacing: -.035em;
}

h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
}

p {
  line-height: 1.85
}

/* Hero */

.hero-bg {
  filter: brightness(.68) saturate(.9);
}

.hero-content {
  border: none;
  background: transparent;
}

.hero-content::before {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  margin: 0 auto 20px;
}

.countdown {
  border-top: 1px solid rgba(255, 255, 255, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.count-item {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.count-item:last-child {
  border-right: 0
}

.count-item strong {
  font-family: var(--serif);
  font-weight: 400;
}

/* Story */
.story-grid {
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
}

.timeline-item {
  border-left: 1px solid #cfd4cb;
  padding-left: 30px;
}

/* Cards */
.card,
.location-card {
  border-radius: 28px;
  border: 1px solid rgba(137, 149, 132, .22);
}

.card {
  padding: 36px
}

/* RSVP */

form {
  box-shadow: 0 25px 70px rgba(0, 0, 0, .18);
}

@media(max-width:780px) {
  .section {
    padding: 72px 0
  }

  h2 {
    font-size: clamp(2.8rem, 12vw, 4.7rem)
  }

  .story-grid {
    gap: 38px
  }

  .story-photo,
  .story-photo img {
    border-radius: 70px 20px 70px 20px
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr)
  }

  .count-item:nth-child(2) {
    border-right: 0
  }
}

/* Palette: pearl white, brown and gold */
:root {
  --bg: #f8f6f0;
  --paper: #fffdf8;
  --text: #543f32;
  --muted: #78675d;
  --accent: #b39154;
  --line: #ded4c7;
  --shadow: 0 20px 55px rgba(84, 63, 50, .10);
}

body {
  color: var(--text);
  background-attachment: fixed;
}

/* Faint pearl sheen over the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.timeline-date {
  color: #a78449;
}

h1,
h2,
h3 {
  color: #533c2e;
}

.hero h1 {
  color: #fffaf0;
}

.hero-date {
  color: #e3c98e;
}

.hero-content::before {
  background: #d8bb7c;
}

.countdown {
  border-color: rgba(224, 196, 139, .48);
}

.count-item {
  border-color: rgba(224, 196, 139, .30);
}

.story-photo {
  box-shadow: 0 20px 55px rgba(84, 63, 50, .12);
}

.timeline-item {
  border-left-color: #cfb784;
}

.gallery figure {
  border-color: #fffdf8;
}

.card,
.location-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 244, 235, .94));
  border-color: rgba(179, 145, 84, .30);
  box-shadow: 0 20px 55px rgba(84, 63, 50, .09);
}

.card h3,
.location-card h3 {
  color: #543f32;
}

.btn {
  border-color: #b39154;
}

.btn:hover {
  background: #a78348;
  border-color: #a78348;
  color: #fff;
}

.rsvp {
  background:
    radial-gradient(circle at 15% 15%, rgba(190, 153, 87, .15), transparent 26%),
    linear-gradient(135deg, #4b382d, #30251f);
}

.rsvp h2 {
  color: #fffaf1;
}

form {
  background:
    linear-gradient(135deg, #fffefa, #f8f3e9);
  color: #543f32;
  border: 1px solid rgba(179, 145, 84, .25);
}

input,
select {
  color: #543f32;
  background: #fffefa;
  border-color: #ded1c0;
}

footer {
  color: #675348;
}

/* RSVP form refinements */
.rsvp-box {
  grid-template-columns: .82fr 1.18fr;
  gap: 72px
}

.rsvp-box>div:first-child {
  max-width: 470px
}

.rsvp-box>div:first-child::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, #d8b66f, transparent);
  margin-top: 28px
}

form {
  position: relative;
  padding: 42px;
  border-radius: 34px;
  overflow: hidden
}

form::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none
}

.field {
  position: relative;
  margin-bottom: 22px
}

label {
  color: #5b4436;
  font-size: .79rem;
  letter-spacing: .045em;
  font-weight: 600
}

input,
select {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #ddcfbd;
  background: rgba(255, 254, 250, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75)
}

input:focus,
select:focus {
  outline: none;
  border-color: #b39154;
  box-shadow: 0 0 0 4px rgba(179, 145, 84, .10)
}

.radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px
}

.radios label {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ddcfbd;
  border-radius: 16px;
  background: #fffdf8;
  cursor: pointer;
  transition: .2s ease
}

.radios label:hover {
  border-color: #b39154;
  transform: translateY(-1px)
}

.radios input {
  min-height: auto;
  accent-color: #9c7844
}

form .btn {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b39154, #8d6b3d);
  border-color: transparent;
  color: white;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(141, 107, 61, .18)
}

form .btn:hover {
  background: linear-gradient(135deg, #9e7b46, #73532f);
  transform: translateY(-1px)
}

.form-note {
  text-align: center;
  color: #8b7a6d;
  margin-top: 15px;
  line-height: 1.55
}

@media(max-width:780px) {
  .rsvp-box {
    gap: 38px
  }

  form {
    padding: 30px 24px
  }

  .radios {
    grid-template-columns: 1fr
  }
}

/* Photo frames, no gaps */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
}

.gallery figure {
  position: relative;
  margin: 0;
}

/* Thin double frame, like a printed photo */
.gallery figure::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .72);
  pointer-events: none;
  z-index: 2;
}

.gallery img {
  transition: transform .45s ease;
}

/* Per-photo framing so the shots read naturally */
.gallery figure:nth-child(1) img {
  object-position: center 42%
}

.gallery figure:nth-child(2) img {
  object-position: center 38%
}

.gallery figure:nth-child(3) img {
  object-position: center 42%
}

.gallery figure:nth-child(4) img {
  object-position: center 38%
}

.gallery figure:nth-child(5) img {
  object-position: center 42%
}

/* The story photo always fills its frame */
.story-photo {
  background: transparent;
  overflow: hidden;
  border: 1px solid rgba(179, 145, 84, .34);
  padding: 7px;
  border-radius: 28px 8px 28px 8px;
}

.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border-radius: 21px 4px 21px 4px;
}

@media(max-width:780px) {

  .gallery img {
    aspect-ratio: auto;
    object-fit: cover;
  }

  .story-photo img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
  }
}

@media(max-width:480px) {}

/* Smaller frame for the koumpara card */
.cards .card[style*="grid-column:1/-1"] {
  text-align: center;
}

.cards .card[style*="grid-column:1/-1"] h3 {
  margin-bottom: 8px;
}

.cards .card[style*="grid-column:1/-1"] p {
  margin-bottom: 0;
}

@media(max-width:780px) {
  .cards .card[style*="grid-column:1/-1"] {
    width: 100%;
  }
}

/* Koumpara card centred */
.cards .card[style*="grid-column:1/-1"] {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Venue (Alkyon) photo */
.reception-card {
  overflow: hidden;
}

.venue-photo {
  width: 100%;
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 18px 18px 8px 8px;
  border: 1px solid rgba(179, 145, 84, .34);
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(84, 63, 50, .10);
}

.venue-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Church photo */
.church-card {
  overflow: hidden
}

.church-photo {
  width: 100%;
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 18px 18px 8px 8px;
  border: 1px solid rgba(179, 145, 84, .34);
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(84, 63, 50, .10);
}

.church-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Hero: keep the names clear of the faces */

.hero-date {
  margin-bottom: 10px;
}

.hero #hero-subtitle {
  margin-top: 6px;
}

/* Stronger shading only low down, behind the lettering */

@media(max-width:780px) {}

/* Couple names on one line */
.hero h1 {
  margin-left: auto;
  margin-right: auto;
}

@media(max-width:780px) {
  .hero h1 {
    white-space: nowrap;
  }
}

@media(max-width:420px) {}

/* =================================================================
   Fuller pearl / brown / gold wedding design
   ================================================================= */

/* Sections act as positioning contexts */
main>.section {
  position: relative;
}

/* Softer, more natural pearl texture */
body {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .96), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(225, 213, 192, .22), transparent 27%),
    radial-gradient(circle at 32% 72%, rgba(255, 255, 255, .82), transparent 34%),
    linear-gradient(115deg, #fbfaf6 0%, #f3efe7 43%, #fffefa 68%, #f5f1e9 100%);
}

body::before {
  opacity: .42;
  background:
    repeating-linear-gradient(108deg,
      rgba(255, 255, 255, .20) 0,
      rgba(255, 255, 255, .20) 1px,
      transparent 1px,
      transparent 5px),
    radial-gradient(circle at 42% 20%, rgba(255, 255, 255, .42), transparent 35%);
  mix-blend-mode: soft-light;
}

/* The ampersand in the couple name */

.hero h1 .hero-amp {
  display: inline-block;
  text-shadow: 0 1px 1px rgba(55, 39, 29, .42),
    0 5px 18px rgba(55, 39, 29, .26);
}

/* Gallery styled as an elegant wedding album */

.gallery figure {
  transition: transform .28s ease, box-shadow .28s ease;
}

.gallery figure::after {
  inset: 8px;
  border-radius: 2px;
  border-color: rgba(255, 255, 255, .62);
}

.gallery figure:nth-child(1) img,
.gallery figure:nth-child(4) img,
.gallery figure:nth-child(5) img {
  height: clamp(350px, 42vw, 530px);
}

.gallery figure:nth-child(2) img,
.gallery figure:nth-child(3) img {
  height: clamp(330px, 38vw, 480px);
}

@media (hover:hover) and (pointer:fine) {
  .gallery figure:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow:
      0 24px 46px rgba(84, 63, 50, .14),
      inset 0 0 0 1px rgba(255, 255, 255, .78);
  }
}

/* Footer closing, like a signature */
footer {
  padding: 58px 20px 64px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .74), transparent 45%),
    linear-gradient(180deg, #f8f3eb, #efe7da);
  border-top: 1px solid rgba(179, 145, 84, .25);
}

#footer-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #60483a;
}

.footer-love {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a805a;
  margin-bottom: 15px;
}

.footer-signature {
  position: relative;
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 400;
  color: #594033;
  padding: 2px 28px 17px;
}

.footer-signature .footer-amp {
  color: #b39154;
  padding: 0 .09em;
}

.footer-signature::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b39154, transparent);
}

@media(max-width:780px) {
  .gallery {
    padding-left: 2px;
    padding-right: 2px;
  }

  .gallery figure:nth-child(n) {
    padding: 6px;
  }

  .gallery figure:nth-child(n) img {
    height: 58vw;
  }

  .footer-signature {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media(max-width:480px) {
  .gallery figure:nth-child(n) img {
    height: 118vw;
    max-height: 520px;
  }
}

/* Hero date, no frame around it */
.hero-date {
  width: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-date::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  height: 1px;
}

@media(max-width:780px) {
  .hero-date {
    padding-bottom: 7px;
  }
}

/* Story typography */
.timeline-date {
  color: #a78449 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem !important;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.timeline h3 {
  font-family: var(--script);
  color: #533c2e;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-top: 7px;
  margin-bottom: 15px;
}

.timeline p {
  font-family: Georgia, "Times New Roman", serif;
  color: #665348;
  font-size: 1.04rem;
  line-height: 1.9;
  letter-spacing: .005em;
}

@media(max-width:780px) {
  .timeline-date {
    font-size: .72rem !important;
    letter-spacing: .15em;
  }

  .timeline h3 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    margin-bottom: 12px;
  }

}

/* Hero: clean and elegant, faces stay visible */
.hero {
  min-height: 100svh;
  place-items: end center;
}

.hero-bg {
  background-position: center 36%;
}

.hero::after {
  background:
    linear-gradient(to top,
      rgba(48, 33, 24, .88) 0%,
      rgba(48, 33, 24, .62) 22%,
      rgba(48, 33, 24, .20) 43%,
      rgba(48, 33, 24, .035) 67%);
}

.hero-content {
  width: min(940px, 94vw);
  padding: 18px 22px 24px;
  margin-bottom: .7vh;
  text-align: center;
}

.hero-date {
  position: relative;
  display: inline-block;
  margin: 0 auto 11px;
  padding: 0 18px 8px;
  color: #e3c17d !important;
  background: transparent !important;
  border: 0 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: .23em;
  text-shadow: 0 2px 5px rgba(34, 23, 17, .8);
}

.hero-date::before,
.hero-date::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 191, 123, .9));
}

.hero-date::before {
  right: 100%;
}

.hero-date::after {
  left: 100%;
  transform: none;
  background: linear-gradient(90deg, rgba(223, 191, 123, .9), transparent);
}

.hero h1 {
  white-space: nowrap;
  width: max-content;
  max-width: none;
  margin: 0 auto 8px;
  font-family: var(--script);
  font-size: clamp(3.25rem, 6.7vw, 6.15rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.035em;
  text-shadow:
    0 2px 2px rgba(42, 28, 20, .58),
    0 8px 24px rgba(42, 28, 20, .38);
}

.hero h1 .hero-name-part {
  color: #f4e8d8;
}

.hero h1 .hero-amp {
  color: #d7b46c;
  font-size: .74em;
  margin: 0 .14em;
  transform: translateY(-.08em);
}

.hero #hero-subtitle {
  margin: 5px auto 0;
  color: rgba(255, 248, 237, .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .92rem;
  letter-spacing: .055em;
  text-shadow: 0 2px 5px rgba(40, 27, 20, .72);
}

.countdown {
  margin-top: 15px;
  transform-origin: center bottom;
}

@media(max-width:780px) {

  .hero-content {
    margin-bottom: 0;
  }

  .hero-date {
    margin-bottom: 8px;
    padding: 0 11px 6px;
  }

  .hero-date::before,
  .hero-date::after {
    width: 25px;
  }

  .hero h1 {
    letter-spacing: -.045em;
  }

  .countdown {
    transform: scale(.88);
  }
}

@media(max-width:420px) {
  .hero h1 {
    font-size: clamp(2.05rem, 10.4vw, 3.35rem);
  }

  .hero-date::before,
  .hero-date::after {
    width: 18px;
  }
}

/* Family cards */
.cards {
  gap: 24px;
  align-items: stretch;
}

.cards .card {
  position: relative;
  overflow: hidden;
  padding: 38px 34px 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .92), transparent 42%),
    linear-gradient(145deg, rgba(255, 254, 250, .98), rgba(247, 242, 233, .94));
  border: 1px solid rgba(179, 145, 84, .38);
  border-radius: 7px;
  box-shadow:
    0 18px 42px rgba(84, 63, 50, .09),
    inset 0 0 0 5px rgba(255, 255, 255, .42);
}

.cards .card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 17px;
  color: #9d7d47;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cards .card p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* The koumpara card stays smaller and centred */
.cards .card[style*="grid-column:1/-1"] {
  width: min(500px, 100%);
  padding: 31px 32px 29px;
}

@media(max-width:780px) {

  .cards .card h3 {
    margin-bottom: 13px;
    font-size: .69rem;
    letter-spacing: .15em;
  }

  .cards .card p {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .cards .card[style*="grid-column:1/-1"] {
    padding: 29px 24px 26px;
  }
}

/* Quieter typography on the family cards */
.cards .card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .01em;
  color: #543f32;
}

.cards .card[style*="grid-column:1/-1"] p {
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
}

@media(max-width:780px) {}

/* Church and venue presented as a consistent pair */

.location-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .88), transparent 42%),
    linear-gradient(145deg, #fffefa, #f8f3eb);
  border: 1px solid rgba(179, 145, 84, .34);
  border-radius: 9px;
  box-shadow: 0 18px 42px rgba(84, 63, 50, .09);
}

.church-photo,
.venue-photo {
  width: calc(100% + 56px);
  margin: 0 -28px 25px;
  border: 0;
  border-bottom: 1px solid rgba(179, 145, 84, .28);
  border-radius: 0;
  box-shadow: none;
  background: #f7f2e9;
}

.church-photo img,
.venue-photo img {
  aspect-ratio: 16/9;
}

.church-photo img {
  object-position: center 48%;
}

.venue-photo img {
  object-position: center 52%;
}

.location-card h3 {
  margin: 0 0 12px;
}

.location-card p {
  margin: 0 auto 23px;
  color: #6d5b50;
  font-family: Georgia, "Times New Roman", serif;
}

.location-card .btn {
  margin-top: auto;
  align-self: center;
  border-radius: 999px;
  border: 1px solid rgba(179, 145, 84, .72);
  background: transparent;
  color: #765c35;
  box-shadow: none;
}

.location-card .btn:hover {
  background: #b39154;
  color: #fffdf8;
  border-color: #b39154;
}

@media(max-width:780px) {

  .church-photo,
  .venue-photo {
    margin: 0 -21px 21px;
  }

  .location-card p {
    margin-bottom: 19px;
  }
}

/* Softer lettering on the location cards */
.location-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: .01em;
  color: #533c2e;
  margin-bottom: 10px;
}

.location-card p {
  font-size: .94rem;
  line-height: 1.65;
  max-width: 430px;
}

.location-card .btn {
  font-size: .74rem;
  padding: 9px 17px;
  letter-spacing: .045em;
}

/* Gallery: natural album feel with safer crops */
.gallery {
  gap: 24px 18px;
  padding: 12px 2px 8px;
  align-items: start;
}

.gallery figure {
  padding: 6px;
  border-radius: 5px;
  transform-origin: center;
}

.gallery figure:nth-child(1) {
  grid-column: span 7;
  transform: rotate(-.45deg)
}

.gallery figure:nth-child(2) {
  grid-column: span 5;
  transform: rotate(.35deg)
}

.gallery figure:nth-child(3) {
  grid-column: span 5;
  transform: rotate(.45deg)
}

.gallery figure:nth-child(4) {
  grid-column: span 7;
  transform: rotate(-.35deg)
}

.gallery figure:nth-child(5) {
  grid-column: span 6;
  transform: rotate(-.25deg)
}

.gallery img {
  width: 100%;
  height: auto !important;
  min-height: 0;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #f8f3eb;
}

.gallery figure:hover img {
  transform: none;
}

.gallery figure:hover {
  transform: translateY(-2px);
}

@media(max-width:780px) {
  .location-card h3 {
    line-height: 1.3;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }

  .gallery figure:nth-child(n) {
    grid-column: auto;
    transform: none;
  }

  .gallery img {
    height: auto !important;
    max-height: none !important;
  }
}

@media(max-width:480px) {}

/* Very subtle fade and rise on scroll */
.reveal-soft {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.reveal-soft.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery figure.reveal-soft {
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22, .61, .36, 1);
}

@media(prefers-reduced-motion:reduce) {
  .reveal-soft {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Cleaner countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 10px;
  width: min(560px, 92vw);
  margin: 17px auto 0;
  transform: none !important;
}

.countdown>div {
  position: relative;
  padding: 10px 8px 9px;
  background: rgba(48, 33, 24, .20);
  border-top: 1px solid rgba(223, 191, 123, .48);
  border-bottom: 1px solid rgba(223, 191, 123, .18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.countdown>div::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(223, 191, 123, .34),
      transparent);
}

.countdown>div:last-child::after {
  display: none;
}

.countdown strong {
  display: block;
  color: #f4eadc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 2px 5px rgba(35, 24, 18, .66);
}

.countdown span:last-child {
  display: block;
  margin-top: 6px;
  color: rgba(238, 213, 166, .86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media(max-width:780px) {
  .countdown {
    width: min(430px, 94vw);
    gap: 6px;
    margin-top: 13px;
  }

  .countdown>div {
    padding: 8px 4px 7px;
  }

  .countdown strong {
    font-size: clamp(1.15rem, 5.4vw, 1.55rem);
  }

  .countdown span:last-child {
    margin-top: 5px;
    font-size: .54rem;
    letter-spacing: .08em;
  }
}

@media(max-width:420px) {
  .countdown {
    gap: 4px;
  }

  .countdown>div {
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* Subtle gold detail on the location photos */
.church-photo,
.venue-photo {
  position: relative;
}

.church-photo::after,
.venue-photo::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(179, 145, 84, .82),
      transparent);
  pointer-events: none;
}

/* Cleaner map buttons */
.location-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.location-card .btn::after {
  content: "↗";
  color: #a78449;
  font-size: .9em;
  line-height: 1;
  transition: transform .2s ease;
}

@media(hover:hover) and (pointer:fine) {
  .location-card .btn:hover::after {
    color: inherit;
    transform: translate(2px, -2px);
  }
}

/* Wedding date in the footer */
.footer-wedding-date {
  display: block;
  margin: 16px auto 0;
  color: #a78449;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.footer-wedding-date::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto 13px;
  background: linear-gradient(90deg, transparent, #b39154, transparent);
}

@media(max-width:480px) {
  .footer-wedding-date {
    margin-top: 13px;
  }
}

/* =================================================================
   Mobile finishing
   ================================================================= */
@media(max-width:780px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .wrap {
    width: 100%;
  }

  /* Hero: balanced on mobile without riding up over the faces */
  .hero {
    min-height: 100svh;
  }

  .hero-bg {
    background-position: center 33%;
  }

  .hero-content {
    width: 96vw;
    padding: 10px 8px 16px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.7vw, 4.1rem);
    line-height: .92;
  }

  .hero #hero-subtitle {
    font-size: .76rem;
    line-height: 1.45;
  }

  /* Story: easier to read */
  .timeline {
    gap: 28px;
  }

  .timeline p {
    font-size: .98rem;
    line-height: 1.78;
  }

  /* Families: less bulk */
  .cards {
    gap: 15px;
  }

  .cards .card {
    padding: 29px 20px 25px;
  }

  .cards .card p,
  .cards .card[style*="grid-column:1/-1"] p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Church / venue */

  .location-card {
    padding: 0 18px 23px;
  }

  .church-photo,
  .venue-photo {
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: 19px;
  }

  .location-card h3 {
    font-size: 1.17rem;
  }

  .location-card p {
    font-size: .9rem;
    line-height: 1.62;
  }

  /* RSVP: clean and comfortable to tap */
  .rsvp-box {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rsvp input,
  .rsvp select,
  .rsvp button {
    min-height: 46px;
  }

  /* Footer */
  footer {
    padding: 48px 16px 54px;
  }

  .footer-signature {
    font-size: clamp(2.45rem, 11vw, 3.9rem);
  }
}

@media(max-width:480px) {
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Gallery: one photo per row so faces read properly */
  .gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .gallery figure:nth-child(n) {
    grid-column: 1 / -1;
    transform: none;
    padding: 5px;
  }

  .gallery img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 10.1vw, 3.25rem);
  }

  .countdown {
    width: 96vw;
  }

  .countdown>div {
    padding: 7px 1px 6px;
  }

  .countdown strong {
    font-size: clamp(1.05rem, 5.1vw, 1.4rem);
  }

  .countdown span:last-child {
    font-size: .5rem;
    letter-spacing: .055em;
  }
}

/* =================================================================
   Final polish: spacing, buttons, photos, footer, hero load
   ================================================================= */

/* More consistent rhythm between sections */
main>.section {
  padding-top: 82px;
  padding-bottom: 82px;
}

main>.section+.section {
  border-top: 0;
}

.section h2 {
  margin-bottom: 30px;
}

/* All primary buttons share one look */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid rgba(179, 145, 84, .72);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  color: #5a4334;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.2;
  box-shadow: none;
  transition:
    background-color .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

@media(hover:hover) and (pointer:fine) {
  .btn:hover {
    background: #fffdf8;
    border-color: #b39154;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(84, 63, 50, .08);
  }
}

/* Photos keep natural proportions and a quiet outline */
.gallery figure {
  overflow: hidden;
  border: 1px solid rgba(179, 145, 84, .16);
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(84, 63, 50, .07);
}

.gallery img {
  display: block;
  object-position: center center !important;
}

.church-photo img,
.venue-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Quieter date in the footer */
.footer-wedding-date {
  margin-top: 15px;
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .22em;
  opacity: .9;
}

.footer-wedding-date::before {
  width: 40px;
  margin-bottom: 12px;
  opacity: .78;
}

/* Soft first paint of the hero */
.hero-bg {
  animation: heroImageIn 1.15s ease-out both;
}

.hero-content {
  animation: heroContentIn .9s .12s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes heroImageIn {
  from {
    opacity: .72;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:780px) {
  main>.section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section h2 {
    margin-bottom: 24px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 17px;
  }
}

@media(max-width:480px) {
  main>.section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .gallery figure {
    box-shadow: 0 8px 22px rgba(84, 63, 50, .065);
  }

  .footer-wedding-date {
    font-size: .63rem;
    letter-spacing: .18em;
  }
}

@media(prefers-reduced-motion:reduce) {

  .hero-bg,
  .hero-content {
    animation: none !important;
  }
}

/* =================================================================
   Mobile layout fixes
   ================================================================= */
@media(max-width:600px) {

  html,
  body {
    overflow-x: hidden;
  }

  .wrap {
    width: min(100% - 28px, 520px);
  }

  main>.section {
    padding: 52px 0;
  }

  .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Hero: less cramped and better balanced */
  .hero {
    min-height: 100svh;
    place-items: end center;
  }

  .hero-bg {
    background-position: center 34% !important;
  }

  .hero-content {
    width: 100%;
    padding: 14px 16px 22px;
    margin: 0 0 1.5vh;
  }

  .hero-date {
    margin-bottom: 8px;
    font-size: .66rem;
    letter-spacing: .14em;
  }

  .hero-date::before,
  .hero-date::after {
    width: 18px;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
    line-height: .94;
    letter-spacing: -.045em;
  }

  .hero #hero-subtitle {
    margin-top: 5px;
    font-size: .73rem;
  }

  /* Countdown: 2x2 on mobile instead of four cramped boxes */
  .countdown {
    width: min(310px, 88vw);
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 10px;
    margin-top: 13px;
  }

  .countdown>div {
    min-width: 0;
    padding: 8px 6px 7px;
  }

  .countdown>div::after {
    display: none;
  }

  .countdown strong {
    font-size: 1.32rem;
  }

  .countdown span:last-child {
    margin-top: 4px;
    font-size: .52rem;
    letter-spacing: .07em;
  }

  /* Headings: calmer on mobile */
  h2,
  .section h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.04;
    margin-bottom: 22px;
  }

  .timeline h3 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .timeline p {
    font-size: .96rem;
    line-height: 1.72;
  }

  /* Families */
  .cards {
    gap: 13px;
  }

  .cards .card {
    padding: 24px 17px 21px;
    border-radius: 18px;
  }

  .cards .card p,
  .cards .card[style*="grid-column:1/-1"] p {
    font-size: .97rem;
    line-height: 1.5;
  }

  /* Locations */
  .wedding-grid {
    gap: 16px;
  }

  .location-card {
    padding: 0 16px 20px;
    border-radius: 18px;
  }

  .church-photo,
  .venue-photo {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: 17px;
  }

  .location-card h3 {
    font-size: 1.12rem;
    line-height: 1.3;
  }

  .location-card p {
    font-size: .89rem;
    line-height: 1.58;
  }

  .location-card .btn {
    width: 100%;
    min-height: 44px;
    margin-top: 9px;
  }

  /* Gallery mosaic: 2 + 1 large + 2 */
  .gallery {
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 10px;
    padding: 0;
  }

  .gallery figure:nth-child(n) {
    grid-column: span 6 !important;
    transform: none !important;
    padding: 4px;
    border-radius: 4px;
  }

  /* The middle photo spans the full width */
  .gallery figure:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  .gallery img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }

  /* RSVP: a single clean column */
  .rsvp-box {
    display: block;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rsvp-box>div:first-child {
    margin-bottom: 24px;
  }

  .rsvp h2 {
    font-size: clamp(2.15rem, 10vw, 2.9rem);
  }

  form {
    padding: 20px 16px;
    border-radius: 18px;
  }

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

  .radios label {
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #ded4c7;
    border-radius: 12px;
  }

  input,
  select {
    font-size: 16px;
  }

  /* Footer */
  footer {
    padding: 42px 14px 48px;
  }

  .footer-signature {
    font-size: clamp(2.15rem, 10.5vw, 3.2rem);
    line-height: 1;
  }

  .footer-wedding-date {
    font-size: .61rem;
    letter-spacing: .16em;
  }
}

/* Hero date: two lines, larger type */
.hero-date {
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.32;
}

.hero-date-weekday,
.hero-date-day,
.hero-date-time {
  display: block;
}

/* Weekday slightly smaller - in em, so it scales with the rest */
.hero-date-weekday {
  font-size: .8em;
  margin-bottom: 1px;
}

.hero-date-time {
  margin-top: 2px;
}

/* Side rules centred across both lines */
.hero-date::before,
.hero-date::after {
  top: 50%;
  transform: translateY(-50%);
}

@media(max-width:780px) {
  .hero-date {
    font-size: .95rem;
    letter-spacing: .16em;
  }
}

@media(max-width:420px) {
  .hero-date {
    font-size: .88rem;
    letter-spacing: .13em;
  }
}

/* Hero: names pinned to the top */
.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: clamp(42px, 8.4vh, 80px) 16px clamp(40px, 9vh, 88px);
  /* Its own dark backdrop, because the hero scrim only covers the bottom */
  background: linear-gradient(to bottom,
      rgba(57, 39, 28, .66) 0%,
      rgba(57, 39, 28, .34) 46%,
      rgba(57, 39, 28, 0) 100%);
  pointer-events: none;
}

/* The h1 is width:max-content - keep auto margins so it stays centred */
.hero-top h1 {
  margin: 0 auto;
}

/* Gallery on tablets (601-780px): same mosaic */
@media(min-width:601px) and (max-width:780px) {
  .gallery {
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
  }

  .gallery figure:nth-child(n) {
    grid-column: span 6;
    transform: none;
  }

  .gallery figure:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Gallery: 5 photos, the last one centred */
@media(min-width:781px) {
  .gallery figure:nth-child(5) {
    grid-column: 4 / span 6;
  }
}

/* Story: title above the photo */
.story-grid .story-title {
  grid-column: 1/-1;
  margin-bottom: 0;
}

@media(min-width:781px) {
  .story-grid {
    row-gap: 30px;
    align-items: start;
  }
}

/* Story: stacked on mobile */
@media(max-width:780px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   Cards: cleaner and more modern
   No inner second border; the palette is unchanged.
   ================================================================= */

.cards .card {
  padding: 34px 32px 32px;
  background: linear-gradient(150deg, rgba(255, 254, 250, .98), rgba(247, 242, 233, .94));
  box-shadow: 0 6px 24px rgba(84, 63, 50, .055);
}

.cards .card h3 {
  margin-bottom: 15px;
  letter-spacing: .2em;
}

.cards .card[style*="grid-column:1/-1"] {
  padding: 30px 30px 28px;
}

/* The location cards follow the same style */
.location-card {
  background: linear-gradient(150deg, #fffefa, #f8f3eb);
  box-shadow: 0 6px 24px rgba(84, 63, 50, .055);
}

.church-photo,
.venue-photo {
  border-bottom: 1px solid rgba(179, 145, 84, .16);
}

@media(max-width:600px) {
  .cards .card {
    padding: 28px 24px 26px;
    border-radius: 14px;
  }

  .cards .card[style*="grid-column:1/-1"] {
    padding: 26px 22px 24px;
  }

  .location-card {
    border-radius: 14px;
  }
}

/* Story: no white inner margin */
.story-photo {
  padding: 0;
}

/* The photo always follows the corners of its frame */
.story-photo img {
  border-radius: inherit;
}

/* Story photo: same frame as the church / venue cards */
.story-photo {
  background: linear-gradient(150deg, #fffefa, #f8f3eb);
  box-shadow: 0 6px 24px rgba(84, 63, 50, .055);
  overflow: hidden;
}

@media(max-width:600px) {
  .story-photo {
    border-radius: 14px;
  }
}

/* =================================================================
   Gallery on desktop: Airbnb-style collage
   One large photo on the left plus a 2x2 block on the right.
   aspect-ratio:3/2 gives every tile a 3:4 shape, the same as the
   photos themselves, so nothing gets cropped.
   ================================================================= */

@media(min-width:781px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: row;
    align-items: stretch;
    aspect-ratio: 3/2;
    gap: 10px;
    padding: 0;
  }

  .gallery figure {
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: hidden;
  }

  /* Drop the white inner album frame */
  .gallery figure::after {
    content: none;
  }

  /* The 3rd photo (gallery-3) is the large one on the left - the same
     one that spans the full width on mobile */
  .gallery figure:nth-child(3) {
    grid-area: 1 / 1 / 3 / 3;
    border-radius: 16px;
    transform: none;
  }

  .gallery figure:nth-child(2) {
    grid-area: 1 / 3 / 2 / 4;
    border-radius: 16px;
    transform: none;
  }

  .gallery figure:nth-child(1) {
    grid-area: 1 / 4 / 2 / 5;
    border-radius: 16px;
    transform: none;
  }

  .gallery figure:nth-child(4) {
    grid-area: 2 / 3 / 3 / 4;
    border-radius: 16px;
    transform: none;
  }

  .gallery figure:nth-child(5) {
    grid-area: 2 / 4 / 3 / 5;
    border-radius: 16px;
    transform: none;
  }

  .gallery img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0;
    background: none;
  }

  .gallery figure:hover {
    transform: none;
  }
}

@media(min-width:781px) and (hover:hover) and (pointer:fine) {
  .gallery figure img {
    transition: filter .3s ease, transform .45s ease;
  }

  .gallery figure:hover img {
    filter: brightness(.93);
  }
}

@media(max-width:780px) {
  .gallery figure:nth-child(n) {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 14px;
    overflow: hidden;
  }

  .gallery figure::after {
    content: none;
  }

  .gallery img {
    border-radius: 0;
  }
}

/* =================================================================
   Radio buttons and the locked guest count
   The generic "input, select" rule also reached the radios, adding
   padding, a border and an inset white highlight that clipped the
   top of the circle.
   ================================================================= */

.radios input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1.5px solid #c9b391;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: none;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.radios input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9c7844;
  transform: scale(0);
  transition: transform .16s ease;
}

.radios input[type="radio"]:checked {
  border-color: #9c7844;
}

.radios input[type="radio"]:checked::before {
  transform: scale(1);
}

.radios input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(179, 145, 84, .18);
}

/* The selected answer stands out */
.radios label:has(input[type="radio"]:checked) {
  border-color: #b39154;
  background: #fffaf1;
}

/* When "no" is chosen, the guest count locks to 0 */
.field.is-locked label {
  opacity: .55;
}

.field.is-locked select,
form select:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: rgba(247, 242, 233, .75);
}

/* Every family card is centred, like the koumpara card */
.cards .card {
  text-align: center;
}

/* =================================================================
   Mobile: centred section titles and a footer signature that fits
   The signature is one unbreakable token (no space around the
   ampersand), so it cannot wrap - it has to be scaled to the width
   that is actually available inside the footer padding. Otherwise
   the page-level overflow-x:hidden simply clips it.
   ================================================================= */

@media(max-width:780px) {

  main h2,
  .section h2,
  .rsvp h2,
  .story-grid .story-title {
    text-align: center;
  }

  .footer-signature {
    font-size: clamp(1.85rem, 9.2vw, 3.2rem);
    max-width: 100%;
  }
}

/* =================================================================
   Mobile: centred text and a footer that clears the browser chrome
   Desktop keeps its left-aligned running text.
   ================================================================= */

@media(max-width:780px) {

  main p,
  main h3,
  main .field,
  .timeline-item,
  .timeline-date,
  .location-card,
  .rsvp-box>div:first-child,
  footer {
    text-align: center;
  }

  /* Typed values stay left aligned - that is data, not running text */
  form input,
  form select {
    text-align: left;
  }

  /* Extra room under the signature so the phone toolbar and the
     home indicator cannot sit on top of it */
  footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* Labels bound to a control stay left aligned at every width, so they
   read as belonging to the field underneath them. label[for] matches
   the name and guest-count labels but not the radio group question. */
form .field>label[for] {
  display: block;
  text-align: left;
}

/* RSVP outcome message, rendered server side after the redirect */
.form-note.is-success{
  color:#5f7052;
  font-weight:600;
}

.form-note.is-error{
  color:#9a5b4a;
  font-weight:600;
}
