/* Fonts are served from this site so they always load, even on slow party wifi */
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Danny & Arshia's 27th — party album
   Palette: black #000000, gold #C9A227, pale gold #E9CF7A, deep gold #7A5E14, ivory #F2EADB, smoke #8A8377
   Type: Bodoni Moda (display), Instrument Sans (interface) */

:root {
  --black: #000000;
  --surface: #121110;
  --surface-2: #1C1A17;
  --line: rgba(242, 234, 219, 0.14);
  --line-strong: rgba(242, 234, 219, 0.28);
  --ivory: #F2EADB;
  --smoke: #A39B8E;
  --gold: #C9A227;
  --gold-pale: #E9CF7A;
  --gold-deep: #7A5E14;
  --danger: #E8846B;
  --foil: linear-gradient(100deg, #7A5E14 0%, #C9A227 20%, #F6E7B0 36%, #C9A227 50%, #8A6D1D 68%, #E9CF7A 86%, #7A5E14 100%);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 4px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --m-in: 150ms;
  --m-out: 120ms;
  --m-press: 90ms;

  --gutter: clamp(16px, 4vw, 32px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
body.noscroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.muted { color: var(--smoke); }
.pad { padding: 16px 0; }

:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 2px; }

/* ---------- buttons (one pair: gold and line) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-line { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-danger { color: var(--danger); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn-gold:hover { background: #B08C1E; }
  .btn-line:hover { background: rgba(242, 234, 219, .05); border-color: rgba(242, 234, 219, .45); }
  .btn:active { transform: translateY(1px) scale(.985); }
}
.linkbtn {
  background: none; border: 0; padding: 0 4px; min-height: 44px; cursor: pointer;
  color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .linkbtn:hover { text-decoration-color: var(--gold-pale); }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--smoke); font-weight: 500; }
.field input {
  min-height: 52px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 17px; /* 16px+ stops iOS zooming on focus */
  transition: border-color var(--m-in) var(--ease);
}
.field input::placeholder { color: #5E584F; }
.field input:focus { outline: none; border-color: var(--gold); }
.field input:focus-visible { outline: none; }
.form-note { font-size: 14px; color: var(--smoke); margin-top: -6px; }
.form-error { color: var(--danger); font-size: 15px; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- join ---------- */
.join {
  min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr;
  max-width: 520px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) calc(32px + var(--safe-b));
}
.join-hero { padding-top: clamp(12px, 6vh, 64px); }
.foil {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.join-hero .foil {
  font-size: clamp(168px, 52vw, 280px);
  line-height: .82;
  letter-spacing: -.04em;
  margin-left: -.04em;
}
.join-names {
  font-family: var(--display);
  font-size: clamp(30px, 8.5vw, 42px);
  line-height: 1.1;
  margin-top: 14px;
}
.join-body { align-self: end; padding-top: 36px; display: grid; gap: 28px; }
.join-norush { margin-top: -18px; color: var(--gold-pale); font-size: 16px; }
.join-lede { font-size: 18px; line-height: 1.5; max-width: 34ch; color: #D9D1C3; }

/* the one entrance: the number arrives, the foil catches light, then the rest */
@media (prefers-reduced-motion: no-preference) {
  .join-hero .foil { animation: rise 1.1s var(--ease-enter) both, sheen 2.4s var(--ease) .25s both; }
  .join-names { animation: fade .7s var(--ease-enter) .35s both; }
  .join-body { animation: fade .7s var(--ease-enter) .55s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }

.center-msg {
  min-height: 100dvh; display: grid; place-content: center; gap: 20px; text-align: center;
  padding: var(--gutter); color: var(--smoke);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) var(--gutter) 8px;
  background: rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; font-weight: 500; }
.mark {
  font-family: var(--display); font-size: 28px; line-height: 1;
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav { display: flex; align-items: center; gap: 14px; }
.topnav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; border-bottom: 2px solid transparent; }
.topnav a.on { border-bottom-color: var(--gold); }
.menu {
  position: absolute; right: var(--gutter); top: calc(100% + 6px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 8px; display: grid;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  animation: drop 200ms var(--ease) both;
}
.menu[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-who { padding: 10px 12px; font-size: 14px; color: var(--smoke); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu button, .menu a {
  text-align: left; background: none; border: 0; border-radius: var(--r-sm);
  min-height: 48px; padding: 0 12px; display: flex; align-items: center; cursor: pointer; text-decoration: none;
}
.menu button:hover, .menu a:hover { background: var(--surface-2); }

/* ---------- gallery ---------- */
.gallery-wrap { padding: 0 0 calc(120px + var(--safe-b)); }
.gallery-head { padding: 28px var(--gutter) 18px; display: grid; gap: 6px; }
.gallery-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 9vw, 56px); line-height: 1; }
.grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(6, 1fr); padding: 0 var(--gutter); } }
.tile {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; margin: 0;
  background: var(--surface); overflow: hidden; cursor: pointer; display: block; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.03); transition-duration: 600ms; }
}
.tile-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--smoke); font-size: 13px; }
.tile-dur {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .7); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tile.is-pending img { opacity: .45; filter: grayscale(.6); }
.tile-pending {
  position: absolute; inset: auto 6px 6px 6px; text-align: left;
  font-size: 11px; line-height: 1.25; font-weight: 600; color: var(--gold-pale);
}
.tile.is-pending .tile-dur { bottom: auto; top: 6px; }
.tile-check {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(242, 234, 219, .85); background: rgba(0, 0, 0, .35);
}
.tile.selected { outline: 3px solid var(--gold); outline-offset: -3px; }
.tile.selected img { transform: scale(.94); }
.tile.selected .tile-check { background: var(--gold); border-color: var(--gold); }
.tile.selected .tile-check::after {
  content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.empty, .empty-note { padding: 48px var(--gutter); color: var(--smoke); max-width: 40ch; }

/* ---------- upload dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px var(--gutter) calc(14px + var(--safe-b));
  background: linear-gradient(to top, rgba(0,0,0,.96) 55%, rgba(0,0,0,0));
  display: grid; gap: 10px; justify-items: center;
}
.btn-dock { width: min(100%, 420px); min-height: 56px; font-size: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.dock-closed { color: var(--smoke); font-size: 15px; padding: 12px 0; text-align: center; }
.tray {
  width: min(100%, 420px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 12px 14px; display: grid; gap: 10px;
}
.tray[hidden] { display: none; }
.tray-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.tray-head .linkbtn { min-height: 44px; padding: 0 8px; }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); transition: width 300ms var(--ease); }
.bar-lg { height: 8px; border-radius: 4px; }
.tray-errors { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--danger); }
.tray-errors span { color: var(--ivory); word-break: break-all; }

/* ---------- viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 50; background: #000;
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fadein 200ms var(--ease) both;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: max(6px, env(safe-area-inset-top)) var(--gutter) 6px; }
.viewer-stage { position: relative; min-height: 0; overflow: hidden; }
/* the photo always fits inside the space between the top bar and the buttons */
.viewer-stage > img, .viewer-stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; background: #000;
}
.viewer-nav {
  position: absolute; top: 0; bottom: 0; width: 22%; background: none; border: 0; cursor: pointer; z-index: 2;
}
.viewer-nav.prev { left: 0; }
.viewer-nav.next { right: 0; }
.viewer-stage:has(video) .viewer-nav { top: 15%; bottom: 25%; width: 14%; }
.viewer-foot { padding: 12px var(--gutter) calc(14px + var(--safe-b)); display: grid; gap: 12px; border-top: 1px solid var(--line); }
.viewer-meta { display: grid; gap: 2px; }
.viewer-meta a { text-decoration: none; margin-left: 6px; }
.viewer-actions { display: flex; gap: 10px; }
.viewer-review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viewer-review .btn { min-height: 56px; font-size: 17px; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: grid; align-items: end; justify-items: center; }
.sheet {
  width: min(100%, 520px); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 24px var(--gutter) calc(20px + var(--safe-b));
  display: grid; gap: 14px; animation: up 240ms var(--ease-enter) both;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ---------- admin ---------- */
.admin { padding-bottom: calc(100px + var(--safe-b)); }
.tabs {
  position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 8px max(8px, calc(var(--gutter) - 8px)); background: var(--black); border-bottom: 1px solid var(--line);
}
.tabs button {
  min-height: 56px; padding: 6px 2px; border-radius: var(--r-sm);
  background: none; border: 1px solid transparent; cursor: pointer; color: var(--smoke);
  display: grid; align-content: center; justify-items: center; gap: 1px; min-width: 0;
}
.tabs button.on { color: var(--ivory); border-color: var(--line-strong); background: var(--surface); }
.tab-fig { font-size: 18px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ivory); white-space: nowrap; }
.tabs button:not(.on) .tab-fig { color: #CFC7B9; }
.tab-fig.hot, .tabs button:not(.on) .tab-fig.hot { color: var(--gold-pale); }
.tab-label { font-size: 12.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
@media (max-width: 340px) { .tab-label { font-size: 11px; } .tab-fig { font-size: 16px; } }
.admin-body { padding: 0; }
.admin-body > .pad, .admin-body > .form-error { padding-left: var(--gutter); padding-right: var(--gutter); }
.admin-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter); font-size: 15px; }
.filter-chip {
  margin: 14px var(--gutter) 0; padding: 4px 4px 4px 14px; border: 1px solid var(--gold-deep); border-radius: var(--r-sm);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px;
}
.bulkbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line-strong);
  animation: up 200ms var(--ease) both;
}
.bulkbar[hidden] { display: none; }
.bulkbar > span { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bulkbar > div { display: flex; gap: 8px; }

.guests { list-style: none; margin: 0; padding: 0 var(--gutter); }
.guest { border-bottom: 1px solid var(--line); }
.guest-row {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  display: grid; gap: 2px; padding: 14px 0; min-height: 64px;
}
.guest-name { font-weight: 600; font-size: 17px; }
.role { font-size: 12px; font-weight: 600; color: var(--gold-pale); border: 1px solid var(--gold-deep); border-radius: var(--r-sm); padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.role-blocked { color: var(--danger); border-color: rgba(232,132,107,.4); }
.guest.is-blocked .guest-name { color: var(--smoke); }
.guest-actions { padding: 0 0 16px; display: grid; gap: 12px; }
.guest-actions[hidden] { display: none; }
.guest-actions > a { min-height: 32px; display: inline-flex; align-items: center; }
.guest-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.settings { padding: 8px var(--gutter); display: grid; gap: 0; max-width: 640px; }
.setting { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.setting h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.setting-row > div { display: grid; gap: 6px; }
.storage-figure { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-figure .muted { font-weight: 400; font-size: 17px; }
.cap-form { display: flex; align-items: end; gap: 10px; }
.field-inline input { width: 120px; }
.stack { display: grid; gap: 10px; }
.switch {
  flex: none; position: relative; width: 56px; height: 32px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line-strong); cursor: pointer; padding: 0;
  transition: background-color var(--m-in) var(--ease);
}
.switch span {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--smoke);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.switch[aria-checked="true"] { background: var(--gold-deep); border-color: var(--gold); }
.switch[aria-checked="true"] span { transform: translateX(24px); background: var(--gold-pale); }
.switch::before { content: ''; position: absolute; inset: -8px; } /* 48px tap area */

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 80;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ivory); color: var(--black); font-weight: 600; font-size: 15px;
  padding: 12px 18px; border-radius: var(--r-sm); max-width: calc(100vw - 32px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- printable sign (letter poster) ---------- */
.print-page { background: #1a1916; }
.sign { min-height: 100dvh; display: grid; justify-items: center; align-content: start; gap: 20px; padding: 24px 16px 40px; }
.sign-card {
  --u: min(96px, calc((100vw - 32px) / 8.5));
  position: relative; overflow: hidden;
  width: calc(var(--u) * 8.5); height: calc(var(--u) * 11);
  background: #000; color: var(--ivory);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: grid; justify-items: center; align-content: start; text-align: center;
  padding: calc(var(--u) * .62) calc(var(--u) * .7) calc(var(--u) * .5);
}
.sign-card::after {
  content: ''; position: absolute; inset: calc(var(--u) * .28); pointer-events: none;
  border: calc(var(--u) * .018) solid var(--gold-deep);
}
.sign-confetti { position: absolute; inset: 0; pointer-events: none; }
.sign-confetti .cf { animation: none !important; }
.sign-kicker, .sign-27, .sign-head, .sign-qr, .sign-point, .sign-steps, .sign-foot, .sign-url { position: relative; z-index: 1; margin: 0; }
.sign-kicker { font-family: var(--display); font-size: calc(var(--u) * .4); line-height: 1.1; }
.sign-27 { display: block; width: calc(var(--u) * 3.2); height: auto; margin-top: calc(var(--u) * .12); }
.sign-head {
  font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * .46); line-height: 1.08;
  max-width: calc(var(--u) * 6); margin-top: calc(var(--u) * .22);
}
.sign-qr {
  position: relative; width: calc(var(--u) * 3.5); margin-top: calc(var(--u) * .34);
  padding: calc(var(--u) * .14); background: #F2EADB;
}
.sign-qr .qr { width: 100%; height: auto; }
.qc { position: absolute; width: calc(var(--u) * .34); height: calc(var(--u) * .34); border: calc(var(--u) * .045) solid var(--gold); }
.qc.tl { left: calc(var(--u) * -.16); top: calc(var(--u) * -.16); border-right: 0; border-bottom: 0; }
.qc.tr { right: calc(var(--u) * -.16); top: calc(var(--u) * -.16); border-left: 0; border-bottom: 0; }
.qc.bl { left: calc(var(--u) * -.16); bottom: calc(var(--u) * -.16); border-right: 0; border-top: 0; }
.qc.br { right: calc(var(--u) * -.16); bottom: calc(var(--u) * -.16); border-left: 0; border-top: 0; }
.sign-point { color: var(--gold-pale); font-size: calc(var(--u) * .19); margin-top: calc(var(--u) * .3); font-weight: 500; }
.sign-steps {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * .2);
  width: 100%; max-width: calc(var(--u) * 6.4); margin-top: calc(var(--u) * .34);
  font-size: calc(var(--u) * .17); line-height: 1.3;
}
.sign-steps li { display: grid; justify-items: center; gap: calc(var(--u) * .08); }
.sign-steps span {
  display: grid; place-items: center; width: calc(var(--u) * .4); height: calc(var(--u) * .4); border-radius: 50%;
  border: calc(var(--u) * .014) solid var(--gold); color: var(--gold-pale);
  font-family: var(--display); font-size: calc(var(--u) * .21);
}
.sign-foot { color: var(--smoke); font-size: calc(var(--u) * .16); margin-top: calc(var(--u) * .3); }
.sign-url { color: var(--gold); font-size: calc(var(--u) * .3); font-weight: 600; letter-spacing: .01em; margin-top: calc(var(--u) * .06); }
.sign-tools { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 420px; font-size: 14px; }
@media print {
  @page { size: letter; margin: 0; }
  html, body, .print-page { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sign { padding: 0; min-height: 0; display: block; }
  .sign-card { --u: 1in; width: 8.5in; height: 11in; box-shadow: none; }
  .no-print { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- shared pieces used only by the print theme ---------- */
.tile-img { position: absolute; inset: 0; display: block; overflow: hidden; }
.print-hero, .tile-cap, .tile-stamp { display: none; }

/* =====================================================================
   THEME: "print" (disposable camera)
   Cobalt #1F33B8, deep cobalt #16258A, print white #FBFBF8, ink #121212,
   flash orange #FF6A1F, pale cobalt #B8C2FF. Archivo (wide for names), Share Tech Mono (date stamp only).
   ===================================================================== */
html[data-theme="print"] {
  --black: #1F33B8;
  --surface: #16258A;
  --surface-2: #2A3FCC;
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .42);
  --ivory: #FFFFFF;
  --smoke: #C3CBFF;
  --gold: #FF6A1F;
  --gold-pale: #FFB27F;
  --gold-deep: #FF6A1F;
  --danger: #FFB4A0;
  --paper: #FBFBF8;
  --ink: #121212;
  --display: 'Archivo', system-ui, sans-serif;
  --ui: 'Archivo', system-ui, sans-serif;
  --r-sm: 999px;
  --r-lg: 18px;
}
html[data-theme="print"] body { background: var(--black); font-stretch: 100%; }
html[data-theme="print"] .stamp {
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  color: #FF8A3D; letter-spacing: .06em;
  text-shadow: 0 0 6px rgba(255, 106, 31, .75), 0 0 1px #FFD0A8;
}

/* buttons: pill, flash orange */
html[data-theme="print"] .btn { font-weight: 700; letter-spacing: 0; }
html[data-theme="print"] .btn-gold { background: var(--gold); color: var(--ink); }
html[data-theme="print"] .btn-line { border-width: 1.5px; }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="print"] .btn-gold:hover { background: #E85A12; }
  html[data-theme="print"] .btn-line:hover { background: rgba(255,255,255,.08); }
}
html[data-theme="print"] .field input { background: #fff; color: var(--ink); border: 0; border-radius: 12px; }
html[data-theme="print"] .field input::placeholder { color: #8C8C93; }
html[data-theme="print"] .field input:focus { box-shadow: 0 0 0 3px var(--gold); }
html[data-theme="print"] .field > span, html[data-theme="print"] .form-note { color: var(--smoke); }
html[data-theme="print"] :focus-visible { outline-color: #FFFFFF; }

/* join: a print of the night instead of the foil number */
html[data-theme="print"] .join-hero .foil { display: none; }
html[data-theme="print"] .print-hero { display: block; padding-top: clamp(4px, 3vh, 32px); }
html[data-theme="print"] .print-hero-img {
  position: relative; width: min(68vw, 300px); aspect-ratio: 4 / 5;
  background: var(--paper); padding: 12px 12px 56px;
  box-shadow: 0 24px 50px rgba(8, 14, 70, .55);
}
html[data-theme="print"] .print-hero-img > span:first-child {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(120% 90% at 30% 20%, #3A2A1E 0%, #120C08 60%, #000 100%);
  color: #FFF4E6; font-weight: 900; font-stretch: 125%; font-size: clamp(110px, 34vw, 160px); line-height: 1; letter-spacing: -.03em;
}
html[data-theme="print"] .print-hero-img .stamp { position: absolute; right: 22px; bottom: 66px; font-size: 18px; }
html[data-theme="print"] .join-names {
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(40px, 12.5vw, 64px); line-height: .95; letter-spacing: -.02em; margin-top: 28px;
}
html[data-theme="print"] .join-lede { color: #E6E9FF; }
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="print"] .print-hero-img { animation: develop 1.2s var(--ease-enter) both; }
  html[data-theme="print"] .print-hero-img > span:first-child { animation: expose 2s var(--ease) .3s both; }
}
@keyframes develop { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes expose { from { filter: brightness(2.4) saturate(0) blur(2px); } to { filter: none; } }

/* top bar and headings */
html[data-theme="print"] .topbar { background: rgba(31, 51, 184, .9); }
html[data-theme="print"] .mark { background: none; color: var(--paper); -webkit-text-fill-color: currentColor; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 24px; letter-spacing: -.02em; }
html[data-theme="print"] .brand > span:last-child { font-weight: 700; }
html[data-theme="print"] .topnav a.on { border-bottom-color: var(--gold); }
html[data-theme="print"] .gallery-head h1,
html[data-theme="print"] .setting h2,
html[data-theme="print"] .sheet h2 { font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; }
html[data-theme="print"] .gallery-head h1 { font-size: clamp(34px, 10vw, 56px); }

/* gallery: prints with white borders and the guest's name underneath */
html[data-theme="print"] .grid { gap: 14px; grid-template-columns: repeat(2, 1fr); padding: 4px var(--gutter) 0; }
@media (min-width: 640px) { html[data-theme="print"] .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { html[data-theme="print"] .grid { grid-template-columns: repeat(5, 1fr); gap: 22px; } }
html[data-theme="print"] .tile {
  aspect-ratio: 4 / 5; background: var(--paper); padding: 8px 8px 34px;
  box-shadow: 0 10px 24px rgba(8, 14, 70, .45);
}
html[data-theme="print"] .tile-img { position: relative; inset: auto; width: 100%; height: 100%; background: #0E0E12; }
html[data-theme="print"] .tile-stamp { display: block; position: absolute; right: 7px; bottom: 5px; font-size: 12px; }
html[data-theme="print"] .tile-cap {
  display: block; position: absolute; left: 10px; right: 10px; bottom: 8px; text-align: left;
  color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme="print"] .tile-dur { left: 14px; bottom: auto; top: 14px; background: rgba(18,18,18,.75); border-radius: 999px; color: #fff; }
html[data-theme="print"] .tile.is-pending .tile-dur { top: 14px; }
html[data-theme="print"] .tile.is-pending .tile-img img { opacity: .5; filter: grayscale(1); }
html[data-theme="print"] .tile-pending {
  inset: auto auto 44px 14px; right: 14px; padding: 4px 9px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; width: max-content; max-width: calc(100% - 28px);
}
html[data-theme="print"] .tile-noimg { color: #8C8C93; }
html[data-theme="print"] .tile-check { top: 14px; right: 14px; border-color: #fff; }
html[data-theme="print"] .tile.selected { outline: 4px solid var(--gold); outline-offset: 0; }
html[data-theme="print"] .tile.selected img { transform: none; }
html[data-theme="print"] .tile.selected .tile-check { background: var(--gold); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="print"] .tile { transition: transform 180ms var(--ease); }
  html[data-theme="print"] .tile:hover { transform: translateY(-2px); }
}

/* dock, tray, panels */
html[data-theme="print"] .dock { background: linear-gradient(to top, rgba(31,51,184,.98) 55%, rgba(31,51,184,0)); }
html[data-theme="print"] .tray, html[data-theme="print"] .menu, html[data-theme="print"] .sheet, html[data-theme="print"] .bulkbar { background: var(--surface); }
html[data-theme="print"] .bar { background: rgba(255,255,255,.18); }
html[data-theme="print"] #toast { background: var(--paper); color: var(--ink); border-radius: 999px; }

/* host tabs */
html[data-theme="print"] .tabs { background: var(--black); }
html[data-theme="print"] .tabs button { border-radius: 14px; }
html[data-theme="print"] .tabs button.on { background: var(--paper); border-color: var(--paper); color: var(--ink); }
html[data-theme="print"] .tabs button.on .tab-fig { color: var(--ink); }
html[data-theme="print"] .tabs button.on .tab-fig.hot { color: #D9500F; }
html[data-theme="print"] .tab-fig.hot { color: var(--gold-pale); }
html[data-theme="print"] .role { color: var(--ink); background: var(--paper); border-color: var(--paper); border-radius: 999px; }
html[data-theme="print"] .switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
html[data-theme="print"] .switch[aria-checked="true"] span { background: #fff; }
html[data-theme="print"] .filter-chip { border-color: var(--gold); border-radius: 14px; }

/* the photo viewer stays dark so pictures read true */
html[data-theme="print"] .viewer { background: #08081A; }
html[data-theme="print"] .viewer-foot { border-top-color: rgba(255,255,255,.12); }

/* sign */
html[data-theme="print"] .print-page { background: #10196A; }
html[data-theme="print"] .sign-card { background: var(--black); border: 0; }
html[data-theme="print"] .sign-27 { background: none; color: var(--paper); -webkit-text-fill-color: currentColor; font-family: var(--display); font-weight: 900; font-stretch: 125%; }
html[data-theme="print"] .sign-names { font-weight: 900; font-stretch: 125%; }
html[data-theme="print"] .sign-qr { border: 0; padding: 0; background: var(--paper); box-shadow: 0 14px 30px rgba(8,14,70,.5); }
html[data-theme="print"] .sign-cta { font-weight: 700; }
html[data-theme="print"] .sign-url { color: var(--gold-pale); }
/* a print waiting for approval hasn't been developed yet: no date stamp */
html[data-theme="print"] .tile.is-pending .tile-stamp { display: none; }
html[data-theme="print"] .tile-pending { inset: auto auto 44px 14px; }

/* ---------- birthday touches on the entry screen (gold theme) ---------- */
.join-hero { position: relative; }
.join-27 { position: relative; z-index: 1; margin: 0; font-size: inherit; font-weight: inherit; line-height: 1; }
.pop {
  display: inline-block; border: 0; padding: 0; margin: 0; cursor: pointer;
  font-family: var(--display); color: transparent; -webkit-text-fill-color: transparent;
  -webkit-tap-highlight-color: transparent; text-align: left;
}
.pop:focus-visible { outline-offset: 6px; }
.pop:active { transform: scale(.985); transition: transform var(--m-press) var(--ease); }
.pop sup {
  font-size: .27em; line-height: 1; vertical-align: top; position: relative; top: .14em;
  margin-left: .05em; letter-spacing: 0;
}
.join-names, .join-when { position: relative; z-index: 1; }
.join-when { margin-top: 10px; color: var(--gold-pale); font-size: 16px; font-weight: 500; letter-spacing: .01em; }

.confetti {
  position: absolute; z-index: 0; pointer-events: none;
  left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -24px; bottom: -8px;
  overflow: hidden;
}
.cf {
  position: absolute; display: block;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
  --c: #C9A227;
}
.cf-foil { --c: #C9A227; }
.cf-pale { --c: #E9CF7A; }
.cf-ivory { --c: rgba(242, 234, 219, .85); }
.cf-deep { --c: #8A6D1D; }
.cf-strip { width: 5px; height: 16px; border-radius: 1px; background: var(--c); }
.cf-strip.cf-foil { background: linear-gradient(160deg, #7A5E14, #F6E7B0 45%, #C9A227 60%, #8A6D1D); }
.cf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cf-curl { width: 18px; height: 12px; border: 2px solid transparent; border-top-color: var(--c); border-radius: 50%; }
.cf-star {
  width: 13px; height: 13px; background: var(--c);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@media (prefers-reduced-motion: no-preference) {
  .cf { animation: cf-fall var(--t) var(--ease-enter) var(--d) both; }
}
@keyframes cf-fall {
  0% { transform: translate(calc(-50% + var(--sway)), -70vh) rotate(calc(var(--r) - 420deg)) scale(var(--s)); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); opacity: 1; }
}
.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
html[data-theme="print"] .confetti, html[data-theme="print"] .join-when { display: none; }

.sign-27 sup { font-size: .27em; vertical-align: top; position: relative; top: .14em; margin-left: .04em; letter-spacing: 0; }
.sign-when { color: var(--gold-pale); font-size: .15in; margin-top: .06in; }

/* selection: Select button, and a bigger tap area around each circle */
.admin-tool-btns { display: flex; gap: 8px; flex: none; }
.admin-tools > p { min-width: 0; }
.tile-check { z-index: 3; }
.tile-check::before { content: ''; position: absolute; inset: -12px; }
.grid-admin.is-selecting .tile:not(.selected) img { opacity: .8; }
.grid-admin.is-selecting .tile-check { width: 28px; height: 28px; border-width: 2px; }
.viewer-nav { z-index: 2; }

/* ---------- sort and filter controls (hosts) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px var(--gutter) 0; }
.pick { flex: 1 1 140px; min-width: 0; }
.pick select {
  width: 100%; min-height: 44px; padding: 0 34px 0 12px; font-size: 15px;
  -webkit-appearance: none; appearance: none; color: var(--ivory);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A227' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.pick select:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; flex: 1 1 200px; }
.seg button { flex: 1; min-height: 42px; background: none; border: 0; color: var(--smoke); font-size: 15px; cursor: pointer; padding: 0 10px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--surface-2); color: var(--ivory); font-weight: 600; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px;
  background: none; color: var(--gold-pale); border: 1px solid var(--gold-deep);
}
.chip.on { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.filter-note { padding: 10px var(--gutter) 0; font-size: 14px; }
.filter-note .linkbtn { min-height: 32px; font-size: 14px; }
.person-group + .person-group { margin-top: 18px; }
.group-head { font-family: var(--ui); font-size: 16px; font-weight: 600; padding: 4px var(--gutter) 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.group-head .muted { font-weight: 400; font-size: 14px; }
.tile-size, .tile-dupe {
  position: absolute; z-index: 2; padding: 2px 7px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .75);
}
.tile-size { left: 6px; top: 6px; color: var(--ivory); }
.tile-dupe { right: 6px; bottom: 6px; color: var(--black); background: var(--gold-pale); }
.guest-row { gap: 4px; }
.guest-stats { display: flex; justify-content: space-between; gap: 12px; }
.guest-bytes { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.guest-bar { display: block; height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.guest-bar span { display: block; height: 100%; background: var(--gold); }

/* guest gallery filters */
.gallery-filters { padding-top: 0; padding-bottom: 14px; }
.gallery-wrap .filter-note { padding-top: 0; padding-bottom: 12px; }
.gallery-wrap .empty-note { padding-top: 24px; }

/* ---------- sign style switcher ---------- */
.sign-styles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 820px; }
.sign-styles button {
  min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px;
  background: none; color: var(--smoke); border: 1px solid var(--line-strong);
}
.sign-styles button.on { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.sign-card > * { position: relative; z-index: 1; }
.sign-card > .sign-confetti, .sign-card > .pl-decos { position: absolute; z-index: 0; inset: 0; }

/* ---------- style: Capture the night ---------- */
.v-capture { padding-top: calc(var(--u) * .72); }
.cap-top { display: grid; justify-items: center; }
.cap-27 { display: block; width: calc(var(--u) * 2.1); height: auto; }
.cap-names { font-family: var(--display); font-size: calc(var(--u) * .3); margin-top: calc(var(--u) * .1); }
.cap-head { font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * .86); line-height: 1; margin-top: calc(var(--u) * .28); letter-spacing: -.01em; }
.cap-sub { color: var(--gold-pale); font-size: calc(var(--u) * .23); font-weight: 500; margin-top: calc(var(--u) * .16); }
.cap-frame {
  margin-top: calc(var(--u) * .32); background: #000;
  border: calc(var(--u) * .05) solid var(--gold); padding: calc(var(--u) * .2) calc(var(--u) * .2) 0;
  display: grid;
}
.cap-qr { width: calc(var(--u) * 3.85); background: #F2EADB; padding: calc(var(--u) * .1); }
.cap-qr .qr { width: 100%; height: auto; }
.cap-tab {
  margin: calc(var(--u) * .2) calc(var(--u) * -.2) 0; background: var(--gold); color: #000;
  font-weight: 600; font-size: calc(var(--u) * .36); padding: calc(var(--u) * .1) 0 calc(var(--u) * .14); letter-spacing: .01em;
}
.cap-foot { color: var(--smoke); font-size: calc(var(--u) * .17); margin-top: calc(var(--u) * .28); }
.cap-url { color: var(--gold); font-size: calc(var(--u) * .32); font-weight: 600; margin-top: calc(var(--u) * .04); }

/* ---------- style: Phone ad ---------- */
.v-phone { justify-items: start; text-align: left; padding: calc(var(--u) * .8) calc(var(--u) * .85); }
.ph-head { max-width: calc(var(--u) * 4.7); }
.ph-kicker { color: var(--gold-pale); font-size: calc(var(--u) * .22); font-weight: 500; }
.ph-head h1 { font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * .98); line-height: 1; margin-top: calc(var(--u) * .14); letter-spacing: -.01em; }
.ph-sub { font-size: calc(var(--u) * .27); margin-top: calc(var(--u) * .22); color: #D9D1C3; max-width: calc(var(--u) * 3.1); }
.v-phone > .ph-badge { position: absolute; left: calc(var(--u) * .85); top: calc(var(--u) * 5.15); width: calc(var(--u) * 2.9); }
.ph-27 { display: block; width: 100%; height: auto; margin-left: calc(var(--u) * -.14); }
.ph-badge p { font-family: var(--display); font-size: calc(var(--u) * .3); margin-top: calc(var(--u) * .02); }
.v-phone > .ph-arrow { position: absolute; left: calc(var(--u) * 5.55); top: calc(var(--u) * 1.35); width: calc(var(--u) * 2); height: auto; }
.v-phone > .ph-phone {
  position: absolute; right: calc(var(--u) * .9); top: calc(var(--u) * 4.15);
  width: calc(var(--u) * 3.45); height: calc(var(--u) * 6.05);
  border: calc(var(--u) * .07) solid var(--gold); border-radius: calc(var(--u) * .46);
  background: #000; display: grid; justify-items: center; align-content: center; text-align: center;
  padding: calc(var(--u) * .4) calc(var(--u) * .28);
}
.ph-notch { position: absolute; top: calc(var(--u) * .16); left: 50%; transform: translateX(-50%); width: calc(var(--u) * .95); height: calc(var(--u) * .17); border-radius: calc(var(--u) * .1); background: var(--gold-deep); }
.ph-scan { font-weight: 600; font-size: calc(var(--u) * .36); }
.ph-qr { width: calc(var(--u) * 2.75); background: #F2EADB; padding: calc(var(--u) * .1); margin-top: calc(var(--u) * .2); }
.ph-qr .qr { width: 100%; height: auto; }
.ph-url { color: var(--gold); font-weight: 600; font-size: calc(var(--u) * .24); margin-top: calc(var(--u) * .24); }
.v-phone > .ph-steps {
  position: absolute; left: calc(var(--u) * .85); bottom: calc(var(--u) * .95); width: calc(var(--u) * 3.1);
  list-style: none; padding: 0; margin: 0; display: grid; gap: calc(var(--u) * .3); font-size: calc(var(--u) * .21);
}
.ph-steps li { display: grid; grid-template-columns: auto 1fr; gap: calc(var(--u) * .16); align-items: center; }
.ph-steps span {
  display: grid; place-items: center; width: calc(var(--u) * .44); height: calc(var(--u) * .44); border-radius: 50%;
  border: calc(var(--u) * .016) solid var(--gold); color: var(--gold-pale); font-family: var(--display); font-size: calc(var(--u) * .23);
}

/* ---------- style: Polaroid ---------- */
.v-polaroid { padding-top: calc(var(--u) * .72); }
.pl-deco {
  position: absolute; width: calc(var(--u) * 2.3); height: calc(var(--u) * 2.75);
  background: #E9E2D3; padding: calc(var(--u) * .14) calc(var(--u) * .14) calc(var(--u) * .5);
  transform: rotate(var(--r)) scale(var(--s)); box-shadow: 0 calc(var(--u) * .08) calc(var(--u) * .25) rgba(0,0,0,.6); opacity: .9;
}
.pl-deco-img { display: block; width: 100%; height: 100%; }
.pl-tone0 { background: radial-gradient(120% 90% at 30% 25%, #C9A227 0%, #5A3A12 45%, #120A04 100%); }
.pl-tone1 { background: radial-gradient(110% 90% at 70% 30%, #E9CF7A 0%, #7A4A2A 40%, #1A0E0A 100%); }
.pl-tone2 { background: radial-gradient(120% 100% at 40% 70%, #B08C1E 0%, #3B2A10 50%, #0A0806 100%); }
.pl-tone3 { background: radial-gradient(100% 90% at 60% 40%, #F6E7B0 0%, #8A6D1D 35%, #1C1408 100%); }
.pl-kicker { color: var(--gold-pale); font-size: calc(var(--u) * .24); font-weight: 500; }
.pl-head { font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * .6); line-height: 1.08; max-width: calc(var(--u) * 6.2); margin-top: calc(var(--u) * .14); }
.pl-card {
  margin-top: calc(var(--u) * .55); width: calc(var(--u) * 4.5); background: #F2EADB;
  padding: calc(var(--u) * .28) calc(var(--u) * .28) 0; box-shadow: 0 calc(var(--u) * .12) calc(var(--u) * .4) rgba(0,0,0,.7);
}
.pl-qr .qr { width: 100%; height: auto; display: block; }
.pl-caption { font-family: 'Caveat', 'Bradley Hand', cursive; font-weight: 700; color: #1A1814; font-size: calc(var(--u) * .5); line-height: 1; padding: calc(var(--u) * .16) 0 calc(var(--u) * .26); }
.pl-tape { position: absolute; top: calc(var(--u) * -.16); width: calc(var(--u) * 1.35); height: calc(var(--u) * .4); background: rgba(233, 207, 122, .6); }
.pl-tape-l { left: calc(var(--u) * -.42); transform: rotate(-38deg); }
.pl-tape-r { right: calc(var(--u) * -.42); transform: rotate(38deg); }
.pl-foot { color: var(--smoke); font-size: calc(var(--u) * .18); margin-top: calc(var(--u) * .48); }
.pl-url { color: var(--gold); font-size: calc(var(--u) * .34); font-weight: 600; margin-top: calc(var(--u) * .04); }

/* ---------- style: Snap, Scan, Share ---------- */
.v-bold { justify-items: start; text-align: left; padding: calc(var(--u) * .62) calc(var(--u) * .85) calc(var(--u) * .7); }
.bd-words { display: grid; font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * 1.8); line-height: .94; letter-spacing: -.025em; margin: 0; }
.bd-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: calc(var(--u) * .45); align-items: end; margin-top: calc(var(--u) * .42); }
.bd-27 { display: block; width: calc(var(--u) * 2); height: auto; margin-left: calc(var(--u) * -.12); }
.bd-names { font-family: var(--display); font-size: calc(var(--u) * .3); line-height: 1.15; margin-top: calc(var(--u) * .1); }
.bd-copy { color: var(--smoke); font-size: calc(var(--u) * .17); line-height: 1.45; margin-top: calc(var(--u) * .2); max-width: calc(var(--u) * 3.1); }
.bd-url { color: var(--gold); font-size: calc(var(--u) * .32); font-weight: 600; margin-top: calc(var(--u) * .22); }
.bd-qrwrap { width: calc(var(--u) * 3.35); border: calc(var(--u) * .05) solid var(--gold); background: #000; }
.bd-qr { background: #F2EADB; padding: calc(var(--u) * .12); }
.bd-qr .qr { width: 100%; height: auto; display: block; }
.bd-tab { background: var(--gold); color: #000; text-align: center; font-weight: 600; font-size: calc(var(--u) * .32); padding: calc(var(--u) * .08) 0 calc(var(--u) * .12); }

/* printed signs: a sturdier cut of Bodoni so thin strokes survive printing */
.sign-card { font-variation-settings: 'opsz' 30; }
.sign-card .sign-head, .sign-card .cap-head, .sign-card .ph-head h1, .sign-card .pl-head, .sign-card .bd-words { font-variation-settings: 'opsz' 36; }
/* phone ad: left column */
.v-phone > .ph-left {
  position: absolute; left: calc(var(--u) * .85); top: calc(var(--u) * .8); bottom: calc(var(--u) * .9);
  width: calc(var(--u) * 3.35); display: flex; flex-direction: column; justify-content: space-between; text-align: left;
}
.v-phone .ph-head { max-width: none; }
.v-phone .ph-head h1 { font-size: calc(var(--u) * .74); line-height: 1.02; }
.v-phone .ph-badge { position: static; width: calc(var(--u) * 2.5); }
.v-phone .ph-steps { position: static; width: auto; }
.v-phone > .ph-phone { top: calc(var(--u) * 4.3); height: calc(var(--u) * 5.95); }
.v-phone > .ph-arrow { left: calc(var(--u) * 4.7); top: calc(var(--u) * 1.4); width: calc(var(--u) * 2.4); }

/* gold 27th on the signs */
.sign-card .gold27 {
  font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: -.03em; margin: 0;
  background: var(--foil); background-size: 220% 100%; background-position: 30% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  width: auto; height: auto;
}
.sign-card .gold27 sup { font-size: .28em; vertical-align: top; position: relative; top: .16em; margin-left: .04em; letter-spacing: 0; line-height: 1; }
.sign-card .sign-27 { font-size: calc(var(--u) * 2.05); margin-top: calc(var(--u) * .1); }
.sign-card .cap-27 { font-size: calc(var(--u) * 1.3); }
.sign-card .ph-27 { font-size: calc(var(--u) * 1.5); margin-left: calc(var(--u) * -.06); }
.sign-card .bd-27 { font-size: calc(var(--u) * 1.3); margin-left: calc(var(--u) * -.05); }
@media print {
  .sign-card .gold27 { background: none; color: #C9A227; -webkit-text-fill-color: #C9A227; }
}
/* phone ad fixes */
.v-phone > .ph-left { width: calc(var(--u) * 3.15); }
.v-phone .ph-head { width: calc(var(--u) * 4.35); }
.v-phone .ph-head h1 { font-size: calc(var(--u) * .7); }
.v-phone .ph-sub { max-width: calc(var(--u) * 3.1); }
.v-phone > .ph-arrow { left: calc(var(--u) * 5.35); top: calc(var(--u) * 1.75); width: calc(var(--u) * 2); }
.v-phone .ph-badge { width: auto; }

/* classic: fit the two-line headline */
.v-classic .sign-qr { width: calc(var(--u) * 3.3); margin-top: calc(var(--u) * .3); }
.v-classic .sign-steps { margin-top: calc(var(--u) * .26); }
.v-classic .sign-foot { margin-top: calc(var(--u) * .22); }
.v-classic .sign-point { margin-top: calc(var(--u) * .26); }
