/* Taylor & AJ — address collection landing (bagsecured.wedding)
   Shares the wedding one-pager's design language. */

:root {
  --ink: #2B1812;
  --cream: #F6EDE0;
  --terracotta: #7E3628;
  --glass: rgba(43, 24, 18, 0.5);
  --glass-border: rgba(255, 255, 255, 0.22);
  --serif: 'Playfair Display', serif;
  --sans: 'Archivo', sans-serif;
}

* { margin: 0; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  min-height: 100vh;
}

img { display: block; }

/* full photo, no crop: anchored left at natural aspect, fading into the
   ink background on its right edge */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
}


.scrim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15, 8, 5, 0.62) 0%, rgba(15, 8, 5, 0) 42%),
    linear-gradient(to bottom, rgba(43, 24, 18, 0.08) 0%, rgba(43, 24, 18, 0.4) 100%);
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 48px 24px 96px;
  box-sizing: border-box;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.form-card {
  width: 640px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 46px 52px;
  /* barely-there glass: the photo should read clearly through the card */
  background: rgba(43, 24, 18, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.wordmark { font-family: var(--serif); font-size: 20px; margin-bottom: 26px; }
.amp { font-style: italic; font-weight: 400; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 600;
  opacity: 0.9;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.06;
  margin-top: 16px;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  opacity: 0.9;
  margin-top: 14px;
}

form { margin-top: 32px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: block; }

.field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.8;
  margin: 0 0 7px 4px;
}

.field-grid input {
  box-sizing: border-box;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  padding: 15px 18px;
  outline: none;
}
.field-grid input::placeholder { color: rgba(246, 237, 224, 0.55); }
.field-grid input:focus { border-color: rgba(255, 255, 255, 0.45); }
.field-grid .span-2 { grid-column: 1 / -1; }

/* honeypot — visually gone, present for bots */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
  color: #FFD9CC;
}
.form-error:not(:empty) { margin-top: 16px; }

#success-title:focus { outline: none; }

.btn-cta {
  margin-top: 24px;
  width: 100%;
  background: var(--cream);
  color: var(--terracotta);
  border: none;
  border-radius: 999px;
  padding: 18px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.26em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn-cta:hover { background: #fff; }
.btn-cta:disabled { opacity: 0.6; cursor: wait; }

.fine-print {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.85;
  margin-top: 16px;
  text-align: center;
}

.success-card { text-align: center; padding-top: 56px; padding-bottom: 56px; }
.success-card .wordmark { margin-bottom: 30px; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 40px 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 600;
  opacity: 0.8;
}

/* wide screens: the couple stands center-frame — keep them visible
   by letting the card sit right-of-center */
@media (min-width: 960px) {
  .wrap { justify-content: flex-end; padding-right: 5vw; }
}

@media (max-width: 640px) {
  /* the left gradient is a desktop treatment — on phones it buries the photo */
  .scrim {
    background: linear-gradient(to bottom, rgba(43, 24, 18, 0.05) 0%, rgba(43, 24, 18, 0.35) 100%);
  }
  .form-card { padding: 34px 26px; }
  h1 { font-size: clamp(36px, 10vw, 52px); }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span-2 { grid-column: auto; }
  .wrap { padding: 32px 16px 80px; align-items: flex-start; }
  .footer { justify-content: center; }
  .footer span + span { display: none; }
}
