@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #edebe5;
  --ink: #111110;
  --quiet: #605f59;
  --line: rgb(17 17 16 / 0.14);
  --raised: #e3e0d8;
  --sun: #ff4d12;
  --sans: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 3.6vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f0e;
    --ink: #edebe5;
    --quiet: #a09f98;
    --line: rgb(237 235 229 / 0.16);
    --raised: #1b1b19;
    --sun: #ff5a1f;
    color-scheme: dark;
  }
}

@view-transition { navigation: auto; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 380 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body { font-weight: 330; }
}

img { display: block; max-width: 100%; height: auto; }

b, strong { font-weight: 640; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

::selection { background: var(--sun); color: #111110; }

.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

/* The studio bar, shared by every page */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -0.02em; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.mark svg { width: 26px; height: 26px; flex: none; }
.mark small { font-weight: 400; color: var(--quiet); font-size: inherit; }
.bar nav { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 32px); }
.bar nav { align-items: center; }
.bar nav a { text-decoration: none; font-size: 0.95rem; position: relative; padding: 6px 0; }
.bar nav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* Support, always in reach: an ink pill with a sun-colored plus that turns on hover */
.bar nav .cta {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 5px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 560; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease);
}
.bar nav .cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sun); border-radius: inherit;
  transform: translateX(-101%); transition: transform 0.55s var(--ease);
}
.bar nav .cta i {
  position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); flex: none;
  transition: rotate 0.55s var(--ease), background 0.45s var(--ease);
}
.bar nav .cta i::before, .bar nav .cta i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px; background: #111110; border-radius: 1px;
}
.bar nav .cta i::after { rotate: 90deg; }
.bar nav .cta:hover, .bar nav .cta:focus-visible { color: #111110; }
.bar nav .cta:hover::before, .bar nav .cta:focus-visible::before { transform: translateX(0); }
.bar nav .cta:hover i, .bar nav .cta:focus-visible i { rotate: 90deg; background: var(--paper); }
.bar nav .cta[aria-current] i { background: var(--paper); }

/* One plus for every collapsible: two drawn lines, the upright one folding away when open */
.plus::after {
  width: 11px; height: 11px; flex: none; content: "";
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: background-size 0.35s var(--ease);
}
details[open] > .plus::after { background-size: 100% 1.5px, 1.5px 0; }

.foot-mini {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px var(--gutter); border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.85rem;
}
.foot-mini p { margin: 0; }
.foot-mini a { color: inherit; }

@media (max-width: 599px) {
  .bar { gap: 12px; }
  .bar nav { gap: 14px; }
  .mark small { display: none; }
  .bar nav .cta { height: 36px; padding-left: 12px; gap: 8px; }
  .bar nav .cta i { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  @view-transition { navigation: none; }
}
