:root {
  --ink: #25211e;
  --muted: #6f655d;
  --paper: #fbfaf7;
  --soft: #eee7dc;
  --sage: #7a8c71;
  --sage-dark: #53644c;
  --rose: #b97765;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(52, 42, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(37, 33, 30, 0.34);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 126px clamp(22px, 7vw, 92px) 58px;
  color: var(--white);
}

.tables-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 126px clamp(22px, 7vw, 92px) 58px;
  color: var(--white);
}

.hero__image,
.hero__shade,
.tables-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 42%;
}

.tables-hero__image {
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(30, 23, 18, 0.72), rgba(30, 23, 18, 0.2) 58%, rgba(30, 23, 18, 0.34)),
    linear-gradient(0deg, rgba(30, 23, 18, 0.55), rgba(30, 23, 18, 0.02) 55%);
}

.hero__content {
  position: relative;
  max-width: 780px;
}

.tables-hero__content {
  position: relative;
  max-width: 820px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f3d0c2;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

.hero__copy {
  max-width: 590px;
  margin: 24px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: var(--white);
  background: var(--sage-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--sage);
  box-shadow: 0 14px 34px rgba(83, 100, 76, 0.3);
  transform: translateY(-1px);
}

.button--light {
  color: var(--ink);
  background: var(--white);
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--white);
}

.button--ghost {
  color: var(--ink);
  background: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--white);
}

.details-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d9d0c4;
}

.detail {
  padding: clamp(28px, 5vw, 48px);
  background: var(--soft);
}

.detail span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.countdown-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(22px, 7vw, 92px);
  background: var(--paper);
}

.countdown-section p:not(.kicker) {
  max-width: 430px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.countdown-content {
  display: grid;
  gap: 16px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-item {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(52, 42, 34, 0.08);
  text-align: center;
}

.countdown-item strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
}

.countdown-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calendar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(52, 42, 34, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.calendar-link:hover,
.calendar-link:focus-visible {
  border-color: var(--sage);
  box-shadow: 0 12px 30px rgba(83, 100, 76, 0.16);
  outline: 0;
  transform: translateY(-2px);
}

.calendar-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.directions-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(22px, 7vw, 92px);
  background: var(--paper);
}

.directions-section h2 {
  max-width: 560px;
}

.directions-section p:not(.kicker) {
  max-width: 430px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.map-link {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 150px;
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 22px 16px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(52, 42, 34, 0.1);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  border-color: var(--sage);
  box-shadow: 0 18px 48px rgba(83, 100, 76, 0.18);
  outline: 0;
  transform: translateY(-2px);
}

.map-link img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  padding: clamp(64px, 10vw, 128px) clamp(22px, 7vw, 92px);
}

.section-heading {
  position: sticky;
  top: 112px;
}

.section-heading p:not(.kicker) {
  max-width: 430px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #ded4c8;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field,
.attendance,
.guest-names {
  display: grid;
  gap: 9px;
}

.field--full,
.attendance {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8cdc1;
  border-radius: 6px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(122, 140, 113, 0.16);
  outline: 0;
}

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

.attendance {
  margin: 4px 0 0;
  border: 0;
  padding: 0;
}

.attendance label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #d8cdc1;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fffdf9;
}

.attendance input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage-dark);
}

.guest-names {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 700;
  line-height: 1.4;
}

.form-status.is-error {
  color: #a34232;
}

.photo-section {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr 0.8fr;
  gap: 12px;
  padding: 0 clamp(12px, 3vw, 28px) clamp(12px, 3vw, 28px);
  background: var(--paper);
}

.photo-section img {
  width: 100%;
  height: clamp(260px, 38vw, 560px);
  object-fit: cover;
  border-radius: 8px;
}

.photo-section img:nth-child(2),
.photo-section img:nth-child(4) {
  height: clamp(310px, 44vw, 650px);
}

.tables-section {
  padding: clamp(52px, 8vw, 96px) clamp(22px, 7vw, 92px);
}

.tables-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 28px;
  background: #d9d0c4;
}

.tables-summary div {
  padding: 24px;
  background: var(--soft);
}

.tables-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tables-summary strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  line-height: 1;
}

.table-search {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 28px;
}

.table-search p {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.table-result {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 0 28px;
  border: 1px solid rgba(83, 100, 76, 0.28);
  border-radius: 8px;
  padding: 22px 24px;
  background: rgba(83, 100, 76, 0.1);
}

.table-result[hidden] {
  display: none;
}

.table-result span {
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table-result strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.table-result p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.table-card {
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(52, 42, 34, 0.08);
}

.table-card h2 {
  margin-bottom: 18px;
  font-size: 2.3rem;
}

.table-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.4;
}

.table-card li {
  border-radius: 6px;
  padding: 4px 6px;
  transition: background 160ms ease, color 160ms ease;
}

.table-card li.is-highlighted {
  color: var(--white);
  background: var(--sage-dark);
  font-weight: 800;
}

.table-card li.is-highlighted::marker {
  color: var(--sage-dark);
}

.faq-section {
  padding: clamp(52px, 8vw, 96px) clamp(22px, 7vw, 92px);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(52, 42, 34, 0.08);
}

.faq-item h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.menu-section {
  display: grid;
  gap: 22px;
  padding: clamp(52px, 8vw, 96px) clamp(22px, 7vw, 92px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.menu-card,
.menu-course {
  border: 1px solid #ded4c8;
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(52, 42, 34, 0.08);
}

.menu-course--wide {
  background: var(--soft);
}

.menu-card span,
.menu-course span {
  display: block;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-card h2,
.menu-course h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.menu-card p,
.menu-course p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(22px, 7vw, 92px);
  color: var(--muted);
}

footer p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    padding: 18px 20px;
  }

  nav {
    gap: 16px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 82vh;
    padding: 112px 22px 48px;
  }

  .tables-hero {
    min-height: 56vh;
    padding: 112px 22px 48px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(30, 23, 18, 0.7), rgba(30, 23, 18, 0.04)),
      linear-gradient(90deg, rgba(30, 23, 18, 0.55), rgba(30, 23, 18, 0.2));
  }

  .details-band,
  .countdown-section,
  .countdown-grid,
  .calendar-links,
  .directions-section,
  .rsvp-section,
  .rsvp-form,
  .guest-names,
  .faq-list,
  .menu-grid,
  .tables-summary,
  .table-grid,
  .photo-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .map-links {
    grid-template-columns: 1fr;
  }

  .map-link {
    min-height: 92px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .calendar-link {
    justify-content: flex-start;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .photo-section img,
  .photo-section img:nth-child(2),
  .photo-section img:nth-child(4) {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    background: rgba(37, 33, 30, 0.38);
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero__copy {
    margin-top: 18px;
  }
}
