:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0a0a0a;
  --text: #f2f2ed;
  --muted: #8b8b84;
  --line: #292925;
  --soft-line: #171714;
  --accent: #f2f2ed;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  opacity: 0.66;
}

.site-shell {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  min-height: 82px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.brand,
.primary-link {
  font-weight: 800;
}

.nav-group,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.nav-link,
.domain-mark,
.secondary-link {
  color: var(--muted);
}

.domain-mark {
  letter-spacing: 0.12em;
}

.landing-intro {
  padding: clamp(64px, 10vw, 132px) 0 clamp(72px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.work-label,
.section-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-intro h1,
.about-title,
.legal-title {
  max-width: 900px;
  font-size: clamp(46px, 9.6vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.landing-intro h1 {
  margin: 0;
}

.work-entry,
.about-section,
.legal-section {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 2fr);
  gap: clamp(32px, 7vw, 100px);
}

.work-entry {
  padding: clamp(64px, 8vw, 104px) 0;
}

.work-index {
  color: var(--muted);
  font-size: clamp(28px, 4vw, 54px);
}

.work-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.work-description {
  max-width: 650px;
  margin: 28px 0 0;
  color: #c5c5be;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 42px;
  font-size: 12px;
  letter-spacing: 0.13em;
}

.about-main,
.legal-main {
  width: 100%;
  padding: clamp(64px, 10vw, 132px) 0 clamp(72px, 10vw, 140px);
}

.about-title,
.legal-title {
  margin: 0 0 clamp(72px, 10vw, 140px);
}

.about-section,
.legal-section {
  padding: clamp(52px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.about-section h2,
.legal-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.about-copy,
.legal-copy {
  max-width: 720px;
}

.about-copy p,
.legal-copy p {
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

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

.statement {
  font-size: clamp(24px, 3.4vw, 40px) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em;
}

.project-meta,
.legal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-meta div,
.legal-details div {
  min-width: 0;
  padding: 20px;
  background: var(--bg);
}

.project-meta span,
.legal-details span {
  display: block;
}

.meta-label,
.legal-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-value {
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.legal-note {
  color: #c5c5be;
}

.legal-note-spaced {
  margin-top: 28px !important;
}

.legal-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--soft-line);
}

.legal-list li {
  position: relative;
  padding: 15px 0 15px 24px;
  border-bottom: 1px solid var(--soft-line);
  color: #c5c5be;
  font-size: 14px;
  line-height: 1.55;
}

.legal-list li::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--muted);
}

@media (max-width: 700px) {
  .site-shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-header,
  .site-footer {
    min-height: 68px;
  }

  .nav-group,
  .footer-links {
    gap: 14px;
  }

  .work-entry,
  .about-section,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .work-index {
    font-size: 18px;
  }

  .about-section,
  .legal-section {
    gap: 20px;
  }

  .project-meta,
  .legal-details {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
  }
}