@font-face { font-family: "Graphik"; src: url("assets/fonts/Graphik-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Graphik"; src: url("assets/fonts/Graphik-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* Biro Script (Typodermic), copied from Serene's installed fonts: check its licence covers websites before launch */
@font-face { font-family: "Biro Script"; src: url("assets/fonts/BiroScriptUSPlus-Regular.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #fff;
  --ink: #1f1f1f;
  --soft: #6b6b6b;
  --line: #c9c7c1;
  --panel: #f5f4f1;
  --edge: clamp(24px, 5vw, 72px);
  --text: 640px;
  --media: var(--text); /* visuals share the text column, so every edge lines up */
  --page: 1120px; /* the whole page sits in this centred width on big screens */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body { margin: 0; background-color: var(--bg); color: var(--ink); font: 400 17px/1.5 "Graphik", system-ui, -apple-system, sans-serif; letter-spacing: -.006em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
b { font-weight: 500; }

main { max-width: var(--page); margin-inline: auto; padding: calc(var(--edge) + 24px) var(--edge) var(--edge); }

.nav { position: fixed; top: calc(var(--edge) + 24px); right: max(var(--edge), calc((100vw - var(--page)) / 2 + var(--edge))); text-align: right; }
.nav a { display: block; text-decoration: none; line-height: 1.75; white-space: nowrap; transition: color .15s; }
.nav a:hover { text-decoration: underline; text-decoration-color: currentColor; }
/* once you're in a section, it stays black and the other links go grey */
.nav.tracking a:not([aria-current]) { color: var(--soft); }
.nav .gap { margin-top: 18px; }

/* the photo sits inside the title, between the words */
/* hero, styled like the LinkedIn banner: inline photos between the words, and "Serene!" selected like in a design tool */
h1 { max-width: 880px; font-size: 68px; font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.nowrap { white-space: nowrap; position: relative; }
.portrait, .inline-photo { display: inline-block; width: 1.4em; height: .82em; border-radius: 10px; object-fit: cover; vertical-align: -.1em; }
.portrait { object-position: 50% 22%; cursor: pointer; }
.sel { position: relative; display: inline-block; padding: 0 .16em .04em; border: 2px solid #2f55e4; background: #e4eaff; color: #2f55e4; line-height: 1.05; }
.sel i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid #2f55e4; }
.sel i:nth-of-type(1) { left: -8px; top: -8px; } .sel i:nth-of-type(2) { right: -8px; top: -8px; }
.sel i:nth-of-type(3) { left: -8px; bottom: -8px; } .sel i:nth-of-type(4) { right: -8px; bottom: -8px; }
h1 .cursor { position: absolute; right: -.1em; bottom: -.42em; width: .38em; height: .46em; overflow: visible; }
h1 .cursor path { fill: #fff; stroke: #111; stroke-width: 1.2; stroke-linejoin: round; }
.bio { margin-top: 40px !important; }
.bio { max-width: var(--text); margin-top: 24px; }
.bio p + p { margin-top: .8em; }

section { margin-top: 112px; }
h2 { max-width: var(--text); font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.018em; }
.dash { margin-right: .1em; }
.why { max-width: var(--text); margin-top: 12px; color: var(--ink); }
.why + .entry, .why + .photo, .why + .pair { margin-top: 40px; }

/* mini case study: small labels on the left, the story on the right */
.case { display: grid; grid-template-columns: 112px 1fr; gap: 10px 20px; max-width: var(--text); margin: 18px 0 0; }
.case dt { font-size: 14px; font-weight: 500; line-height: 1.75; }
.case dd { margin: 0; }

/* accordion: heading + why stay visible, the work folds away */
.toggle { display: none; }
/* colours from the Pinterest 2026 palette reference: Wasabi, Orange Topaze, Cool Blue */
.folding .toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 16px 10px 20px; border: 0; border-radius: 99px; background: var(--btn, #e9f056); color: var(--btn-ink, #3a3b10); font: inherit; font-weight: 500; cursor: pointer; transition: filter .15s, translate .15s; }
.folding .toggle:hover { filter: brightness(.96); translate: 0 -1px; }
#tools .toggle { --btn: #e9f056; --btn-ink: #3a3b10; }
#talks .toggle { --btn: #ff5c34; --btn-ink: #351e28; }
#apps .toggle { --btn: #d7efff; --btn-ink: #23455e; }
/* final call to action in Cassis, the darkest swatch, so it reads as the ending */
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 18px 12px 22px; border-radius: 99px; background: #351e28; color: #f3dfe9; font-weight: 500; text-decoration: none; transition: filter .15s, translate .15s; }
.cta:hover { filter: brightness(1.25); translate: 0 -1px; }
.cta .sign { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 14px; line-height: 1; }
.toggle .sign { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .55); font-size: 17px; line-height: 1; transition: rotate .3s ease; }
.toggle[aria-expanded="true"] .sign { rotate: 45deg; }
.folding .fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.folding .fold.open { grid-template-rows: 1fr; }
.folding .fold-inner { min-height: 0; overflow: hidden; }
.fold-inner > :first-child { margin-top: 40px; }
.folding section { margin-top: 72px; }

.entry { margin-top: 56px; }
h2 + .entry { margin-top: 32px; }
.entry > p { max-width: var(--text); }
.frame { position: relative; display: grid; place-items: center; width: 100%; max-width: var(--media); margin-top: 18px; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; }

/* Fred: on the left, Fred himself with his real Slack message; on the right, the Claude video about building him */
.frame.fred-frame { aspect-ratio: auto; padding: 6%; }
/* two cards of equal height: Fred with his Slack message tucked inside, and the Claude video */
/* Fred's square video and the 9:16 Claude video: column widths in the same 16 : 9 ratio,
   so both cards come out exactly the same height with nothing cropped or stretched */
.fred { display: grid; grid-template-columns: 16fr 9fr; gap: 4%; align-items: start; width: 100%; }
/* Fred is drawn a little smaller so his whole body shows; the card's gradient continues his video's
   blue backdrop (sampled from the video), and the video's edges fade into it */
.fred-left { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: linear-gradient(#6b8cd1, #a3b7fe 74%, #a3b7fe); }
.fred-left video { position: absolute; top: 3%; left: 15%; width: 70%; height: auto; aspect-ratio: 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
.fred-left .slack { position: absolute; left: 7%; right: 7%; bottom: 5%; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .45); }
.fred-left .slack .avatar { width: 26px; height: 26px; border-radius: 5px; }
.fred-left .slack small { font-size: 11px; }
.fred .reel { border-radius: 6px; }
/* styled like a real Slack message: avatar, bold name, APP tag, time, blue @mention */
.slack { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #fff; color: #1d1c1d; font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.slack .avatar { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.slack .who { display: flex; align-items: baseline; gap: 6px; }
.slack .who b { font-weight: 700; }
.slack .app { padding: 0 4px; border-radius: 3px; background: #e8e8e8; color: #616061; font-size: 10px; font-weight: 700; line-height: 16px; }
.slack small { color: #616061; font-size: 12px; }
.slack p + p { margin-top: 2px; }
.slack .mention { padding: 0 2px; border-radius: 3px; background: rgba(29, 155, 209, .1); color: #1264a3; }

/* Production board: the old paper sheet next to the new app, same height, with handwritten notes */
.frame.board-frame { aspect-ratio: auto; padding: 6%; }
.board-pair { display: grid; grid-template-columns: 909fr 562fr; gap: 5%; align-items: end; width: 100%; }
.board-pair figure { margin: 0; }
.board-pair img, .board-pair video { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(31, 31, 31, .08); }
.board-pair img { aspect-ratio: 818 / 900; rotate: -1.5deg; }
.board-pair video { aspect-ratio: 600 / 1068; object-fit: cover; }
/* handwritten notes with wobbly arrows, a little crooked on purpose */
/* handwritten note above each picture */
.board-pair figure { position: relative; }
.scrawl { position: relative; z-index: 2; min-height: 2.2em; padding-bottom: 12px; font-family: "Biro Script", "Reenie Beanie", cursive; font-size: 20px; line-height: 1; color: var(--scrawl, #2443a8); } /* blue ballpoint ink */
html[data-theme="cassis"] { --scrawl: #d7efff; } /* blue ink would vanish on the dark Cassis theme */
.scrawl span { display: inline-block; rotate: -3deg; }
.scrawl.right { text-align: right; }
.scrawl.right span { rotate: 2deg; }

.frame.video video { width: 88%; border-radius: 4px; }

.photo { width: 100%; max-width: var(--media); margin-top: 18px; }
/* talks gallery, mosaic: the group photo big on the left; on the right, three photos on top,
   then the panel photo (two slots wide) and one more underneath */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 300px; max-width: var(--media); }
.gallery .pano { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 4px; }
.gallery .wide { grid-row: 1 / 3; }
.recent { max-width: var(--text); margin-top: 48px; }
.recent + .list { margin-top: 8px; }

.list { max-width: var(--text); margin-top: 40px; }
.list li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding-block: 12px; }
.date { color: var(--soft); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; max-width: var(--media); margin-top: 32px; }
.pair .frame { aspect-ratio: 4 / 5; margin-top: 0; }
.pair .frame img, .pair .frame video { position: absolute; top: 7%; left: 50%; translate: -50% 0; width: auto; max-width: none; height: 86%; border-radius: 10px; }
.pair .frame video { aspect-ratio: 9 / 16; object-fit: cover; }
.pair p { margin-top: 14px; }

.subhead { margin-top: 64px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: var(--media); margin-top: 14px; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--panel); }
.reel video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.sound { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #1f1f1f; font: inherit; font-size: 13px; cursor: pointer; }
.trio p { margin-top: 12px; font-size: 15px; line-height: 1.45; }

footer { max-width: var(--page); margin: 112px auto 0; padding: 28px var(--edge) var(--edge); color: var(--soft); font-size: 15px; }
footer::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 28px; background: var(--line); }
footer p { max-width: var(--text); }
footer p + p { margin-top: 6px; }
.refill { padding: 0 2px; border: 0; background: none; font: inherit; font-size: 17px; cursor: pointer; transition: rotate .2s; }
.refill:hover { rotate: -14deg; }
.refill:active { rotate: 14deg; }
.count { font-variant-numeric: tabular-nums; }
.fine { margin-top: 20px !important; font-size: 13px; }
.hint { margin-top: 14px !important; }
.key { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; line-height: 1; cursor: pointer; vertical-align: 1px; transition: translate .1s; }
.key:hover { border-color: var(--soft); }
.key:active { translate: 0 1px; border-bottom-width: 1px; }

@media (max-width: 1060px) {
  html { scroll-padding-top: 72px; }
  .nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 14px; padding: 12px var(--edge); overflow-x: auto; background: var(--bg); font-size: 15px; transition: background-color .5s ease; text-align: left; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .gap { margin-top: 0; }
  main { padding-top: 32px; }
}
@media (max-width: 600px) {
  :root { --edge: 24px; }
  body { font-size: 16px; }
  h1 { font-size: 46px; }
  .sel i { width: 10px; height: 10px; }
  h2 { font-size: 22px; }
  section { margin-top: 88px; }
  .pair { grid-template-columns: 1fr; }
  .frame.fred-frame { padding: 20px; }
  .fred { grid-template-columns: 1fr; gap: 20px; }
  .fred .reel { width: 72%; margin-inline: auto; }
  .board-pair { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; height: auto; gap: 6px; }
  .gallery .wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery img:not(.wide) { aspect-ratio: 4 / 5; }
  .gallery .pano { aspect-ratio: auto; }
  .board-pair figure:last-child { width: 64%; margin-inline: auto; }
  .list li { grid-template-columns: 1fr; gap: 0; }
  .case { grid-template-columns: 1fr; gap: 2px; }
  .case dd { margin-bottom: 12px; }
  .trio { display: flex; gap: 12px; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio > div { flex: 0 0 72%; scroll-snap-align: start; }
}
/* Easter egg: press ← or → to recolour the page with the Pinterest 2026 palette */
body, .why, .date, footer, .frame, .reel { transition: background-color .5s ease, color .5s ease; }
html[data-theme="wasabi"] { --bg: #e9f056; --ink: #351e28; --soft: #5b4250; --line: rgba(53, 30, 40, .3); --panel: rgba(255, 255, 255, .45); }
html[data-theme="blue"]   { --bg: #d7efff; --ink: #1e3a50; --soft: #48667c; --line: rgba(30, 58, 80, .3); --panel: rgba(255, 255, 255, .55); }
html[data-theme="sauge"]  { --bg: #aeb8a0; --ink: #23291c; --soft: #444d3a; --line: rgba(35, 41, 28, .35); --panel: rgba(255, 255, 255, .35); }
html[data-theme="orange"] { --bg: #ff5c34; --ink: #2a0f14; --soft: #4d1d16; --line: rgba(42, 15, 20, .35); --panel: rgba(255, 255, 255, .3); }
html[data-theme="cassis"] { --bg: #351e28; --ink: #f3dfe9; --soft: #c9a9bd; --line: rgba(243, 223, 233, .3); --panel: rgba(255, 255, 255, .07); }
/* buttons never match the background they sit on */
html[data-theme="wasabi"] #tools .toggle { --btn: #351e28; --btn-ink: #e9f056; }
html[data-theme="blue"] #apps .toggle, html[data-theme="sauge"] #apps .toggle { --btn: #fff; --btn-ink: #1e3a50; }
html[data-theme="orange"] #talks .toggle { --btn: #351e28; --btn-ink: #ff5c34; }
html[data-theme]:not([data-theme="default"]) .cta { background: var(--ink); color: var(--bg); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 51; max-width: calc(100% - 40px); padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); translate: -50% 16px; opacity: 0; transition: opacity .25s ease, translate .25s ease; pointer-events: none; }
.toast.show { translate: -50% 0; opacity: 1; }
.toast span { opacity: .65; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .folding .fold, .toggle .sign { transition: none; } }
