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

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/CormorantGaramond-Regular.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fafafa;
  --text: #0a0a0a;
  --muted: #6b7280;
  --accent: #0a0a0a;
  --border: #e5e7eb;
  --surface: #f5f5f5;
  --grid: rgba(10, 10, 10, 0.04);
  --grid-strong: rgba(10, 10, 10, 0.05);
  --glow: rgba(10, 10, 10, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --text: #fafafa;
    --muted: #9ca3af;
    --accent: #fafafa;
    --border: #1f2937;
    --surface: #111111;
    --grid: rgba(250, 250, 250, 0.04);
    --grid-strong: rgba(250, 250, 250, 0.05);
    --glow: rgba(250, 250, 250, 0.04);
  }
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.6;
}

body::after {
  background-image:
    radial-gradient(circle at 12% 18%, var(--glow) 0, transparent 45%),
    radial-gradient(circle at 78% 24%, var(--glow) 0, transparent 40%),
    radial-gradient(circle at 32% 70%, var(--grid-strong) 0, transparent 55%);
  opacity: 0.9;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.handle {
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text);
}

.handle:hover {
  text-decoration: underline;
}

.container {
  max-width: 648px;
  margin: 0;
  padding: clamp(24px, 7vw, 96px);
}

.section {
  margin-bottom: 48px;
  padding: 0;
}

h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-size: 1.5rem;
  line-height: 2.25rem;
  letter-spacing: -0.01em;
  font-weight: 400;
}

h2 {
  margin-top: 36px;
  margin-bottom: 24px;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-size: 1.5rem;
  line-height: 2.25rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
}

p {
  margin: 10px 0 0;
  max-width: 62ch;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-item {
  display: grid;
  gap: 6px;
}

.project-link {
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.project-desc {
  margin: 0;
  color: var(--muted);
}

.elsewhere {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.elsewhere-links {
  display: flex;
  gap: 16px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-link:hover {
  color: var(--text);
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.icon-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 999px;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.muted {
  color: var(--muted);
}

.section > *:first-child {
  margin-top: 0;
}

.section > * + * {
  margin-top: 12px;
}

.section > .elsewhere {
  margin-top: 42px;
}


.site-footer {
  max-width: 648px;
  margin: 0;
  padding: 0 clamp(24px, 7vw, 96px) clamp(32px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 0;
  flex-wrap: nowrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-footer span {
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer span,
  .footer-links {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
