/* Bento: white, rounded tiles, the photographs leading. Colour comes in small solid tiles, one per kind: sun
   (Travel), pink (Weddings), leaf (Family), cobalt (Events), the opening's tile in the colour chosen in the
   dashboard (tomato at first), and tomato for the Inquire button. Inter Tight, set big and tight.
   Loaded after site/home/shared/site.css. From the mockup in mockups/home/color/4-bento/. */
:root{--paper:#fff;--ink:#141414;--mute:#6b6a66;--soft:#f3f2ee;--line:#e4e2dc;
  --sun:#ffc933;--pink:#ff8fbd;--leaf:#128553;--cobalt:#2d4adb;--tomato:#ef4b2f;
  --g:10px;--m:12px;--rad:22px;--top:72px;--focus:var(--ink);--halo:#fff;--btn:var(--tomato);--btn-ink:var(--ink);
  --err:#b3261e;--label:var(--mute);
  --e-out:cubic-bezier(.22,1,.36,1);--t-quick:220ms;--t-move:560ms}
html{background:var(--paper);color:var(--ink);scroll-padding-top:calc(var(--top) + 16px)}
body{font:400 15px/1.5 'Inter Tight',system-ui,sans-serif;letter-spacing:-.005em;font-variant-numeric:tabular-nums}
::selection{background:#ffe08a}
img[data-fade]{transition:opacity .6s var(--e-out)}
.c-travel{--c:var(--sun);--on:var(--ink)}.c-weddings{--c:var(--pink);--on:var(--ink)}.c-family{--c:var(--leaf);--on:#fff}
.c-events{--c:var(--cobalt);--on:#fff}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* The opening tile's six colours. The softer first line keeps at least 3.4:1 on its colour (tomato's is white). */
.tc-ink{--tbg:var(--ink);--tfg:#fff;--tsoft:rgb(255 255 255 / .6)}
.tc-tomato{--tbg:var(--tomato);--tfg:var(--ink);--tsoft:#fff}
.tc-sun{--tbg:var(--sun);--tfg:var(--ink);--tsoft:#725c20}
.tc-cobalt{--tbg:var(--cobalt);--tfg:#fff;--tsoft:#abb7f1}
.tc-pink{--tbg:var(--pink);--tfg:var(--ink);--tsoft:#724558}
.tc-leaf{--tbg:var(--leaf);--tfg:#fff;--tsoft:#c4e1d4}

/* Page changes: the header holds still, the rest crossfades, and a kind's tile travels into its page's title */
::view-transition-group(*){animation-duration:var(--t-move);animation-timing-function:var(--e-out)}
::view-transition-old(root){animation:vt-out 170ms ease-out both}
::view-transition-new(root){animation:vt-in var(--t-move) var(--e-out) 90ms both}
::view-transition-group(top){animation-duration:200ms}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(10px)}}

/* ---- Top ---- */
.top{position:sticky;top:0;z-index:20;height:var(--top);display:flex;align-items:center;gap:24px;padding:0 calc(var(--m) + 10px);background:color-mix(in srgb,#fff 94%,transparent);
  backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);view-transition-name:top;transition:transform var(--t-move) var(--e-out)}
.top.away{transform:translateY(-100%)}
.mark{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:700;letter-spacing:-.035em;margin-right:auto;min-height:44px}
.mark b{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:20px;height:20px;flex:none}
.mark i{border-radius:3px}
.mark i:nth-child(1){background:var(--sun)}.mark i:nth-child(2){background:var(--pink)}.mark i:nth-child(3){background:var(--leaf)}.mark i:nth-child(4){background:var(--cobalt)}
.links{display:flex;gap:2px;font-weight:500;font-size:15px}
.links a{position:relative;height:36px;display:grid;place-items:center;padding:0 14px;border-radius:99px;transition:background-color var(--t-quick),color var(--t-quick)}
.links a::after{content:"";position:absolute;inset:-4px -1px}
.links a:hover{background:var(--soft)}
.links a[aria-current]{background:var(--c);color:var(--on)}
.pill{height:42px;display:inline-flex;align-items:center;gap:8px;padding:0 20px;border-radius:99px;background:var(--tomato);color:var(--ink);font-weight:600;transition:transform var(--t-quick) var(--e-out),filter var(--t-quick)}
.pill:hover{filter:brightness(1.06)}
.pill:active{transform:scale(.97)}

/* ---- Tiles ---- */
main{padding:0 var(--m);container-type:inline-size}
.t{position:relative;border-radius:var(--rad);overflow:hidden;min-width:0}
.ph{margin:0;background-color:#ecebe6}
.ph .open{position:absolute;inset:0;display:block;width:100%;cursor:zoom-in;border-radius:inherit}
.ph .open:focus-visible{outline:none;box-shadow:none}
.ph .open::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;transition:box-shadow var(--t-quick)}
.ph .open:focus-visible::after{box-shadow:inset 0 0 0 3px var(--ink),inset 0 0 0 6px #fff}
.ph img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--e-out),opacity .6s var(--e-out)}
.ph figcaption{position:absolute;left:12px;bottom:12px;display:flex;gap:8px;align-items:baseline;max-width:calc(100% - 24px);padding:7px 13px 8px;border-radius:99px;background:#fff;font-size:13.5px;font-weight:600;pointer-events:none;
  opacity:0;transform:translateY(6px);transition:opacity var(--t-quick),transform var(--t-move) var(--e-out);white-space:nowrap;overflow:hidden;box-shadow:0 2px 10px rgb(0 0 0 / .08)}
.ph figcaption .p{font-weight:400;color:var(--mute);overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){
  .ph:hover img{transform:scale(1.025)}
  .ph:hover figcaption,.ph:focus-within figcaption{opacity:1;transform:none}
}
/* On touch there's no hover, so each photo keeps a small title */
@media (hover:none){
  .ph figcaption{opacity:1;transform:none;left:8px;bottom:8px;padding:5px 11px 6px;font-size:12.5px}
  .ph figcaption .p{display:none}
  .ph figcaption:not(:has(span:not(.p))){display:none}
}

/* Rows of equal height: every photograph at its own shape, nothing cropped. --r is each item's width-to-height;
   it's scaled up so a row whose shapes add up to less than 1 still fills the line. Colour tiles take the row's
   height rather than their own, so their padding can't stretch the row and crop its photographs. */
.jrow{display:flex;gap:var(--g);min-width:0}
.jrow + .jrow{margin-top:var(--g)}
.jrow > *{flex:calc(var(--r) * 1000) 1 0;aspect-ratio:var(--r)}
.jrow > .kt,.jrow > .spare{aspect-ratio:auto}

/* A kind's colour tile. The type is sized from the tile's own width, so the name never runs into anything */
.kt{display:flex;flex-direction:column;padding:clamp(16px,7cqi,26px);background:var(--c);color:var(--on);container-type:inline-size;
  transition:transform var(--t-move) var(--e-out),box-shadow var(--t-move) var(--e-out)}
a.kt:hover{transform:translateY(-3px);box-shadow:0 10px 24px -12px rgb(0 0 0 / .35)}
a.kt:active{transform:translateY(-1px)}
.kt .meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13.5px;font-weight:600}
.kt .meta svg{width:22px;height:22px;transition:transform var(--t-move) var(--e-out)}
a.kt:hover .meta svg{transform:translateX(4px)}
.kt .name{margin-top:auto;font-size:clamp(28px,19cqi,76px);font-weight:700;letter-spacing:-.04em;line-height:.95}
.kt .line{margin-top:12px;font-size:clamp(13.5px,5.2cqi,16px);line-height:1.4;max-width:30ch}

/* ---- Home: the opening ---- */
/* A colour tile that says hello, above the big photograph, the second one standing beside both. The script
   sizes the words to fill the tile and the whole block to fit the first screen. Both photographs keep their
   shapes; on a short or very wide screen the block narrows and centres. */
.intro-screen{padding-top:2px;display:grid;justify-content:center}
.look{display:grid;grid-template-columns:var(--wl,62%) var(--wp,1fr);grid-template-rows:var(--th,auto) var(--hh,auto);gap:var(--g);width:calc(var(--wl,62%) + var(--g) + var(--wp,38%));max-width:100%;margin:0 auto}
.look.solo{grid-template-columns:var(--wl,100%);width:var(--wl,100%)}
.look .hi{grid-column:1;grid-row:1;display:flex;align-items:flex-end;padding:clamp(20px,2.2vw,32px);background:var(--tbg,var(--tomato));color:var(--tfg,var(--ink))}
.look .hero{grid-column:1;grid-row:2}
.look .side{grid-column:2;grid-row:1/3}
.look .ph{width:100%;height:100%}
.hi h1{font-size:64px;font-weight:700;letter-spacing:-.04em;line-height:1;min-width:0}
.hi h1 .ln{display:block;width:max-content;white-space:nowrap}
.hi h1 .soft{color:var(--tsoft,#fff)}
.hi h1.wrap .ln{width:auto;white-space:normal;text-wrap:balance}
.hi h1.m .ln{width:max-content;white-space:nowrap}
/* The line about the work, when it's switched on: under the opening, lined up with its left edge */
.lede{max-width:28ch;padding:26px 10px 0;font-size:clamp(24px,2.3vw,34px);font-weight:500;letter-spacing:-.035em;line-height:1.12;text-wrap:balance}

/* A block per kind: its colour tile at one end, mirrored from block to block */
.kind{margin-top:clamp(56px,7vw,104px)}

/* A kind's page */
.kind-page{padding-top:2px}
.kind-page .head .name{font-size:clamp(34px,21cqi,96px)}
/* The way on: a short band, the next kind's colour in its chip */
.jrow > .nextk{flex:1 1 100%;aspect-ratio:auto}
.nextk{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:120px;padding:20px clamp(20px,2.4vw,32px);background:var(--soft);transition:background-color var(--t-quick)}
.nextk:hover{background:#ebe9e3}
.nextk .meta{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:600;color:var(--mute)}
.nextk .chip{width:14px;height:14px;border-radius:4px;background:var(--c,var(--ink))}
.nextk .name{font-size:clamp(30px,4.4vw,60px);font-weight:700;letter-spacing:-.04em;line-height:1;display:flex;align-items:center;gap:.25em}
.nextk .name svg{width:.6em;height:.6em;stroke-width:2.4;transition:transform var(--t-move) var(--e-out)}
.nextk:hover .name svg{transform:translateX(6px)}

/* ---- Inquire: white, with a tomato rule and button ---- */
#inquire{margin:clamp(72px,9vw,128px) 0 0;padding:clamp(28px,3.4vw,48px) clamp(10px,2vw,28px) 0;border-top:3px solid var(--tomato);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,5vw,80px)}
#inquire h2{font-size:clamp(36px,4.2vw,64px);font-weight:700;letter-spacing:-.04em;line-height:1;text-wrap:balance}
#inquire h2:focus{outline:none}
#inquire .note{margin-top:16px;color:var(--mute);max-width:34ch}
.inq-form{gap:22px 28px}
.inq-form label{font-size:13px;letter-spacing:.01em;color:var(--label);opacity:1}
.inq-form input,.inq-form select,.inq-form textarea{border-bottom-color:color-mix(in srgb,currentColor 58%,transparent);transition:border-color var(--t-quick)}
.inq-form input:hover,.inq-form select:hover,.inq-form textarea:hover{border-bottom-color:color-mix(in srgb,currentColor 85%,transparent)}
.inq-form input:focus,.inq-form select:focus,.inq-form textarea:focus{border-bottom-color:var(--ink)}
.inq-form textarea{resize:none;field-sizing:content;min-height:84px;max-height:40vh;line-height:1.45}
.inq-form [aria-invalid="true"]{border-bottom-color:var(--err)}
.inq-form button{min-height:48px;border-radius:99px;font-weight:600;padding:14px 30px;transition:transform var(--t-quick) var(--e-out),filter var(--t-quick),opacity var(--t-quick)}
.inq-form button:hover{filter:brightness(1.06)}
.inq-form button:active{transform:scale(.97)}
.inq-form .sent{font-size:14px;font-weight:500;opacity:1;color:var(--mute)}
.inq-form .sent.bad{color:var(--err)}
.inq-form .thanks{font-size:clamp(22px,2.2vw,30px);font-weight:700;letter-spacing:-.025em;line-height:1.2;max-width:28ch}
.foot{display:flex;justify-content:space-between;gap:16px;padding:56px calc(var(--m) + 10px) 26px;font-size:13.5px;color:var(--mute)}

/* ---- The viewer: white. The photograph grows out of its tile and shrinks back into it ---- */
.viewer.bv{--v-bg:#fff;--v-ink:var(--ink);background:transparent}
.viewer.bv::backdrop{background:transparent}
.bv .v-bg{position:absolute;inset:0;background:var(--v-bg)}
.bv .v-stage{touch-action:pinch-zoom}
.bv .v-img{transition:none;user-select:none;-webkit-user-drag:none}
.bv .v-fly{position:fixed;z-index:3;object-fit:cover;pointer-events:none;will-change:left,top,width,height}
.viewer.bv.flying .v-img{opacity:0}
.bv .v-bar{font-size:13.5px}
.bv .v-cap,.bv .v-count{color:var(--mute)}
.bv .v-cap b{font-weight:600;color:var(--ink);margin-right:6px}
.bv .v-gal{margin-left:12px;color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:var(--tomato)}
.bv .v-x{top:10px;right:14px;min-height:44px;padding:0 12px;font-size:13.5px;font-weight:600}
.bv .v-prev,.bv .v-next{transition:opacity var(--t-quick)}
.bv .v-prev:hover,.bv .v-next:hover{opacity:.7}
.bv .v-prev svg,.bv .v-next svg{stroke-width:1.4}

/* ---- Tablet: colour tiles sit above their photographs ---- */
@media (max-width:1099px){
  .kind .kt,.kind-page .head{flex:1 1 100%;aspect-ratio:auto;min-height:150px}
}

/* ---- Phone ---- */
@media (max-width:760px){
  :root{--g:8px;--m:8px;--rad:18px;--top:100px}
  .top{height:auto;flex-wrap:wrap;gap:4px 14px;padding:10px 14px 8px}
  .mark{font-size:19px}
  .pill{height:40px;padding:0 18px;font-size:14.5px}
  .links{order:3;width:calc(100% + 28px);margin:0 -14px;padding:0 10px;overflow-x:auto;scrollbar-width:none;
    mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 22px),transparent)}
  .links::-webkit-scrollbar{display:none}
  .links a{flex:none;height:34px;padding:0 13px;font-size:14.5px}
  .links a::after{inset:-5px 0}
  .intro-screen{display:flex;flex-direction:column}
  .look{display:flex;flex-direction:column;width:auto;margin:0}
  .look .hi{padding:22px 20px 20px}
  .look .ph{height:auto;aspect-ratio:var(--r)}
  .hi h1 .ln{width:auto;white-space:normal;text-wrap:balance}
  .lede{padding:22px 8px 0;font-size:25px}
  .kind{margin-top:48px}
  .kind .kt,.kind-page .head{min-height:132px}
  .kt .line{display:none}
  .kind-page .head .line{display:block}
  .nextk{min-height:96px;padding:16px 18px}
  #inquire{grid-template-columns:1fr;gap:26px;padding-left:8px;padding-right:8px}
  #inquire h2{font-size:38px}
  .foot{flex-direction:column;gap:4px;padding-top:44px}
  .bv .v-gal{display:block;margin:4px 0 0}
}
