:root {
  color-scheme: dark;
  --gutter: clamp(1.35rem, 5vw, 5rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; }
[hidden] { display: none !important; }

.frame {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.07em;
  text-decoration: none;
}
.wordmark span { color: var(--muted); }

.nav-link, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .4em;
  text-decoration-thickness: 1px;
}
.nav-link { text-decoration: none; }
.nav-link:hover, .text-link { color: var(--ice); }
.text-link:hover { color: var(--paper); }

.hero { overflow: clip; }
.hero-inner {
  position: relative;
  isolation: isolate;
  min-height: clamp(34rem, 50vw, 49rem);
  display: grid;
  align-items: center;
}

.hero-copy {
  z-index: 1;
  width: fit-content;
  padding-block: 2.75rem 5rem;
}

h1, h2, p { margin: 0; }
.origin-name { margin-bottom: 1rem; color: var(--ice); font-size: 1rem; letter-spacing: .22em; }
.hero-copy > p {
  margin-block: 2rem .45rem;
  max-width: 29rem;
  font-size: clamp(1.08rem, 1.65vw, 1.4rem);
  line-height: 1.46;
  text-wrap: balance;
}

.artwork { position: absolute; pointer-events: none; }
.artifact, .flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.motion-toggle {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: .8rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: var(--ink);
  cursor: pointer;
}
.motion-toggle:hover { color: var(--paper); }
.motion-icon { width: .75rem; height: .75rem; border-inline: 2px solid currentColor; }
.motion-toggle[data-paused="true"] .motion-icon {
  width: 0;
  height: 0;
  border: .4rem solid transparent;
  border-left: .65rem solid currentColor;
  border-right: 0;
}

.work h2 {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem) .8rem;
  color: var(--ice);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-list { margin: 0; padding: 0 0 1.8rem; list-style: none; }
.project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .35rem;
  min-height: 44px;
  padding-block: .65rem;
  text-decoration: none;
}
.project-name {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.045em;
}
.project:hover .project-name { color: var(--ice); text-decoration: underline; text-underline-offset: .18em; }
.project-description { color: var(--muted); line-height: 1.5; }
.site-footer p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: 1.65rem;
  color: var(--muted);
  font-size: .875rem;
}
.footer-separator { margin-inline: .35em; }
.site-footer a { text-underline-offset: .25em; }
.site-footer a:hover { color: var(--paper); }

@media (max-width: 760px) {
  .site-header { min-height: 4.6rem; }
  .hero-inner { min-height: auto; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 3.25rem; }
  .hero-copy { padding-block: clamp(1.65rem, 6vw, 3rem) 0; }
  .hero-copy { position: relative; }
  .artwork { position: relative; align-self: center; order: 1; }
  .motion-toggle { bottom: .4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
