:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --line: #0a0a0a;
  --page-x: clamp(1.25rem, 4vw, 4.5rem);
  --page-y: clamp(5rem, 9vw, 9rem);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--black);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--black);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 4.5rem;
  padding: 0 var(--page-x);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 3.5rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 2.2fr);
  column-gap: clamp(2rem, 7vw, 9rem);
  padding: var(--page-y) var(--page-x);
}

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

.hero {
  height: 100svh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  padding-top: clamp(6.5rem, 11vh, 8.5rem);
  padding-bottom: 1.5rem;
}

.eyebrow,
.section-index,
.article-meta,
.pull-quote cite,
.site-footer {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.hero-name {
  grid-column: 1 / -1;
  align-self: center;
  margin: clamp(2.5rem, 6.5vh, 5rem) 0;
  font-size: clamp(5rem, min(16.6vw, 29svh), 18rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.72;
}

.hero-name span {
  display: block;
}

.hero-name span:last-child {
  text-align: right;
}

.hero-statement {
  grid-column: 2;
  max-width: 47rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, min(3.4vw, 6.3svh), 4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-statement p {
  margin: 0;
}

.statement-emphasis {
  font-style: italic;
}

.down-link {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--black);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-index {
  margin: 0;
}

.section-title {
  margin: 0 0 clamp(3.5rem, 7vw, 7rem);
  max-width: 16ch;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.body-copy {
  grid-column: 2;
  max-width: 51rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.body-copy p {
  margin: 0 0 1.35em;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.body-copy a {
  text-decoration-style: solid;
}

.pull-quote {
  grid-column: 1 / -1;
  margin: var(--page-y) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--black);
}

.pull-quote p {
  max-width: 18ch;
  margin: 0 0 clamp(2rem, 5vw, 5rem) auto;
  font-size: clamp(3.1rem, 8.5vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.pull-quote cite {
  display: block;
  text-align: right;
}

.writing-intro {
  grid-column: 2;
}

.writing-intro .body-copy {
  margin-bottom: var(--page-y);
}

.article-list {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--black);
  list-style: none;
}

.article-list a {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(9rem, 0.4fr) 2rem;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--black);
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease, color 180ms ease;
}

.article-list a:hover,
.article-list a:focus-visible {
  padding-right: 1rem;
  padding-left: 1rem;
  background: var(--black);
  color: var(--white);
  outline: none;
}

.article-number {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.article-title-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.writing-tag {
  display: inline-block;
  padding: 0.28rem 0.5rem 0.24rem;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-arrow {
  justify-self: end;
  font-size: 1.25rem;
}

.text-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 3rem;
  font-weight: 700;
}

.manifesto {
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: var(--black);
  color: var(--white);
}

.manifesto-line {
  display: flex;
  width: max-content;
  font-size: clamp(3.5rem, 9vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.manifesto-line span {
  display: inline-flex;
  align-items: center;
}

.manifesto-line span::after {
  content: "✦";
  margin: 0 0.35em;
  font-size: 0.33em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.contact {
  min-height: 82svh;
  align-content: start;
  background: var(--black);
  color: var(--white);
}

.contact-title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.contact-email {
  grid-column: 2;
  justify-self: start;
  margin-top: clamp(5rem, 11vw, 11rem);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 4.5rem);
  letter-spacing: -0.04em;
}

.social-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.5rem var(--page-x);
  border-top: 1px solid var(--white);
  background: var(--black);
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

@media (min-width: 761px) {
  html {
    scroll-snap-type: y mandatory;
  }

  main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .about,
  .work,
  .writing,
  .manifesto {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .about,
  .work,
  .writing,
  .contact {
    padding-top: clamp(4.75rem, 7.5svh, 6.25rem);
    padding-bottom: clamp(2.75rem, 6svh, 5rem);
  }

  .about .section-title,
  .work .section-title {
    margin-bottom: clamp(1.75rem, 4svh, 3.25rem);
    font-size: clamp(2.8rem, min(6vw, 9.5svh), 6.75rem);
  }

  .about .body-copy,
  .work .body-copy {
    font-size: clamp(1.2rem, min(1.65vw, 2.75svh), 1.75rem);
  }

  .work .pull-quote {
    margin-top: clamp(1.5rem, 3svh, 2.5rem);
  }

  .work .pull-quote p {
    max-width: 24ch;
    margin-bottom: clamp(1rem, 1.5svh, 1.5rem);
    font-size: clamp(3rem, min(5.5vw, 7svh), 6rem);
  }

  .writing .section-title {
    margin-bottom: clamp(1rem, 2svh, 1.5rem);
    font-size: clamp(2.65rem, min(5vw, 7svh), 5rem);
  }

  .writing-intro .body-copy {
    margin-bottom: clamp(1rem, 2.5svh, 2rem);
    font-size: clamp(1.1rem, min(1.55vw, 2.8svh), 1.5rem);
  }

  .writing .article-list a {
    padding: clamp(0.55rem, 1.25svh, 0.9rem) 0;
  }

  .writing .article-title {
    font-size: clamp(1.3rem, min(2.25vw, 3.8svh), 2.5rem);
  }

  .writing .article-title-block {
    gap: 0.4rem;
  }

  .writing .text-link {
    margin-top: clamp(1rem, 2.5svh, 2rem);
  }

  .manifesto {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .contact {
    height: calc(100svh - 3.25rem);
    min-height: calc(100svh - 3.25rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .contact-title {
    font-size: clamp(3rem, min(7vw, 10svh), 7.5rem);
  }

  .contact-email {
    margin-top: clamp(3rem, 8svh, 6rem);
  }

  .site-footer {
    height: 3.25rem;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4.5rem;
  }

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

  .menu-button {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: 700 0.7rem/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .menu-icon,
  .menu-icon::after {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }

  .menu-icon::after {
    transform: translateY(0.3rem);
  }

  .menu-button[aria-expanded="true"] .menu-icon {
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    inset: 4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    padding: var(--page-x);
    background: var(--white);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.35em 0;
    border-bottom: 1px solid var(--black);
    font-size: clamp(2.75rem, 14vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1;
    text-transform: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto 1fr auto auto;
  }

  .hero-name {
    font-size: clamp(4.4rem, 24vw, 8rem);
    line-height: 0.78;
  }

  .hero-statement,
  .body-copy,
  .writing-intro,
  .text-link,
  .contact-email,
  .social-links {
    grid-column: 1;
  }

  .hero-statement {
    margin-bottom: 3.5rem;
  }

  .down-link {
    grid-column: 1;
    grid-row: 4;
    margin-top: 2rem;
  }

  .section-index {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: clamp(2.7rem, 13vw, 5rem);
  }

  .pull-quote p {
    margin-left: 0;
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .pull-quote cite {
    max-width: 22rem;
    margin-left: auto;
  }

  .article-list a {
    grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
    gap: 0.75rem;
  }

  .article-meta {
    grid-column: 2;
  }

  .article-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .contact-title {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
