:root {
  color-scheme: dark;
  --bg: #0d1014;
  --bg-elevated: #131821;
  --bg-muted: #10151d;
  --border: rgba(222, 228, 236, 0.12);
  --border-strong: rgba(222, 228, 236, 0.18);
  --text: #ece8e1;
  --text-soft: #c4c0b8;
  --text-muted: #949ba7;
  --accent: #d8d2c6;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --max-width: 1100px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(210, 218, 232, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 26%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration-color: rgba(216, 210, 198, 0.5);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: rgba(216, 210, 198, 0.9);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(216, 210, 198, 0.9);
  outline-offset: 3px;
}

p,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.3rem);
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(13, 16, 20, 0.8);
  border-bottom: 1px solid rgba(222, 228, 236, 0.06);
  z-index: 10;
}

.header-inner,
.hero-actions,
.project-header,
.notes-block {
  display: flex;
  align-items: center;
}

.header-inner,
.notes-block {
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner {
  min-height: 4.75rem;
}

.site-name {
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-list,
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.nav-list a {
  text-decoration: none;
}

.section {
  padding: 5.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.hero {
  padding-top: 6.5rem;
}

.hero-shell,
.section-copy {
  max-width: 46rem;
}

.hero-title {
  max-width: none;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede,
.supporting-copy,
.section-body p,
.card p,
.project p,
.links-list span,
.notes-block p,
.summary-text,
.section-note {
  color: var(--text-soft);
}

.lede {
  max-width: 40rem;
  font-size: 1.16rem;
}

.supporting-copy {
  max-width: 42rem;
  font-size: 1.04rem;
}

.section-copy h2 {
  margin-bottom: 1.1rem;
}

.section-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--text-soft);
}

#about p {
  line-height: 1.9;
}

.entry-list {
  margin-top: 2rem;
}

.entry {
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
}

.entry:last-child {
  border-bottom: 1px solid var(--border);
}

.entry h3 {
  margin-bottom: 0.55rem;
}

.entry p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--text-soft);
}

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

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.icon-link svg {
  width: 1.1rem;
  height: 1.1rem;
  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;
}

.section-muted {
  padding-top: 2.5rem;
}

.notes-copy h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .header-inner {
    padding: 1rem 0;
  }

  .nav-list {
    gap: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  h1 {
    max-width: 10ch;
  }
}
