.sg-hero,
.sg-rsvp,
.sg-dates {
  --sg-ink: #382432;
  --sg-wine: #56364c;
  --sg-muted: #63525a;
  --sg-paper: #f6efe6;
  --sg-rule: #cbbdb9;
  --sg-gutter: clamp(20px, 5vw, 80px);
  color: var(--sg-ink);
  font-family: "DM Sans", sans-serif;
}

.sg-hero {
  /* Keep the shared transparent header’s white logo and controls legible. */
  background: linear-gradient(#412936 var(--header-height, 85px), var(--sg-paper) 0);
  padding-block: calc(var(--header-height, 85px) + 25px) 24px;
}

.sg-hero__layout {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-inline-size: 1600px;
  margin-inline: auto;
  padding-inline: var(--sg-gutter);
}

.sg-hero__content {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-inline-size: 0;
}

.sg-hero__content > *,
.sg-rsvp__intro > *,
.sg-dates__intro > *,
.sg-dates h3,
.sg-dates p,
.sg-dates__note {
  margin: 0;
}

.sg-hero .sg-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sg-hero h1,
.sg-rsvp h2,
.sg-dates h2 {
  color: inherit;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
}

.sg-hero h1 {
  max-inline-size: 12ch;
  font-size: clamp(2.9rem, 10.5vw, 4.9rem);
  overflow-wrap: normal;
  line-height: 0.92;
}

.sg-hero h1 span {
  white-space: nowrap;
}

.sg-hero .sg-hero__intro,
.sg-rsvp p,
.sg-dates p,
.sg-dates li {
  color: var(--sg-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.sg-hero .sg-hero__intro {
  max-inline-size: 30ch;
}

.sg-hero .sg-hero__when {
  font-size: 0.95rem;
  line-height: 1.45;
}

.sg-hero__when span {
  display: block;
  color: var(--sg-muted);
}

.sg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-block: 0;
}

.sg-hero__actions a,
.sg-rsvp .sg-primary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 46px;
  color: var(--sg-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.sg-hero__actions .sg-primary,
.sg-rsvp .sg-primary {
  padding: 0.7em 1em;
  border: 1px solid transparent;
  border-radius: 30px;
  background: var(--sg-wine);
  color: #fff;
  text-decoration: none;
}

.sg-hero__actions .sg-primary:hover,
.sg-rsvp .sg-primary:enabled:hover {
  background: var(--sg-ink);
}

.sg-hero__actions .sg-jump,
.sg-dates__intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.sg-hero__actions .sg-jump:hover,
.sg-dates__intro a:hover {
  text-decoration-thickness: 2px;
}

.sg-hero__actions a:focus-visible,
.sg-rsvp :is(input, button, a):focus-visible,
.sg-dates__intro a:focus-visible {
  outline: 2px solid var(--sg-ink);
  outline-offset: 3px;
}

.sg-hero__photo {
  display: grid;
  overflow: hidden;
  margin: 0;
  inline-size: 100%;
  aspect-ratio: 5 / 4;
  max-block-size: 440px;
  background: #b29884;
  border-radius: 2px;
}

.sg-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 44%;
}

.sg-rsvp {
  background: #fffaf5;
  padding-block: clamp(40px, 6vw, 84px);
  scroll-margin-block-start: calc(var(--header-height, 85px) + 12px);
}

.sg-rsvp__intro {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sg-rsvp__form {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  width: min(100%, 28rem);
  margin: 0;
}

.sg-rsvp__field {
  display: grid;
  gap: 5px;
  width: 100%;
}

.sg-rsvp label {
  font-size: 1rem;
  font-weight: 700;
}

.sg-rsvp input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0.65em 0.8em;
  border: 1px solid #957687;
  border-radius: 3px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.sg-rsvp .sg-primary {
  margin-block-start: 4px;
  cursor: pointer;
  font-family: inherit;
}

.sg-rsvp .sg-primary:disabled {
  cursor: default;
  opacity: 0.7;
}

.sg-rsvp .sg-rsvp__status {
  margin: 0;
  font-weight: 700;
}

.sg-rsvp .sg-rsvp__status[data-state="error"] {
  color: #9b241e;
}

.sg-rsvp .sg-rsvp__status:empty {
  margin-block-start: -14px;
}

.sg-dates {
  background: #ede2dc;
  padding-block: clamp(40px, 7vw, 95px);
  scroll-margin-block-start: 12px;
}

.sg-rsvp__layout,
.sg-dates__layout {
  display: grid;
  gap: 26px clamp(28px, 5vw, 80px);
  max-inline-size: 1320px;
  margin-inline: auto;
  padding-inline: var(--sg-gutter);
}

.sg-dates__intro {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sg-rsvp h2,
.sg-dates h2 {
  font-size: clamp(2.65rem, 6vw, 4.25rem);
  line-height: 0.95;
}

.sg-dates h3 {
  color: inherit;
  font: 700 1rem/1.4 "DM Sans", sans-serif;
  letter-spacing: normal;
  margin-block-end: 4px;
}

.sg-dates__hours,
.sg-dates__tuition {
  margin-block-start: 8px;
}

.sg-dates__list {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
}

.sg-dates__list li {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 8px;
  padding-block: 9px;
  border-block-start: 1px solid var(--sg-rule);
}

.sg-dates__list li:last-child {
  border-block-end: 1px solid var(--sg-rule);
}

.sg-dates__list li > :first-child {
  font-weight: 700;
}

.sg-dates .sg-dates__note {
  color: var(--sg-muted);
  font-size: 0.9rem;
}

@media (min-width: 680px) {
  .sg-dates__layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 850px) {
  .sg-hero {
    padding-block: calc(var(--header-height, 100px) + clamp(28px, 4vw, 60px)) clamp(42px, 5vw, 74px);
  }

  .sg-hero__layout {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }

  .sg-hero__content {
    gap: clamp(14px, 1.9vw, 28px);
  }

  .sg-hero h1 {
    font-size: clamp(3.6rem, 6.1vw, 6.3rem);
  }

  .sg-hero .sg-hero__intro {
    font-size: clamp(1.12rem, 1.4vw, 1.3rem);
  }

  .sg-hero__photo {
    aspect-ratio: 1 / 1;
    max-block-size: none;
  }
}

@media (max-width: 360px) {
  .sg-hero__actions .sg-primary {
    padding-inline: 0.8em;
  }
}
