:root {
  color-scheme: light;
  --ink: #15332d;
  --ink-soft: #51645f;
  --forest: #123c34;
  --forest-light: #1f5a4d;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --gold: #e6a84f;
  --line: rgba(21, 51, 45, 0.14);
  --shadow: 0 24px 70px rgba(18, 60, 52, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 6%, rgba(230, 168, 79, 0.17), transparent 27rem),
    var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: 0.35rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.header-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding: clamp(5.5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--forest-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.invitation-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 2rem;
  overflow: hidden;
  color: white;
  background: var(--forest);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.invitation-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 11rem;
  height: 11rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.invitation-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--forest);
  background: var(--gold);
  border-radius: 50%;
}

.invitation-icon svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.invitation-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.invitation-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.details {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading .eyebrow {
  margin-top: 0.7rem;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}

.detail-grid article {
  min-height: 280px;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  background: rgba(255, 253, 248, 0.7);
}

.detail-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--forest-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.detail-grid h3 {
  margin-bottom: 0.8rem;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.detail-grid p {
  max-width: 30ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

footer p {
  margin-bottom: 0;
}

footer p:first-child {
  color: var(--ink);
  font-weight: 750;
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-content {
  display: flex;
  max-width: 760px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 8rem;
}

.error-content .error-code {
  margin-bottom: 1.5rem;
  color: rgba(18, 60, 52, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 0.7;
}

.error-content h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.error-content > p:not(.eyebrow, .error-code) {
  max-width: 580px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.button {
  align-self: flex-start;
  padding: 0.85rem 1.2rem;
  color: white;
  background: var(--forest);
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--forest-light);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .invitation-card {
    max-width: 520px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid article {
    min-height: 0;
  }

  .detail-number {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 540px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1180px);
  }

  .site-header {
    min-height: 84px;
  }

  .header-label {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .invitation-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
