/* Fennar Ralston. Newsreader and IBM Plex Mono are self-hosted (SIL OFL, see assets/fonts). */
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f4f1ea;
  --ink: #12161b;
  --quiet: #50565c;
  --rule: #12161b;
  --hair: #cfcabd;
  --signal: #bf2e17;
  --night: #0e1216;
  --night-ink: #ece8df;
  --night-quiet: #a9adab;
  --night-signal: #ff8a6b;
  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1216;
    --ink: #ece8df;
    --quiet: #a9adab;
    --rule: #ece8df;
    --hair: #2f353b;
    --signal: #ff8a6b;
    --night: #1a2026;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); line-height: 1.5; font-optical-sizing: auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); line-height: 1.15; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.mono, .eyebrow, dt { font-family: var(--mono); font-size: .8rem; line-height: 1.5; letter-spacing: .01em; }
.eyebrow { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--signal); margin-bottom: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: 8px; }

/* top bar */
.bar { border-bottom: 2px solid var(--rule); }
.bar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; padding-block: .8rem; }
.bar__name { font-family: var(--mono); font-weight: 500; font-size: .85rem; text-decoration: none; }
.bar__nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); font-family: var(--mono); font-size: .85rem; }
.bar__nav a { text-decoration: none; padding-block: .3rem; }
.bar__nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.bar__mail { color: var(--signal); }
.narrow { display: none; }

/* hero: name set big, picture hard against the rule */
.hero { position: relative; overflow: hidden; }
.hero__swath { position: absolute; left: 0; top: 0; width: 100%; height: min(23vw, 21.5rem); pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero__swath path { fill: none; stroke: var(--signal); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .55; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero__text { grid-column: 1; }
.hero h1 { font-size: clamp(4.1rem, 11vw, 10.5rem); line-height: .86; letter-spacing: -.035em; font-weight: 300; margin-bottom: 1.2rem; }
.hero__role { font-size: .9rem; font-weight: 500; margin-bottom: 1.1rem; }
.hero__lead { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.28; max-width: 34em; }
.hero__pic { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.hero__topics { grid-column: 1; margin-top: 1.6rem; }
.hero__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.hero__cta .eyebrow { margin: 0; flex-basis: 100%; }
.marks { position: relative; }
.marks::before, .marks::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--signal); }
.marks::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.marks::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

.topics { display: flex; flex-wrap: wrap; gap: .1rem 0; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); line-height: 1.3; font-style: italic; }
.topics li:not(:last-child)::after { content: "/"; font-style: normal; color: var(--signal); margin: 0 .45em; }
.topics--col { display: block; columns: 2; column-gap: 2rem; font-size: 1.3rem; }
.topics--col li { break-inside: avoid; padding-block: .2rem; }
.topics--col li::after { display: none; }

.bigmail { font-size: clamp(1.32rem, .9rem + 2.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; text-decoration-thickness: 2px; overflow-wrap: anywhere; color: var(--signal); }
.btn { display: inline-block; font-family: var(--mono); font-size: .85rem; font-weight: 500; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.more { font-family: var(--mono); font-size: .85rem; font-weight: 500; display: inline-block; margin-top: 1.5rem; }

/* proof strip: dark band, the one loud thing after the name */
.proof { background: var(--night); color: var(--night-ink); padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.proof .eyebrow { color: var(--night-signal); }
.proof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); }
.proof__grid li { border-top: 1px solid #5b6268; padding-top: .7rem; }
.proof__grid strong { display: block; font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .4rem; }
.proof__grid span { display: block; font-family: var(--mono); font-size: .8rem; line-height: 1.5; color: var(--night-quiet); }

/* sections */
.split { padding-block: clamp(2.5rem, 6vw, 5rem); }
.split--rule { border-top: 1px solid var(--rule); }
.split--night { background: var(--night); color: var(--night-ink); border-top: 0; }
.split--night .eyebrow { color: var(--night-signal); }
.split__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.split__in h2 + .mono { margin-top: .8rem; }
.split > .wrap > h2, .pagehead h1 { margin-bottom: 1.5rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem); }
.two h3 { margin-bottom: .6rem; }
.prose { max-width: 38em; }
.prose p + p { margin-top: .9em; }
.pagehead { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.pagehead h1 { font-size: clamp(3.4rem, 10vw, 8rem); line-height: .9; letter-spacing: -.03em; font-weight: 300; }
.lead { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.28; max-width: 34em; margin-bottom: 1.4rem; }

/* talks */
.talk h2 { margin-bottom: 1.4rem; max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 3vw, 3rem); }
.facts div { border-top: 1px solid var(--rule); padding-top: .5rem; min-width: 0; }
.facts--wide { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
dt { color: var(--quiet); }
dd { font-size: 1.05em; line-height: 1.3; overflow-wrap: anywhere; }
.log li { padding-block: 1rem; border-top: 1px solid var(--rule); }
.log li:last-child { border-bottom: 1px solid var(--rule); }
.log h3 { margin-block: .2rem; }
.coord { color: var(--quiet); }
.ticks li { padding: .55rem 0; border-top: 1px solid var(--hair); line-height: 1.3; }
.plot { margin-top: 2rem; width: 100%; }
.plot .g { stroke: var(--hair); stroke-width: 1; }
.plot .t { stroke: var(--signal); stroke-width: 1.5; opacity: .5; }
.plot .t2 { stroke-dasharray: 3 7; }
.plot circle { fill: var(--ink); }
.plot text { font-family: var(--mono); font-size: 26px; fill: var(--ink); }

/* video facade: nothing from Google loads until pressed */
.video { min-width: 0; }
.video__poster, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--night); color: var(--night-ink); text-decoration: none; overflow: hidden; }
.video__poster:hover { color: var(--night-ink); }
.video__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.video__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,18,22,.88), rgba(14,18,22,.15) 55%, rgba(14,18,22,0)); }
.video__play, .video__text { z-index: 1; }
.video__play { position: absolute; left: 50%; top: 42%; width: clamp(56px, 11vw, 96px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--night-signal); }
.video__play::after { content: ""; position: absolute; left: 39%; top: 28%; border-style: solid; border-width: clamp(12px, 2.4vw, 22px) 0 clamp(12px, 2.4vw, 22px) clamp(20px, 4vw, 36px); border-color: transparent transparent transparent #0e1216; }
.video__poster:hover .video__play { background: #fff; }
.video__text { position: absolute; left: clamp(.8rem, 2.5vw, 1.6rem); right: 1rem; bottom: clamp(.6rem, 2vw, 1.2rem); display: grid; gap: .1rem; }
.video__text strong { font-weight: 400; font-size: clamp(1.3rem, .9rem + 2.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.video__text .mono { font-size: clamp(.68rem, .6rem + .3vw, .8rem); color: var(--night-quiet); }
.video figcaption { color: var(--quiet); margin-top: .6rem; }

/* press */
.bio { border-top: 2px solid var(--rule); padding-top: .7rem; min-width: 0; }
.bio__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; min-height: 2.6rem; }
.bio__head h3 { margin: 0; }
.bio__head .btn { padding: .3rem .7rem; }
.bio__text p + p { margin-top: .8em; }
.bio__text strong { font-weight: 600; }
.two--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.status { min-height: 1.5em; margin-top: .8rem; color: var(--signal); }
.shot { max-width: 340px; }
.split__in .btn { margin-top: 1.2rem; }
.split__in .btn + .mono, .split__in p + .mono { margin-top: .5rem; color: var(--quiet); }
.pubs li { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.pubs li:last-child { border-bottom: 1px solid var(--rule); }
.pubs h3 { margin-block: .25rem .4rem; }
.pubs h3 a { text-decoration: none; }
.pubs h3 a:hover { text-decoration: underline; }
.pubs .mono { color: var(--quiet); }
.pull p { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.2; font-style: italic; letter-spacing: -.01em; max-width: 26em; }

/* close and foot */
.close { background: var(--night); color: var(--night-ink); padding-block: clamp(2.5rem, 7vw, 6rem); }
.close .eyebrow { color: var(--night-signal); }
.close h2 { margin-bottom: 1rem; }
.close .bigmail { color: var(--night-signal); font-size: clamp(1.4rem, .8rem + 3.6vw, 3.6rem); }
.close .mono { margin-top: 1rem; color: var(--night-quiet); }
.foot { border-top: 2px solid var(--rule); padding-block: 2rem 2.5rem; font-size: 1rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.foot__name { font-size: 1.4rem; line-height: 1.2; }
.foot .mono { color: var(--quiet); }
.foot li { padding-block: .1rem; }
.foot__note { font-style: italic; color: var(--quiet); }
.lost { min-height: 80vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 300; margin-bottom: 1.5rem; }
.lost p + p { margin-top: 1.2rem; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .hero__pic, .hero__topics, .hero__cta { grid-column: 1; grid-row: auto; }
  .hero__pic { order: 3; margin-top: 2rem; max-width: 440px; }
  .hero__topics { order: 1; }
  .hero__cta { order: 2; }
  .hero__swath { display: none; }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__in, .two, .two--wide, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wide { display: none; }
  .narrow { display: inline; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .plot { display: none; }
  .topics--col { columns: 1; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .bar, .close, .video, .btn { display: none; } }
.video__more { margin-top: 1rem; }
