@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}

:root {
  --bg: oklch(97.5% 0.008 155);
  --ink: oklch(24% 0.02 155);
  --green: oklch(48% 0.11 155);
  --orange: oklch(60% 0.13 50);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(19% 0.014 155);
    --ink: oklch(92% 0.012 155);
    --green: oklch(76% 0.11 155);
    --orange: oklch(74% 0.12 55);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 41rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 7rem) 1.5rem 4rem;
}

/* ---- intro ---- */

h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 90;
}

.tagline {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.15rem, 3.4vw, 1.35rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: oklch(from var(--ink) l c h / 0.85);
  max-width: 30ch;
}

.meta {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: oklch(from var(--ink) l c h / 0.55);
}

.meta + .meta {
  margin-top: 0.375rem;
}

/* ---- sections ---- */

section, footer {
  margin-top: clamp(3.5rem, 8vh, 5rem);
}

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: oklch(from var(--ink) l c h / 0.45);
}

.entries {
  list-style: none;
  margin-top: 1.75rem;
}

.entries > li + li {
  margin-top: 1.75rem;
}

.entries p {
  color: oklch(from var(--ink) l c h / 0.8);
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

h3 .mark {
  font-size: 1rem;
  margin-right: 0.3rem;
}

h3 .aside {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: oklch(from var(--ink) l c h / 0.45);
  margin-left: 0.375rem;
}

.name {
  font-family: var(--serif);
  font-weight: 540;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.links {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: oklch(from var(--green) l c h / 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 150ms ease-out;
}

a:hover {
  text-decoration-color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

a.name {
  color: var(--ink);
  text-decoration-color: oklch(from var(--ink) l c h / 0.25);
}

a.name:hover {
  text-decoration-color: var(--ink);
}

/* ---- footer ---- */

footer p {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: oklch(from var(--ink) l c h / 0.4);
}

footer a {
  color: inherit;
}

/* ---- entrance ---- */

.reveal {
  animation: rise 300ms ease-out both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

::selection {
  background: oklch(from var(--green) l c h / 0.25);
}
