@font-face {
  font-family: 'Cormorant Infant';
  src: url('../assets/fonts/CormorantInfant-SemiboldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #f3e5ce;
  --ink: #402c2a;
  --burgundy: #71333f;
  --muted: #654b3f;
  --paper-grain: url('../assets/vivi/parchment-texture.webp');
  --stationery-serif: 'Cormorant Infant', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  color: var(--ink);
  background-color: #302326;
  background-image: linear-gradient(#27191a40, #24151d79), url('../assets/vivi/floor-landscape.webp');
  background-position: center;
  background-size: cover;
  font: 17px/1.6 Georgia, 'Times New Roman', serif;
}

.photo-paper {
  position: relative;
  isolation: isolate;
  width: min(100%, 670px);
  margin: clamp(4px, 5vh, 56px) auto;
  padding: clamp(30px, 5vw, 58px) clamp(23px, 6vw, 58px) 21px;
  text-align: center;
  border: 1px solid #e3c6a4;
  border-radius: 4px;
  box-shadow: 0 20px 68px #1d1019a0;
  background: linear-gradient(#fff7e344, #fff7e314), var(--paper-grain) center/720px auto, var(--ivory);
}

.photo-paper::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid #a6776545;
  border-radius: 2px;
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: #735047;
  font: 600 clamp(.66rem, 2.4vw, .74rem)/1.5 system-ui, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.photo-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 20px 0 8px;
  color: #8a504a;
}

.photo-flourish img { width: clamp(31px, 8vw, 43px); height: auto; transform: rotate(-24deg); }
.photo-flourish img:last-child { transform: scaleX(-1) rotate(-24deg); }
.photo-flourish svg { width: 43px; height: 43px; }

h1, h2 { margin: 0; color: var(--burgundy); font-family: var(--stationery-serif); font-weight: 600; font-style: italic; }
h1 { font-size: clamp(2.55rem, 8.8vw, 4.1rem); line-height: 1.03; letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 5.5vw, 2.35rem); line-height: 1.12; }
.intro { max-width: 445px; margin: 15px auto 0; color: var(--muted); }
.heart-divider { display: flex; align-items: center; gap: 14px; max-width: 250px; margin: 24px auto; color: #a66e51; font-size: .8rem; }
.heart-divider::before, .heart-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #9d795879); }
.heart-divider::after { transform: scaleX(-1); }

.photo-gate {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 24px clamp(13px, 4vw, 25px);
  border: 1px solid #b58b6a73;
  border-radius: 8px;
  background: #fff8e762;
  box-shadow: inset 0 0 0 3px #fff9eb48;
}

.photo-gate p { margin: 10px auto 0; color: var(--muted); }
.photo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 17px;
  padding: 8px 22px;
  border: 1px solid #874350;
  border-radius: 30px;
  color: #fff3df;
  background: var(--burgundy);
  font: 600 .84rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.photo-button:hover { background: #602a36; }
.photo-button:disabled { opacity: .72; cursor: wait; }
.noscript-note { font-size: .93rem; }

.photo-uploads { width: 100%; min-width: 0; margin: 0 auto; }
.form-help, .form-status { max-width: 455px; margin: 9px auto; color: var(--muted); font-size: .95rem; }
.photo-hunt { max-width: 455px; margin: 20px auto 15px; text-align: left; border: 1px solid #b58b6a73; border-radius: 8px; background: #fff8e762; }
.photo-hunt summary { min-height: 47px; padding: 13px 14px; color: var(--burgundy); font: 600 .91rem/1.4 system-ui, sans-serif; cursor: pointer; }
.hunt-progress { display: inline-block; margin-inline-start: .55em; color: var(--muted); font-size: .77rem; font-weight: 500; white-space: nowrap; }
.hunt-content { padding: 0 14px 9px; border-top: 1px solid #b58b6a49; }
.hunt-content p { margin: 12px 0 8px; color: var(--muted); font-size: .93rem; }
.hunt-content ul { margin: 0; padding: 0; list-style: none; }
.hunt-content li + li { border-top: 1px solid #b58b6a37; }
.hunt-content label { display: flex; align-items: center; gap: 11px; min-height: 44px; padding-block: 5px; cursor: pointer; }
.hunt-content input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--burgundy); }
.form-status { font-style: italic; }
.photo-embed { width: 100%; min-width: 0; margin-top: 14px; }
.photo-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; background: transparent; }
.form-retry { margin-top: 8px; }
.photo-footer a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--burgundy); text-underline-offset: .19em; }
.photo-footer { margin: 17px 0 0; }
.photo-footer a { font: 600 .8rem/1.4 system-ui, sans-serif; }
.photo-footer a span { font-size: 1rem; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, #uploads-heading:focus-visible { outline: 2px solid #71333f; outline-offset: 4px; }

@media (max-width: 430px) {
  body { font-size: 16px; }
  .photo-paper { padding-inline: 20px; }
  .photo-flourish { margin-top: 15px; }
  .heart-divider { margin-block: 20px; }
  .photo-gate { padding-block: 21px; }
}
