:root {
  --ink: #17221e;
  --muted: #5f6b64;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --forest: #123b35;
  --sage: #6f8d7a;
  --rose: #d8776a;
  --gold: #c5a24f;
  --line: rgba(23, 34, 30, 0.14);
  --shadow: 0 20px 60px rgba(18, 59, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 25, 22, 0.78), rgba(9, 25, 22, 0));
}

.nav {
  display: flex;
  align-items: center;
}

.nav {
  gap: clamp(12px, 3vw, 30px);
  font-weight: 700;
  font-size: 0.96rem;
}

.nav a {
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 76px) 72px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background-image: url("/assets/engagement-hero-4k.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 22, 20, 0.82) 0%, rgba(8, 22, 20, 0.58) 42%, rgba(8, 22, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 22, 20, 0.5), rgba(8, 22, 20, 0.06) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  text-align: center;
}

.couple-signature {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  color: #ffd8c9;
  font-family: "Bodoni 72", "Didot", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.couple-signature::before,
.couple-signature::after {
  content: "";
  width: clamp(28px, 5vw, 78px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 171, 0.95));
}

.couple-signature::after {
  background: linear-gradient(90deg, rgba(255, 179, 171, 0.95), transparent);
}

.couple-signature span {
  color: #ffd8c9;
  font-size: 0.72em;
  font-style: italic;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffb3ab;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: #ffd8c9;
  margin-bottom: 18px;
  font-size: clamp(1.18rem, 1.85vw, 1.7rem);
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.58);
}

.hero-date-time::before {
  content: "·";
  margin-right: 8px;
}

.eyebrow.dark {
  color: var(--rose);
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4.7vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.countdown {
  display: grid;
  max-width: 610px;
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 10px;
}

.count-box {
  min-height: 88px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  text-align: center;
}

.count-box strong {
  display: block;
  min-width: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.85rem);
  line-height: 1;
}

.count-box span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  background: var(--rose);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--forest);
}

.map-button {
  background: var(--forest);
  color: #fff;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.map-actions .button {
  min-width: 178px;
}

.apple-map {
  border-color: rgba(18, 59, 53, 0.28);
  background: #fff;
  color: var(--forest);
}

.details-section,
.venue-section,
.share-section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 64px);
}

.details-section {
  background: var(--paper);
}

.venue-section {
  background: #edf4ef;
}

.share-section {
  background: #fff8f5;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.section-heading h2,
.venue-copy h2,
.share-copy h2 {
  margin-bottom: 0;
}

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

.detail-card {
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(18, 59, 53, 0.08);
}

.detail-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 800;
}

.detail-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: clamp(1.24rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.detail-card p,
.venue-copy p,
.share-copy p,
.upload-panel,
.submission-card p {
  color: var(--muted);
  line-height: 1.65;
}

.venue-layout,
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(30px, 6vw, 68px);
}

.venue-copy address {
  margin: 20px 0;
  color: var(--forest);
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
}

.map-frame {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(18, 59, 53, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.share-layout {
  align-items: start;
}

.share-copy {
  position: sticky;
  top: 96px;
}

.upload-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(216, 119, 106, 0.28);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 30px);
  background: #fff;
  box-shadow: 0 20px 50px rgba(216, 119, 106, 0.14);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--forest);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input:focus,
.field textarea:focus,
.dropzone:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(216, 119, 106, 0.16);
}

.dropzone {
  display: grid;
  min-height: 174px;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(18, 59, 53, 0.34);
  border-radius: 8px;
  padding: 24px;
  background: #fbfbf8;
  cursor: pointer;
  text-align: center;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.dropzone.is-dragging {
  border-color: var(--rose);
  background: #fff3ef;
}

.drop-title {
  color: var(--forest);
  font-size: 1.2rem;
  font-weight: 900;
}

.drop-meta {
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.file-preview {
  display: grid;
  width: 64px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #edf4ef;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 900;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-item strong,
.file-item span {
  display: block;
  overflow-wrap: anywhere;
}

.file-item strong {
  color: var(--ink);
}

.file-item span {
  color: var(--muted);
}

.form-status {
  min-height: 25px;
  margin: 0;
  font-weight: 800;
}

.form-status.is-success {
  color: #247250;
}

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

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 7vw, 90px);
  overflow: hidden;
  padding: clamp(42px, 7vw, 74px) clamp(20px, 5vw, 64px) 26px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(25deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    #101312;
  color: #fff;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18.2%, transparent 18.5% 100%),
    linear-gradient(35deg, transparent 0 47%, rgba(255, 255, 255, 0.06) 47.2%, transparent 47.5% 100%),
    linear-gradient(168deg, transparent 0 64%, rgba(255, 255, 255, 0.05) 64.2%, transparent 64.5% 100%);
  opacity: 0.8;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #f2d988;
  font-weight: 800;
  text-decoration: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
  align-content: start;
}

.footer-columns div {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.footer-columns span {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-columns span::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.footer-columns p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 24px;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  letter-spacing: 0;
}

.phone-body {
  min-height: 100vh;
  background: #f6f4ee;
}

.phone-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 6vw, 42px);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.phone-card h1 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(2.1rem, 8vw, 4rem);
  line-height: 1;
}

.phone-card p {
  margin: 0;
  color: var(--muted);
}

.phone-qr {
  width: min(300px, 78vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.phone-link {
  color: var(--forest);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
    min-height: 62px;
    padding: 14px 18px;
  }

  .nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding: 74px 18px max(42px, env(safe-area-inset-bottom));
  }

  .hero-content {
    width: 100%;
    max-width: 360px;
    justify-self: center;
    transform: translateY(-38px);
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 22, 20, 0.9), rgba(8, 22, 20, 0.38) 72%, rgba(8, 22, 20, 0.16)),
      linear-gradient(90deg, rgba(8, 22, 20, 0.48), rgba(8, 22, 20, 0.12));
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.8rem);
    line-height: 1.02;
    margin-bottom: 24px;
  }

  .hero-date {
    gap: 4px 8px;
    max-width: 100%;
    font-size: clamp(0.98rem, 4vw, 1.18rem);
    margin-top: -6px;
    margin-bottom: 24px;
  }

  .couple-signature {
    width: auto;
    max-width: 100%;
    justify-content: center;
    gap: 12px;
    margin-bottom: 31px;
    font-size: clamp(3.05rem, 13vw, 3.95rem);
  }

  .couple-signature::before,
  .couple-signature::after {
    width: 38px;
  }

  .hero-copy {
    max-width: 330px;
    margin-bottom: 32px;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 12px;
  }

  .couple-signature::before,
  .couple-signature::after {
    width: 24px;
  }

  .countdown {
    width: 100%;
    max-width: 330px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .count-box {
    min-height: 58px;
    padding: 8px 4px;
  }

  .count-box strong {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  }

  .count-box span {
    margin-top: 4px;
    font-size: 0.66rem;
  }

  .hero-actions .button,
  .form-actions .button {
    flex: 1 1 150px;
  }

  .detail-grid,
  .venue-layout,
  .share-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .share-copy {
    position: static;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 330px;
  }

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

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

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .nav {
    gap: 10px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 74px;
  }

  .countdown {
    width: 100%;
    max-width: 330px;
    gap: 6px;
  }

  .count-box {
    min-height: 56px;
    padding: 8px 3px;
  }

  .count-box strong {
    font-size: 1.25rem;
  }

  .details-section,
  .venue-section,
  .share-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .upload-panel {
    padding: 16px;
  }
}
