:root {
  --paper: #f2efdf;
  --ink: #141512;
  --yellow: #ebf227;
  --red: #d6402e;
  --muted: #65655c;
  --line: #292a25;
  --page: min(1500px, calc(100vw - 48px));
  --display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Golos Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

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

.site-header,
main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 54px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.wordmark span span {
  background: var(--yellow);
  padding: 2px 3px;
}

.wordmark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.site-header nav {
  display: flex;
  gap: 30px;
}

.site-header nav a,
#status-line,
footer,
.warning-code,
.warning-label dt,
.warning-label dd,
.work header p,
.project-index,
.project-kind,
.project-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

#status-line {
  margin: 0;
  color: var(--muted);
}

.hero {
  min-height: calc(100vh - 84px);
  padding: clamp(60px, 8vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 38px;
  font-size: clamp(3.6rem, 7.4vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy > p {
  max-width: 62ch;
  color: #3f403a;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.text-link {
  width: fit-content;
  margin-top: 24px;
  font-weight: 600;
}

.warning-label {
  position: relative;
  min-height: 610px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.warning-code {
  align-self: flex-start;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--paper);
}

.warning-label > strong {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.85rem, 2.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.warning-label dl {
  position: relative;
  z-index: 1;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.warning-label dl div {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  border-bottom: 1px solid var(--ink);
}

.warning-label dd {
  margin: 0;
}

.registration {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -72px;
  top: 50%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.18;
  transform: translateY(-50%) rotate(12deg);
}

.work {
  padding: clamp(90px, 10vw, 160px) 0;
  border-top: 2px solid var(--ink);
}

.work > header {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.work h2,
.studio h2,
.contact h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5.8vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
}

.work header p {
  margin-bottom: 8px;
  color: var(--muted);
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.project-list li {
  min-height: 102px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 80px 1fr 170px 80px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  transition: background-color 180ms ease-out, padding 180ms ease-out;
}

.project-list li:hover {
  padding-inline: 18px;
  background: var(--yellow);
}

.project-name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.project-kind,
.project-year,
.project-index {
  color: var(--muted);
}

.studio {
  margin-bottom: clamp(90px, 12vw, 180px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 10vw, 160px);
  align-items: start;
}

.studio-title-wrap {
  padding-top: 24px;
  border-top: 8px solid var(--ink);
}

.studio-copy {
  font-size: 1.1rem;
}

.studio-copy p {
  max-width: 62ch;
}

.studio-copy ul {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.studio-copy li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}

.contact {
  min-height: 70vh;
  margin-bottom: 90px;
  padding: clamp(50px, 8vw, 110px);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact h2 {
  max-width: 12ch;
}

.contact > a {
  width: fit-content;
  margin: 80px 0 32px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 3rem);
  overflow-wrap: anywhere;
}

.contact p {
  max-width: 60ch;
  margin-bottom: 0;
  color: #c7c4b7;
}

footer {
  min-height: 92px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 30px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .site-header nav {
    display: none;
  }

  #status-line {
    max-width: 15ch;
    text-align: right;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.7rem, 11vw, 4.5rem);
  }

  .warning-label {
    min-height: 490px;
  }

  .work > header,
  .studio {
    grid-template-columns: 1fr;
  }

  .project-list li {
    grid-template-columns: 50px 1fr auto;
  }

  .project-year {
    display: none;
  }
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 0.82rem;
  }

  .wordmark svg {
    width: 32px;
  }

  #status-line {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.7rem);
    overflow-wrap: anywhere;
  }

  .warning-label {
    min-height: 420px;
  }

  .project-list li {
    min-height: 90px;
    grid-template-columns: 42px 1fr;
  }

  .project-kind {
    grid-column: 2;
  }

  .work > header {
    align-items: start;
  }

  .contact {
    margin-inline: -15px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}