@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=Caveat:wght@500;700&display=swap");

:root {
  --cream: #f4f2ea;       /* page background (warm linen) */
  --paper: #ffffff;
  --ink: #2c352e;         /* text: deep sage-charcoal */
  --sage: #3d4a40;        /* hero bands and dark cards */
  --muted: #6b7268;
  --line: #e2ded1;
  --accent: #d9bf86;      /* champagne */
  --accent-hover: #cdb06f;
  --accent-dark: #8a6d36; /* champagne dark enough for text on light backgrounds */
  --blush: #efe5cf;
  --mint: #dfe5d8;        /* light sage */
  --danger: #c0392b;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0 0 .5em; }
h3 { font-size: 1.35rem; margin: 0 0 .35em; font-weight: 600; letter-spacing: -0.005em; }
a { color: var(--accent-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 22px; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.6rem; text-decoration: none; color: inherit; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.logo::before { content: ""; width: 26px; height: 18px; background:
  linear-gradient(var(--accent), var(--accent)) 0 50% / 3px 8px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 6px 50% / 3px 18px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 12px 50% / 3px 12px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 18px 50% / 3px 16px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 24px 50% / 2px 6px no-repeat; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--ink); border: 0; border-radius: 999px;
  padding: 15px 26px; font: 600 1rem Inter, sans-serif; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 6px 18px -8px rgba(138, 109, 54, .55);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); box-shadow: none; }
.btn.light:hover { background: rgba(255,255,255,.1); }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid #efc6c0; box-shadow: none; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--accent-dark); font-weight: 700; }
.center { text-align: center; }
.muted { color: var(--muted); }
section { padding: 84px 0; }

/* ---------- Landing: hero ---------- */
.hero-band { background: var(--sage); color: #eef2f1; position: relative; overflow: hidden; }
.hero-band::after { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 420px; background: radial-gradient(closest-side, rgba(217,191,134,.22), transparent); pointer-events: none; }
.hero-band nav .btn.small { box-shadow: none; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 34px 0 96px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--accent); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: #c9d0c6; max-width: 32em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .fine { font-size: .88rem; color: #9fab9b; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 26px; }
.wave span { width: 4px; border-radius: 4px; background: rgba(255,255,255,.22); }
.wave span:nth-child(3n) { background: var(--accent); }

.stack { position: relative; height: 480px; }
.stack .polaroid { position: absolute; width: 230px; }
.stack .polaroid:nth-child(1) { left: 0; top: 30px; --tilt: -8deg; }
.stack .polaroid:nth-child(2) { left: 40%; top: 0; --tilt: 5deg; z-index: 2; }
.stack .polaroid:nth-child(3) { left: 16%; top: 215px; --tilt: -3deg; z-index: 3; }
.stack .pic { position: relative; }
.stack .play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.stack .play::before { content: ""; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.stack .caption { font-size: 1.45rem; margin-top: 8px; }
.stack .pic.ph1 { background: radial-gradient(circle at 30% 30%, #f6ead2, #d9bf86 55%, #9c7f45); }
.stack .pic.ph2 { background: radial-gradient(circle at 70% 35%, #e6ede2, #a9b8a4 55%, #5e7058); }
.stack .pic.ph3 { background: radial-gradient(circle at 40% 60%, #f5e3de, #d4a9a0 55%, #94665d); }

/* ---------- Landing: stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); margin-top: -46px; position: relative; z-index: 2; box-shadow: 0 20px 40px -24px rgba(44,53,46,.35); }
.stats div { padding: 26px 22px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: .92rem; }

/* ---------- Landing: two sides ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.side { border-radius: var(--radius); padding: 34px; }
.side.guest { background: var(--mint); }
.side.couple { background: var(--sage); color: #f1efe6; }
.side.couple .muted { color: #b4bdb0; }
.side ol { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: s; }
.side li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(44,53,46,.12); }
.side.couple li { border-top-color: rgba(255,255,255,.12); }
.side li::before { content: counter(s, decimal-leading-zero); font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent-dark); font-size: 1.1rem; padding-top: 2px; }
.side.couple li::before { color: var(--accent); }
.side li strong { display: block; }

/* ---------- Landing: occasions ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chips span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 500; }

/* ---------- Landing: order ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.order { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: stretch; }
.pricecard { background: var(--sage); color: #f1efe6; border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; }
.pricecard .eyebrow { color: var(--accent); }
.price { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 4.4rem; line-height: 1; letter-spacing: -0.03em; margin: 10px 0 4px; }
.pricecard .muted { color: #b4bdb0; }
ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
ul.ticks li { padding: 7px 0 7px 30px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

label { display: block; font-weight: 500; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=date] {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 1rem Inter, sans-serif; background: #fff; color: var(--ink);
}
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,191,134,.4); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { color: var(--danger); font-size: .92rem; min-height: 1.4em; margin-top: 10px; }

/* ---------- Landing: FAQ & footer ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details[open] { border-color: var(--ink); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 700; color: var(--accent-dark); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 2px; }
footer { padding: 34px 0; color: var(--muted); font-size: .9rem; text-align: center; }
footer.dark { background: var(--sage); color: #b4bdb0; }
footer.dark a { color: #f1efe6; }

/* Guest recording page */
.recorder { text-align: center; }
.recbtn {
  width: 128px; height: 128px; border-radius: 50%; border: 0; background: var(--sage); cursor: pointer;
  display: grid; place-items: center; margin: 28px auto 14px; box-shadow: 0 0 0 14px var(--blush); transition: transform .15s;
}
.recbtn svg { width: 46px; fill: #fff; }
.recbtn.recording { background: var(--accent-dark); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 14px #ead9b4; } 50% { box-shadow: 0 0 0 24px #f4ead6; } }
.timer { font-variant-numeric: tabular-nums; font-size: 1.3rem; }
audio { width: 100%; margin: 12px 0; }
.hidden { display: none !important; }
.names { font-size: clamp(2.3rem, 9vw, 3.2rem); }

/* Dashboard */
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.linkbox input { flex: 1; min-width: 200px; }
.actions { display: flex; gap: 8px; }
.qr { width: 160px; height: 160px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.stat { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 2.6rem; line-height: 1; }

/* Polaroids */
.polaroid {
  margin: 0; background: #fff; padding: 14px 14px 16px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 30px -12px rgba(44, 53, 46, .35);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease, box-shadow .2s ease;
}
.polaroid .pic { aspect-ratio: 1 / 1; background: #eef1f0; overflow: hidden; display: grid; place-items: center; }
.polaroid .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .pic.empty { background: linear-gradient(135deg, #f1efe6, #e2e8dd); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.polaroid .pic.empty svg { width: 46px; fill: #9db3ab; }
.polaroid .pic.empty span { font-size: .8rem; color: #7f958d; margin-top: 6px; letter-spacing: .08em; text-transform: uppercase; }
.polaroid .caption { font-family: "Caveat", "Segoe Print", cursive; font-size: 1.75rem; font-weight: 700; text-align: center; margin: 12px 0 0; line-height: 1.1; color: #2c352e; letter-spacing: 0; word-break: break-word; }
.polaroid .when { text-align: center; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.polaroid audio { width: 100%; height: 38px; margin: 4px 0 8px; }
.polaroid .actions { justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
.linkbtn { background: none; border: 0; padding: 4px 2px; font: 500 .82rem Inter, sans-serif; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.danger { color: var(--danger); }
.linkbtn:disabled { opacity: .5; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 30px; margin: 28px 0 10px; padding: 0 4px; }
.wall .polaroid:nth-child(4n+1) { --tilt: -1.6deg; }
.wall .polaroid:nth-child(4n+2) { --tilt: 1.1deg; }
.wall .polaroid:nth-child(4n+3) { --tilt: -0.6deg; }
.wall .polaroid:nth-child(4n+4) { --tilt: 1.8deg; }
.wall .polaroid:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -14px rgba(44,53,46,.4); }
.wall .pic img { cursor: zoom-in; }

.photo-pick { margin: 6px 0 18px; display: flex; flex-direction: column; align-items: center; }
.polaroid.mini { width: 210px; padding: 10px 10px 6px; --tilt: -2deg; margin-bottom: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(30, 37, 32, .86); display: grid; place-items: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox .polaroid { --tilt: 0deg; max-width: min(92vw, 720px); padding: 16px 16px 10px; cursor: default; }
.lightbox .polaroid img { max-height: 72vh; width: 100%; object-fit: contain; display: block; background: #eef1f0; }

@media (max-width: 860px) {
  .hero, .order, .sides, .faq { grid-template-columns: 1fr; }
  .hero { padding: 10px 0 80px; gap: 30px; }
  .stack { height: 430px; max-width: 400px; margin: 0 auto; width: 100%; }
  .stack .polaroid { width: 180px; }
  .stack .polaroid:nth-child(3) { top: 190px; }
  .hero { padding-bottom: 90px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  section { padding: 60px 0; }
}
