:root {
  --olive: #7c8149;
  --honey: #bf8414;
  --cream: #f3dc99;
  --linen: #e1d5bf;
  --espresso: #3b1e03;
  --paper: #fbf7ed;
  --ink: #2f241d;
  --shadow: 0 18px 55px rgba(59, 30, 3, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "Taviraj", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.invite-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 220, 153, 0.55), transparent 26rem),
    linear-gradient(180deg, var(--paper), #f6efe0 60%, var(--paper));
  box-shadow: 0 0 70px rgba(59, 30, 3, 0.24);
  overflow: hidden;
}

.section-pad {
  padding: 56px 26px;
  text-align: center;
}

.intro {
  padding-bottom: 28px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/couple-street.jpeg");
  background-size: cover;
  background-position: 30% 38%;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 42%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.64) 0%,
    rgba(0, 0, 0, 0.42) 46%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 72px 24px 54px;
  color: var(--paper);
  text-align: center;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.42);
  transform: translateX(24px);
}

.eyebrow {
  margin: 0 0 12px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 16px;
  color: var(--paper);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.08rem, 5vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-family: "Homemade Apple", cursive;
  font-size: clamp(2.15rem, 8.5vw, 3.05rem);
  line-height: 1.62;
}

.name-amp {
  display: block;
  margin: 5px auto 0;
  color: var(--cream);
  font-family: "Marcellus", Georgia, serif;
  font-size: 0.58em;
  line-height: 1;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.42);
}

h2 {
  color: var(--espresso);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2rem, 9vw, 3.05rem);
}

p {
  margin: 18px auto 0;
  max-width: 34ch;
}

.date-line {
  margin-top: 18px;
  color: #fff9ee;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 2;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(251, 247, 237, 0.8);
  border-radius: 999px;
  background: rgba(59, 30, 3, 0.16);
  text-decoration: none;
  animation: arrowFloat 1.8s ease-in-out infinite;
}

.scroll-cue span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: translateY(-3px) rotate(45deg);
}

@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.script-small {
  margin: 0 0 8px;
  color: var(--honey);
  font-family: "Homemade Apple", cursive;
  font-size: 1.45rem;
  line-height: 1.35;
}

.save-date-title {
  margin-bottom: 18px;
  color: var(--espresso);
  font-family: "Marcellus", Georgia, serif;
  font-size: 2.03rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-script-heading {
  color: var(--honey);
  font-family: "Homemade Apple", cursive;
  font-size: clamp(1.45rem, 7vw, 2.25rem);
  line-height: 1.65;
}

.couple-icon {
  width: min(74vw, 250px);
  margin: 0 auto 18px;
}

.couple-icon img {
  width: 100%;
  height: auto;
  filter: sepia(1) saturate(0.8) brightness(0.42);
}

.olive-band {
  background:
    linear-gradient(180deg, rgba(124, 129, 73, 0.96), rgba(124, 129, 73, 1)),
    var(--olive);
  color: var(--paper);
}

.olive-band h2,
.olive-band .eyebrow {
  color: var(--paper);
}

.olive-band p {
  color: rgba(251, 247, 237, 0.9);
}

.detail-grid {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
}

.details {
  background: transparent;
  padding-top: 22px;
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.date-side {
  display: grid;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.date-side span {
  display: block;
  height: 1px;
  background: rgba(59, 30, 3, 0.34);
}

.date-side strong {
  color: var(--espresso);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(1.2rem, 6vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
}

.date-center {
  position: relative;
  width: 112px;
  min-height: 132px;
  display: grid;
  place-items: center;
}

.date-center h2 {
  color: var(--olive);
  font-family: "Taviraj", Georgia, serif;
  font-size: clamp(4.4rem, 18vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
}

.date-arc {
  position: absolute;
  left: 50%;
  width: 84px;
  height: 42px;
  margin-left: -42px;
  color: var(--espresso);
  font-family: "Taviraj", Georgia, serif;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.date-arc span {
  position: absolute;
  left: 50%;
  transform-origin: 0 42px;
}

.date-arc-top {
  top: 0;
}

.date-arc-top span:nth-child(1) {
  transform: rotate(-35deg) translateX(-50%);
}

.date-arc-top span:nth-child(2) {
  transform: rotate(0deg) translateX(-50%);
}

.date-arc-top span:nth-child(3) {
  transform: rotate(35deg) translateX(-50%);
}

.date-arc-bottom {
  display: none;
}

.date-year {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  margin: 0;
  color: var(--espresso);
  font-family: "Taviraj", Georgia, serif;
  font-size: 1.08rem;
  letter-spacing: 0.28em;
  line-height: 1;
}

.detail-grid div {
  padding: 18px 16px;
  border: 1px solid rgba(59, 30, 3, 0.18);
  background: rgba(225, 213, 191, 0.28);
}

.detail-grid span {
  display: block;
  color: rgba(59, 30, 3, 0.68);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  color: var(--honey);
}

.detail-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--espresso);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.registration-detail span,
.registration-detail strong {
  font-family: "Taviraj", Georgia, serif;
}

.details-message {
  margin-top: 18px;
  color: var(--espresso);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--espresso);
  border-radius: 4px;
  padding: 11px 20px;
  background: var(--espresso);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

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

.button.light {
  border-color: var(--paper);
  background: transparent;
  color: var(--paper);
}

.map-inline {
  min-height: 38px;
  margin-top: 14px;
  padding: 8px 15px;
  background: transparent;
  color: var(--espresso);
  font-size: 0.74rem;
}

.countdown {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(59, 30, 3, 0.5), rgba(59, 30, 3, 0.62)),
    url("assets/couple-sunset.jpeg");
  background-size: cover;
  background-position: 50% 54%;
  color: var(--paper);
}

.countdown .script-small,
.countdown h2,
.countdown-grid strong,
.countdown-grid span {
  color: var(--paper);
}

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

.countdown-grid div {
  min-width: 0;
  padding: 16px 6px 14px;
  border-top: 1px solid rgba(251, 247, 237, 0.55);
  border-bottom: 1px solid rgba(251, 247, 237, 0.55);
}

.countdown-grid strong {
  display: block;
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story {
  padding-top: 20px;
}

figure {
  margin: 0;
}

.photo-feature {
  position: relative;
}

.photo-feature img,
.photo-wide img {
  border: 10px solid var(--paper);
  box-shadow: var(--shadow);
}

.photo-feature img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 46%;
}

.photo-feature figcaption {
  margin-top: 18px;
  color: var(--espresso);
  font-family: "Homemade Apple", cursive;
  font-size: 1.18rem;
}

.photo-wide {
  margin-top: 34px;
}

.photo-wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dress h2 {
  color: var(--cream);
}

.rsvp-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

label,
legend {
  color: var(--espresso);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(59, 30, 3, 0.28);
  border-radius: 4px;
  padding: 13px 14px;
  background: rgba(255, 252, 244, 0.82);
  color: var(--espresso);
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

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

.segmented label {
  display: block;
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 30, 3, 0.34);
  border-radius: 4px;
  padding: 10px 12px;
  background: rgba(255, 252, 244, 0.64);
  color: var(--espresso);
  text-align: center;
}

.segmented input:checked + span {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--paper);
}

.checkbox-line {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgba(59, 30, 3, 0.34);
  border-radius: 4px;
  padding: 10px 12px;
  background: rgba(255, 252, 244, 0.64);
  color: var(--espresso);
  cursor: pointer;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--olive);
}

.checkbox-line span {
  flex: 1;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.submit {
  width: 100%;
}

.submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  max-width: none;
  color: var(--olive);
  font-size: 1rem;
  text-align: center;
}

.closing {
  padding-bottom: 70px;
}

@media (min-width: 700px) {
  body {
    padding: 32px 0;
    background:
      linear-gradient(rgba(59, 30, 3, 0.14), rgba(59, 30, 3, 0.14)),
      var(--linen);
  }

  .invite-shell {
    border-radius: 4px;
  }
}
