/* Especia: plain type. Black on white, Syne throughout, and the name as the only picture.
   The name's weight follows the pointer; nothing else moves. */

/* Syne by Bonjour Monde, served from this site (SIL Open Font Licence, see fonts/OFL.txt),
   so a visit never touches Google. */
@font-face {
  font-family: "Syne";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/syne-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;
}
@font-face {
  font-family: "Syne";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/syne-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;
}

:root {
  --paper: #fff;
  --ink: #000;
  --quiet: #6b6b6b;
  --line: #e4e4e4;
  --pull: 0;              /* 0..1, set by site.js from the pointer */
  --face: "Syne", sans-serif;
  --w-min: 400;
  --w-max: 800;
  --body-w: 450;
  --track: -0.03em;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #000; --ink: #fff; --quiet: #9a9a9a; --line: #262626; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face);
  font-weight: var(--body-w);
  font-size: 1.125rem;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

main { width: min(100% - 32px, 1280px); margin-inline: auto; padding-bottom: clamp(48px, 8vw, 96px); }

.mark {
  margin: 0 0 0.12em;
  padding-top: clamp(16px, 3vw, 40px);
  font-weight: normal;
  line-height: 0.85;
  white-space: nowrap;
  letter-spacing: var(--track);
}
.mark span {
  display: inline-block;
  font-size: var(--fit, 20vw);
  font-variation-settings: "wght" calc(var(--w-min) + (var(--w-max) - var(--w-min)) * var(--pull));
}

.intro {
  max-width: 26ch;
  margin: clamp(24px, 5vw, 56px) 0 clamp(64px, 12vw, 160px);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.work, .me { list-style: none; margin: 0; padding: 0; }

.work li { border-top: 1px solid var(--line); }
.work li:last-child { border-bottom: 1px solid var(--line); }

.work a, .work .row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 22px;
}

.name {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: var(--track);
  font-variation-settings: "wght" var(--w-min);
  transition: font-variation-settings 260ms ease-out;
}
.work a:hover .name, .work a:focus-visible .name { font-variation-settings: "wght" var(--w-max); }

/* The registered mark after Especia's name: small and raised, so it never weighs on the name. */
.name sup {
  font-size: 0.4em;
  vertical-align: top;
  position: relative;
  top: 0.1em;
  margin-left: 0.05em;
  letter-spacing: 0;
}

.what { max-width: 36ch; }
.where { color: var(--quiet); text-align: right; }
.work a:hover .where { color: var(--ink); }

.me {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: clamp(64px, 12vw, 160px);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}
.me a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.me a:hover { text-decoration-thickness: 3px; }


@media (max-width: 720px) {
  .work a, .work .row { grid-template-columns: 1fr; gap: 6px; }
  .where { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .name { transition: none; }
}

