/* Wedding guest skin for immich-drop — matches wedding.morales.at
   Olive canvas, ivory paper, champagne gold, espresso ink. */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Pinyon+Script&family=DM+Sans:wght@400;500;600&display=swap");

:root,
html.dark {
  --olive: #403d29;
  --olive-deep: #322f20;
  --sage: #7e856c;
  --ivory: #fffbf5;
  --paper: #f6f4f1;
  --espresso: #45372d;
  --gold: #cfbd82;
  --gold-deep: #b9a56a;
  --muted: #7a6e62;
}

html,
html.dark body,
body {
  background: var(--olive) !important;
  color: var(--espresso) !important;
  font-family: "DM Sans", system-ui, sans-serif;
}

.wedding {
  min-height: 100svh;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-bar {
  width: min(560px, 100%);
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.lang-bar button {
  appearance: none;
  border: 1px solid rgba(207, 189, 130, 0.45);
  background: transparent;
  color: #f6f4f1;
  font: 500 0.75rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-bar button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--olive);
  border-color: var(--gold);
}

.card-paper {
  width: min(560px, 100%);
  background: var(--ivory);
  border-radius: 28px 28px 18px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
}

.seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e4d7a4, var(--gold) 46%, #9d8948);
  color: #4a3b1d;
  display: grid;
  place-items: center;
  font: 600 1.05rem/1 "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.kicker {
  margin: 6px 0 0;
  font: 600 0.72rem/1 "Cormorant Garamond", serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.names {
  margin: 8px 0 4px;
  font: 400 2.7rem/1 "Pinyon Script", cursive;
  color: var(--espresso);
}

.meta {
  margin: 0;
  font: 600 0.78rem/1.4 "Cormorant Garamond", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin: 18px 0 8px;
  font: 500 1.15rem/1.35 "Cormorant Garamond", serif;
  color: var(--espresso);
}

.copy {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.pw-gate {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #eadfca;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}

.pw-gate p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.pw-row {
  display: flex;
  gap: 8px;
}

.pw-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e0d6c4;
  border-radius: 10px;
  padding: 12px;
  font: 400 1rem/1.2 "DM Sans", sans-serif;
  background: #fff;
  color: var(--espresso);
}

.btn-gold,
.btn-outline,
#btnPw {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 600 0.95rem/1 "DM Sans", sans-serif;
  border-radius: 999px;
  padding: 14px 18px;
}

.btn-gold,
#btnPw {
  background: var(--gold);
  color: var(--olive);
  width: 100%;
}

.btn-gold:hover,
#btnPw:hover {
  background: var(--gold-deep);
}

.btn-outline {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--espresso);
  border: 1px solid #d9ccb4;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropzone.wedding-drop {
  border: 1.5px dashed #d7c9ae;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 14px;
  margin: 0 0 12px;
}

.dropzone.wedding-drop .dropzone-text {
  font-size: 0.92rem;
  color: var(--espresso);
}

.hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.thanks {
  margin: 16px 0 0;
  font: italic 500 1rem/1.4 "Cormorant Garamond", serif;
  color: var(--espresso);
}

.upload-panel {
  width: min(560px, 100%);
  margin-top: 16px;
}

.upload-panel.is-empty {
  display: none;
}

.upload-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #f6f4f1;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.upload-summary button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f6f4f1;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: 500 0.75rem/1 "DM Sans", sans-serif;
}

.upload-item {
  background: var(--ivory);
  border-color: #eadfca;
}

.pw-error {
  color: #991b1b;
  font-size: 0.8rem;
  margin: 8px 0 0;
}

.hidden {
  display: none !important;
}

.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;
}

@media (min-width: 700px) {
  .wedding {
    padding-top: 36px;
  }
  .names {
    font-size: 3.3rem;
  }
  .card-paper {
    padding: 36px 36px 30px;
  }
}
