:root {
  --ink: #1d1714;
  --ink-soft: #5f534d;
  --paper: #f5efe6;
  --paper-2: #ece1d2;
  --cream: #fffaf2;
  --film: #15110f;
  --film-2: #241b17;
  --red: #a7443a;
  --rose: #d6a39d;
  --line: rgba(29, 23, 20, .14);
  --shadow: 0 24px 70px rgba(28, 20, 15, .16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.7), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, #f8f3eb 45%, #eee4d7 100%);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

::selection { background: #d9b1ab; color: var(--ink); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap--narrow { width: min(860px, calc(100% - 40px)); }
.section { padding: 96px 0; position: relative; }

.hero {
  min-height: 88svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 90px 24px 70px;
  text-align: center;
  color: #f7efe5;
  background:
    radial-gradient(circle at 50% 20%, rgba(167,68,58,.18), transparent 34%),
    linear-gradient(180deg, #17120f, #211814);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 15px;
  opacity: .35;
  background: repeating-linear-gradient(90deg, transparent 0 18px, #f5efe6 18px 30px, transparent 30px 42px);
}
.hero::before { top: 22px; }
.hero::after { bottom: 22px; }
.hero__eyebrow,
.kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
}
.hero__eyebrow { color: #c9b9ac; }
.hero h1 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.045em;
}
.hero h1 span { color: #e3aaa2; }
.hero__lead {
  max-width: 680px;
  margin: 8px auto 6px;
  color: #d9cdc4;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  line-height: 1.75;
}
.hero__cta {
  margin-top: 10px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 18px;
  border-radius: 999px;
  transition: .25s ease;
}
.hero__cta:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.hero__counter {
  position: absolute;
  left: 50%; bottom: 47px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  color: #8f8178;
  font-size: .72rem;
  letter-spacing: .15em;
}
.hero__counter i { width: 22px; height: 1px; background: #5f534d; }

.section-heading { margin-bottom: 34px; }
.section-heading--center { text-align: center; }
.section-heading .kicker { color: var(--red); margin: 0 0 10px; }
.section-heading h2 {
  margin: 0;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.035em;
}
.section-heading p:not(.kicker) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.section--film { overflow: hidden; padding-bottom: 72px; }
.film-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #493a33 transparent;
  padding: 2px 0 14px;
  cursor: grab;
}
.film-shell:active { cursor: grabbing; }
.film-strip {
  --hole: 14px;
  width: max-content;
  min-width: 100%;
  display: flex;
  gap: 0;
  padding: 46px 42px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, #d9cdbd 22px 36px, transparent 36px 58px) top 12px left/auto 16px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 22px, #d9cdbd 22px 36px, transparent 36px 58px) bottom 12px left/auto 16px no-repeat,
    linear-gradient(180deg, #191311, #231a16 50%, #171210);
  box-shadow: 0 20px 50px rgba(24,16,12,.22);
}
.film-frame {
  width: min(78vw, 390px);
  padding: 0 18px;
  position: relative;
  flex: 0 0 auto;
}
.film-frame:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 12px; bottom: 12px;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.photo-button {
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  background: #0e0c0a;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.photo-button img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.photo-button:hover img { transform: scale(1.025); filter: saturate(1); }
.frame-copy { color: #efe4d8; padding: 14px 2px 0; min-height: 106px; }
.frame-copy h3 { margin: 0 0 7px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.frame-copy p { margin: 0; color: #b8aaa0; line-height: 1.5; font-size: .9rem; }
.film-hint { margin-top: 14px; color: #83746c; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; }
.film-hint span { color: var(--red); }

.section--checklist { padding-top: 110px; }
.sync-status {
  width: max-content;
  max-width: 100%;
  margin: -8px auto 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .78rem;
  background: rgba(255,255,255,.36);
}
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #b88f3a; box-shadow: 0 0 0 4px rgba(184,143,58,.1); }
.sync-status.is-online .sync-dot { background: #5f8a61; box-shadow: 0 0 0 4px rgba(95,138,97,.11); }
.sync-status.is-error .sync-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(167,68,58,.11); }

.checklist-card {
  background: rgba(255,250,242,.74);
  border: 1px solid rgba(64,48,39,.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.checklist { padding: 12px 26px; }
.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px 2px;
  border-bottom: 1px dashed rgba(29,23,20,.12);
  cursor: pointer;
  line-height: 1.5;
  transition: color .2s ease, opacity .2s ease;
}
.check-item:last-child { border-bottom: 0; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.fake-check {
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid #8e7e74;
  border-radius: 6px;
  position: relative;
  background: #fffaf2;
  transition: .2s ease;
}
.check-item input:checked + .fake-check {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(-2deg);
}
.check-item input:checked + .fake-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8ef;
  font-weight: 700;
  font-size: .92rem;
}
.check-item:has(input:checked) > span:last-child { text-decoration: line-through; color: #9b8f88; }
.check-item input:focus-visible + .fake-check { outline: 3px solid rgba(167,68,58,.18); outline-offset: 3px; }
.checklist-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 26px 18px;
  background: rgba(56,39,31,.045);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .82rem;
}
.tiny { opacity: .8; }

.section--camera { padding-top: 120px; padding-bottom: 130px; }
.camera-card {
  width: min(620px, 100%);
  margin: 34px auto 0;
  padding: 18px 18px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, #2b211c, #17120f);
  box-shadow: 0 30px 80px rgba(24,15,10,.28), inset 0 0 0 1px rgba(255,255,255,.06);
  text-align: center;
}
.viewfinder {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(167,68,58,.13), transparent 28%),
    linear-gradient(180deg, #0f1110, #171817);
  color: #f2f1eb;
  border: 1px solid rgba(255,255,255,.08);
}
.viewfinder::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,.02) 50%, transparent 50%);
  background-size: 100% 4px;
  opacity: .25;
}
.viewfinder__top, .viewfinder__bottom {
  position: absolute;
  left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  z-index: 2;
  font-size: .69rem;
  letter-spacing: .12em;
}
.viewfinder__top { top: 15px; }
.viewfinder__bottom { bottom: 15px; }
.rec { color: #ffb1a8; }
.rec i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e05447; margin-right: 5px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.focus-box { position: absolute; width: 110px; height: 78px; left: 50%; top: 46%; transform: translate(-50%,-50%); }
.focus-box i { position: absolute; width: 18px; height: 18px; border-color: rgba(255,255,255,.72); border-style: solid; }
.focus-box i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.focus-box i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.focus-box i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.focus-box i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.subject-tag { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); margin: 0; width: 90%; font-size: .8rem; color: #d7d3cd; }
.subject-tag strong { color: white; }
.shutter {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 2px solid #b9aaa0;
  background: transparent;
  padding: 6px;
  margin-top: 18px;
  cursor: pointer;
  transition: transform .18s ease;
}
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #f0e4d6; box-shadow: inset 0 0 0 1px #d2c3b8; }
.shutter:hover { transform: scale(1.05); }
.shutter:active { transform: scale(.94); }
.camera-instruction { margin: 8px 0 0; color: #8f8178; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }

.love-note {
  display: none;
  margin: 34px auto 0;
  width: min(720px, 100%);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
  transform-origin: top center;
}
.love-note.is-visible { display: block; animation: reveal .8s cubic-bezier(.16,.8,.22,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px) rotate(.3deg) scale(.98); } to { opacity: 1; transform: none; } }
.love-note__date { margin: 0 0 16px; color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; }
.love-note h2 { font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; margin: 0 0 24px; line-height: .95; }
.love-note p { font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.55; color: #403631; }
.love-note__ps { margin-top: 32px !important; color: var(--red) !important; }
.signature { margin-top: 38px; color: #8b7e76; font-size: .86rem; font-style: italic; }

.footer {
  padding: 22px 24px 38px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin-inline: auto;
  color: #887a71;
  font-size: .75rem;
}

.viewer-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,8,7,.94);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, calc(100vw - 120px));
  height: min(88vh, calc(100svh - 72px));
  pointer-events: none;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,.75);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  letter-spacing: .14em;
  white-space: nowrap;
}
.lightbox__close {
  position: fixed;
  z-index: 3;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(20,15,13,.78);
  color: white;
  font-size: 1.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__nav {
  position: fixed;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(20,15,13,.78);
  color: white;
  font-size: 2.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__nav--prev { left: max(18px, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(18px, env(safe-area-inset-right)); }

.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 100; }
.flash.fire { animation: flash .42s ease-out; }
@keyframes flash { 0% { opacity: 0; } 16% { opacity: .98; } 100% { opacity: 0; } }

@media (max-width: 720px) {
  .wrap, .wrap--narrow { width: min(100% - 28px, 860px); }
  .section { padding: 76px 0; }
  .hero { min-height: 92svh; padding-inline: 18px; }
  .hero h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  .hero__lead { font-size: .98rem; }
  .hero__counter { bottom: 42px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .film-strip { padding: 42px 22px; }
  .film-frame { width: min(84vw, 360px); padding: 0 12px; }
  .frame-copy { min-height: 118px; }
  .film-hint { text-align: center; }
  .checklist { padding-inline: 18px; }
  .check-item { grid-template-columns: 26px 1fr; gap: 10px; padding-block: 15px; }
  .checklist-footer { padding-inline: 18px; flex-direction: column; align-items: flex-start; }
  .camera-card { border-radius: 24px; padding: 12px 12px 20px; }
  .viewfinder { border-radius: 15px; aspect-ratio: 4/3; }
  .viewfinder__top, .viewfinder__bottom { left: 12px; right: 12px; font-size: .58rem; }
  .subject-tag { bottom: 44px; font-size: .72rem; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 2rem; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
