:root {
  --paper: #f3f0e8;
  --ink: #111111;
  --muted: #65625c;
  --line: #c9c4b9;
  --accent: #d4ff00;
  --white: #ffffff;
  --max: 1280px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}
.wordmark span { font-size: 1.55rem; }
.wordmark small {
  font-size: .65rem;
  letter-spacing: .18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a,
.site-footer a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--ink);
}
.eyebrow.light span { background: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .55fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 2rem;
  font-size: clamp(4.7rem, 12vw, 10rem);
  line-height: .78;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero-copy {
  max-width: 700px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.2rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.button.primary {
  background: var(--ink);
  color: var(--white);
}
.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent);
  color: var(--ink);
}
.text-button { padding-inline: 0; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }

.identity-card {
  background: var(--ink);
  color: var(--white);
  padding: 2rem;
}
.card-kicker {
  margin-bottom: 2.8rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.identity-card dl { margin: 0; }
.identity-card dl div {
  padding: 1rem 0;
  border-top: 1px solid #444;
}
.identity-card dt {
  color: #aaa;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.identity-card dd {
  margin: .25rem 0 0;
  font-size: .98rem;
}

.ruled { border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  margin-bottom: clamp(60px, 9vw, 120px);
}
.section-number {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.project-list {
  border-top: 1px solid var(--ink);
}
.project {
  display: grid;
  grid-template-columns: minmax(170px, .5fr) 1fr 1.2fr minmax(120px, .45fr);
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.project-meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project h3, .project p { margin-bottom: 0; }
.project .status {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}
.dark-section .section-number { color: #aaa; }

.publishing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #444;
}
.publishing-grid > div {
  min-height: 270px;
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid #444;
}
.publishing-grid > div + div { padding-left: 2rem; }
.publishing-grid > div:last-child { border-right: 0; }
.publishing-grid p { color: #c8c8c8; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(50px, 9vw, 150px);
}
.large-copy {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.body-copy {
  font-size: 1.08rem;
}
.body-copy p + p { margin-top: 1.5rem; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--ink);
}
.contact-section h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.contact-details { align-self: end; }
.email-link {
  display: inline-block;
  margin: 1rem 0 2rem;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  text-underline-offset: 8px;
}
.response-note { color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  padding: 45px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
}
.site-footer strong {
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.site-footer p {
  margin: .5rem 0 0;
  color: #aaa;
  font-size: .8rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid #3b3b3b;
}

/* Legal pages */
.legal-main {
  width: min(850px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) 0;
}
.legal-main h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 8vw, 6rem);
}
.legal-main h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -.025em;
  text-transform: none;
}
.legal-main p, .legal-main li { font-size: 1rem; }
.legal-meta { color: var(--muted); }

@media (max-width: 850px) {
  .site-header { min-height: 68px; }
  .menu-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    gap: 6px;
    padding: 12px;
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.3rem;
    padding: 15vw;
    background: var(--paper);
    transform: translateY(-105%);
    transition: transform .25s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { font-size: 2rem; letter-spacing: -.03em; text-transform: none; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

  .hero-grid,
  .about-grid,
  .contact-section { grid-template-columns: 1fr; }
  .identity-card { max-width: 500px; }
  .project {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .project-meta { flex-direction: row; gap: 1rem; }
  .publishing-grid { grid-template-columns: 1fr; }
  .publishing-grid > div,
  .publishing-grid > div + div {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid #444;
  }
  .section-heading { grid-template-columns: 45px 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .copyright { grid-column: auto; }
}

@media (max-width: 520px) {
  .section { width: min(var(--max), calc(100% - 32px)); }
  h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section-heading {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .section-number { margin-bottom: 1rem; }
  .email-link {
    font-size: 1.45rem;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
