:root {
  color-scheme: dark;
  --orange: #ff7a1a;
  --orange-deep: #e65d00;
  --paper: #f7f3ef;
  --ink: #171717;
  --muted: #706b67;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,122,26,.18), transparent 30rem),
    linear-gradient(145deg, #050505, #151515 55%, #090909);
  color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(30px, 7vw, 72px) 0 24px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(18,18,18,.96);
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}

.hidden { display: none !important; }

.access-card, .unavailable-card { text-align: center; }
.access-card { padding: 0; }
.access-content, .unavailable-card { padding: clamp(28px, 7vw, 58px); }
.access-cover { display: block; width: 100%; max-height: 290px; object-fit: cover; }

.brand-icon {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
h1 { margin: 0; font-size: clamp(30px, 6vw, 50px); line-height: 1.05; letter-spacing: -1.5px; }
.intro { max-width: 520px; margin: 18px auto 28px; color: #c7c7c7; font-size: 17px; }
form { max-width: 470px; margin: 0 auto; text-align: left; }
label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.password-row { position: relative; }
input {
  width: 100%;
  min-height: 52px;
  padding: 13px 82px 13px 15px;
  border: 1px solid #494949;
  border-radius: 10px;
  outline: none;
  background: #0b0b0b;
  color: #fff;
  font: inherit;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.18); }
.toggle { position: absolute; top: 7px; right: 7px; height: 38px; border: 0; background: transparent; color: #d9d9d9; cursor: pointer; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: linear-gradient(135deg, #ff9a15, #ff611d); color: #111; }
form .button { width: 100%; margin-top: 14px; }
.button[disabled] { cursor: wait; opacity: .65; }
.message { min-height: 24px; margin: 15px 0 0; color: #ffb27b; }

.cover-wrap { background: #050505; }
.cover { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.cover.logo-cover { height: min(390px, 54vw); object-fit: contain; padding: clamp(8px, 2vw, 20px); }
.content { padding: clamp(28px, 6vw, 54px); background: var(--paper); color: var(--ink); }
.content h1 { max-width: 620px; }
.delivery-message { margin: 22px 0; color: #45413e; font-size: 18px; white-space: pre-line; }
.expiration-box { display: flex; flex-direction: column; gap: 5px; margin: 26px 0; padding: 16px 18px; border-left: 5px solid var(--orange); background: #ede5de; }
.expiration-box span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.expiration-box strong { font-size: 18px; }
.download { width: 100%; margin-top: 2px; }
.advice { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.unavailable-card p:last-child { color: #c7c7c7; }
footer { padding: 0 14px 30px; color: #8e8e8e; text-align: center; font-size: 12px; letter-spacing: .5px; }

body.theme-wedding {
  background:
    radial-gradient(circle at 18% 12%, rgba(190,132,66,.28), transparent 32rem),
    linear-gradient(145deg, #120d08, #24180f 55%, #090705);
}
.theme-wedding .eyebrow { color: #c99a58; }
.theme-wedding .button-primary { background: linear-gradient(135deg, #e6c18c, #bd7e39); color: #17100a; }
.theme-wedding .expiration-box { border-left-color: #bd7e39; background: #efe5d8; }
.theme-wedding .message { color: #e6c18c; }

@media (max-width: 540px) {
  .shell { width: min(100% - 18px, 760px); padding-top: 18px; }
  .card { border-radius: 16px; }
  .access-content, .unavailable-card { padding: 30px 20px; }
  .content { padding: 28px 22px; }
}
