/* raulp.co shared styles: home, talks, 404.
   Palette and type follow the talk decks (indie.md dark theme, warm paper in light mode). */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/dm-sans-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/dm-sans-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/dm-sans-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02FF,U+1E00-1EFF}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #F5F1E8;
  --raised: #FCFAF4;
  --ink: #1A1714;
  --muted: #655D52;
  --line: #DCD3C2;
  --accent: #B5460D;
  --accent-soft: rgba(232, 122, 48, 0.14);
  --glow: rgba(232, 122, 48, 0.16);
  --grain: 0.55;

  /* poster surfaces keep their own palette in both themes */
  --stage: #1A1715;
  --stage-line: rgba(235, 231, 224, 0.12);
  --cream: #EBE7E0;
  --cream-muted: #A69E90;
  --orange: #E87A30;
  --night: #0F1115;
  --night-raised: #1A1D23;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-muted: #9AA0AD;
  --amber: #FFB224;

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --ease: cubic-bezier(.2, .9, .25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --raised: #1F1C19;
    --ink: #EBE7E0;
    --muted: #A0988A;
    --line: #37332F;
    --accent: #EB8947;
    --accent-soft: rgba(232, 122, 48, 0.16);
    --glow: rgba(232, 122, 48, 0.10);
    --grain: 0.3;
    --stage: #1F1C19;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}

/* paper grain and a warm glow, as on the deck */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain);
  background-image:
    radial-gradient(ellipse 60% 50% at 85% 0%, var(--glow), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .22 0'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; -webkit-tap-highlight-color: rgba(232, 122, 48, .18); }
p a, .link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .15s;
}
p a:hover, .link:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #161412; }

h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

.mono, .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label { color: var(--muted); }
.label b { font-weight: 400; color: var(--accent); margin-right: .75em; }

.display { font-family: var(--serif); letter-spacing: -0.015em; line-height: 0.98; }
.display em, .h2 em { font-style: italic; color: var(--accent); }

.h2 { font-family: var(--serif); font-size: clamp(2.5rem, 11vw, 4.25rem); line-height: 1; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .8em 1.35em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .arr { transition: transform .2s var(--ease); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .arr { transform: translateX(3px); }
}
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- header (sticky) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  view-transition-name: site-head;
}
.head-in { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; }
.brand { font-family: var(--serif); font-size: 1.5rem; line-height: 1; padding-block: .6rem; text-decoration: none; letter-spacing: -0.01em; }
.brand i { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.9rem); margin-left: auto; font-size: .9375rem; }
.nav a { padding-block: .5rem; white-space: nowrap; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--orange); }
.head-cta { padding: .5em 1em; font-size: .9375rem; }
html { scroll-padding-top: 5.5rem; }

/* phones: the name row scrolls away, the menu row stays */
@media (max-width: 47.99rem) {
  .site-head { top: -3.75rem; }
  .head-in { flex-wrap: wrap; row-gap: .4rem; padding-block: .6rem 0; }
  .brand { display: inline-flex; align-items: center; height: 2.75rem; padding-block: 0; }
  .head-cta { margin-left: auto; }
  .nav {
    order: 3; flex: 1 0 100%; justify-content: space-between; gap: .9rem;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter)), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding-block: .85rem; }
  html { scroll-padding-top: 4rem; }
}

/* ---------- hero ---------- */
.hero { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); align-items: end; }
@media (min-width: 56rem) { .hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 4rem; } }

.pill {
  display: inline-flex; align-items: center; gap: .7em;
  max-width: 100%;
  padding: .5em 1em .5em .8em;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--raised);
  font-size: .875rem; line-height: 1.3;
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
@media (hover: hover) { .pill:hover { border-color: var(--accent); transform: translateY(-1px); } }
.pill:active { border-color: var(--accent); }
.pill b { font-weight: 500; }
.dot { flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232, 122, 48, .6); }

.hero h1 { font-size: clamp(4.25rem, 15vw, 10.5rem); margin: 1.25rem 0 0 -0.04em; }
.hero .lede { margin-top: 1.75rem; }
.hero .btn-row { margin-top: 2rem; }

.mount {
  justify-self: start;
  padding: .55rem .55rem 2.4rem;
  background: #FCFAF4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 28px 50px -22px rgba(40, 25, 10, .45);
  rotate: 3deg;
  position: relative;
  transition: rotate .4s var(--ease);
}
@media (hover: hover) { .mount:hover { rotate: 0deg; } }
.mount button { display: block; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mount img { width: clamp(9rem, 22vw, 15rem); aspect-ratio: 1; }
.mount::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.mount figcaption { position: absolute; left: 0; right: 0; bottom: .75rem; text-align: center; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #655D52; }
@media (min-width: 56rem) { .mount { justify-self: end; margin-bottom: 1rem; } }
@media (max-width: 55.99rem) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem 1rem; align-items: center; padding-top: 1.75rem; }
  .hero > div { display: contents; }
  .hero .pill { order: -2; grid-column: 1 / -1; justify-self: start; }
  .hero h1 { order: -1; grid-column: 1; margin-top: 0; font-size: clamp(4.25rem, 22vw, 8.5rem); line-height: .86; }
  .hero h1 em { display: block; }
  .mount { order: -1; grid-column: 2; rotate: 4deg; padding: .4rem .4rem 1.6rem; margin-right: .35rem; }
  .mount img { width: clamp(5.75rem, 28vw, 11rem); }
  .mount figcaption { font-size: .5625rem; bottom: .5rem; letter-spacing: .08em; }
  .hero .lede, .hero .btn-row { grid-column: 1 / -1; margin-top: 0; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 29.99rem) { .pill .wide { display: none; } }
@media (max-width: 22.49rem) {
  .hero h1 { font-size: 19vw; white-space: nowrap; }
  .mount img { width: 5rem; }
  .pill { font-size: .75rem; }
}

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > * { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin-top: .5rem; color: var(--muted); font-size: .9375rem; line-height: 1.4; max-width: 15em; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--accent); }
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > * + * { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 47.99rem) { .facts > *:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); } }

/* ---------- sections ---------- */
.section { display: grid; gap: 1.5rem; padding-block: clamp(3.5rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--line); }
.section > .label { align-self: start; }
@media (min-width: 62rem) {
  .section { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 3rem; }
  .section > .label { position: sticky; top: 5.5rem; padding-top: .9rem; }
}
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- talks ---------- */
.talks { display: grid; gap: 1.5rem; }

.talk { border-radius: 1.25rem; overflow: clip; position: relative; isolation: isolate; }
.talk :is(h2, h3) { text-wrap: balance; }
.talk .kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.talk .btn { border-color: transparent; }

/* upcoming: the look of Monday's deck */
.talk--next {
  background: var(--night); color: #F4F2EE;
  border: 1px solid var(--night-line);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: 2rem;
}
.talk--next::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 55% 70% at 100% 0%, rgba(255, 178, 36, .16), transparent 70%);
}
.talk--next::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 178, 36, .13), transparent 70%);
}
@media (hover: hover) { .talk--next:hover::after { opacity: 1; } }
@media (min-width: 52rem) { .talk--next { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); } }

.cal {
  display: inline-grid; justify-items: center; align-content: start; align-self: start;
  width: 6.5rem; padding: .8rem .5rem 1rem;
  border: 1px solid rgba(255, 178, 36, .55); border-radius: 1rem;
  background: var(--night-raised);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--amber);
}
.cal strong { font-family: var(--sans); font-weight: 700; font-size: 3.25rem; line-height: 1.05; letter-spacing: -.04em; color: #F4F2EE; }

.talk--next .kicker { color: var(--amber); display: flex; flex-wrap: wrap; align-items: center; gap: .4em .8em; }
.talk--next .kicker .tag { padding: .2em .7em; border-radius: .35rem; background: var(--amber); color: #14110A; }
.talk--next :is(h2, h3) { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.75rem); line-height: 1.02; letter-spacing: -.045em; margin-top: 1rem; }
.talk--next :is(h2, h3) em { font-style: normal; color: var(--amber); }
.talk--next p.sum { margin-top: 1.25rem; color: var(--night-muted); font-size: 1.125rem; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li { padding: .45em .9em; border: 1px solid var(--night-line); border-radius: .6rem; background: var(--night-raised); font-size: .9375rem; font-weight: 500; }
.chips li span { font-family: var(--mono); font-size: .75rem; color: var(--amber); margin-right: .6em; }
.talk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); }
.talk-foot .where { font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; color: var(--night-muted); line-height: 1.6; }
.talk-foot .where b { font-weight: 400; color: #F4F2EE; }
.talk--next .btn { background: var(--amber); color: #14110A; }

@media (max-width: 51.99rem) {
  .talk--next { grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: center; }
  .talk--next > div:not(.cal) { display: contents; }
  .talk--next .cal { width: 4.5rem; padding: .5rem .25rem .6rem; border-radius: .8rem; font-size: .625rem; }
  .talk--next .cal strong { font-size: 2.1rem; }
  .talk--next .kicker { grid-column: 2; flex-direction: column; align-items: flex-start; gap: .5rem; letter-spacing: .06em; }
  .talk--next :is(h2, h3), .talk--next .sum, .talk--next .chips, .talk--next .talk-foot { grid-column: 1 / -1; }
  .talk--next :is(h2, h3) { margin-top: 1.5rem; font-size: clamp(1.875rem, 9.4vw, 3rem); }
  .talk--next p.sum { font-size: 1.0625rem; }
  .chips { display: grid; gap: 0; border-top: 1px solid var(--night-line); }
  .chips li { padding: .8rem 0; border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0; background: none; }
  .talk-foot { margin-top: 1.4rem; padding-top: 0; border-top: 0; }
  .talk-foot .btn { flex: 1 1 100%; justify-content: center; }
}

/* past: the look of The One-Person Product Team */
.talk--deck { background: var(--stage); color: var(--cream); border: 1px solid var(--stage-line); display: grid; }
.talk--deck::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 15% 0%, rgba(232, 122, 48, .14), transparent 70%);
}
.talk--deck .shot {
  display: block; overflow: clip; background: #161412;
  margin: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem) 0;
  border-radius: .75rem; border: 1px solid var(--stage-line);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9);
  transition: rotate .4s var(--ease), translate .4s var(--ease);
}
.talk--deck .shot img { width: 100%; aspect-ratio: 16 / 9; }
.talk--deck .body { padding: clamp(1.5rem, 3.5vw, 2.75rem); display: grid; align-content: center; gap: 1.1rem; }
.talk--deck .kicker { color: var(--cream-muted); }
.talk--deck :is(h2, h3) { font-family: var(--serif); font-style: italic; font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; letter-spacing: -.01em; }
.talk--deck :is(h2, h3) a { text-decoration: none; }
.talk--deck :is(h2, h3) em { color: var(--orange); }
.talk--deck p.sum { color: #C9C2B6; max-width: 34em; }
.talk--deck blockquote { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; padding-left: 1rem; border-left: 2px solid var(--orange); color: var(--cream); }
.talk--deck .btn { background: var(--orange); color: #161412; }
.talk--deck .btn--ghost { background: transparent; color: var(--cream); border-color: rgba(235, 231, 224, .3); }
.talk--deck .btn--ghost:hover { border-color: var(--cream); }
@media (min-width: 56rem) {
  .talk--deck { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .talk--deck .shot { margin: 2rem 0 2rem 2rem; rotate: -1.5deg; }
  @media (hover: hover) { .talk--deck .shot:hover { rotate: 0deg; translate: 0 -3px; } }
  .talk--deck.talk--full { align-items: start; }
}

@media (max-width: 55.99rem) {
  .talk--deck .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
  .talk--deck .btn-row .btn { justify-content: center; padding-inline: .75em; }
  .talk--deck .btn-row .btn:first-child { grid-column: 1 / -1; }
}
@media (max-width: 22.49rem) { .talk--deck .btn-row { grid-template-columns: 1fr; } }
.talk-notes { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--stage-line); font-size: .9375rem; color: #C9C2B6; }
.talk-notes b { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-right: .75em; }
.talk-files { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9375rem; color: var(--cream-muted); }
.talk-files span { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.talk-files a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(235, 231, 224, .35); }
.talk-files a:hover { text-decoration-color: currentColor; }

.aside-row .btn { justify-self: start; }
.aside-row { display: grid; gap: 1rem 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--raised); }
@media (min-width: 48rem) { .aside-row { grid-template-columns: minmax(0, 1fr) auto; padding: 1.5rem 2rem; } }

/* ---------- ledger (work) ---------- */
.ledger > li { display: grid; gap: .35rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.ledger > li:last-child { border-bottom: 1px solid var(--line); }
.ledger .when { font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em; color: var(--muted); padding-top: .55rem; }
.ledger h3 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; }
.ledger h3 a { text-decoration: none; }
.ledger h3 a:hover { color: var(--accent); }
.ledger .role { font-size: .9375rem; color: var(--muted); margin-top: .2rem; }
.ledger .did { max-width: 34em; }
@media (min-width: 52rem) { .ledger > li { grid-template-columns: 8.5rem minmax(0, .8fr) minmax(0, 1.2fr); align-items: baseline; } .ledger .when { padding-top: 0; } }

/* ---------- small bets ---------- */
.years > li { display: grid; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.years > li + li { margin-top: 2rem; }
.years .year { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.02em; color: var(--muted); }
@media (min-width: 52rem) { .years > li { grid-template-columns: 8.5rem minmax(0, 1fr); } }

.bets a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; align-items: baseline;
  padding: .9rem .75rem; margin-inline: -.75rem;
  border-radius: .75rem;
  text-decoration: none;
  transition: background .2s;
}
.bets li + li { border-top: 1px solid var(--line); }
@media (hover: hover) { .bets a:hover { background: var(--accent-soft); } }
.bets a:active { background: var(--accent-soft); }
.bets strong { font-weight: 500; font-size: 1.125rem; }
.bets span { grid-column: 1; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.bets i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
@media (hover: hover) { .bets a:hover i { color: var(--accent); transform: translate(2px, -2px); } }
@media (min-width: 40rem) {
  .bets a { grid-template-columns: 11rem minmax(0, 1fr) auto; }
  .bets span { grid-column: 2; }
  .bets i { grid-row: 1; grid-column: 3; }
}

/* ---------- podcasts and video ---------- */
.air { display: grid; gap: 1rem; }
@media (min-width: 56rem) {
  .air { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .air .chans { grid-template-columns: 1fr; }
}
.cast { display: grid; align-content: start; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--raised); overflow: clip; }
.cast-shot { position: relative; display: block; margin: clamp(.75rem, 1.6vw, 1.1rem); margin-bottom: 0; border-radius: .75rem; overflow: clip; background: #10131C; }
.cast-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: scale .5s var(--ease); }
.play {
  position: absolute; right: .75rem; bottom: .75rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(20, 17, 14, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 30px -8px rgba(0, 0, 0, .7);
  transition: scale .25s var(--ease), background .2s;
}
.play::after { content: ""; position: absolute; inset: 0; margin: auto; translate: 8%; width: .85rem; height: 1rem; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (hover: hover) {
  .cast-shot:hover img { scale: 1.03; }
  .cast-shot:hover .play { scale: 1.08; background: var(--orange); }
}
.cast-body { display: grid; gap: .9rem; padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.cast .kicker, .chan .kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }
.cast .kicker b { font-weight: 400; color: var(--accent); }
.cast h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.875rem, 3vw, 2.375rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.cast h3 a { text-decoration: none; }
.cast h3 em { font-style: italic; color: var(--accent); }
.cast p.sum { color: var(--muted); text-wrap: pretty; }
.cast-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; margin-top: .35rem; }
.cast .meta { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 29.99rem) { .cast .btn { flex: 1 1 100%; justify-content: center; } }

.read.chan { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: .15rem 1rem; align-content: stretch; min-height: 0; }
.chan img { grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--line); }
.chan .kicker { align-self: end; font-size: .6875rem; }
.chan strong { align-self: start; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.chan strong .nb { white-space: nowrap; color: inherit; font-size: inherit; }
.chan .about, .chan .go { grid-column: 1 / -1; }
.chan .about { margin-top: .9rem; font-size: 1rem; line-height: 1.55; }
.chan .go { margin-top: .9rem; align-self: end; color: var(--ink); }

/* ---------- writing and hobbies ---------- */
.reads { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.read {
  display: grid; gap: .6rem; align-content: space-between; min-height: 11rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--raised);
  text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease);
}
@media (hover: hover) { .read:hover { border-color: var(--accent); transform: translateY(-3px); } }
.read:active { border-color: var(--accent); transform: scale(.985); }
.read strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 2.6vw, 2rem); line-height: 1.1; }
.read span { color: var(--muted); font-size: .9375rem; }

@media (max-width: 43.99rem) { .read { min-height: 0; gap: 1.5rem; } }

.crafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.crafts a { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; height: 100%; }
.crafts strong { display: block; font-weight: 500; transition: color .15s; }
.crafts a:hover strong, .crafts a:active strong { color: var(--accent); }
.crafts span { color: var(--muted); font-size: .9375rem; line-height: 1.45; display: block; }
@media (min-width: 52rem) { .crafts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- contact + footer ---------- */
.contact { padding-block: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(3.5rem, 15.5vw, 7.5rem); }
.contact .lede { margin-top: 1.5rem; }
.contact .btn-row { margin-top: 2rem; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(4.5rem, 8vw, 7rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.now { display: flex; align-items: center; gap: .7em; margin-top: 1.75rem; font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
.now[hidden] { display: none; }
.now.is-away .dot { background: var(--muted); animation: none; box-shadow: none; }

.bots-btn { margin-left: .35em; padding: .25rem .35rem; border: 0; border-radius: .5rem; background: none; font-size: 1rem; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s, rotate .3s var(--ease), scale .3s var(--ease); }
.bots-btn:hover, .bots-btn:focus-visible { filter: none; opacity: 1; rotate: -12deg; scale: 1.25; }
.bot { position: fixed; left: 0; bottom: -3rem; z-index: 40; pointer-events: none; will-change: translate; animation: bot-rise linear both; }
@keyframes bot-rise {
  from { translate: var(--x) 0; rotate: var(--r0); }
  to { translate: calc(var(--x) + var(--sway)) -115vh; rotate: var(--r1); }
}
.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 41; translate: -50% 1rem;
  max-width: calc(100vw - 2rem); padding: .7em 1.2em; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: .9375rem; white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

.site-foot ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-foot a { text-decoration: none; display: inline-block; padding-block: .35rem; }
@media (max-width: 29.99rem) {
  .contact .btn-row .btn, .aside-row .btn, .center .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .aside-row .btn { justify-self: stretch; }
}
.site-foot a:hover { color: var(--ink); }

/* ---------- page heads (talks, 404) ---------- */
.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(4rem, 13vw, 9rem); margin-left: -0.04em; }
.page-head .lede { margin-top: 1.5rem; }
.page-404 { font-size: clamp(3.5rem, 12vw, 8rem); }
.center { min-height: 70vh; padding-block: 2rem 4.5rem; display: grid; align-content: center; justify-items: start; gap: 1.5rem; }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }

/* small touches that are safe for everyone */
a { transition: text-decoration-color .2s, text-underline-offset .2s; }
:is(.lede, .aside-row p, .did) a:hover { text-underline-offset: .32em; text-decoration-color: var(--accent); }
.brand i { display: inline-block; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform-origin: 0 50%; scale: 0 1; }

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 .6em rgba(232, 122, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 122, 48, 0); } }

  /* hero entrance */
  .hero .mount { animation: drop .9s var(--ease) both .25s; }
  @keyframes drop { from { opacity: 0; rotate: 12deg; translate: 0 -1.5rem; } }
  .hero .pill, .hero h1, .hero .lede, .hero .btn-row, .facts { animation: rise .7s var(--ease) both; }
  .hero h1 { animation-delay: .06s; }
  .hero h1 em { display: inline-block; animation: ink .9s var(--ease) both .3s; }
  .hero .lede { animation-delay: .2s; }
  .hero .btn-row { animation-delay: .3s; }
  .facts { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; translate: 0 1rem; } }
  @keyframes ink { from { opacity: 0; translate: -.12em .08em; rotate: -3deg; filter: blur(6px); } }

  /* polaroid: a tap takes a new shot */
  .mount.snap { animation: snap .5s var(--ease); }
  .mount.snap::after { animation: flash .5s ease-out; }
  .mount.snap figcaption { animation: rise .45s var(--ease) both .12s; }
  @keyframes snap { 30% { scale: .96; } 60% { scale: 1.03; rotate: 1deg; } }
  @keyframes flash { 10% { opacity: .85; } }

  /* the dot in my name hops, the play button breathes, avatars lean in */
  .brand:hover i { animation: hop .5s var(--ease); }
  @keyframes hop { 40% { translate: 0 -.35em; } 70% { translate: 0 0; } 85% { translate: 0 -.1em; } }
  .play { animation: ping 2.8s ease-out infinite; }
  @keyframes ping {
    0% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 0 rgba(255, 255, 255, .45); }
    60%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 1rem rgba(255, 255, 255, 0); }
  }
  .chan img { transition: rotate .4s var(--ease), scale .4s var(--ease); }
  @media (hover: hover) { .chan:hover img { rotate: -8deg; scale: 1.08; } }

  /* 404: the sign comes loose */
  .page-404 em { display: inline-block; transform-origin: 0 85%; animation: loose 1.1s cubic-bezier(.3, 1.7, .5, 1) both .9s; }
  @keyframes loose { to { rotate: 4deg; translate: 0 .05em; } }

  /* reading progress in the sticky menu */
  @supports (animation-timeline: scroll()) {
    .site-head::after { animation: progress linear both; animation-timeline: scroll(root block); }
    @keyframes progress { to { scale: 1 1; } }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes reveal { from { opacity: 0; translate: 0 1.75rem; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

@media print {
  body::before { display: none; }
  .reveal { animation: none; }
}

/* small helpers */
.more { margin-top: 1.1rem; }
.more .link { display: inline-block; padding-block: .6rem; }
.contact h2 { margin-top: 1.5rem; }
