/* maximebonte.be: watercolor paper, a horizontal walk past the painting and the shoot, guestbook in a pop-up. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 300; font-display: swap; src: url(/assets/fonts/hanken-grotesk-300.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url(/assets/fonts/hanken-grotesk-400.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/hanken-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url(/assets/fonts/hanken-grotesk-600.woff2) format("woff2"); }

:root {
  --muur: #EEEDE9;
  --muur-licht: #F7F6F3;
  --inkt: #1F1E1C;
  --label: #75736D;
  --lijn: #D6D4CC;
  --passe: #FBFBF9;
  --framboos: #B02650;
  --papier: url(/assets/papier.svg) 0 0 / 600px 600px repeat;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --bar: calc(72px + env(safe-area-inset-bottom, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: var(--papier), var(--muur); background-blend-mode: multiply; color: var(--inkt); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
.room { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin: 0 0 16px; font-weight: 500; }
:focus-visible { outline: 2px solid var(--framboos); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn { font: inherit; font-size: 14px; font-weight: 500; background: var(--inkt); color: var(--muur-licht); border: 0; padding: 13px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s, color .2s; }
.btn:hover { background: var(--framboos); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .arrow { transition: transform .2s; } .btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.btn.ghost:hover { background: var(--inkt); color: var(--muur-licht); }

/* ---------- Logo: Maxime's signature as SVG, color via currentColor ---------- */
.logo { display: block; color: var(--framboos); }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Intro: the painting as a curtain, the name writes itself, the halves slide open ---------- */
#intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
#intro .i-paper { position: absolute; inset: 0; background: var(--papier), var(--muur); background-blend-mode: multiply; }
#intro .half { position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden; }
#intro .half.l { left: 0; } #intro .half.r { right: 0; }
#intro .half i { position: absolute; top: 0; bottom: 0; width: 198%; background: url(/assets/painting.jpg) center / cover; }
#intro .half i::after { content: ""; position: absolute; inset: 0; background: rgba(31,10,18,.22); }
#intro .half.l i { left: 0; } #intro .half.r i { right: 0; }
#intro .i-stack { position: relative; display: grid; width: min(84vw, 760px); }
#intro .i-main { color: #FBF4EA; }
#intro .skip { position: absolute; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); font: inherit; font-size: 12px; letter-spacing: .08em; color: rgba(251,244,234,.8); background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Header ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: calc(14px + env(safe-area-inset-top, 0px)) 24px 14px; display: flex; justify-content: flex-end; gap: 4px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.link-btn { font: inherit; font-size: 14px; background: color-mix(in srgb, var(--muur-licht) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 0; padding: 8px 12px; color: var(--inkt); cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-btn:hover { background: var(--muur-licht); }
.link-btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 4px; background: currentColor; }
[aria-pressed="true"] .eq i { animation: eq 1s ease-in-out infinite; }
[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: .2s; } [aria-pressed="true"] .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 12px; } }

/* ---------- The walk: a horizontal wall you swipe along (mobile) or scroll along (wheel/trackpad/arrows) ---------- */
.walk { position: fixed; left: 0; right: 0; top: 0; bottom: var(--bar); }
.view { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.view::-webkit-scrollbar { display: none; }
@media (pointer: coarse) { .view { scroll-snap-type: x proximity; } .stop { scroll-snap-align: center; } }
.track { display: flex; align-items: center; height: 100%; width: max-content; gap: 14vw; padding: 56px 22vw 16px 10vw; }
.stop { position: relative; flex: 0 0 auto; }
.beam { position: absolute; left: 50%; top: -60vh; width: max(120%, 70vh); height: 130vh; translate: -50% 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 42% 38% at 50% 48%, rgba(255,253,247,1), rgba(255,253,247,.55) 45%, rgba(255,253,247,0) 72%); opacity: .2; }
.track > * { z-index: 1; }

/* Navigation arrows and the swipe hint */
.nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--muur-licht) 85%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 18px -8px rgba(31,30,28,.35); transition: opacity .25s, background .2s; }
.nav:hover { background: var(--muur-licht); }
.nav svg { width: 20px; height: 20px; fill: none; stroke: var(--inkt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav.prev { left: 16px; } .nav.next { right: 16px; }
.nav:disabled { opacity: 0; pointer-events: none; }
.hint { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; margin: 0; z-index: 4; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); display: flex; gap: 8px; align-items: center; transition: opacity .4s; pointer-events: none; }
.hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
.hint.gone { opacity: 0; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* First stop: Maxime's details, like on a birth card */
.t-born { width: min(78vw, 470px); }
.t-born .logo { width: min(72vw, 340px); margin-bottom: 26px; }
.born { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; font-size: clamp(15px, 2.2vh, 18px); line-height: 1.45; }
.born dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); padding-top: .3em; }
.born dd { margin: 0; }
.born .tbd { color: var(--label); font-style: italic; }
/* Mobile: the first stop fills the screen width and is centred, compact so everything fits above the bar */
@media (max-width: 600px) {
  .t-born { width: calc(100vw - 32px); margin-left: calc(16px - 12vw); text-align: center; }
  .t-born .logo { width: min(68vw, 300px); margin: 0 auto 18px; }
  .born { grid-template-columns: 1fr; gap: 0; font-size: 15px; line-height: 1.35; }
  .born dt { font-size: 10px; padding-top: 0; }
  .born dd { margin-bottom: 9px; }
}

/* The birth card: front and back as two loose cards, tap to enlarge */
.t-card { display: flex; align-items: center; gap: 28px; }
.card-print { border: 0; padding: 0; background: #fff; cursor: zoom-in; box-shadow: 0 1px 2px rgba(31,30,28,.14), 0 26px 32px -22px rgba(31,30,28,.5); transition: transform .3s; }
.card-print img { display: block; height: min(46svh, 62vw); width: auto; max-width: none; aspect-ratio: 992 / 1400; }
.card-print.front { transform: rotate(-1.5deg); }
.card-print.back { transform: translateY(3vh) rotate(1.2deg); }
.card-print:hover { transform: rotate(0) translateY(-4px); }
dialog.zoom { padding: 0; width: fit-content; margin: auto; max-width: calc(100% - 32px); background: transparent; box-shadow: none; overflow: visible; }
dialog.zoom img { display: block; max-height: calc(100svh - 64px); max-width: 100%; width: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
dialog.zoom .close { top: -14px; right: -14px; background: var(--muur-licht); border-radius: 50%; color: var(--inkt); box-shadow: 0 4px 12px rgba(0,0,0,.25); }

.t-paint { display: flex; align-items: flex-end; gap: 36px; }
.canvas-art { height: min(50vh, 62vw); aspect-ratio: 1800 / 892; max-width: none; background: url(/assets/painting.jpg) center / cover;
  box-shadow: 4px 4px 0 #DCD9D1, 0 30px 40px -28px rgba(31,30,28,.5), 0 70px 90px -60px rgba(31,30,28,.35); }
.label { font-size: 14px; line-height: 1.5; width: 230px; flex: 0 0 auto; }
.label p { margin: 0; color: var(--label); }
.label p.room { margin-bottom: 8px; }
.label .logo { width: 140px; margin-top: 16px; }

/* Photos as loose prints on the paper, close together, slightly tilted */
.photo { margin: 0; }
.photo + .photo { margin-left: -10vw; }
.photo .print { background: #FCFBF8; padding: clamp(5px, .9vh, 10px); transform: translateY(var(--y)) rotate(var(--r));
  box-shadow: 0 1px 2px rgba(31,30,28,.14), 0 24px 30px -22px rgba(31,30,28,.5); }
.photo img { display: block; height: var(--h); width: auto; max-width: none; aspect-ratio: var(--ar); object-fit: cover; background: #E7E5DF; }

.t-end { width: min(80vw, 420px); display: grid; gap: 18px; justify-items: start; }
.t-end .logo { width: min(80vw, 380px); }
.credit { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--label); }
.end-cta { margin: 0; color: var(--inkt); font-size: clamp(19px, 2.8vh, 25px); line-height: 1.3; letter-spacing: -.01em; max-width: 24ch; text-wrap: balance; }

/* ---------- Fixed bar with the three buttons, progress line on top ---------- */
.actions-bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar); z-index: 15; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 0 16px env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--muur) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(0,0,0,.08); }
.actions-bar .btn { flex: 0 1 200px; height: 46px; padding: 0 16px; line-height: 1.15; text-align: center; }
.actions-bar .ico { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.actions-bar .prog { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--inkt); }

/* ---------- Pop-ups: guestbook and diaper account ---------- */
dialog { border: 0; padding: 36px 28px 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--inkt);
  background: var(--papier), var(--passe); background-blend-mode: multiply; box-shadow: 0 40px 80px -30px rgba(18,17,16,.5); }
dialog::backdrop { background: rgba(18,17,16,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog[open] { animation: pop .35s cubic-bezier(.2,.8,.3,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
dialog h2 { font-weight: 500; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
dialog .intro { color: var(--label); margin: 0 0 24px; font-size: 15px; }
.close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--label); cursor: pointer; }
.close:hover { color: var(--inkt); }
.field { display: grid; gap: 4px; margin-bottom: 18px; }
.field label { font-size: 12px; color: var(--label); letter-spacing: .06em; }
.field input, .field textarea { font: inherit; color: var(--inkt); border: 0; border-bottom: 1px solid var(--lijn); background: transparent; padding: 6px 0; width: 100%; border-radius: 0; }
.field textarea { min-height: 180px; resize: vertical; line-height: 30px; background-image: repeating-linear-gradient(to bottom, transparent 0 29px, #E3E0D8 29px 30px); background-attachment: local; border-bottom: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 0; margin-bottom: 8px; }
.err { color: var(--framboos); font-size: 13px; min-height: 1.3em; margin: 0 0 8px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.count { font-size: 13px; color: var(--label); font-variant-numeric: tabular-nums; margin: 0; }
.count b { color: var(--inkt); font-weight: 500; }
.privacy { font-size: 12px; color: var(--label); margin: 18px 0 0; }
.sealed { display: grid; justify-items: center; text-align: center; gap: 6px; padding-block: 12px 4px; }
.sealed .logo { width: min(260px, 80%); margin-bottom: 4px; }
.sealed p { margin: 0; color: var(--label); }
.sealed b { color: var(--inkt); font-weight: 500; }
.wax { width: 60px; height: 60px; border-radius: 50%; margin: 10px auto 14px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #CD4A74, var(--framboos) 55%, #6E1531); color: #F7D9E2; font-weight: 600; font-size: 21px; box-shadow: 0 6px 12px -4px rgba(0,0,0,.4); transform: scale(0); }
.wax.on { animation: stamp .5s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stamp { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.iban { display: grid; gap: 14px; margin: 0; }
.iban div { display: grid; gap: 2px; }
.iban dt { font-size: 12px; color: var(--label); letter-spacing: .06em; }
.iban dd { margin: 0; font-size: 17px; }
.iban .num { font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: all; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 14px); transform: translate(-50%, 16px); background: var(--inkt); color: var(--muur-licht); padding: 10px 16px; font-size: 13px; opacity: 0; transition: .3s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .link-btn .txt { display: none; }
  .track { gap: 22vw; padding: 56px 16vw 12px 12vw; }
  .nav { width: 40px; height: 40px; } .nav.prev { left: 8px; } .nav.next { right: 8px; }
  .actions-bar { gap: 6px; padding-inline: 10px; }
  .actions-bar .btn { flex: 1 1 0; height: 48px; padding: 0 6px; font-size: 12.5px; gap: 5px; }
  .actions-bar .ico { width: 14px; height: 14px; }
  .photo + .photo { margin-left: -16vw; }
  .t-paint { flex-direction: column; align-items: flex-start; gap: 18px; }
  .canvas-art { height: 34vh; }
  .t-card { gap: 16px; }
  .card-print img { height: min(40svh, 64vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-delay: 0s !important; }
}
