/* The couple's wedding page in its three looks (Ivory, Canyon, Juniper), and the QR card.
   Used on /w/<slug> (standalone), the /website samples and the printable card sheet. */
.wl, .qc { --serif: 'Bodoni Moda', 'Didot', serif; --sans: 'Hanken Grotesk', system-ui, sans-serif; font-family: var(--sans); box-sizing: border-box; }
.wl *, .qc * { box-sizing: border-box; }

.wl { display: flex; flex-direction: column; background: var(--bg); color: var(--fg); width: 100%; max-width: 560px; margin: 0 auto; }
.wl-ivory { --bg: #FFFDF9; --fg: #211C18; --sub: #6B6259; --line: #E3DACD; --accent: #A3472B; --note: #F3ECE2; --btn: #211C18; --btn-fg: #FBF8F3; --hero: #FFFDF9; --hero-fg: #211C18; --hero-sub: #6B6259; --amp: #A3472B; }
.wl-canyon { --bg: #FBF8F3; --fg: #211C18; --sub: #6B6259; --line: #E3DACD; --accent: #A3472B; --note: #F7E7DD; --btn: #A3472B; --btn-fg: #FFFFFF; --hero: #A3472B; --hero-fg: #FFFFFF; --hero-sub: #FBE9E0; --amp: #FBE9E0; }
.wl-juniper { --bg: #2F3B32; --fg: #EFE9DC; --sub: #C9D2BF; --line: #4A574C; --accent: #E2C891; --note: #3A473D; --btn: #EFE9DC; --btn-fg: #2F3B32; --hero: #2F3B32; --hero-fg: #EFE9DC; --hero-sub: #C9D2BF; --amp: #E2C891; }

.wl-hero { background: var(--hero); color: var(--hero-fg); padding: 56px 28px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.wl-ivory .wl-hero { outline: 1px solid #B8975A; outline-offset: -12px; }
.wl-canyon .wl-hero { align-items: flex-start; text-align: left; padding: 48px 28px 44px; }
.wl-ridge { color: var(--accent); }
.wl-juniper .wl-ridge { color: #E2C891; }
.wl-kick { font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--hero-sub); }
.wl-names { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 12vw, 58px); line-height: .95; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 12px; overflow-wrap: anywhere; }
.wl-names em { font-style: italic; color: var(--amp); }
.wl-juniper .wl-names { font-style: italic; }
.wl-canyon .wl-names { flex-direction: column; font-size: clamp(56px, 17vw, 78px); justify-content: flex-start; }
.wl-rule { width: 40px; height: 1px; background: var(--hero-fg); opacity: .7; }
.wl-when { margin: 0; font-size: 15.5px; line-height: 1.6; }

.wl-body { padding: 34px 28px 30px; display: flex; flex-direction: column; gap: 30px; }
.wl-sec { display: flex; flex-direction: column; gap: 14px; }
.wl-lbl { margin: 0; font-family: var(--sans); line-height: 1.4; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--sub); text-align: center; }
.wl-canyon .wl-lbl { text-align: left; }
.wl-ev { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 14px; align-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
.wl-time { font-family: var(--serif); font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; color: var(--accent); }
.wl-evt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wl-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.wl-place { font-size: 14px; line-height: 1.5; color: var(--sub); overflow-wrap: anywhere; margin: 0; }
.wl-evt a, .wl-credit a { align-self: flex-start; min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--fg); text-underline-offset: 4px; }
.wl-note { margin: 0; padding: 14px 16px; background: var(--note); font-size: 14.5px; line-height: 1.55; }
.wl-story { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; font-style: italic; text-align: center; }
.wl-canyon .wl-story { text-align: left; }
.wl-reg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.wl-reg a { min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 10px; border: 1px solid var(--fg); color: var(--fg); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.wl-reg a:hover { background: var(--fg); color: var(--bg); }
.wl-btn { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: var(--btn); color: var(--btn-fg); font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; width: 100%; }
.wl-form { display: flex; flex-direction: column; gap: 14px; }
.wl-form label, .wl-form fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); border: 0; margin: 0; padding: 0; }
.wl-form legend { font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 6px; padding: 0; }
.wl-form input:not([type=radio]) { font: inherit; font-size: 17px; font-weight: 400; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; min-height: 44px; padding: 0; width: 100%; }
.wl-form input:focus-visible, .wl-btn:focus-visible, .wl a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wl-form .wl-radio { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--fg); min-height: 40px; }
.wl-form .wl-radio input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.wl-credit { font-size: 12px; color: var(--sub); text-align: center; display: flex; justify-content: center; gap: 4px; align-items: center; }
.wl-credit a { font-size: 12px; min-height: 32px; font-weight: 500; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl .status-ok, .wl .status-err { margin: 0; padding: 14px 16px; font-size: 15px; line-height: 1.5; background: var(--note); color: var(--fg); }

/* The standalone guest page */
.wl-page { margin: 0; min-height: 100vh; }
.wl-page main { min-height: 100vh; display: flex; }
.wl-page-ivory { background: #F3ECE2; }
.wl-page-canyon { background: #F3ECE2; }
.wl-page-juniper { background: #263028; }
@media (min-width: 600px) { .wl-page main { padding: 40px 20px; } .wl { box-shadow: 0 50px 90px -50px rgba(33,28,24,.6); } }
.wl-preview { background: #211C18; color: #FBF8F3; font: 600 14px/1.5 'Hanken Grotesk', system-ui, sans-serif; padding: 12px 20px; text-align: center; }
.wl-preview a { color: #F1DDB4; }

/* The QR card: 3.5 × 5 inches */
.qc { width: 100%; max-width: 300px; aspect-ratio: 5 / 7; background: var(--hero); color: var(--hero-fg); padding: 28px 26px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; gap: 10px; }
.qc-ivory { --hero: #FFFDF9; --hero-fg: #211C18; --hero-sub: #6B6259; --amp: #A3472B; outline: 1px solid #B8975A; outline-offset: -10px; }
.qc-canyon { --hero: #A3472B; --hero-fg: #FFFFFF; --hero-sub: #FBE9E0; --amp: #FBE9E0; }
.qc-juniper { --hero: #2F3B32; --hero-fg: #EFE9DC; --hero-sub: #C9D2BF; --amp: #E2C891; }
.qc-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qc-kick { font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--hero-sub); }
.qc-names { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.qc-names em { font-style: italic; color: var(--amp); }
.qc-juniper .qc-names { font-style: italic; }
.qc-qr { width: 58%; aspect-ratio: 1; background: #FFFFFF; padding: 4px; }
.qc-qr svg { display: block; width: 100%; height: 100%; }
.qc-foot { display: flex; flex-direction: column; gap: 6px; }
.qc-line { font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.2; }
.qc-url { font-size: 10.5px; letter-spacing: .02em; color: var(--hero-sub); overflow-wrap: anywhere; }

/* The print sheet: four cards on letter paper */
.qc-sheet { margin: 0; background: #F3ECE2; font-family: 'Hanken Grotesk', system-ui, sans-serif; color: #211C18; }
.qc-help { max-width: 7in; margin: 24px auto; padding: 0 16px; font-size: 15px; line-height: 1.55; }
.qc-help button { font: inherit; font-weight: 600; min-height: 44px; padding: 0 20px; background: #211C18; color: #FBF8F3; border: 0; cursor: pointer; margin-right: 16px; }
.qc-help a { color: #211C18; font-weight: 600; }
.qc-grid { display: grid; grid-template-columns: repeat(2, 3.5in); grid-auto-rows: 5in; justify-content: center; gap: 0; margin: 0 auto 40px; width: 7in; background: #fff; }
.qc-grid .qc { max-width: none; width: 3.5in; height: 5in; aspect-ratio: auto; padding: 0.42in 0.36in; outline-offset: -0.14in; border: 0.5px dashed #CFC3B2; }
@media (max-width: 760px) { .qc-grid { width: auto; grid-template-columns: minmax(0, 300px); grid-auto-rows: auto; gap: 24px; background: none; } .qc-grid .qc { width: 100%; height: auto; aspect-ratio: 5 / 7; } }
@media print {
  @page { size: letter; margin: 0.5in 0.75in; }
  .qc-sheet { background: #fff; }
  .qc-help { display: none; }
  .qc-grid { width: 7in; grid-template-columns: repeat(2, 3.5in); grid-auto-rows: 5in; gap: 0; margin: 0; }
  .qc-grid .qc { width: 3.5in; height: 5in; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { .wl *, .qc * { transition: none !important; } }

/* The QR card with the couple's main photo: the photo fills the top half with a white inset line. */
.qc-photo { padding: 0; justify-content: flex-start; gap: 0; }
.qc-ph { position: relative; width: 100%; height: 50%; overflow: hidden; background: #2A211C; flex: none; }
.qc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qc-inset { position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.75); }
.qc-low { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 6px; padding: 12px 18px 14px; width: 100%; }
.qc-photo .qc-names { font-size: 24px; }
.qc-qr-s { width: 38%; }
.qc-line-s { font-size: 10.5px; letter-spacing: .04em; color: var(--hero-sub); }
.qc-grid .qc-photo { padding: 0; }
.qc-grid .qc-photo .qc-low { padding: 0.16in 0.3in 0.2in; }
.qc-ivory.qc-photo { outline: 0; } .qc-ivory.qc-photo .qc-low { outline: 1px solid #B8975A; outline-offset: -10px; }
