:root {
  --paper: #eee6d4;
  --ink: #1f1c16;
  --muted: #6a6458;
  --rule: #d4c9b2;
  --accent: #8a5429;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --sans: "Schibsted Grotesk", "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --focus: 2px solid var(--accent);
}

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

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}

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

body {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 82% at 64% 50%,
    #000 26%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 88% 82% at 64% 50%,
    #000 26%,
    transparent 72%
  );
}

.hero-ui {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.1rem var(--pad) 2.5rem;
  pointer-events: none;
}

.hero-ui a,
.hero-ui button {
  pointer-events: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.nav-name {
  text-decoration: none;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-name:hover {
  color: var(--ink);
}

.identity {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--muted);
}

.hero-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 22ch;
  padding-bottom: 8vh;
}

.hero-note {
  position: absolute;
  right: var(--pad);
  bottom: 1.3rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.note-mat {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: pre;
}

.note-exp {
  align-self: flex-start;
  font-size: 0.56rem;
  margin-left: 1px;
  transform: translateY(-2px);
  min-width: 2.4em;
  color: var(--accent);
}

.note-vec {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: pre;
}

.note-dot {
  align-self: center;
  margin: 0 -0.3rem 0 -0.55rem;
}

.hero-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.identity {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--muted);
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.about {
  padding: clamp(4.5rem, 12vh, 7.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.label {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-grid::after {
  content: "";
  display: block;
  clear: both;
}

.portrait {
  float: right;
  width: 8.5rem;
  margin: 0.45rem 0 1.1rem 1.75rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.about-copy p {
  margin: 0 0 1.1em;
  font-size: 1.16rem;
  line-height: 1.65;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy a {
  text-decoration-color: var(--rule);
}

.about-copy a:hover {
  text-decoration-color: var(--accent);
}

.things {
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
}

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.index li {
  border-bottom: 1px solid var(--rule);
}

.index a {
  display: block;
  padding: 1.15rem 0 1.2rem;
  text-decoration: none;
}

.index a:hover .index-title {
  color: var(--accent);
}

.index-title {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.index-note {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.footer-name {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .hero-title h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    max-width: 8ch;
  }

  .portrait {
    float: right;
    width: 7.25rem;
    margin: 0.3rem 0 0.9rem 1.25rem;
  }

  .about-copy p {
    font-size: 1.08rem;
  }
}

@media (max-width: 520px) {
  .nav-name {
    display: none;
  }

  .index-title {
    font-size: 1.06rem;
  }
}

@media print {
  .hero-canvas,
  .nav {
    display: none;
  }

  .hero,
  .hero-ui {
    min-height: 0;
  }
}
