@font-face { font-family: "Singulari"; font-weight: 300; src: local("Fb SingulariHeb Light"), local("FbSingulariHeb-Light"); }
@font-face { font-family: "Singulari"; font-weight: 400; src: local("Fb SingulariHeb"), local("FbSingulariHeb-Regular"); }
@font-face { font-family: "Singulari"; font-weight: 700; src: local("Fb SingulariHeb Bold"), local("FbSingulariHeb-Bold"); }
@font-face { font-family: "Singulari"; font-weight: 900; src: local("Fb SingulariHeb Black"), local("FbSingulariHeb-Black"); }

:root {
  --plum: #522535;
  --pink: #f696a3;
  --peach: #eaa17e;
  --brown: #63342a;
  --pale: #fbdfe2;
  --line: 4px;
  --side: clamp(16px, 2.8vw, 40px);
  --text: "Singulari", "Fb SingulariHeb", Arial, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--pink); color: var(--plum); font: 400 20px/1.6 var(--text); overflow-x: hidden; }
::selection { background: var(--plum); color: var(--pink); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
input, select, button { font: inherit; border-radius: 0; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-block-start: 0; inset-inline-start: var(--side); z-index: 5; padding: 12px 18px; background: var(--plum); color: var(--pink); font-weight: 700; transform: translateY(-120%); }
.skip:focus { transform: none; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; min-height: 100px; padding: 8px var(--side); border-bottom: var(--line) solid; font-size: 19px; font-weight: 700; line-height: 1.2; }
.top { position: relative; }
.top .home { display: block; flex: none; }
.top .home svg { display: block; width: auto; height: 78px; aspect-ratio: 685.2 / 248.4; }
.l-name { fill: var(--plum); }
.l-line { fill: var(--brown); }
.l-eye { stroke: var(--plum); }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.top nav a { padding-block: 13px; text-decoration: underline transparent; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.top nav a:hover, .top nav a[aria-current] { text-decoration-color: currentColor; }

/* the contact icon waits at the side inside the logo's viewfinder corners, and opens on hover */
.pin { position: fixed; z-index: 30; left: 0; top: 50%; translate: 0 -50%; display: flex; direction: ltr; align-items: center; height: 76px; background: var(--peach); color: var(--plum); border: solid var(--plum); border-width: var(--line) var(--line) var(--line) 0; transition: background .3s, opacity .3s, visibility .3s; }
.pin .eye { position: relative; flex: none; display: grid; place-items: center; width: 72px; height: 100%; }
.pin svg { transition: rotate .5s var(--out), scale .5s var(--out); }
.pin i { position: absolute; width: 13px; height: 13px; border: 0 solid currentColor; transition: inset .45s var(--out); animation: focus 1.1s var(--out) .5s backwards; }
.pin i:nth-child(1) { top: 12px; left: 12px; border-width: 3px 0 0 3px; }
.pin i:nth-child(2) { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.pin i:nth-child(3) { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; }
.pin i:nth-child(4) { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; }
@keyframes focus { from { scale: 1.9; } }
.pin .say { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .55s var(--out); }
.pin .say > span { overflow: hidden; min-width: 0; direction: rtl; font-size: 30px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.pin .say > span::after { content: ""; display: inline-block; width: 0; }
.in-flow .pin { opacity: 0; visibility: hidden; }
.pin:focus-visible { outline-offset: 4px; outline-color: var(--pale); box-shadow: 0 0 0 4px var(--plum); }
@media (hover: hover) {
  .pin:is(:hover, :focus-visible) { background: var(--pink); }
  .pin:is(:hover, :focus-visible) .say { grid-template-columns: 1fr; }
  .pin:is(:hover, :focus-visible) .say > span { padding: 0 24px 0 6px; }
  .pin:is(:hover, :focus-visible) svg { rotate: -14deg; scale: 1.12; }
  .pin:is(:hover, :focus-visible) i:nth-child(1) { top: 8px; left: 8px; }
  .pin:is(:hover, :focus-visible) i:nth-child(2) { top: 8px; right: 8px; }
  .pin:is(:hover, :focus-visible) i:nth-child(3) { bottom: 8px; left: 8px; }
  .pin:is(:hover, :focus-visible) i:nth-child(4) { bottom: 8px; right: 8px; }
}

/* wood type: every line fills its measure */
.wood { font-family: var(--text); font-weight: 900; line-height: .96; white-space: nowrap; }
.fit { display: block; overflow-x: clip; }
.fit > span { display: inline-block; font-size: 9vw; }
h1.wood { margin-inline: var(--side); padding-block: 14px 10px; }
h1 .m { display: none; }

/* home, first screen: one photograph of all the children */
.first { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100svh; min-height: 520px; max-height: 78vw; }
.hero { position: relative; display: block; min-height: 0; overflow: hidden; background: var(--plum); border-bottom: var(--line) solid var(--plum); }
.hero img { position: absolute; inset: 0; object-position: 50% 66%; }
.slogan { position: absolute; z-index: 1; inset: auto var(--side) clamp(14px, 2vw, 30px); pointer-events: none; }
.slogan h1 { margin: 0; padding: 0; color: var(--pale); -webkit-text-fill-color: transparent; -webkit-text-stroke: clamp(.7px, .065vw, 1.3px) var(--pale); }
.hero a { position: absolute; inset: 0; display: block; opacity: .86; }
.hero::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgb(82 37 53 / .66) 70%); pointer-events: none; }
.hero .hold { inset-block: 14px auto; right: auto; left: 14px; }
.hero a:focus-visible { outline-color: var(--pink); outline-offset: -8px; }

.tel { direction: ltr; unicode-bidi: isolate; font-size: 26px; font-weight: 700; white-space: nowrap; }

/* the form: a poster of ruled cells */
.order { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); background: var(--plum); border-top: var(--line) solid var(--plum); min-height: min(calc(100svh - 100px), 62vw); }
main > .order:first-child { border-top: 0; }
.order .side { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(220px, 1fr); color: var(--pink); }
.order .side .head { padding: clamp(24px, 3vw, 44px) var(--side); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.order .side :is(h1, h2) { margin: 0; padding: 0; }
.order .side .tel { justify-self: start; font-size: clamp(26px, 2.6vw, 38px); color: var(--peach); text-decoration: underline transparent; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.order .side .tel:hover { text-decoration-color: currentColor; }
.order .side :focus-visible { outline-color: var(--pink); }
.order .pic { position: relative; border-top: var(--line) solid var(--plum); overflow: hidden; }
.order .pic img { position: absolute; inset: 0; }

.reel { position: absolute; inset: 0; overflow: hidden; }
.reel img { will-change: transform, opacity; }
.hold { position: absolute; z-index: 2; inset-block-end: 14px; right: 14px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: var(--plum); color: var(--pink); cursor: pointer; transition: background .2s, color .2s, opacity .3s; }
.hold:hover { background: var(--pink); color: var(--plum); }
.hold .g, .hold.held .p { display: none; }
.hold.held .g { display: block; }
.poster.live ~ .hold { opacity: 0; visibility: hidden; }
.poster { position: absolute; inset: 0; background: var(--bg); color: var(--ink); clip-path: inset(100% 0 0); transition: clip-path .8s var(--out), background .5s, color .5s; }
.poster.live { clip-path: inset(0); }
.sheet-in { position: absolute; inset: clamp(14px, 1.6vw, 26px) var(--side); display: flex; flex-direction: column; justify-content: safe center; overflow: hidden; }
.sheet-in > * { flex: none; }
.line-in { display: block; line-height: .96; }
.set { display: inline-block; padding-block: .06em; }
.set:empty { display: none; }
.ink .set { -webkit-text-fill-color: var(--ink); }
.ink { width: fit-content; }
.ink.filled { background: var(--photo) var(--spot, 50% 50%) / cover no-repeat; -webkit-background-clip: text; background-clip: text; }
.ink.filled .set { -webkit-text-fill-color: transparent; }
.when { font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; line-height: 1.3; padding-block-start: 8px; }
.when:empty { display: none; }
.order form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto auto; gap: var(--line); border-inline-start: var(--line) solid var(--plum); }
.cell { position: relative; grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 16px clamp(16px, 2vw, 30px) 14px; background: var(--pale); cursor: text; transition: background .2s; }
.cell:focus-within { background: var(--pink); }
.cell.wide { grid-column: 1 / -1; }
.cell label, .kinds legend { font-size: 18px; font-weight: 700; line-height: 1.3; }
.cell :is(input, textarea) { width: 100%; min-width: 0; padding: 4px 0 2px; border: 0; outline: 0; background: none; color: var(--plum); caret-color: var(--plum); font: 700 clamp(24px, 2.2vw, 32px)/1.3 var(--text); text-align: right; direction: rtl; resize: none; }
.cell :is(input:focus-visible, textarea:focus-visible) { outline: 0; }
.cell:has(:focus-visible) { box-shadow: inset 0 0 0 4px var(--plum); }
.cell input[type="tel"], .cell input[type="date"] { font-variant-numeric: lining-nums tabular-nums; }
.cell input[type="date"] { min-height: 45px; accent-color: var(--plum); }
.cell textarea { min-height: 88px; height: 100%; }
.cell.grow input { align-self: start; }
.cell.grow { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.err { font-size: 17px; font-weight: 700; line-height: 1.3; }
.err:empty { display: none; }
.cell:has([aria-invalid="true"]), .kinds[aria-invalid="true"] .legend { background: var(--peach); }

.kinds { grid-column: 1 / -1; min-width: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--line); }
.kinds .legend { grid-column: 1 / -1; padding: 12px clamp(16px, 2vw, 30px); background: var(--pale); display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.tile { grid-column: span 2; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; height: clamp(84px, 7.6vw, 118px); padding-inline: clamp(14px, 1.8vw, 26px); background: var(--bg); color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.tile:nth-of-type(n + 4) { grid-column: span 3; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tile:hover { background: var(--ink); color: var(--bg); }
.tile:has(:checked) { background: var(--plum); color: var(--pink); box-shadow: inset 0 0 0 6px var(--pink); }
.tile:has(:focus-visible) { box-shadow: inset 0 0 0 5px var(--plum), inset 0 0 0 9px var(--pale); }

.send { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px clamp(16px, 2vw, 30px) 12px; border: 0; background: var(--peach); color: var(--plum); cursor: pointer; text-align: right; transition: background .25s, color .25s; }
.send:hover { background: var(--pink); }
.send:active .fit > span { transform: translate(2px, 3px); }
.send:focus-visible { outline-offset: -8px; }
.send[disabled] { cursor: wait; opacity: .7; }
.state { grid-column: 1 / -1; padding: 16px clamp(16px, 2vw, 30px); background: var(--plum); color: var(--pale); font-weight: 700; }
.state:empty { display: none; }

/* the date cell opens a floating calendar */
.pick-date { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 4px 0 2px; border: 0; background: none; color: var(--plum); font: 700 clamp(22px, 2vw, 30px)/1.3 var(--text); text-align: right; cursor: pointer; align-self: start; }
.pick-date svg { flex: none; }
.pick-date small { display: block; font-size: 18px; line-height: 1.3; }
.pick-date:focus-visible { outline: 0; }
.cal { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: auto; border: var(--line) solid var(--plum); background: var(--plum); color: var(--plum); box-shadow: 0 26px 70px rgb(40 12 22 / .5); }
.cal::backdrop { background: rgb(82 37 53 / .5); }
.cal[open] { animation: rise .45s var(--out); }
@keyframes rise { from { translate: 0 26px; scale: .97; } }
.cal .head { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: stretch; gap: var(--line); margin-bottom: var(--line); }
.cal .head h2 { display: grid; gap: 2px; padding: 12px 10px; background: var(--pink); text-align: center; font-size: clamp(26px, 4.4vw, 44px); font-weight: 900; line-height: 1.05; }
.cal .head small { font-size: 17px; font-weight: 700; line-height: 1.2; }
.cal .head button, .cal .tail button { border: 0; background: var(--peach); color: var(--plum); font-size: 20px; font-weight: 700; cursor: pointer; transition: background .2s; }
.cal .head button { display: grid; place-items: center; }
.cal .head button:hover:not([disabled]), .cal .tail button:hover { background: var(--pale); }
.cal .head button[disabled] { background: #6b3547; color: #8f5a6c; cursor: default; }
.cal .days, .cal .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--line); }
.cal .week span { display: grid; place-items: center; height: 40px; color: var(--pink); font-size: 17px; font-weight: 700; }
.cal .days button { position: relative; height: clamp(54px, 10.4vh, 92px); padding: 0; overflow: hidden; border: 0; background: var(--pale); color: var(--plum); cursor: pointer; }
.cal .days button:nth-child(1) { grid-column-start: var(--start); }
.cal .days b { position: absolute; z-index: 1; inset: 7px 10px auto auto; font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; line-height: 1; }
.cal .days i { position: absolute; z-index: 1; inset: auto auto 6px 9px; font-size: clamp(13px, 1.9vw, 17px); font-style: normal; font-weight: 700; line-height: 1.1; }
.cal .days img { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.cal .days button:is(:hover, :focus-visible):not([disabled]) { background: var(--plum); color: var(--pale); }
.cal .days button:is(:hover, :focus-visible):not([disabled]) img { opacity: .72; }
.cal .days button[disabled] { background: #6b3547; color: #c98494; cursor: default; }
.cal .days button[aria-pressed="true"] { background: var(--pink); box-shadow: inset 0 0 0 5px var(--plum), inset 0 0 0 8px var(--pale); }
.cal button:focus-visible { outline: 4px solid var(--pink); outline-offset: -5px; }
.cal .tail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--line); margin-top: var(--line); }
.cal .tail button { min-height: 58px; }

/* the end of home: two ways, five doors, a shutter, and on to the form */
.flow { position: relative; container-type: size; height: 100svh; min-height: 540px; overflow: hidden; border-top: var(--line) solid var(--plum); background: var(--plum); }
.flow .step { position: absolute; inset: 0; overflow: hidden; background: var(--plum); }
.flow .step:not(.on) { visibility: hidden; }
.flow .step.over { z-index: 2; }
.flow a:focus-visible { outline: 5px solid var(--pink); outline-offset: -10px; }
.flow .back { position: absolute; z-index: 3; inset-block-start: 16px; left: 16px; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border: 0; background: var(--plum); color: var(--pink); font-size: 19px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.flow .back:hover { background: var(--pink); color: var(--plum); }
.flow .back:focus-visible { outline-color: var(--pale); }

.ways { --slim: 132px; display: flex; gap: var(--line); }
.ways .give, .ways .call { position: relative; min-width: 0; overflow: hidden; color: var(--plum); }
.ways .give { flex: 1 1 0; background: var(--peach); }
.ways .call { flex: 0 0 calc(50% - var(--line) / 2); background: var(--pink); transition: flex-basis .75s var(--out), background .3s; }
.ways .give-a, .ways .full { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(12px, 2vw, 30px); width: calc(50cqw - var(--line) / 2); padding: 24px var(--side); transition: opacity .3s, visibility .3s; }
.ways .give-a { inset: 0 0 0 auto; }
.ways .full { inset: 0 auto 0 0; }
.ways :is(.give-a, .full) svg { width: clamp(64px, 9vw, 150px); height: auto; transition: scale .5s var(--out); }
.ways .num { direction: ltr; unicode-bidi: isolate; text-align: right; font-size: clamp(24px, 3vw, 52px); font-weight: 900; line-height: 1; }
.ways .call:is(:hover, :focus-visible) { background: var(--pale); }
.ways .call:is(:hover, :focus-visible) .full svg { scale: 1.1; animation: ring .5s ease-in-out 2; }
@keyframes ring { 25% { rotate: -14deg; } 75% { rotate: 12deg; } }
.ways .slim { position: absolute; inset: 0 auto 0 0; display: grid; place-content: center; gap: 8px; width: var(--slim); writing-mode: vertical-rl; rotate: 180deg; text-align: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ways .slim b { font-size: clamp(24px, 4.6svh, 42px); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.ways .slim span { direction: ltr; unicode-bidi: isolate; font-size: clamp(20px, 3.4svh, 30px); font-weight: 700; line-height: 1.1; white-space: nowrap; }

.doors { position: absolute; inset: 0 0 0 auto; width: calc(100cqw - var(--slim) - var(--line)); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--line); background: var(--plum); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.doors .ask { width: 56%; margin: 0; padding: 16px var(--side) 8px; color: var(--pink); outline: 0; }
.doors .set-doors { display: flex; gap: var(--line); min-height: 0; }
.doors .set-doors a { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; translate: 0 14%; transition: flex-grow .7s var(--out), translate .8s var(--out); }
.doors .set-doors img { position: absolute; inset: 0; transition: opacity .5s; }
.doors .set-doors a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(82 37 53 / .92)); pointer-events: none; }
.doors b { position: absolute; z-index: 1; inset: auto 20px 26px; color: var(--pale); font-size: clamp(20px, 2vw, 36px); font-weight: 900; line-height: 1; white-space: nowrap; transition: translate .5s var(--out); }
.doors .set-doors a:is(:hover, :focus-visible) { flex-grow: 2.7; }
.doors .set-doors a:is(:hover, :focus-visible) b { translate: 0 -14px; }
.doors .set-doors:has(a:hover) a:not(:hover) img { opacity: .5; }

.ways.open .call { flex-basis: var(--slim); }
.ways:not(.open) :is(.give-a, .full) { transition: opacity .3s, visibility 0s; }
.ways.open .give-a, .ways.open .full { opacity: 0; visibility: hidden; }
.ways.open.on .slim, .ways.open.on .doors { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.ways.open .set-doors a { translate: none; }
.ways.open .set-doors a:nth-child(2) { transition-delay: 0s, 50ms; }
.ways.open .set-doors a:nth-child(3) { transition-delay: 0s, 100ms; }
.ways.open .set-doors a:nth-child(4) { transition-delay: 0s, 150ms; }
.ways.open .set-doors a:nth-child(5) { transition-delay: 0s, 200ms; }

.shutter > img { position: absolute; inset: 0; opacity: .9; transform: var(--shift, none); }
.shutter .big { position: absolute; z-index: 2; inset: 0 7% 0 auto; margin-block: auto; display: block; width: min(60svh, 38vw); aspect-ratio: 1; border: clamp(8px, 1vw, 16px) solid var(--plum); border-radius: 50%; outline: clamp(8px, 1vw, 16px) solid var(--pale); background: var(--peach); color: var(--plum); transition: scale .4s var(--out), background .3s; }
.shutter .txt { position: absolute; inset: 22% 14%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; text-align: center; }
.shutter .big:is(:hover, :focus-visible) { scale: 1.05; background: var(--pink); }
.shutter .big:active { scale: .95; }
.flow .shutter .big:focus-visible { outline: clamp(8px, 1vw, 16px) solid var(--pink); outline-offset: 0; }
.shutter .count { font-size: min(34svh, 22vw); font-weight: 900; line-height: 1; }
.shutter .kind { position: absolute; z-index: 1; inset: auto auto 56px 64px; color: var(--pale); font-size: clamp(34px, 5vw, 88px); font-weight: 900; line-height: 1; }
.shutter::after { content: ""; position: absolute; inset: 62% 0 0; background: linear-gradient(transparent, rgb(82 37 53 / .7)); pointer-events: none; }
.shutter .corner { position: absolute; z-index: 1; width: 64px; height: 64px; border: 0 solid var(--pale); pointer-events: none; }
.shutter .corner:nth-of-type(1) { top: 84px; left: 26px; border-width: 6px 0 0 6px; }
.shutter .corner:nth-of-type(2) { top: 84px; right: 26px; border-width: 6px 6px 0 0; }
.shutter .corner:nth-of-type(3) { bottom: 26px; left: 26px; border-width: 0 0 6px 6px; }
.shutter .corner:nth-of-type(4) { bottom: 26px; right: 26px; border-width: 0 6px 6px 0; }
.flash-all { position: fixed; z-index: 90; inset: 0; background: #fff; pointer-events: none; }

/* gallery bands: on hover the name grows over the row and a photograph fills its letters */
.row { position: relative; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); height: clamp(280px, 30vw, 440px); overflow: hidden; border-bottom: var(--line) solid var(--plum); background: var(--bg); color: var(--ink); }
.row .name { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-inline: var(--side); }
.row .pic { position: relative; z-index: 1; min-height: 0; background: var(--plum); box-shadow: 0 0 0 var(--line) var(--plum); }
.row:nth-child(even) { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
.row:nth-child(even) .pic { order: -1; }
.row:focus-visible { outline-offset: -8px; outline-color: var(--ink); }
@media (min-width: 761px) and (hover: hover) {
  .row { transition: background .5s; }
  .row .fit { overflow: visible; }
  .row .fit > span { padding-block: .12em; margin-block: -.12em; -webkit-text-fill-color: var(--ink); transition: transform .85s var(--out), -webkit-text-fill-color .45s; }
  .row .pic { clip-path: inset(0); transition: clip-path .75s var(--out); }
  .row.ready .fit > span { background: var(--photo) var(--spot, 50% 50%) / cover no-repeat; -webkit-background-clip: text; background-clip: text; }
  .row.ready:is(:hover, :focus-visible) { background: var(--ground, var(--bg)); }
  .row.ready:is(:hover, :focus-visible) .pic { clip-path: inset(0 0 0 100%); box-shadow: none; }
  .row.ready:nth-child(even):is(:hover, :focus-visible) .pic { clip-path: inset(0 100% 0 0); }
  .row.ready:is(:hover, :focus-visible) .fit > span { transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1)); -webkit-text-fill-color: transparent; }
}

/* a gallery opens as its own band, beside its best photograph */
.lead { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); height: min(calc(100svh - 100px), 46vw); background: var(--bg); color: var(--ink); }
.lead h1 { margin: 0; padding: 0 var(--side); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.lead .pic { overflow: hidden; min-height: 0; border-inline-start: var(--line) solid var(--plum); background: var(--plum); }

/* a gallery: lines of photographs that fill the measure uncropped */
.sheet { display: grid; gap: var(--line); background: var(--plum); border-block: var(--line) solid var(--plum); }
.line { display: flex; gap: var(--line); }
.line figure { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); background: var(--brown); color: var(--pale); }
.line img { height: 100%; }

/* other galleries */
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--line); background: var(--plum); border-top: var(--line) solid var(--plum); }
.others a { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; height: 150px; padding-inline: clamp(14px, 2vw, 28px); background: var(--bg); color: var(--ink); }
.others a:hover { background: var(--ink); color: var(--bg); }
.others a:focus-visible { outline-offset: -8px; outline-color: currentColor; }

/* text pages */
/* about: the photograph is out of focus, and the visitor holds the viewfinder */
.lens { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: calc(100svh - 100px); }
.lens .words { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.1em; padding: 40px var(--side); font-size: clamp(19px, 1.6vw, 25px); line-height: 1.55; }
.lens .words h1 { margin: 0; padding: 0 0 .1em; }
.lens .words p { text-wrap: pretty; }
.lens .stage { --w: clamp(200px, 25vw, 400px); --h: calc(var(--w) * .74); --x: 50%; --y: 45%; position: relative; overflow: hidden; min-height: 0; padding: 0; border: 0; border-inline-start: var(--line) solid var(--plum); background: var(--plum); cursor: none; touch-action: pan-y; }
.lens .stage > img { position: absolute; inset: 0; -webkit-user-drag: none; }
.lens .soft { filter: blur(16px) brightness(.72) saturate(.8); scale: 1.06; }
.lens .sharp { clip-path: inset(calc(var(--y) - var(--h) / 2) calc(100% - var(--x) - var(--w) / 2) calc(100% - var(--y) - var(--h) / 2) calc(var(--x) - var(--w) / 2)); }
.lens .frame { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h); pointer-events: none; color: #fff; }
.lens .frame i { position: absolute; width: 34px; height: 34px; border: 0 solid currentColor; transition: margin .25s var(--out); }
.lens .frame i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; }
.lens .frame i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; }
.lens .frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.lens .frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; }
.lens .shot .frame i { margin: 16px; }
.lens .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.lens .taken { position: absolute; inset-block-start: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.lens .taken canvas { display: block; width: clamp(84px, 9vw, 146px); height: auto; border: 4px solid var(--pale); box-shadow: 0 6px 18px rgb(40 12 22 / .4); }
.lens .stage:focus-visible { outline: 5px solid var(--pink); outline-offset: -10px; }


main > .row:last-child { border-bottom: 0; }

/* shoot day: each thing packed turns its tile over, and nine tiles make a photograph */
.day-title { border-bottom: var(--line) solid var(--plum); }
.day-title h1 { margin: 0 var(--side); padding-block: 12px 8px; }
.pack { --cols: 3; --rows: 3; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--line); background: var(--plum); transition: gap .6s var(--out); }
.pack li { perspective: 1400px; height: clamp(170px, 20vw, 300px); }
.pack label { position: relative; display: block; height: 100%; cursor: pointer; transform-style: preserve-3d; transition: transform .8s var(--out); }
.pack input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pack li:has(:checked) label { transform: rotateY(180deg); }
.pack .front, .pack .piece { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; }
.pack .front { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6px; padding: 14px clamp(16px, 2.2vw, 36px); background: var(--bg); color: var(--ink); transition: background .25s, color .25s; }
.pack li:hover .front { background: var(--ink); color: var(--bg); }
.pack .front .small { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.pack .piece { inset: -1px; transform: rotateY(180deg); background: var(--brown); }
.pack .piece img { position: absolute; max-width: none; width: calc(var(--cols) * 100%); height: calc(var(--rows) * 100%); left: calc(var(--cx) * -100%); top: calc(var(--cy) * -100%); object-position: var(--at, 50% 50%); }
.pack .tag { position: absolute; inset-block-end: 0; inset-inline-start: 0; padding: 6px 14px; background: var(--plum); color: var(--pink); font-size: 18px; font-weight: 700; line-height: 1.3; text-decoration: line-through; text-decoration-thickness: 2px; transition: opacity .4s; }
.pack li:has(:focus-visible) { outline: 4px solid var(--plum); outline-offset: -8px; }
.pack li:has(:focus-visible) label { box-shadow: inset 0 0 0 6px var(--pale); }
.pack.done { gap: 0; }
.pack.done .tag { opacity: 0; }
.pack.done li:is(:hover, :focus-within) .tag { opacity: 1; }
.waiting { position: relative; isolation: isolate; border-block: var(--line) solid var(--plum); background: var(--pale); overflow: hidden; }
.waiting::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--peach); transform: scaleX(var(--p, 0)); transform-origin: 100% 50%; transition: transform .8s var(--out); }
.waiting .wood { margin: 0 var(--side); padding-block: 14px 8px; }
.tools { display: flex; gap: var(--line); background: var(--plum); border-bottom: var(--line) solid var(--plum); }
.tools button { flex: 1; min-height: 66px; padding: 0 20px; border: 0; background: var(--pink); color: var(--plum); font-size: 21px; font-weight: 700; cursor: pointer; transition: background .25s; }
.tools button:hover { background: var(--peach); }
.tools button:focus-visible { outline-offset: -8px; }

@media (min-width: 761px) and (max-width: 1000px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .order .side { grid-template-rows: auto; }
  .order .pic { aspect-ratio: 16 / 9; }
  .order form { border-inline-start: 0; border-top: var(--line) solid var(--plum); }
}
@media (max-width: 760px) {
  .pin { height: 64px; top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); translate: none; }
  .pin .eye { width: 60px; }
  .pin i { width: 11px; height: 11px; }
  .pin svg { width: 24px; height: 24px; }
  .first { display: block; height: auto; min-height: 0; max-height: none; }
  .hero { aspect-ratio: 1; }
  .hero img { object-position: 18% 60%; }
  .top { flex-direction: column; align-items: stretch; padding-block: 8px 2px; font-size: 17px; }
  .top .home { align-self: flex-start; padding-block: 4px 2px; }
  .top .home svg { height: 66px; }
  .top nav { justify-content: space-between; gap: 8px; }
  h1 .d { display: none; }
  h1 .m { display: block; }
  .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); height: auto; }
  .row .name { padding-block: 16px; }
  .row .pic, .row:nth-child(even) .pic { order: 2; aspect-ratio: 3 / 2; }
  .line:not(.pair) { flex-direction: column; }
  .line:not(.pair) figure { flex: none; width: 100%; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .others a { height: 110px; }
  .lead { grid-template-columns: minmax(0, 1fr); height: auto; }
  .lead h1 { padding-block: 16px; }
  .lead .pic { border: 0; border-top: var(--line) solid var(--plum); aspect-ratio: 3 / 2; }
  .lens { display: flex; flex-direction: column; min-height: 0; }
  .lens .words { padding-block: 26px 100px; }
  .lens .stage { order: -1; flex: none; width: 100%; height: 62svh; border: 0; border-bottom: var(--line) solid var(--plum); }
  .cal .days b { inset: 7px 5px auto auto; font-size: 18px; }
  .cal .days i { inset: auto auto 6px 4px; font-size: 12px; }
  .cal .head { grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .cal .head small { font-size: 15px; }
  .ways { --slim: 96px; flex-direction: column; }
  .ways .give-a, .ways .full { width: 100%; }
  .ways .slim { inset: auto 0 0; width: auto; height: var(--slim); writing-mode: horizontal-tb; rotate: none; }
  .ways .slim b { font-size: 26px; }
  .ways .slim span { font-size: 21px; }
  .doors { inset: 0 0 auto; width: 100%; height: calc(100cqh - var(--slim) - var(--line)); }
  .doors .ask { width: 100%; padding-inline-end: 150px; }
  .doors .set-doors { flex-direction: column; }
  .doors b { inset: auto 20px 16px auto; font-size: 32px; }
  .doors .set-doors a:is(:hover, :focus-visible) { flex-grow: 1.6; }
  .shutter > img { height: 72%; transform: none; }
  .shutter .big { inset: auto 0 6svh; margin: 0 auto; width: min(60vw, 34svh); }
  .shutter .count { font-size: 30vw; }
  .shutter .kind { inset: auto 24px 44svh auto; font-size: 36px; }
  .shutter::after { inset: 40% 0 28%; }
  .pack { --cols: 1; --rows: 9; grid-template-columns: minmax(0, 1fr); }
  .pack li { --cx: 0 !important; --cy: var(--row) !important; height: 104px; }
  .pack .front { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center; gap: 14px; padding: 8px var(--side); }
  .pack .front .small { font-size: 18px; }
  .tools { flex-direction: column; }
  .order { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .order .side { grid-template-rows: auto; }
  .order .side .head { padding-block: 22px; gap: 10px; }
  .order .pic { aspect-ratio: 16 / 9; }
  .order form { border-inline-start: 0; border-top: var(--line) solid var(--plum); }
  .cell { grid-column: 1 / -1; }
  .tile, .tile:nth-of-type(n + 4) { grid-column: span 3; height: 92px; }
  .tile:nth-of-type(5) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  .fit { overflow: visible; }
  .day-title h1 .fit > span { font-size: 62pt !important; }
  .waiting .fit > span { font-size: 44pt !important; }
  .waiting .wood, .day-title h1 { margin: 0; padding-block: 3mm; }
  .waiting { break-inside: avoid; }
  .top { min-height: 0; padding-inline: 0; }
  body { background: #fff; color: #000; }
  .skip, .pin, .top nav, .tools { display: none !important; }
  .top, .day-title, .waiting { border-color: #000; background: none; }
  .waiting::before { display: none; }
  .pack { display: grid; gap: 0; background: none; border: 2px solid #000; grid-template-columns: repeat(3, 1fr); }
  .pack li { height: 44mm; border: 1px solid #000; perspective: none; break-inside: avoid; }
  .pack label { transform: none !important; }
  .pack .piece { display: none; }
  .pack .front { display: block; padding: 6mm; background: none !important; color: #000 !important; backface-visibility: visible; }
  .pack .front .fit > span { font-size: 21pt !important; }
  .pack .front .small { font-size: 13pt; }
  .pack .front::after { content: ""; position: absolute; inset: auto auto 5mm 5mm; width: 8mm; height: 8mm; border: 2px solid #000; }
}

/* room for the contact icon beside words that reach the left edge */
@media (min-width: 761px) {
  .row:nth-child(even) .name, .pack li:nth-child(3n) .front { padding-inline-end: 104px; }
}

/* contact: the instant picture for a forgotten field */
.oops { width: min(430px, calc(100vw - 48px), calc(100dvh - 300px)); min-width: 250px; max-height: none; margin: auto; padding: 18px 18px 0; overflow: visible; border: 0; background: var(--pale); color: var(--plum); box-shadow: 0 30px 80px rgb(30 8 16 / .6); rotate: -4deg; }
.oops::backdrop { background: rgb(82 37 53 / .62); }
.oops[open] { animation: oops-drop .8s var(--out); }
@keyframes oops-drop { from { translate: 0 -110vh; rotate: 16deg; } }
.oops img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 52% 36%; background: var(--peach); animation: oops-develop 2.2s ease-out both; }
@keyframes oops-develop { from { filter: brightness(2.6) saturate(0) blur(9px); } }
.oops p { padding: 16px 4px 6px; text-align: center; text-wrap: balance; font-size: clamp(22px, 5.4vw, 28px); font-weight: 700; line-height: 1.25; }
.oops b { display: block; padding-bottom: 6px; font-size: clamp(40px, 11vw, 58px); font-weight: 900; line-height: 1; }
.oops button { width: calc(100% + 36px); min-height: 64px; margin: 12px -18px 0; border: 0; background: var(--peach); color: var(--plum); font-family: inherit; font-size: 22px; font-weight: 700; cursor: pointer; transition: background .2s; }
.oops button:hover { background: var(--pink); }
.oops button:focus-visible { outline: 4px solid var(--plum); outline-offset: -7px; }
@media (prefers-reduced-motion: reduce) { .oops[open], .oops img { animation: none; } }
