:root {
  --bg: #f5f3ec;
  --ink: #1a1815;
  --ink-muted: #6e6962;
  --rule: #1a1815;

  --serif: "Big Caslon", "Iowan Old Style", "Charter", "Bitstream Charter", Cambria, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(24px, 6vw, 88px);
  --measure: 32em;
}

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

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  position: relative;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

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

/* --- top banner ----------------------------------------------------- */

.banner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px var(--gutter) 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.banner-mark { white-space: nowrap; }
.banner-mark .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  position: relative;
  top: 1px;
}
.banner-meta { color: var(--ink-muted); white-space: nowrap; }

/* --- page ------------------------------------------------------------ */

.page {
  max-width: var(--measure);
  margin: 0;
  padding: clamp(96px, 16vh, 168px) var(--gutter) 160px;
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 9vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
}

.role {
  margin: 28px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.role .sep {
  display: inline-block;
  padding: 0 0.55em;
  color: var(--ink);
}

.bio {
  margin: 56px 0 0;
  max-width: 32em;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  hyphens: auto;
  text-wrap: pretty;
}

/* --- links ----------------------------------------------------------- */

.links {
  margin: 52px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
}

.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 200ms ease;
}

.link:hover,
.link:focus-visible {
  background-size: 100% 2px;
  outline: none;
}

.link-sep {
  display: inline-block;
  padding: 0 0.5em;
  color: var(--ink-muted);
  font-style: italic;
}

/* --- colophon -------------------------------------------------------- */

.colophon {
  position: fixed;
  bottom: 18px;
  right: var(--gutter);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .banner { padding: 16px var(--gutter) 12px; gap: 12px; }
  .banner-meta { display: none; }
  .page { padding-bottom: 96px; }
  .colophon {
    position: static;
    padding: 24px var(--gutter) 28px;
    text-align: left;
  }
  .role { margin-top: 22px; }
  .bio { margin-top: 40px; }
  .links { margin-top: 40px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
