@font-face {
  font-family: "Overused Grotesk";
  src: url("/fonts/OverusedGrotesk-VF.woff2") format("woff2") tech("variations"),
       url("/fonts/OverusedGrotesk-VF.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: 255 255 255;
  --fg: 0 0 0;
  --gray-1: 148 148 148;
  --line: 240 240 240;
  --margin: 16px;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fs: 19px;
  --lh: 1.25;
  --fs-lead: 26px;
  --icon: 20px;
  --block-gap: 120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: 10 10 10;
  --fg: 240 240 240;
  --gray-1: 128 128 128;
  --line: 38 38 38;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: 10 10 10;
    --fg: 240 240 240;
    --gray-1: 128 128 128;
    --line: 38 38 38;
    color-scheme: dark;
  }
}
@media (max-width: 768px) {
  :root { --fs: 16px; --lh: 1.3; --fs-lead: 21px; --icon: 16px; --block-gap: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The canvas past the end of the page (under a phone's toolbar, or the bounce at the bottom)
     continues the sign-off band; the page itself and anything above it stay page-coloured. */
  background-color: rgb(var(--fg));
  background-image: linear-gradient(rgb(var(--bg)), rgb(var(--bg)));
  background-repeat: no-repeat;
  background-size: 100% 100000px;
  background-position: 0 100%;
}

body {
  position: relative;
  min-height: 100svh;
  padding: var(--margin);
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font: 400 var(--fs) / var(--lh) "Overused Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* Only while the switch is being used, so a page load never fades in from the other theme */
html.theming, html.theming body, html.theming .nav, html.theming .block, html.theming .rows > *, html.theming .sign {
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}

::selection { background: rgb(var(--fg)); color: rgb(var(--bg)); }

h1, h2, h3 { font: inherit; }
ul, ol { list-style: none; }
p, h1, h2, h3, li, dd, dt { overflow-wrap: break-word; }
p, dd { text-wrap: pretty; }
.intro h1 { text-wrap: balance; }
/* The lead: first sentence of every hero and the title of every entry */
.intro h1, .entry h3 {
  font-size: var(--fs-lead);
  line-height: 1.18;
  letter-spacing: -.02em;
}
.entry .y { padding-top: .2em; }
svg { display: block; }
[id] { scroll-margin-top: var(--margin); }
main:focus { outline: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a {
  color: rgb(var(--gray-1));
  text-decoration: none;
  transition: color .5s var(--ease), text-decoration-color .5s var(--ease);
}
.prose p a, .intro p a, footer p a {
  color: rgb(var(--fg) / .85);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  text-decoration-color: rgb(var(--fg) / .2);
}
.intro p.links a { color: rgb(var(--gray-1)); text-decoration: none; }
@media (hover: hover) {
  a:hover { color: rgb(var(--fg)); }
  .prose p a:hover, .intro p a:hover, footer p a:hover { text-decoration-color: rgb(var(--fg) / .8); }
  .intro p.links a:hover { color: rgb(var(--fg)); }
}
:focus-visible { outline: 1px solid rgb(var(--fg)); outline-offset: 3px; }

.gray { color: rgb(var(--gray-1)); }
.flow > * + * { margin-top: 1em; }
.num, .y { font-variant-numeric: tabular-nums; }

/* 12-column page grid. Everything below the fold aligns to the hero split at column 6. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.c5 { grid-column: 1 / 6; }
.o5 { grid-column: 6 / -1; }
.label { grid-column: 1 / 4; }
.prose { grid-column: 6 / -1; }
.rows { grid-column: 4 / -1; }
@media (max-width: 768px) {
  .c5, .o5, .label, .prose, .rows { grid-column: 1 / -1; }
}

/* Header: sits in the hero's left column on every page */
.site-header {
  position: absolute;
  top: var(--margin);
  left: var(--margin);
  right: var(--margin);
  z-index: 2;
  pointer-events: none;
}
.site-header > .c5 { pointer-events: auto; }
.site-header .name { color: rgb(var(--fg)); }
.menu, .nav-head { display: none; }
.nav { margin-top: 1.25em; }
.nav a { display: flex; }
.nav .n { flex: none; width: 2.4em; }
.nav a[aria-current="page"] { color: rgb(var(--fg)); }

/* Theme switch: a half-filled circle that turns over */
.theme {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgb(var(--fg));
}
.theme svg {
  width: 14px;
  height: 14px;
  transition: transform .8s var(--ease);
}
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
@media (hover: hover) {
  .theme:hover svg { transform: rotate(24deg); }
  :root[data-theme="dark"] .theme:hover svg { transform: rotate(156deg); }
}
.theme:focus-visible { outline-offset: -6px; }

/* Phones and small tablets: a sticky top line, and the menu as a full-screen page */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: calc(-1 * var(--margin)) calc(-1 * var(--margin)) 28px;
    padding: 14px var(--margin);
    pointer-events: auto;
  }
  /* The blur lives on a pseudo-element: a backdrop-filter on the header itself would
     turn it into the containing block for the fixed menu below. */
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(var(--bg) / .86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .site-header > .c5 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .site-header .role { display: none; }
  .menu {
    display: block;
    position: relative;
    z-index: 30;
    margin: -8px -8px -8px auto;
    padding: 8px;
    color: rgb(var(--fg));
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    margin: 0;
    padding: 14px var(--margin) calc(var(--margin) + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    background: rgb(var(--bg));
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  html.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease);
  }
  html.menu-open { overflow: hidden; }
  .nav-head { display: block; }
  .nav ol { margin-top: 44px; }
  .nav li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i) * 45ms);
  }
  .nav li:nth-child(1) { --i: 1; }
  .nav li:nth-child(2) { --i: 2; }
  .nav li:nth-child(3) { --i: 3; }
  .nav li:nth-child(4) { --i: 4; }
  html.menu-open .nav li { opacity: 1; transform: none; }
  .nav a {
    padding: 7px 0;
    font-size: var(--fs-lead);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: rgb(var(--gray-1));
  }
  .nav .n { width: 2.4em; }
  .nav-foot {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }
  .theme { position: static; margin-right: -14px; margin-bottom: -10px; }
}

/* Intro: the right column of the hero */
.intro {
  align-content: start;
  row-gap: 48px;
  min-height: 220px;
}
.intro.tall {
  min-height: calc(100svh - var(--margin) * 2);
  align-content: space-between;
  padding-bottom: 4px;
}
.intro + .block { margin-top: var(--block-gap); }
.intro.tall + .block { margin-top: 0; }
.scroll { display: inline-block; color: rgb(var(--fg)); }
.scroll .icon { width: var(--icon); height: var(--icon); transition: transform .5s var(--ease); }
@media (hover: hover) {
  .scroll:hover { color: rgb(var(--gray-1)); }
  .scroll:hover .icon { transform: translateY(15%); }
}
@media (max-width: 768px) {
  .intro, .intro.tall { min-height: 0; row-gap: 28px; }
  .intro.tall + .block { margin-top: var(--block-gap); }
}

/* Portrait: bottom of the hero's left column, in monochrome until hovered */
.portrait {
  grid-column: 1 / 4;
  grid-row: 2;
  align-self: end;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 290px);
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1);
  transition: filter 1s var(--ease);
}
.scroll-wrap { grid-row: 2; align-self: end; }
@media (hover: hover) {
  .portrait img:hover { filter: none; }
}
@keyframes unveil {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
main.reveal .portrait img {
  animation: unveil 1.2s var(--ease) both;
  animation-delay: .2s;
}
@media (max-width: 768px) {
  .portrait { grid-column: 1 / -1; grid-row: auto; width: 60%; }
  .portrait img { max-height: none; }
  .scroll-wrap { grid-row: auto; }
}

/* Logos: a wall in the content column, rows ruled like everything else */
.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  color: rgb(var(--fg));
}
.logos li {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(var(--line));
}
/* Each mark is trimmed to its own bounding box and sized to the same visual area (see --w/--h) */
.logos svg {
  width: var(--w);
  height: var(--h);
  flex: none;
}
@media (max-width: 768px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li { min-height: 56px; }
  .logos svg { width: calc(var(--w) * .85); height: calc(var(--h) * .85); }
}

/* Blocks: hairline, label left, year/number, content at the split */
.block {
  padding-top: 8px;
  border-top: 1px solid rgb(var(--line));
}
.block + .block { margin-top: var(--block-gap); }
.prose + .rows, .rows + .prose { margin-top: 48px; }
@media (max-width: 768px) {
  .label { margin-bottom: 1em; }
  .prose + .rows, .rows + .prose { margin-top: 32px; }
}

/* Rows */
.rows > * {
  display: block;
  border-bottom: 1px solid rgb(var(--line));
}
.row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 8px 0 4px;
  color: rgb(var(--fg));
  transition: color .5s var(--ease);
}
.rows > :first-child { padding-top: 0; }
.row .y { grid-column: span 2; }
.row .r { grid-column: span 7; position: relative; padding-right: calc(var(--icon) + 12px); }
.row .icon {
  position: absolute;
  right: 0;
  top: .12em;
  width: var(--icon);
  height: var(--icon);
  transition: transform .5s var(--ease);
}
@media (hover: hover) {
  a.row:hover { color: rgb(var(--gray-1)); }
  a.row:hover .icon { transform: translateX(15%); }
  a.row.ext:hover .icon { transform: translate(10%, -10%); }
}
a.row:active { color: rgb(var(--gray-1)); }
.row .detail {
  grid-column: 3 / -1;
  margin-top: 1em;
  padding-right: calc(var(--icon) + 12px);
  padding-bottom: 20px;
}
.detail dt { color: rgb(var(--gray-1)); }
.detail dd + dt { margin-top: 1em; }
@media (max-width: 768px) {
  .row { grid-template-columns: 5.6em minmax(0, 1fr); }
  .row .y { grid-column: 1; }
  .row .r { grid-column: 2; }
  .row .detail { grid-column: 1 / -1; padding-right: 0; padding-bottom: 24px; }
  /* Entries: number above, so the lead-size title gets the full width */
  .entry { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .entry .y { padding-top: 0; color: rgb(var(--gray-1)); }
  .entry .r { grid-column: 1; padding-right: 0; }
}

/* Footer */
footer {
  margin-top: 200px;
  align-items: end;
}
@media (max-width: 768px) {
  footer { margin-top: 96px; row-gap: 32px; }
}

/* Sign-off: an inverted band under the footer carrying the wordmark at content width.
   The letters are strokes in the page colour; the band itself is the box. */
.sign {
  margin: 64px calc(-1 * var(--margin)) calc(-1 * var(--margin));
  padding: 112px var(--margin) calc(112px + env(safe-area-inset-bottom, 0px));
  background: rgb(var(--fg));
  /* Paints over the sub-pixel seam some phones show between the band and the toolbar */
  box-shadow: 0 2px 0 rgb(var(--fg));
}
.wordmark {
  display: block;
  width: min(34%, 550px);
  height: auto;
  overflow: visible;
}
.wordmark .g {
  fill: none;
  stroke: rgb(var(--bg));
  stroke-width: 16;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  transition: stroke .6s var(--ease);
}
.wordmark .dot { fill: rgb(var(--bg)); stroke: none; transition: fill .6s var(--ease); }
/* Glyphs rise in with a short stagger once the band is in view (class set by app.js) */
.wordmark .glyph {
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i) * 35ms);
}
html.js .sign:not(.in) .glyph { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  html.js .sign:not(.in) .glyph { opacity: 1; transform: none; }
}
@media (max-width: 768px) {
  .sign { margin-top: 48px; padding: 64px var(--margin); }
  .wordmark { width: 66%; }
}

/* Cursor: a dot that inverts whatever it is over; mouse only, added by app.js */
html.dot, html.dot * { cursor: none !important; }
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity .3s var(--ease), width .35s var(--ease), height .35s var(--ease);
  will-change: transform;
}
.cursor.on { opacity: 1; }
.cursor.link { width: 24px; height: 24px; }
.cursor.down { width: 6px; height: 6px; }
.cursor.link.down { width: 18px; height: 18px; }

/* Motion: pages leave quickly, arrive in a short stagger */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
main.reveal .intro > *, main.reveal .block {
  animation: rise .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
main.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .15s ease-in, transform .15s ease-in;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
