:root {
  color-scheme: light;
  --background: #fcfaf7;
  --surface: #ffffff;
  --text: #1b1715;
  --muted: #6c625d;
  --line: #ded8d3;
  --accent: #d96747;
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.25em;
}

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

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

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero {
  padding-block: 3.75rem;
}

.eyebrow,
.status,
.section-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(1.05rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.12;
  white-space: nowrap;
}

.lead {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.project,
.about {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 2fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.section-label span:first-child {
  color: var(--accent);
}

.project-body {
  max-width: 42rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.status span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.project h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.project-tagline {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-body > p:last-child {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

dl div:first-child {
  border-top: 1px solid var(--line);
}

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

dd {
  margin: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
}

.document {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 2fr;
  gap: 3rem;
  padding-block: 4.5rem 5rem;
}

.document-header {
  align-self: start;
  position: sticky;
  top: 3rem;
}

.document-header h1,
.not-found h1 {
  margin: 1rem 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.document-header > p:last-child {
  color: var(--muted);
  font-size: 0.875rem;
}

.document-body {
  max-width: 42rem;
}

.document-body > p:first-child {
  margin-top: 0;
  font-size: 1.1rem;
}

.disclosure-list {
  margin-top: 2.25rem;
}

.disclosure-list div {
  grid-template-columns: 11rem 1fr;
}

.document-body section {
  margin-top: 2.5rem;
}

.document-body h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.document-body p {
  color: var(--muted);
}

.not-found {
  display: grid;
  align-content: center;
  min-height: 100svh;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (max-width: 44rem) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .site-header {
    min-height: 4rem;
  }

  nav {
    gap: 1rem;
  }

  nav a:first-child:not(:last-child) {
    display: none;
  }

  .hero {
    padding-block: 3rem;
  }

  .project,
  .about,
  .document {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3rem;
  }

  .document-header {
    position: static;
  }

  dl div {
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
  }

  .disclosure-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  footer {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-end;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #151210;
    --surface: #1b1715;
    --text: #f4eee9;
    --muted: #b4aaa4;
    --line: #3a332f;
    --accent: #ee7a58;
  }
}
