/* The Curated Dinner Co. website. Everything printed: two inks and the Seat on stock you could feel.
   Vermilion marks what was chosen. Things are seated, never faded in. */
:root{
  --gwm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1111 192'%3E%3Cpath d='M47.2,14.4c-14.4,8.2-26,19.6-34.4,33.6C4.3,62.1,0,77.7,0,94.3s4.3,32.2,12.7,46.3c8.5,14.1,20,25.4,34.4,33.6,14.4,8.2,30.4,12.4,47.7,12.4h69.8v-112.5h-81v39.1h38.2v31.8h-25.6c-9.1,0-17.6-2.3-25.2-6.9-7.6-4.6-13.8-10.8-18.3-18.4-4.5-7.7-6.7-16.2-6.7-25.3s2.3-17.7,6.7-25.3c4.5-7.7,10.6-13.9,18.3-18.4,7.6-4.6,16.1-6.9,25.2-6.9h68.5V2h-69.8c-17.3,0-33.3,4.2-47.7,12.4h0Z'/%3E%3Cpath d='M267.6.2c-42.7,0-77.4,34.8-77.4,77.6v108.8h42v-54.6h70.8v54.6h42v-108.8c0-42.8-34.7-77.6-77.4-77.6ZM303,93h-70.8v-15.3c0-19.6,15.9-35.5,35.4-35.5s35.4,15.9,35.4,35.5v15.3Z'/%3E%3Cpath d='M576.4,0c-32.1,0-58.2,26.2-58.2,58.4v74.2c0,8.7-7,15.7-15.7,15.7s-15.7-7-15.7-15.7V58.5c0-32.2-26.1-58.4-58.2-58.4s-58.2,26.2-58.2,58.4v128.2h42.6V58.5c0-8.7,7-15.7,15.7-15.7s15.7,7,15.7,15.7v74.1c0,32.2,26.1,58.4,58.2,58.4s58.2-26.2,58.2-58.4V58.4c0-8.7,7-15.7,15.7-15.7s15.7,7,15.7,15.7v128.3h42.6V58.4c0-32.2-26.1-58.4-58.2-58.4h0Z'/%3E%3Cpath d='M872,0c-32.1,0-58.2,26.2-58.2,58.4v74.2c0,8.7-7,15.7-15.7,15.7s-15.7-7-15.7-15.7V58.4c0-32.2-26.1-58.4-58.2-58.4s-58.2,26.2-58.2,58.4v128.3h42.6V58.4c0-8.7,7-15.7,15.7-15.7s15.7,7,15.7,15.7v74.2c0,32.2,26.1,58.4,58.2,58.4s58.2-26.2,58.2-58.4V58.4c0-8.7,7-15.7,15.7-15.7s15.7,7,15.7,15.7v128.3h42.6V58.4c0-32.2-26.1-58.4-58.2-58.4Z'/%3E%3Cpath d='M1033.1.3c-42.7,0-77.4,34.8-77.4,77.6v108.8h42v-54.6h70.8v54.6h42v-108.8c0-42.8-34.7-77.6-77.4-77.6ZM1068.5,93.2h-70.8v-15.3c0-19.6,15.9-35.5,35.4-35.5s35.4,15.9,35.4,35.5v15.3Z'/%3E%3C/svg%3E");
  --poster:'Tanker', 'Impact', 'Arial Narrow', sans-serif;
  --stock:#f1ebdd;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .4' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23f)'/%3E%3C/svg%3E");
  --m:clamp(16px,3vw,48px);
  /* the grid: 12 columns, one gutter. Two-column sections land their second column on column 7 or 9 */
  --g:clamp(14px,2vw,28px);
  /* rhythm, set by width: --sec between chapters (applied top and bottom), --pair between sections that belong together, --s-5 headline to content */
  --sec:clamp(56px,5.6vw,80px);--pair:clamp(26px,3vw,44px);--s-5:clamp(36px,4.4vw,64px);
  /* the type scale: one size per role. --fs-feature is Grant's introduction, the one quote the page is built on */
  --fs-display:clamp(40px,6.4vw,92px);--fs-h2:clamp(34px,4.6vw,66px);--fs-quote:clamp(30px,3.6vw,52px);
  --fs-feature:clamp(34px,5.6vw,80px);--fs-title:clamp(22px,2vw,30px);--fs-lead:clamp(19px,1.6vw,24px);--fs-body:clamp(16px,1.15vw,17px);
  /* three ink levels: full, secondary, tertiary */
  --o2:.72;--o3:.5;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--night);color:var(--night);font:400 16px/1.5 var(--text);-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{overflow-x:hidden;background:var(--stock);color:var(--night);transition:background-color var(--t-l) var(--pull),color var(--t-l) var(--pull)}
body.night{background:var(--night);color:var(--stock)}
a{color:inherit;text-decoration:none}
button,select,input,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
ol,ul{list-style:none}
.lab{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.p{font-family:var(--poster);font-weight:400;text-transform:uppercase;letter-spacing:.005em;line-height:.86}
.d{font-family:var(--display);font-weight:400;letter-spacing:-.018em}
.gwm{display:inline-block;aspect-ratio:1111/192;background:currentColor;-webkit-mask:var(--gwm) center/contain no-repeat;mask:var(--gwm) center/contain no-repeat;vertical-align:middle}
:focus-visible{outline:2px solid var(--seat);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* no orphans: headlines break into even lines, running text never leaves a word alone */
h1,h2,h3,blockquote,.d,.h2,.p{text-wrap:balance}
p,li,figcaption{text-wrap:pretty}

/* ---------- header ---------- */
.hd{position:fixed;inset:0 0 auto;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px var(--m);color:var(--night)}
.hd.on{background:color-mix(in srgb,var(--stock) 94%,transparent);box-shadow:0 1px 0 rgba(36,16,43,.12);backdrop-filter:blur(6px)}
.hd.dark{color:var(--stock)}
.hd.dark.on{background:color-mix(in srgb,var(--night) 94%,transparent);box-shadow:0 1px 0 rgba(241,235,221,.12)}
.hd .cd-wm{font-size:clamp(18px,1.7vw,24px)}
.hd nav{display:flex;gap:26px;align-items:center}
.hd nav a.lab{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;padding:6px 0;transition:background-size var(--t-m) var(--pull)}
.hd nav a.lab:hover{background-size:100% 1px}
.btn{display:inline-flex;align-items:center;gap:12px;background:var(--seat);color:var(--night);font:600 12px/1 var(--text);letter-spacing:.14em;text-transform:uppercase;padding:16px 22px;border-radius:4px;transition:transform var(--t-s);white-space:nowrap}
.btn:active{transform:translateY(2px)}
.btn .cd-seat{width:10px;height:10px;border-radius:3px;background:var(--night);transition:transform var(--t-m) var(--pull)}
.btn:hover .cd-seat{transform:translateX(4px) scale(1.15)}
.btn.sm{padding:12px 16px;font-size:11px}

/* ---------- the stock ---------- */
.print{position:relative;background:var(--stock);color:var(--night);overflow:hidden;isolation:isolate}
.print canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.print canvas.plate{mix-blend-mode:multiply;transform:translate(var(--ox,12px),var(--oy,-9px));transition:transform var(--t-l) var(--pull)}
.print.inreg canvas.plate{transform:translate(calc(.9px + var(--hx,0px)),calc(-.7px + var(--hy,0px)))}
.print.darkstock canvas.plate{mix-blend-mode:normal}
.print.noanim canvas.plate{transition:none}
.print::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:3;mix-blend-mode:multiply;
  background:var(--fibre),var(--grain),linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%,rgba(36,16,43,.07))}
.print.fold::after{background:var(--fibre),var(--grain),linear-gradient(90deg,transparent 49.6%,rgba(36,16,43,.06) 50%,rgba(255,255,255,.18) 50.4%,transparent 51%),linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%,rgba(36,16,43,.07))}
.print::before{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;mix-blend-mode:soft-light;background:radial-gradient(circle at var(--lx,30%) var(--ly,20%),rgba(255,255,255,.55),transparent 46%)}
.print > .on{position:relative;z-index:2}
.reg{position:absolute;width:18px;height:18px;z-index:2;color:var(--night);opacity:.55}
.reg svg{width:100%;height:100%;display:block}
.reg.tl{left:12px;top:12px}.reg.tr{right:12px;top:12px}.reg.bl{left:12px;bottom:12px}.reg.br{right:12px;bottom:12px}
.stamp{display:inline-block;width:var(--w,120px);aspect-ratio:1;color:var(--night);transform:rotate(var(--r,-8deg));mix-blend-mode:multiply;opacity:.92;flex:none}
.stamp svg{width:100%;height:100%;display:block;overflow:visible}
.stamp .ghost{opacity:.09}
.stamp.inked{animation:press var(--t-m) var(--give) both}
@keyframes press{0%{transform:rotate(var(--r,-8deg)) scale(1.4);opacity:0;filter:blur(3px)}55%{transform:rotate(var(--r,-8deg)) scale(.95);opacity:1;filter:blur(0)}100%{transform:rotate(var(--r,-8deg)) scale(1);opacity:.92}}
.pen{position:absolute;pointer-events:none;overflow:visible;z-index:5}
.pen path{filter:url(#ink-pen);fill:none;stroke:var(--seat);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.pen.drawn path{animation:draw var(--t-m) var(--pull) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.pw{position:relative;display:block}
.pw .print{clip-path:polygon(0 0,100% 0,100% calc(100% - 38px),calc(100% - 38px) 100%,0 100%)}
.curl{position:absolute;right:0;bottom:0;width:38px;height:38px;background:linear-gradient(135deg,#e7dfcd 0 49%,#cbbfa6 50%,transparent 51%);filter:drop-shadow(-3px -3px 4px rgba(36,16,43,.28));transform-origin:100% 100%;transition:transform var(--t-m) var(--pull)}
.pw:hover .curl{transform:scale(1.3)}

/* ---------- sections ---------- */
.sec{position:relative;padding:var(--sec) var(--m)}
.sec.pair{padding-top:var(--pair)}
.sec:has(+ .pair){padding-bottom:var(--pair)}
.h2{font-family:var(--display);font-weight:400;font-size:var(--fs-h2);line-height:.94;letter-spacing:-.022em;max-width:15ch;text-wrap:balance}
.lede{font-size:var(--fs-body);max-width:52ch;margin-top:20px;opacity:var(--o2)}

/* ---------- motion: one gesture, one clock ----------
   The pulled chair: quick out, soft landing (--pull). Small 180ms, move 650ms, arrive 1100ms, lines 80ms apart, items 90ms apart.
   Content is visible without script; motion only applies once html has .js, and it always ends at rest. */
/* three curves: --pull settles, --squeegee wipes, --give lands with a little bounce (a stamp, a chair dropping in). Nothing starts more than 300ms after it's seen. */
:root{--t-s:180ms;--t-m:650ms;--t-l:1100ms;--squeegee:cubic-bezier(.7,0,.2,1);--give:cubic-bezier(.3,1.4,.4,1)}
/* headlines rise from behind their own baseline, a line at a time */
html.js [data-reveal="lines"]:not(.split){visibility:hidden}
html.js [data-reveal="lines"] .ln{display:block;clip-path:inset(-.12em -100vw 0 -1em);padding:.06em 0 .14em;margin:-.06em 0 -.14em}
html.js [data-reveal="lines"] .ln > span{display:block;transform:translateY(125%);transition:transform var(--t-l) var(--pull);transition-delay:calc(var(--i,0) * 80ms + var(--d,0ms))}
html.js [data-reveal="lines"].in .ln > span{transform:none}
/* blocks are seated: a short slide up, settling */
html.js [data-reveal="up"]{transform:translateY(26px);opacity:0;transition:transform var(--t-l) var(--pull),opacity var(--t-m);transition-delay:var(--d,0ms)}
html.js [data-reveal="up"].in{transform:none;opacity:1}
html.js [data-stagger] > *{transform:translateY(30px);opacity:0;transition:transform var(--t-l) var(--pull),opacity var(--t-m);transition-delay:calc(var(--i,0) * 90ms + var(--d,0ms))}
html.js [data-stagger].in > *{transform:none;opacity:1}
/* the squeegee: every print is pulled down the screen as it arrives, and the night plate follows into register */
html.js .print.pull > canvas{clip-path:inset(0 0 100% 0)}
html.js .print.pull.pulled > canvas{clip-path:inset(0 0 0 0);transition:clip-path var(--t-l) var(--squeegee)}
html.js .print.pull.pulled > canvas.plate{transition:clip-path var(--t-l) var(--squeegee) var(--t-s),transform var(--t-l) var(--pull) var(--t-s)}
/* the posters are dealt onto the table, a little crooked, then straighten */
html.js [data-deal] > *{transform:translateY(80px) rotate(var(--dr,2deg));opacity:0;transition:transform var(--t-l) var(--pull),opacity var(--t-m);transition-delay:calc(var(--i,0) * 90ms)}
html.js [data-deal].in > *{transform:none;opacity:1}
html.js .stamp[data-stamp]:not(.inked){opacity:0}
/* the header steps out of the way on the way down, and back on the way up */
.hd{transition:background-color var(--t-s),color var(--t-s),box-shadow var(--t-s),transform var(--t-m) var(--pull)}
.hd.away{transform:translateY(-110%)}
/* opening a dinner: its poster grows into the page */
@view-transition{navigation:auto}
::view-transition-group(*){animation-duration:var(--t-m);animation-timing-function:var(--squeegee)}
::view-transition-old(root),::view-transition-new(root){animation-duration:var(--t-s)}

/* ---------- quotes: full-bleed prints, square to the page, like every other sheet ----------
   The words set large on the stock, the place's ink screened behind them, the speaker on a rubber stamp. */
.qpost{min-height:0}
.qpost .on{position:relative;padding:var(--sec) var(--m);display:grid;grid-template-rows:auto 1fr auto;gap:clamp(28px,5vh,56px)}
.qtop{display:flex;justify-content:space-between;align-items:center;gap:16px}
.qtop .gwm{width:clamp(90px,8vw,128px)}
.nw{white-space:nowrap}
.qpost blockquote{align-self:center;font-family:var(--display);font-size:var(--fs-quote);line-height:1;letter-spacing:-.026em;max-width:15ch;text-indent:-.42em;text-wrap:balance}
/* only the first line hangs its opening mark into the margin */
.qpost blockquote .ln{text-indent:0}
.qpost blockquote .ln:first-child{text-indent:-.42em}
.qpost.pair .on{padding-top:var(--pair)}
.qpost:not(.brit) blockquote{font-size:var(--fs-feature);line-height:.96}
.qpost.brit blockquote{font-size:var(--fs-quote);line-height:1.04;max-width:25ch;text-indent:-.36em;text-wrap:pretty}
.qfoot{display:flex;justify-content:space-between;align-items:center;gap:20px}
.qfoot .stamp{--w:clamp(120px,11vw,170px);margin:-70px 2% -40px 0}
.word{position:relative;white-space:nowrap}
.word .pen{left:-6%;top:-14%;width:112%;height:128%}
.brit .word .pen{left:-6%;top:-8%;width:112%;height:120%}
.und{position:relative;white-space:nowrap}
.und .pen{left:-2%;top:.9em;width:104%;height:.3em}
/* the footer's Seat drops into the i as it arrives */
html.js .ft[data-seat] .cd-i b{transform:translateY(-1.6em) scale(1.5);opacity:0}
html.js .ft[data-seat].in .cd-i b{transform:none;opacity:1;transition:transform var(--t-l) var(--give) .3s,opacity var(--t-s) .3s}

/* a ground print is ink straight onto the page: no paper of its own, so the page can fade between paper and night beneath it */
.print.ground{background:transparent;color:inherit}
.print.ground .qfoot{border-color:currentColor}
.print.ground::after,.print.ground::before{display:none}   /* no paper, no sheen: nothing to make an edge against the page */
/* one grain over the whole page, so every surface is the same paper */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:30;background:var(--grain);mix-blend-mode:multiply;opacity:.28}
.print.ground canvas.plate{mix-blend-mode:normal}

/* ---------- footer ---------- */
.ft{padding:var(--sec) var(--m) 28px;display:grid;gap:clamp(48px,8vh,96px)}
.ft .big .cd-wm{font-size:clamp(26px,8.4vw,150px)}
.ft .row{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.ft .mail{font-family:var(--display);font-size:clamp(22px,2.4vw,34px);user-select:all}
.ft .fr{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.ft .copy{border-bottom:1px solid currentColor;padding:4px 0;opacity:var(--o2)}
.ft .copy.done{opacity:1;color:var(--butter)}

@media (max-width:820px){
  .hd nav a.lab:not([href$="notes.html"]){display:none}   /* Notes stays: it's the one page not on the homepage */
}
@media (max-width:560px){
  .hd{padding:12px 16px}
  .hd .cd-wm{font-size:16px}
  .hd .btn.sm{padding:10px 12px;letter-spacing:.08em;font-size:10px;gap:8px}
}
@media (max-width:420px){.hd .long{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}html.js [data-reveal] .ln > span,html.js [data-reveal],html.js [data-stagger] > *,html.js [data-deal] > *{transform:none!important;opacity:1!important}html.js .print.pull > canvas{clip-path:none!important}html.js .stamp[data-stamp]{opacity:.92!important}.print canvas.plate{transform:translate(.9px,-.7px)!important}.pen path{stroke-dashoffset:0}}

/* links that lead somewhere: the arrow steps forward on hover, the rule draws under the words */
.go,.tlink{display:inline-flex;align-items:center;gap:8px}
.ar{display:inline-block;transition:transform var(--t-m) var(--pull)}
a:hover > .ar,a:focus-visible > .ar{transform:translateX(5px)}

/* on a phone the header keeps the name and the one action */
@media (max-width:560px){.hd nav a.lab:not([href$="notes.html"]){display:none}.hd nav{gap:16px}}

/* ---------- the courses: what we bring, set straight onto the page, each ticked by the curator's pen ---------- */
.bring{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g);row-gap:var(--s-5);align-items:start}
.bring-say{grid-column:1/6}.menu{grid-column:7/-1}
.courses{display:grid;gap:clamp(22px,3.6vh,34px);counter-reset:c}
.courses li{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 14px;align-items:baseline;padding-right:48px}
.courses .n{font-size:11px;font-weight:600;letter-spacing:.08em;opacity:var(--o3)}
.courses .c{font-size:clamp(34px,3.4vw,56px);line-height:.9}
.courses .d{grid-column:2;font-family:var(--display);font-size:var(--fs-lead);line-height:1.2;opacity:var(--o2)}
.courses .pen{position:absolute;right:0;top:0;width:34px;height:28px}
.courses .pen.drawn path{animation-delay:calc(var(--i,0) * 90ms)}
@media (max-width:900px){.bring{grid-template-columns:1fr}.bring > *{grid-column:auto}}

/* selecting text marks it in the chosen colour */
::selection{background:var(--seat);color:var(--night)}
/* point at the wordmark and the Seat in it hops, like a chair pulled out and pushed back in */
@keyframes hop{0%,100%{transform:none}35%{transform:translateY(-.32em) rotate(-8deg)}60%{transform:translateY(.04em)}}
.hd a:hover .cd-i b,.hd a:focus-visible .cd-i b{animation:hop var(--t-m) var(--pull)}

/* where we've hosted: the Seat that dots the i of the wordmark is the full stop here. Once, when the list arrives,
   it lifts off and hops city to city, dotting each name like an i, then sits back down as the full stop */
.net .city{display:inline-block}
.net .city b{font-weight:inherit}
.net .stop{display:inline-block;width:.22em;height:.22em;margin-left:.06em;border-radius:.055em;background:var(--seat);vertical-align:baseline}
.net .stop.away{background:transparent}
.net .hop{position:absolute;left:0;top:0;width:.22em;height:.22em;border-radius:.055em;background:var(--seat);pointer-events:none;will-change:transform}
