:root {
  color-scheme: dark;
  --page-width: 900px;
  --black: #070607;
  --panel: rgba(19, 19, 19, .93);
  --panel-2: rgba(28, 28, 28, .90);
  --text: #f5ede8;
  --muted: #cfc3bd;
  --accent: #c93434;
  --accent-bright: #ff5d59;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: #050405; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 50, 29, .28), transparent 35%),
    linear-gradient(90deg, #080709, #10090a 45%, #100808 55%, #080709);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/assets/hero.jpg') center top / cover no-repeat;
  filter: blur(24px) brightness(.16) saturate(.9);
  transform: scale(1.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.wedding-page {
  width: min(var(--page-width), 100%);
  min-height: 100vh;
  background: #090809;
  box-shadow: 0 0 80px rgba(0,0,0,.8);
  overflow: hidden;
  position: relative;
}

.hero {
  width: 100%;
  position: relative;
  background: #15100f;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(to bottom, transparent, #090809);
  pointer-events: none;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.content-zone {
  position: relative;
  min-height: 900px;
  padding: 8px clamp(88px, 14vw, 138px) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 30, 25, .12), transparent 26%),
    linear-gradient(#090809, #080708 70%, #0c0909);
}

.side-art {
  position: absolute;
  top: 0;
  width: clamp(92px, 18.5%, 166px);
  height: 62%;
  object-fit: cover;
  opacity: .96;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
}
.side-art-left { left: 0; object-position: right top; }
.side-art-right { right: 0; object-position: left top; }

.intro {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 8px 22px;
}

.intro h2 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 4.8rem);
  line-height: 1.02;
  font-weight: 400;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}

.script-title,
.thanks-script {
  font-family: "Segoe Script", "Brush Script MT", cursive;
}

.script-title {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 4.8vw, 3rem);
  line-height: 1.22;
  color: #fff8f5;
}

.heart-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(520px, 82%);
  margin: 8px auto 18px;
}
.heart-divider span { height: 1px; background: linear-gradient(90deg, transparent, #a81f24); }
.heart-divider span:last-child { background: linear-gradient(90deg, #a81f24, transparent); }
.heart-divider b { color: #ff7771; font-size: 1rem; }

.intro-text {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #ddd2cc;
  font-size: clamp(.94rem, 2vw, 1.14rem);
  line-height: 1.55;
}

.upload-panel {
  position: relative;
  z-index: 3;
  width: min(650px, 100%);
  margin: 6px auto 28px;
  padding: clamp(17px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(31,31,31,.96), rgba(14,14,14,.98));
  box-shadow: 0 16px 34px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.035);
}

.upload-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.2);
  pointer-events: none;
}

.upload-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  margin: 2px 0 18px;
}
.upload-heading > div { display: grid; gap: 3px; }
.upload-heading strong { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 400; }
.upload-heading small { color: var(--muted); font-size: .88rem; }
.upload-cloud {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  font-size: 2.2rem;
  color: #e9e5e2;
}

.source-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.source-button {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.42);
  background: linear-gradient(145deg, rgba(30,30,30,.95), rgba(17,17,17,.96));
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.source-button:hover,
.source-button:focus-within { transform: translateY(-1px); border-color: rgba(255,255,255,.72); }
.camera-button {
  background: linear-gradient(145deg, rgba(159,37,40,.86), rgba(92,23,26,.92));
  border-color: rgba(255,103,99,.85);
  box-shadow: 0 0 22px rgba(203,52,52,.22);
}
.camera-button:hover,
.camera-button:focus-within { border-color: #ff7670; box-shadow: 0 0 28px rgba(203,52,52,.32); }
.source-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  font-family: system-ui, sans-serif;
  font-size: 1.6rem;
}
.source-button > span:last-child { display: grid; gap: 5px; }
.source-button strong { font-size: 1.05rem; }
.source-button small { color: #d8ceca; line-height: 1.35; }

.dropzone {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  text-align: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #eee6e2;
  cursor: pointer;
}
.dropzone.drag { background: rgba(196,49,49,.15); }
.dropzone small { color: #bfb4af; font-size: .78rem; }

.selection {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255,255,255,.055);
}
.selection span { color: #c8bdb7; font-size: .88rem; }

.upload-actions { position: relative; z-index: 1; }
.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font: 700 .94rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.primary-button {
  margin-top: 13px;
  color: #fff;
  background: linear-gradient(#c84848, #9d2f32);
  box-shadow: 0 8px 22px rgba(129,31,35,.24);
}
.primary-button:disabled { opacity: .48; cursor: not-allowed; }
.secondary-button {
  margin-top: 12px;
  color: #eee;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

.progress {
  position: relative;
  z-index: 1;
  height: 7px;
  margin-top: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
}
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #ba3134, #ff756d); transition: width .15s; }
#status { position: relative; z-index: 1; min-height: 1.4em; margin: 10px 0 0; text-align: center; font: 600 .88rem system-ui, sans-serif; }
#status.success { color: #a8efb7; }
#status.error { color: #ff9e98; }

.feature-row {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.feature-row article {
  padding: 12px 18px 16px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-row article + article { border-left: 1px solid rgba(181,33,37,.9); }
.feature-symbol { font: 2rem/1 system-ui, sans-serif; margin-bottom: 13px; color: #f1eeec; }
.feature-row strong { font-size: .98rem; }
.feature-row p { margin: 8px 0 0; color: #ded4cf; font-size: .91rem; line-height: 1.45; }

.footer-zone {
  position: relative;
  z-index: 2;
  min-height: 375px;
  margin: 6px calc(clamp(88px, 14vw, 138px) * -1) 0;
  display: grid;
  grid-template-columns: 1fr minmax(230px, .9fr) 1fr;
  align-items: end;
  overflow: hidden;
}
.footer-art {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  align-self: end;
  opacity: .97;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
}
.footer-art-left { object-position: right bottom; }
.footer-art-right { object-position: left bottom; }
.thanks {
  align-self: center;
  text-align: center;
  padding: 32px 0 10px;
  z-index: 3;
}
.thanks-script { margin: 0; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; }
.thanks-script span { color: #d52f35; }
.thanks p:nth-child(2) { text-transform: uppercase; letter-spacing: .1em; color: #d7cbc6; font-size: .78rem; line-height: 1.6; }
.thanks small { color: #8e817c; font-size: .72rem; line-height: 1.45; display: block; }

@media (max-width: 720px) {
  .content-zone { padding-inline: clamp(55px, 13vw, 85px); }
  .source-actions { grid-template-columns: 1fr; }
  .source-button { min-height: 96px; }
  .footer-zone { margin-inline: calc(clamp(55px, 13vw, 85px) * -1); grid-template-columns: .95fr 1.1fr .95fr; min-height: 320px; }
  .footer-art { max-height: 310px; }
}

@media (max-width: 520px) {
  .wedding-page { box-shadow: none; }
  .content-zone { padding: 2px 28px 0; }
  .side-art { width: 72px; height: 59%; opacity: .9; }
  .intro { padding-inline: 30px; }
  .intro h2 { font-size: 2.3rem; }
  .script-title { font-size: 1.45rem; }
  .heart-divider { width: 85%; margin-bottom: 14px; }
  .intro-text { font-size: .83rem; line-height: 1.48; }
  .wide-only { display: none; }
  .upload-panel { width: calc(100% - 34px); padding: 15px; border-radius: 18px; }
  .upload-panel::before { inset: 9px; }
  .upload-heading strong { font-size: 1rem; }
  .source-button { min-height: 91px; padding: 13px; }
  .source-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.35rem; }
  .source-button strong { font-size: .96rem; }
  .source-button small { font-size: .78rem; }
  .dropzone { display: none; }
  .feature-row { width: calc(100% - 30px); grid-template-columns: repeat(3, 1fr); }
  .feature-row article { padding: 10px 7px 13px; min-height: 145px; }
  .feature-symbol { font-size: 1.55rem; }
  .feature-row strong { font-size: .72rem; }
  .feature-row p { font-size: .68rem; }
  .footer-zone { margin-inline: -28px; min-height: 285px; grid-template-columns: 1fr 1.1fr 1fr; }
  .footer-art { max-height: 275px; }
  .thanks { padding: 36px 0 10px; }
  .thanks-script { font-size: 2rem; }
  .thanks p:nth-child(2) { font-size: .57rem; letter-spacing: .06em; }
  .thanks small { display: none; }
}
