/* latin-ext */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("albert-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("albert-sans-latin.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;
}
:root { color-scheme: dark; --paper: #17100d; --ink: #f5f3ef; --copy: #aaa7a2; }
:root[data-palette="cobalt"] { --paper: #223dce; --ink: #fff; --copy: #c5cef6; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--copy); background: var(--paper); font: 400 1rem/1.5 "Albert Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
main { width: min(100%, 104rem); margin-inline: auto; overflow-x: clip; padding: 0 clamp(1.4rem, 4.5vw, 5rem) clamp(1.2rem, 3.2vh, 3rem); }
p, h1 { margin: 0; }
h1 { color: var(--ink); }
/* Every link answers a hover the same way: a line draws in beneath it. */
a { position: relative; color: var(--ink); font-weight: 580; text-decoration: none; }
a::after { content: ''; position: absolute; inset-inline: 0; top: calc(50% + .6em); height: 1px; background: currentColor; pointer-events: none; clip-path: inset(0 100% 0 0); transition: clip-path 200ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { a:hover::after { clip-path: inset(0); opacity: 1; } }
a:focus-visible::after { clip-path: inset(0); opacity: 1; }
/* Without motion the line fades in where it would have drawn. */
@media (prefers-reduced-motion: reduce) { a::after { clip-path: none !important; opacity: 0; transition: opacity 150ms ease; } }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.masthead { padding-block: clamp(1.6rem, 5vh, 3.9rem) clamp(2.35rem, 6.5vh, 4rem); }
.masthead h1 { width: fit-content; max-width: 100%; font: 425 clamp(4rem, min(9vw, 15svh), 7rem)/.88 "Albert Sans", system-ui, sans-serif; letter-spacing: -.037em; }
.name { display: grid; justify-items: start; }
.name svg { display: block; width: 100%; overflow: visible; fill: currentColor; }
/* Two columns that even themselves out, whatever length the paragraphs are. Each paragraph stays whole. */
.bio { columns: 2; column-gap: clamp(2rem, 5vw, 4.5rem); max-width: calc(54em + clamp(2rem, 5vw, 4.5rem)); font-size: clamp(1.125rem, 1.4vw, 1.45rem); line-height: 1.48; letter-spacing: -.014em; }
.bio p { break-inside: avoid; text-wrap: pretty; }
.bio p + p { margin-top: 1.35em; }
/* A hand-drawn aside that hangs off the paragraph above it. */
.bio .note { position: relative; padding-left: 1.9em; break-before: avoid; color: var(--ink); }
/* The arrow hangs in the gap above the aside and hooks into it, so the aside adds one line and both columns end level. */
.arrow { position: absolute; left: 0; bottom: .1em; height: 2.68em; width: auto; }
/* arrow.js draws the arrow from the end of the paragraph's last line instead; the image is the fallback. */
.arrow-drawn { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.arrow-drawn .guide { stroke: none; }
.arrow-drawn .paper { fill: #d9ccb6; }
.arrow-drawn .ink { fill: var(--paper); }
.note.drawn .arrow { display: none; }
/* The typewriter stands on the paragraph about describing the future, in the space beside the name.
   It is placed against the whole bio: inside the columns, "above" a paragraph is the foot of the column before. */
.bio { position: relative; }
.typewriter { position: absolute; right: 0; bottom: calc(100% + .3em); width: 7.8em; height: auto; rotate: -3deg; pointer-events: none; }
.company { display: inline-block; position: relative; white-space: nowrap; }
/* Teton's mark as a small paper sticker in the line. It hangs below the baseline so the line keeps its height. */
.teton-mark { display: inline-block; width: auto; height: 1.25em; margin-inline: .34em .12em; vertical-align: -.3em; }
/* The hover line runs under the name and stops before the tile. */
.company::after { right: 1.95em; }
.ampersand { display: inline-block; width: .75em; height: .84em; vertical-align: -.055em; margin-inline: .02em; filter: drop-shadow(0 0 0 var(--ink)); }
@media (hover: hover) { .and-phrase:hover .ampersand { filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(0 0 .10em var(--ink)); } }
.and-phrase { white-space: nowrap; }
.profiles { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: clamp(1rem, 3.3vh, 2.5rem); font-size: .95rem; letter-spacing: -.015em; }
.closing-quote { margin-top: .45rem; font-size: .95rem; letter-spacing: -.01em; }
.profiles a { display: inline-flex; align-items: center; min-height: 44px; }
/* Under the drawing the line sits lower, like the shelf the books stand on. */
.books-link::after { top: calc(50% + 1.1rem); }
/* On hover the top books slide off the stack (divider.js), and the invitation follows them down. */
.books-stack { position: relative; display: block; }
.books-stack .falling { position: absolute; inset: 0; pointer-events: none; }
.book-call { position: absolute; left: calc(100% + .75rem); white-space: nowrap; pointer-events: none; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity 140ms, clip-path 0s 140ms; }
.books-link[data-active] .book-call { opacity: 1; clip-path: inset(0); transition: clip-path 260ms cubic-bezier(0.23, 1, 0.32, 1) 820ms, opacity 0s 820ms; }
@media (prefers-reduced-motion: reduce) {
  .book-call, .books-link[data-active] .book-call { clip-path: none; transition: opacity 150ms ease; }
}
/* Link text set as letters (site.js) sits on the baseline like the words it replaces; the words stay for screen readers. */
.letters { display: inline-block; height: .88em; vertical-align: -.12em; overflow: visible; fill: currentColor; }
/* At link size the squares need a little more weight to match the words they replace. */
.letters [data-tiles] { stroke: currentColor; stroke-width: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.books-link img { display: block; width: 3rem; height: auto; }

@media (max-width: 700px) {
  .typewriter { position: static; float: right; width: 5.4em; margin: .15em -.1em .2em .7em; }
  .bio { columns: 1; max-width: 32em; margin-inline: auto; }
  .bio p + p { margin-top: 1.2em; }
  .bio .note { margin-top: .85em; padding-left: 2.05em; }
  .note .arrow { left: .48em; top: -.72em; bottom: auto; height: 1.85em; }
  .masthead { padding-top: clamp(2rem, 5.6svh, 3.6rem); }
  .masthead .name { justify-items: center; margin-inline: auto; }
  .profiles { justify-content: center; }
  .closing-quote { text-align: center; }
  .book-call { left: auto; right: 0; bottom: 100%; }
  .masthead h1 { font-size: clamp(2rem, 14vw, 4rem); }
}
@media print { :root, :root[data-palette] { --paper: white; --ink: black; --copy: #333; } }
