:root {
  color-scheme: light;
  --ink: #15211b;
  --muted: #5f6862;
  --paper: #fffaf3;
  --panel: #fffaf3;
  --panel-soft: #fff7ee;
  --line: #d9d0c1;
  --rose: #984b44;
  --rose-dark: #74312e;
  --sage: #335f4a;
  --mist: #eef4ee;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(238, 244, 238, 0.95), rgba(255, 250, 243, 0) 34rem),
    linear-gradient(180deg, #fffaf3 0%, #f8efe5 100%);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 22px;
}

.app-locked {
  display: none;
}

.lock-screen {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 44px;
  display: grid;
  place-items: center;
}

.lock-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 430px);
  align-items: center;
  gap: 24px;
}

.lock-card {
  width: 100%;
  padding: 34px;
  background: var(--panel);
  border: 1px solid rgba(217, 208, 193, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(21, 33, 27, 0.18);
}

.lock-card h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.lock-card p {
  color: var(--muted);
  line-height: 1.6;
}

.lock-screen[hidden] {
  display: none;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(217, 208, 193, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(21, 33, 27, 0.12);
}

.wedding-illustration {
  width: 100%;
  display: block;
  background: var(--paper);
}

.hero-card .wedding-illustration {
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  padding: 24px 30px 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5.4vw, 5.1rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.wedding-date {
  margin: 10px 0 0;
  color: var(--sage);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.intro {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.68;
}

.hero-note {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note span {
  padding: 9px 12px;
  border: 1px solid rgba(51, 95, 74, 0.22);
  border-radius: 999px;
  background: rgba(238, 244, 238, 0.82);
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 800;
}

.upload-panel {
  width: min(640px, 100%);
  justify-self: center;
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(217, 208, 193, 0.9);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(21, 33, 27, 0.18);
}

.form-heading {
  margin-bottom: 22px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.name-input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--ink);
  font: inherit;
}

.name-input:focus {
  border-color: var(--sage);
  outline: 3px solid rgba(51, 95, 74, 0.18);
}

.drop-zone {
  min-height: 188px;
  border: 2px dashed #b9ad9b;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  cursor: pointer;
  text-align: center;
  background:
    linear-gradient(rgba(255, 247, 238, 0.88), rgba(255, 247, 238, 0.88)),
    repeating-linear-gradient(135deg, rgba(51, 95, 74, 0.08) 0 1px, transparent 1px 14px);
}

.drop-zone:hover {
  border-color: var(--sage);
  background: var(--mist);
}

.drop-title {
  font-size: 1.32rem;
  font-weight: 900;
}

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

input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.file-row {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.file-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--rose);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--rose-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--sage);
  font-weight: 800;
}

.qr-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.qr-card {
  width: min(720px, 100%);
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(21, 33, 27, 0.16);
}

.qr-card h1 {
  font-size: clamp(2.5rem, 9vw, 5.2rem);
}

.qr-code {
  width: min(100%, 520px);
  margin: 26px auto 16px;
  display: block;
  border-radius: 8px;
}

.qr-link {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg, #fffaf3 0%, #f8efe5 100%);
  }

  .app-shell {
    width: min(100% - 24px, 720px);
    padding: 20px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 3.55rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-note {
    margin-top: 18px;
  }

  .upload-panel {
    padding: 18px;
  }

  .drop-zone {
    min-height: 156px;
    padding: 20px;
  }

  .lock-layout {
    grid-template-columns: 1fr;
  }

  .lock-card {
    padding: 22px;
  }

  .hero-card .wedding-illustration {
    aspect-ratio: 16 / 10;
  }

  .hero-copy {
    padding: 22px 20px 24px;
  }
}

@media (max-width: 480px) {
  .hero-note {
    display: none;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .qr-card {
    box-shadow: none;
  }
}
