@font-face {
  font-family: "Satoshi";
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/satoshi-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --ground: #F4F1E8;
  --line: #1E2C73;
  --ink: #111A4E;
  --tint: rgb(30 44 115 / .06);
  --grid: rgb(30 44 115 / .05);
  --solid: #1E2C73;
  --on-solid: #F4F1E8;
  --focus: #D8432E;
  --gutter: max(1.25rem, 5vw, calc((100% - 1248px) / 2));
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --ground: #0C122E;
  --line: #E6EEF8;
  --ink: #F5F8FC;
  --tint: rgb(230 238 248 / .07);
  --grid: rgb(230 238 248 / .04);
  --on-solid: #F5F8FC;
  --focus: #F4D46A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--ground); view-transition-name: none; scrollbar-color: var(--line) var(--ground); scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  view-transition-name: page;
  background: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Satoshi", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--line); color: var(--ground); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
ul, ol { list-style: none; padding: 0; }
.defs { position: absolute; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p, dd { text-wrap: pretty; }

.wrap { padding-inline: var(--gutter); }

.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  min-height: 3rem;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.cell {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--line);
  text-decoration: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  transition: background-color .2s;
}
a.cell:hover, .print:hover { background: var(--tint); }
.name { font-weight: 600; }
.nav, .solid, .print-label { display: none; }
.print { margin-left: auto; border-right: 0; border-left: 1px solid var(--line); cursor: pointer; }
.swatch { width: 14px; height: 14px; border: 1px solid var(--line); background: #0C122E; }
[data-theme="dark"] .swatch { background: #F4F1E8; }
.solid { color: var(--ground); background: var(--line); border-right: 0; }
a.solid:hover { background: var(--ink); }
.menu { cursor: pointer; }
.menu svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.menu path { transform-origin: 10px 10px; transition: transform .2s var(--ease); }
.menu[aria-expanded="true"] path:first-child { transform: rotate(45deg) translateY(3px); }
.menu[aria-expanded="true"] path:last-child { transform: rotate(-45deg) translateY(-3px); }

@media (max-width: 639.98px) {
  .bar { display: grid; grid-template-columns: 3rem 1fr 3rem; }
  .name { grid-column: 2; justify-content: center; border-right: 0; }
  .print { grid-area: 1 / 1; justify-content: center; padding: 0; margin: 0; border-left: 0; border-right: 1px solid var(--line); }
  .menu { grid-area: 1 / 3; justify-content: center; padding: 0; border-right: 0; border-left: 1px solid var(--line); }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; background: var(--ground); border-block: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path .2s ease-out, display .2s allow-discrete; }
  .menu[aria-expanded="true"] + .nav { display: flex; clip-path: inset(0); animation: drop .3s var(--ease); }
  .menu[aria-expanded="true"] + .nav .cell { animation: draw .35s var(--ease) backwards; }
  .menu[aria-expanded="true"] + .nav .cell:nth-child(2) { animation-delay: 50ms; }
  .menu[aria-expanded="true"] + .nav .cell:nth-child(3) { animation-delay: 100ms; }
  .menu[aria-expanded="true"] + .nav .cell:nth-child(4) { animation-delay: 150ms; }
  .nav .cell { min-height: 3.25rem; padding-inline: var(--gutter); border-right: 0; }
  .nav .cell + .cell { border-top: 1px solid var(--line); }
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding-block: 3.5rem 3rem;
}
h1 {
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--line);
}
h1 span {
  display: block;
  margin-top: .875rem;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: 0;
}
.hero-side { display: grid; gap: 1.75rem; max-width: 34rem; }
.hero-side p { font-size: 1.125rem; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 26rem; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ground);
  background: var(--line);
  border: 1px solid var(--line);
  transition: background-color .2s, border-color .2s, scale .12s ease-out;
}
.btn:active { scale: .98; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { color: var(--line); background: none; }
.btn-line:hover { background: var(--tint); border-color: var(--line); }

.facts { display: grid; border-block: 1px solid var(--line); }
.facts div { padding: 1rem 0; }
.facts div + div { border-top: 1px solid var(--line); }
dt { font-size: .875rem; font-weight: 600; color: var(--line); }

.section { padding-block: 4.5rem 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--line);
}
.section-head p { max-width: 38rem; font-size: 1.125rem; }
.tag { display: block; margin-top: .75rem; font-size: .9375rem; font-weight: 500; color: var(--line); }
.letter {
  display: block;
  font: 400 .875rem/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
}
h2 .letter { margin-bottom: 1rem; }

.index { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.index a {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  height: 100%;
  padding: 1.25rem;
  text-decoration: none;
  background: var(--ground);
  transition: background-color .25s var(--ease);
}
.index a:hover { background: color-mix(in srgb, var(--line) 6%, var(--ground)); }
.index .letter { margin-bottom: 1.5rem; color: var(--line); }
.index strong { font-size: clamp(1.625rem, 6vw, 2.125rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; color: var(--line); }

.panel { display: grid; border: 1px solid var(--line); }
.panel-body { padding: 0 1.25rem 1.5rem; }
.schedule { margin-bottom: 1.25rem; }
.schedule > div { padding: 1rem 0; }
.schedule > div + div { border-top: 1px solid var(--line); }
dt { margin-bottom: .25rem; }
dd { max-width: 62ch; }
dd p + p { margin-top: .625em; }
.out, .entries a, .links a { font-weight: 500; color: var(--line); }
.out, .links a { display: inline-flex; align-items: center; gap: .3rem; }
.entries a svg { margin-left: .3rem; vertical-align: -.1em; }
.out { min-height: 44px; }
a svg { width: 1em; height: 1em; flex: none; transition: translate .2s var(--ease); }
a:hover svg { translate: 2px -2px; }
figure { position: relative; padding: 1.5rem 1.25rem; border-top: 1px solid var(--line); background: var(--bg); }
[data-theme="dark"] figure { background: color-mix(in oklab, var(--bg), #000 40%); }
figure .logo { width: auto; height: 2.5rem; margin-bottom: 1.5rem; }
figure .mark { height: 1.75rem; }
figure img { margin-inline: auto; }
figcaption { margin-top: 1rem; font-size: 1rem; line-height: 1.4; font-weight: 500; text-align: center; color: #fff; }
figcaption span { display: block; font-size: .875rem; font-weight: 400; }
figure.tall img { max-width: min(72%, 300px); }

.entries { border-block: 1px solid var(--line); }
.entries li { display: grid; gap: .25rem; padding: 1.25rem 0; }
.entries li + li { border-top: 1px solid var(--line); }
time, .kind { font: 400 .875rem/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--line); }
.entries h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.entries p { max-width: 52ch; }

.close { margin-top: 6rem; }
.close-cta {
  display: grid;
  gap: 1.75rem;
  padding-block: 3.5rem;
  color: var(--on-solid);
  background: var(--solid);
}
.close-cta h2 { font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
.close-cta p { margin-top: 1rem; font-size: 1.125rem; }
.close-cta .btn { color: var(--solid); background: var(--on-solid); border-color: var(--on-solid); }
.close-cta .btn:hover { background: color-mix(in srgb, var(--on-solid) 88%, var(--solid)); }
.close-cta .btn-line { color: var(--on-solid); background: none; }
.close-cta .btn-line:hover { background: color-mix(in srgb, var(--on-solid) 12%, var(--solid)); }
.close-cta :focus-visible { outline-color: var(--on-solid); }
.close-foot { display: grid; gap: 1rem; padding-block: 1.5rem 2rem; font-size: .9375rem; }
.links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.links a { min-height: 44px; }

@media (min-width: 640px) {
  .nav { display: flex; }
  .menu { display: none; }
  .nav .cell:first-child { border-left: 0; }
  .solid, .print-label { display: flex; }
  .print { padding-inline: 1.25rem; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div { padding: 1.25rem 1.5rem 1.25rem 0; }
  .facts div + div { border-top: 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .index { grid-template-columns: 1fr 1fr; }
  .i-a { grid-column: 1 / -1; }
  .index a { padding: 1.5rem; }
  .schedule > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
  dt { margin: .15rem 0 0; }
  .entries li { grid-template-columns: 14rem 1fr; column-gap: 1.5rem; }
  .entries :is(time, .kind) { grid-row: span 2; padding-top: .45rem; }
  .close-foot { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1100px) {
  .hero, .section-head, .close-cta { grid-template-columns: 7fr 5fr; column-gap: 3rem; }
  .hero { align-items: end; padding-block: 6rem 4.5rem; }
  .section { padding-top: 7rem; }
  .section-head { align-items: end; margin-bottom: 2.75rem; }
  .section-head p { padding-bottom: .4rem; }

  .index { grid-template-columns: repeat(6, 1fr); }
  .index li { grid-column: span 2; }
  .index .i-d, .index .i-e { grid-column: span 3; }
  .index a { padding: 1.75rem; }
  .index .use { max-width: 30ch; }

  .panel { grid-template-columns: 7fr 5fr; }
  .panel-body { padding: .5rem 2.5rem 2rem 1.75rem; }
  figure { display: grid; place-items: center; align-content: center; padding: 2.5rem; border-top: 0; border-left: 1px solid var(--line); }
  figure img { width: auto; max-height: 34rem; }
  figure.tall img { max-width: 280px; }
  figure { padding-block: 6rem; }
  figure .logo { position: absolute; top: 2.5rem; left: 50%; translate: -50% 0; margin: 0; }

  .close { margin-top: 8rem; }
  .close-cta { align-items: end; padding-block: 5rem; }
  .close-cta .actions { justify-self: end; width: 100%; }
}

@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } }
.hero h1, .hero-side > *, .facts, #work .section-head > *, .index a > * { animation: draw .65s var(--ease) backwards; }
.hero-side p { animation-delay: .1s; }
.hero-side .actions { animation-delay: .16s; }
.facts { animation-duration: .8s; animation-delay: .2s; }
#work .section-head > * { animation-delay: .28s; }
.i-b { --i: 1; }
.i-c { --i: 2; }
.i-d { --i: 3; }
.i-e { --i: 4; }
.index a > * { animation-delay: calc(.36s + var(--i, 0) * 70ms); }
:root:active-view-transition * { transition: none; }
::view-transition-old(page) { animation: none; }
::view-transition-new(page) { animation: draw .35s cubic-bezier(.2, 0, 0, 1); mix-blend-mode: normal; }
.out:hover, .entries a:hover, .links a:hover { text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu[aria-expanded="true"] + .nav, .menu[aria-expanded="true"] + .nav .cell { animation-name: fade; }
  .menu path, .nav { transition: none; }
  .hero h1, .hero-side > *, .facts, #work .section-head > *, .index a > * { animation-name: fade; animation-duration: .4s; animation-timing-function: ease-out; }
  ::view-transition-new(page) { animation: fade .15s ease-out; }
  .btn:active { scale: none; }
  a:hover svg { translate: none; }
}
