/* The Handover. Your week, in your own diary, taken back in red pen.
   One object all the way down: the desk, the diary, its pages, its back cover. */

:root {
  --desk: #e7e8eb;
  --paper: #ffffff;
  --line: #dde3ec;          /* printed rules */
  --frame: #cfd5de;         /* printed boxes */
  --ink: #131313;           /* type */
  --ink-2: #3a3b40;
  --mute: #7c8089;
  --ballpoint: #1e2a4a;     /* the owner's handwriting */
  --red: #e1251b;           /* the pen */
  --leather: #171717;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --pen: "Caveat Brush", "Segoe Print", "Bradley Hand", cursive;
  --nav: 60px;
  --gutter: clamp(20px, 4vw, 56px);
  --marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M3 27 L6 19 L22 3 L27 8 L11 24 Z' fill='%23e1251b' stroke='%23131313' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M3 27 L6 19 L11 24 Z' fill='%23131313'/%3E%3C/svg%3E") 3 27, pointer;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.5 var(--sans); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
cite, em, i { font-style: normal; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.pen { font-family: var(--pen); font-weight: 400; color: var(--red); letter-spacing: 0; }

.h2 {
  font: 850 clamp(2.5rem, 5vw, 4.6rem)/.92 var(--sans); font-variation-settings: "wdth" 70;
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}

/* ---------- buttons: square, ink, a red fill on hover ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border: 0; border-radius: 2px;
  background: var(--ink); color: #fff; white-space: nowrap;
  font: 650 1.02rem/1 var(--sans); font-variation-settings: "wdth" 100;
  text-decoration: none; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.6, 0, .2, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--lg { height: 62px; padding: 0 36px; font-size: 1.1rem; }
.btn--sm { height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(19, 19, 19, .1); }
.nav__brand { font: 800 15px/1 var(--sans); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; }
.nav__by { font-size: 13px; color: var(--mute); }
.nav__join { margin-left: auto; }
@media (max-width: 720px) { .nav__by { display: none; } }

/* =========================================================
   THE DESK: your week, in your own diary
   ========================================================= */
.desk {
  position: relative; overflow: hidden;
  min-height: max(660px, 100svh);
  display: grid; grid-template-columns: minmax(290px, .78fr) minmax(0, 1.6fr); align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: calc(var(--nav) + 36px) var(--gutter) 56px;
  background:
    radial-gradient(70% 60% at 68% 48%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    var(--desk);
}
.desk__title {
  font: 850 clamp(3.3rem, 6.1vw, 6.5rem)/.9 var(--sans); font-variation-settings: "wdth" 68;
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.desk__line { margin-top: 22px; max-width: 30ch; font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }
.desk__act { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.desk__deadline { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.pen--note { display: inline-block; margin-left: 6px; font-size: 1.65em; line-height: 1; transform: rotate(-4deg); }
.pen--note:empty { display: none; }
.desk__meta { margin-top: 18px; font-size: 15px; color: var(--mute); }

/* ---------- the diary, sized from its own width ---------- */
.diary {
  --u: 1cqw;
  position: relative; justify-self: center;
  width: 100%; max-width: 1000px; aspect-ratio: 1.42;
  container-type: inline-size;
  perspective: 2600px;
  transform: translateX(-25%);
}
.diary__board, .diary__cover {
  position: absolute; left: 50%; top: -2.4%; width: 51.8%; height: 104.8%;
}
.diary__board {
  border-radius: 0 1.1cqw 1.1cqw 0;
  background: var(--leather) url("/assets/leather.fcf18289.png"); background-size: 220px;
  box-shadow: 0 2.6cqw 5cqw -1.8cqw rgba(20, 24, 32, .5), 0 .6cqw 1.4cqw rgba(20, 24, 32, .18);
}
.diary__page {
  position: absolute; top: 0; height: 100%; width: 49.2%;
  background: var(--paper);
  padding: 4.6cqw 3.6cqw 3.6cqw;
  display: grid; align-content: stretch;
}
.diary__page--right {
  left: 50%;
  border-radius: 0 .5cqw .5cqw 0;
  grid-template-rows: auto repeat(4, 1fr);
  box-shadow: inset 1.6cqw 0 1.8cqw -1.5cqw rgba(0, 0, 0, .22), .25cqw 0 0 #f1f1f1, .45cqw 0 0 #e2e2e2, .6cqw 0 0 #f4f4f4;
}
.diary__page--right .diary__head span { visibility: hidden; }
.diary__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.1cqw; font: 600 calc(var(--u) * 1.1)/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: #9aa0aa; }

/* the cover: front is leather, inside is Monday to Wednesday */
.diary__cover { transform-origin: 0 50%; transform-style: preserve-3d; z-index: 3; }
.diary__front, .diary__inside { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.diary__front {
  border-radius: 0 1.1cqw 1.1cqw 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 4%),
    radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%),
    var(--leather) url("/assets/leather.fcf18289.png");
  background-size: auto, auto, 220px;
  box-shadow: 0 2.6cqw 5cqw -1.8cqw rgba(20, 24, 32, .55), 0 .6cqw 1.4cqw rgba(20, 24, 32, .2);
}
.diary__stitch { position: absolute; inset: 3.2% 4% 3.2% 6%; border: 1px dashed rgba(255, 255, 255, .1); border-radius: .6cqw; }
.diary__emboss, .diary__year, .diary__maker, .back__emboss {
  color: #222;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .13), 0 -1px 1px rgba(0, 0, 0, .9);
}
.diary__emboss {
  position: absolute; left: 13%; right: 12%; top: 36%;
  font: 800 calc(var(--u) * 4.3)/.95 var(--sans); font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: .04em;
}
.diary__year { position: absolute; left: 13%; top: 52%; font: 700 calc(var(--u) * 1.6)/1 var(--sans); letter-spacing: .3em; }
.diary__maker { position: absolute; left: 13%; bottom: 9%; font: 600 calc(var(--u) * 1.05)/1 var(--sans); text-transform: uppercase; letter-spacing: .3em; }
.diary__band {
  position: absolute; right: 9%; top: -1.2%; bottom: -1.2%; width: 2.3%;
  background: linear-gradient(90deg, #9e140d 0%, #d4231a 35%, #ea3b2f 55%, #b8180f 100%);
  box-shadow: .4cqw 0 .9cqw rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .12);
  border-radius: 2px;
}
.diary__inside {
  transform: rotateY(180deg);
  border-radius: 1.1cqw 0 0 1.1cqw;
  background: var(--leather) url("/assets/leather.fcf18289.png"); background-size: 220px;
  box-shadow: 0 2.6cqw 5cqw -1.8cqw rgba(20, 24, 32, .45);
}
.diary__page--left {
  right: 0; top: 2.29%; height: 95.42%; width: 94.98%;
  border-radius: .5cqw 0 0 .5cqw;
  grid-template-rows: auto repeat(3, 1fr) 1.15fr;
  box-shadow: inset -1.6cqw 0 1.8cqw -1.5cqw rgba(0, 0, 0, .22), -.25cqw 0 0 #f1f1f1, -.45cqw 0 0 #e2e2e2, -.6cqw 0 0 #f4f4f4;
}

/* the ribbon bookmark, out of the spine */
.diary__ribbon {
  position: absolute; z-index: 4; left: calc(50% - .9cqw); top: 82%; width: 1.8cqw; height: 26%;
  background: linear-gradient(90deg, #a9150e, #dc2a1f 45%, #b91a12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
  transform-origin: 50% 0; transform: rotate(6deg) scaleY(0);
  filter: drop-shadow(.3cqw .5cqw .4cqw rgba(0, 0, 0, .25));
}
.diary.is-open .diary__ribbon { animation: ribbon 1s cubic-bezier(.3, 1.4, .5, 1) 1.5s forwards; }
.is-done-on-load .diary__ribbon { transform: rotate(6deg); animation: none; }
@keyframes ribbon { to { transform: rotate(6deg) scaleY(1); } }

/* opening: the band comes off, the cover swings over, the spread settles */
.diary.is-open { animation: diary-settle 1.3s cubic-bezier(.65, 0, .25, 1) .3s forwards; }
.diary.is-open .diary__band { animation: band-off .45s cubic-bezier(.5, 0, .2, 1) forwards; }
.diary.is-open .diary__cover { animation: cover-open 1.3s cubic-bezier(.65, 0, .25, 1) .3s forwards; }
@keyframes diary-settle { to { transform: translateX(0); } }
@keyframes cover-open { to { transform: rotateY(-180deg); } }
@keyframes band-off { to { transform: translateX(260%) rotate(5deg); opacity: 0; } }
.is-done-on-load .diary { transform: none; animation: none; }
.is-done-on-load .diary__cover { transform: rotateY(-180deg); animation: none; }
.is-done-on-load .diary__band { display: none; }

/* ---------- a day on the page ---------- */
.day {
  position: relative; display: block; width: 100%; margin: 0; padding: 1cqw 0 0; text-align: left;
  border: 0; border-top: 1px solid var(--frame); background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--u) * 3.2 - 1px), var(--line) calc(var(--u) * 3.2 - 1px) calc(var(--u) * 3.2)) 0 calc(var(--u) * 2.2) / 100% 100% no-repeat;
  font: inherit; color: inherit;
}
.day__name { display: block; font: 700 calc(var(--u) * 1.1)/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #9aa0aa; }
.day__ink {
  position: relative; display: inline-block; margin-top: calc(var(--u) * 1.15);
  font: 400 calc(var(--u) * 2.05)/1.2 var(--hand); color: var(--ballpoint);
  transform: rotate(-.6deg); transform-origin: 0 50%;
  transition: color .4s ease .25s;
}
.day:nth-of-type(2n) .day__ink { transform: rotate(.4deg); }
.day__after {
  display: block; margin-top: calc(var(--u) * .5);
  font-size: calc(var(--u) * 2.75); line-height: 1;
  transform: rotate(-2deg); transform-origin: 0 50%;
  clip-path: inset(-30% 100% -30% 0);
}
.day__strike { position: absolute; left: -4%; width: 108%; top: 18%; height: 55%; overflow: visible; pointer-events: none; }
.day__strike path { fill: none; stroke: var(--red); stroke-width: .3em; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#marker); }
.day--yours { cursor: var(--marker); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.day--yours:not(.is-struck):hover { background-color: rgba(225, 37, 27, .035); }
.day--yours:not(.is-struck):hover .day__name { color: var(--red); }
.day.is-struck { cursor: default; }
.day.is-struck .day__ink { color: #8d93a1; }
.day.is-struck .day__strike path { stroke-dashoffset: 0; transition: stroke-dashoffset .38s cubic-bezier(.5, 0, .3, 1); }
.day.is-struck .day__after { animation: write .7s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
@keyframes write { to { clip-path: inset(-30% -10% -30% 0); } }
.is-done-on-load .day--yours .day__strike path { stroke-dashoffset: 0; transition: none; }
.is-done-on-load .day--yours .day__after { clip-path: none; animation: none; }
.is-done-on-load .day--yours .day__ink { color: #8d93a1; transition: none; }

/* ---------- the notes box ---------- */
.notes { position: relative; margin-top: 1.4cqw; padding: 1cqw 1.4cqw; border: 1px solid var(--frame); border-radius: 2px; }
.notes__label { font: 700 calc(var(--u) * 1.1)/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #9aa0aa; }
.notes__pen {
  display: inline-block; margin-top: 1cqw;
  font-size: calc(var(--u) * 3.1); line-height: 1; transform: rotate(-3deg); transform-origin: 0 50%;
  clip-path: inset(-30% 100% -30% 0);
}
.diary.is-open .notes__pen, .is-done-on-load .notes__pen { animation: write .8s cubic-bezier(.4, 0, .2, 1) 1.7s forwards; }
.is-done-on-load .notes__pen { animation: none; clip-path: none; }
.diary.is-open .notes__pen.is-swap { animation: none; clip-path: inset(-30% 100% -30% 0); }
.diary.is-open .notes__pen.is-swap-in { animation: write .55s cubic-bezier(.4, 0, .2, 1) forwards; }
.notes__arrow { position: absolute; right: 2cqw; bottom: 1.2cqw; width: 12cqw; height: 4.5cqw; overflow: visible; }
.notes__arrow path { fill: none; stroke: var(--red); stroke-width: .35cqw; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#marker); }
.diary.is-open .notes__arrow path { animation: draw .5s ease 2.35s forwards; }
.diary.is-open .notes__arrow path + path { animation-delay: 2.75s; animation-duration: .2s; }
.is-done-on-load .notes__arrow path { stroke-dashoffset: 0; animation: none; }
.diary.is-done .notes__arrow { transform: scaleX(-1); right: auto; left: 52%; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* phones get a single page with the whole week on it */
.day--mobile, .notes--mobile { display: none; }

@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; align-content: start; padding-bottom: 72px; }
  .desk__copy { max-width: 560px; }
}
@media (max-width: 640px) {
  .desk { min-height: 0; padding-top: calc(var(--nav) + 28px); }
  .diary {
    --u: 2.65cqw;
    aspect-ratio: auto; transform: none; perspective: 1800px;
  }
  .diary.is-open { animation: none; }
  .diary__board, .diary__cover { left: 0; width: 100%; top: -1.5%; height: 103%; }
  .diary__page--right {
    position: relative; left: 0; width: 100%; height: auto;
    padding: 7cqw 6cqw 6cqw;
    grid-template-rows: none; gap: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), .25cqw 0 0 #f1f1f1, .5cqw 0 0 #e2e2e2;
  }
  .day { padding-bottom: calc(var(--u) * 1.4); }
  .day--mobile, .notes--mobile { display: block; }
  .notes--mobile { margin: 0 0 4cqw; }
  .diary__inside { display: none; }
  .notes__arrow { display: none; }
  .diary__ribbon { left: 70%; top: 96%; width: 4cqw; height: 9%; }
  .diary__page--right .diary__head span { visibility: visible; }
}

/* =========================================================
   THE HOST, taped in
   ========================================================= */
.host {
  padding: clamp(96px, 12vw, 170px) var(--gutter);
  background:
    repeating-linear-gradient(180deg, transparent 0 39px, #eef1f6 39px 40px),
    var(--paper);
}
.host__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(250px, 400px) 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.snap { position: relative; padding: 10px; background: #fff; transform: rotate(-2.5deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 22px 44px -22px rgba(20, 24, 32, .45); }
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.snap__tape {
  position: absolute; z-index: 2; top: -16px; width: 38%; height: 32px;
  background: linear-gradient(180deg, rgba(238, 238, 233, .86), rgba(224, 224, 218, .8));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 2%, 92% 12%, 96% 0, 100% 9%, 100% 92%, 96% 100%, 92% 88%, 88% 100%, 12% 98%, 8% 88%, 4% 100%, 0 90%);
}
.snap__tape--a { left: -8%; transform: rotate(-9deg); }
.snap__tape--b { right: -8%; transform: rotate(7deg); }
.snap__pen { position: absolute; left: 62%; bottom: -58px; white-space: nowrap; font-size: 2rem; line-height: 1; transform: rotate(-4deg); }
.host__line { margin-top: 22px; max-width: 26ch; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; color: var(--ink-2); }
.host__quote { margin-top: 44px; padding-top: 26px; border-top: 1.5px solid var(--ink); }
.host__quote p { position: relative; font: 800 clamp(1.55rem, 2.6vw, 2.3rem)/1.12 var(--sans); font-variation-settings: "wdth" 88; letter-spacing: -.012em; color: var(--ink); max-width: 22ch; }
.host__quote cite { display: block; margin-top: 14px; font-size: 14px; color: var(--mute); }
.qm { color: var(--red); }
.host__quote .qm:first-child { position: absolute; left: -.52em; }
@media (max-width: 760px) {
  .host__inner { grid-template-columns: 1fr; }
  .snap { max-width: 300px; margin-left: 6px; }
  .snap__pen { left: 8%; bottom: -50px; font-size: 1.8rem; }
  .host__text { margin-top: 30px; }
}

/* =========================================================
   SEVEN TUESDAYS, booked into the month
   ========================================================= */
.tuesdays { background: var(--desk); padding: clamp(96px, 12vw, 160px) var(--gutter); }
.tuesdays__inner { max-width: 1240px; margin: 0 auto; }
.tuesdays__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px; }
.tuesdays__head p { max-width: 34ch; font-size: 1.1rem; color: var(--ink-2); }
.month {
  position: relative; margin-top: 44px;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  background: var(--paper); padding: clamp(22px, 3vw, 40px); gap: clamp(26px, 3vw, 48px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 60px -34px rgba(20, 24, 32, .45);
}
.month__cal { position: relative; }
.month__dow { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.month__dow span { padding-left: 8px; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cell {
  position: relative; min-height: clamp(74px, 7.4vw, 100px); padding: 7px 8px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: inherit; color: inherit; text-align: left; background: none;
}
.cell:nth-child(7n) { border-right: 0; }
.cell__date { display: block; font: 600 12px/1 var(--sans); color: #9aa0aa; font-variant-numeric: tabular-nums; }
.cell__month { margin-left: 4px; color: var(--ink); font-weight: 700; }
button.cell { cursor: pointer; border-left: 0; border-top: 0; }
button.cell:hover { background: #fafbfc; }
.cell__thumb { display: block; width: 42px; height: 42px; margin-top: 8px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.cell__name { display: block; margin-top: 6px; font: 700 12px/1.1 var(--sans); color: var(--ink); }
.cell--close .cell__note { position: absolute; left: 6px; right: 4px; bottom: 6px; font-size: 1.1rem; line-height: .95; transform: rotate(-4deg); }
.cell--x::after {
  content: ""; position: absolute; inset: 24% 10% 24% 8%;
  background: linear-gradient(to top right, transparent calc(50% - 2.5px), var(--red) calc(50% - 2.5px), var(--red) calc(50% + 2.5px), transparent calc(50% + 2.5px));
  filter: url(#marker);
}
.cell--x:nth-child(2n)::after { inset: 20% 12% 28% 6%; }
.month__yours { position: absolute; z-index: 2; pointer-events: none; font-size: 1.5rem; line-height: 1; transform: rotate(-3deg); white-space: nowrap; }
.month__box { position: absolute; z-index: 3; pointer-events: none; overflow: visible; transition: left .4s cubic-bezier(.6, 0, .2, 1), top .4s cubic-bezier(.6, 0, .2, 1), width .4s ease, height .4s ease; }
.month__box path { fill: none; stroke: var(--red); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: url(#marker); }

.appt { border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 40px); transition: opacity .18s ease; }
.appt.is-fading { opacity: 0; }
.appt__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 700 14px/1.3 var(--sans); color: var(--ink); }
.appt__yours { font-size: 1.35rem; line-height: 1; transform: rotate(-3deg); }
.appt__gain { margin-top: 14px; font: 850 clamp(1.9rem, 2.6vw, 2.6rem)/.98 var(--sans); font-variation-settings: "wdth" 72; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.appt__img { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; margin-top: 22px; filter: grayscale(1) contrast(1.1); }
.appt__who { margin-top: 16px; font-size: 1.05rem; }
.appt__who b { font-weight: 800; }
.appt__cred { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.appt__session { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

.agenda { display: none; margin-top: 34px; background: var(--paper); box-shadow: 0 24px 50px -34px rgba(20, 24, 32, .45); }
.agenda li { border-bottom: 1px solid var(--line); }
.agenda summary { display: grid; grid-template-columns: 54px 1fr auto; gap: 4px 14px; align-items: start; padding: 16px; cursor: pointer; list-style: none; }
.agenda summary::-webkit-details-marker { display: none; }
.agenda__thumb { grid-row: span 3; width: 54px; height: 54px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.agenda__when { font: 700 13px/1.2 var(--sans); color: var(--ink); }
.agenda__when .pen { font-size: 1.1rem; margin-left: 6px; }
.agenda__gain { font: 850 1.35rem/1 var(--sans); font-variation-settings: "wdth" 74; color: var(--ink); }
.agenda__who { font-size: 14px; color: var(--ink-2); }
.agenda__plus { grid-row: 1 / span 3; grid-column: 3; width: 18px; height: 18px; position: relative; margin-top: 4px; transition: transform .25s ease; }
.agenda__plus::before, .agenda__plus::after { content: ""; position: absolute; left: 1px; right: 1px; top: 8px; height: 2px; background: var(--ink); }
.agenda__plus::after { transform: rotate(90deg); }
.agenda details[open] .agenda__plus { transform: rotate(45deg); }
.agenda__more { padding: 0 16px 18px 84px; font-size: 15px; color: var(--ink-2); }
.agenda__more p + p { margin-top: 6px; color: var(--mute); font-size: 13px; }
@media (max-width: 860px) { .month { display: none; } .agenda { display: block; } }

/* =========================================================
   THE RED DIVIDER PAGE
   ========================================================= */
.say { background: var(--red); color: #fff; padding: clamp(110px, 15vw, 220px) var(--gutter); }
.say__inner { max-width: 1120px; margin: 0 auto; }
.say__big { max-width: 14ch; font: 850 clamp(2.9rem, 7.4vw, 7.8rem)/.92 var(--sans); font-variation-settings: "wdth" 64; letter-spacing: -.022em; color: #fff; text-wrap: balance; }
.say__line { margin-top: clamp(44px, 6vw, 72px); max-width: 24ch; font: 700 clamp(1.4rem, 2.6vw, 2.2rem)/1.2 var(--sans); }

/* =========================================================
   BOOK IT IN
   ========================================================= */
.book { background: var(--desk); padding: clamp(96px, 12vw, 170px) var(--gutter); }
.book__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(48px, 7vw, 110px); align-items: center; }
.book__title { font-size: clamp(3rem, 6.6vw, 6.4rem); }
.circled { position: relative; display: inline-block; }
.circled svg { position: absolute; left: -10%; top: -13%; width: 120%; height: 128%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--red); stroke-width: .045em; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#marker); }
.is-drawn path { animation: draw .8s cubic-bezier(.5, 0, .3, 1) .15s forwards; }
.is-done-on-load .circled path, .is-done-on-load .dayplan__box path { stroke-dashoffset: 0; animation: none; }
.book__line { margin: 26px 0 30px; font-size: 1.25rem; color: var(--ink-2); }
.dayplan {
  position: relative; padding: 28px 26px 30px; background: var(--paper); transform: rotate(1.5deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 56px -30px rgba(20, 24, 32, .5);
}
.dayplan__date { font: 400 1.6rem/1 var(--sans); font-variation-settings: "wdth" 90; color: var(--ink); padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.dayplan__date b { font-weight: 850; }
.dayplan__hours li { height: 50px; border-bottom: 1px solid var(--line); position: relative; }
.dayplan__hours span { position: absolute; left: 0; top: 6px; font: 600 12px/1 var(--sans); color: #9aa0aa; font-variant-numeric: tabular-nums; }
.dayplan__body { position: relative; }
.dayplan__slot { position: absolute; left: 40px; right: 0; top: 106px; height: 68px; padding: 10px 14px; }
.dayplan__what { font: 800 1.1rem/1.15 var(--sans); color: var(--ink); }
.dayplan__where { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.dayplan__box { position: absolute; inset: -4px -6px; width: calc(100% + 12px); height: calc(100% + 8px); overflow: visible; }
.dayplan__box path { fill: none; stroke: var(--red); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#marker); }
.dayplan__yours { position: absolute; right: 18px; bottom: 18px; font-size: 1.5rem; line-height: 1; transform: rotate(-4deg); }
.dayplan__yours:empty { display: none; }
@media (max-width: 860px) {
  .book__inner { grid-template-columns: 1fr; }
  .dayplan { max-width: 420px; }
  .book .btn { width: 100%; max-width: 420px; }
}

/* =========================================================
   QUESTIONS, at the back
   ========================================================= */
.faq { padding: clamp(96px, 11vw, 150px) var(--gutter); background: var(--paper); }
.faq__inner { max-width: 1120px; margin: 0 auto; }
.faq__list { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.qa { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 6px 48px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa dt { font: 700 1.1rem/1.35 var(--sans); color: var(--ink); }
.qa dd { color: var(--ink-2); max-width: 60ch; }
.qa__yours { display: block; margin-top: 6px; color: var(--red); font-weight: 600; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* =========================================================
   THE BACK COVER
   ========================================================= */
.back {
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%),
    var(--leather) url("/assets/leather.fcf18289.png");
  background-size: auto, 220px;
  color: #a9a9a9; font-size: 15px;
  padding: 80px var(--gutter) calc(80px + env(safe-area-inset-bottom));
}
.back__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 10px; }
.back__emboss { margin-bottom: 18px; font: 800 clamp(1.7rem, 5vw, 3.6rem)/1 var(--sans); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .04em; color: #2f2f2f !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .18), 0 -1px 1px rgba(0, 0, 0, .95) !important; }
.back__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.back a { color: #e9e9e9; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .3); }
.back__small { margin-top: 18px; font-size: 13px; color: #6f6f6f; }

/* ---------- phone dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transform: translateY(105%); transition: transform .35s cubic-bezier(.6, 0, .2, 1);
}
.dock.is-up { transform: none; }
@media (max-width: 720px) {
  .dock { display: flex; }
  .desk .btn { width: 100%; }
}

/* ---------- the share picture: the desk alone, at 1200 x 630 ---------- */
html.og, html.og body { width: 1200px; height: 630px; overflow: hidden; }
html.og .nav, html.og main > section:not(.desk), html.og .back, html.og .dock, html.og .skip { display: none; }
html.og .desk { width: 1200px; height: 630px; min-height: 0; padding: 50px 56px; grid-template-columns: 380px 1fr; gap: 40px; }
html.og .desk__title { font-size: 5.2rem; }
html.og .desk__meta, html.og .pen--note { display: none; }
