@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f5f9;
  --ink: #15203b;
  --muted: #495a76;
  --blue: #2049de;
  --line: #cbd4e4;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-150%);
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(100% - 7.5rem, 76rem);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.25rem;
  border-bottom: 1px solid var(--line);
}

.brand, .brand img { display: block; }

.topbar nav, .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.topbar nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}

.topbar nav a:hover, .footer-links a:hover { color: var(--blue); }

.topbar nav span, .footer-links span { color: var(--blue); }

.hero {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  min-height: 36rem;
  padding-block: 2.25rem 1.9rem;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow, figcaption {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  color: var(--muted);
}

.point {
  width: .38rem;
  height: .38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

h1 {
  margin: 1.45rem 0 1.85rem;
  font-size: clamp(4.5rem, 9.6vw, 9.25rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.059em;
}

h1 span, .footer h2 span { color: var(--blue); }

.intro {
  max-width: 26rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.175rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 600;
}

.intro a {
  color: var(--ink);
  text-decoration-color: #788be1;
  text-underline-offset: .21em;
}

.intro a:hover { color: var(--blue); }

.current {
  margin: 0 0 0 -1rem;
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.current-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  isolation: isolate;
}

.current-frame::before {
  content: "";
  position: absolute;
  inset: 6% 3% 0 0;
  background: radial-gradient(ellipse at 55% 55%, #dce6ff 0%, #e9effd 37%, transparent 70%);
  opacity: .87;
  z-index: -1;
}

.current-art {
  width: 100%;
  height: auto;
  max-height: 31rem;
  object-fit: contain;
  pointer-events: none;
  transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0)
    rotate(var(--art-rotation, 0deg));
}

.axis {
  position: absolute;
  color: #5b72a2;
  font: .9rem var(--mono);
  pointer-events: none;
}

.axis-top { top: 6%; right: 5%; }
.axis-bottom { bottom: 8%; left: 12%; }

figcaption {
  display: flex;
  justify-content: space-between;
  margin: 0 5% .35rem 12%;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.work {
  display: grid;
  grid-template-columns: .29fr .71fr;
  align-items: start;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.work h2 { margin-top: 2.22rem; }

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li + li { border-top: 1px solid var(--line); }

.project-list a {
  display: grid;
  grid-template-columns: 1.04fr 1.2fr 1.5rem;
  gap: .9rem;
  align-items: center;
  min-height: 5rem;
  padding-block: .8rem;
  text-decoration: none;
}

.project-name {
  font-size: clamp(1.1rem, 2.15vw, 1.64rem);
  font-weight: 800;
  letter-spacing: -.048em;
}

.project-description {
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
}

.arrow {
  color: var(--blue);
  font-size: 1.15rem;
  justify-self: end;
  transition: transform 180ms ease-out;
}

.project-list a:hover .project-name, .project-list a:focus-visible .project-name { color: var(--blue); }
.project-list a:hover .arrow, .project-list a:focus-visible .arrow { transform: translate(2px, -2px); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 2rem;
  min-height: 8.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.footer h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.05em;
}

@media (max-width: 900px) {
  .shell { width: calc(100% - 4rem); }
  .hero { min-height: 28rem; }
  .current-art { max-height: 25rem; }
  .work { grid-template-columns: .24fr .76fr; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 2.5rem); }
  .topbar { min-height: 4.75rem; }
  .topbar nav, .footer-links { gap: 1.1rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem 1.45rem; }
  h1 { font-size: clamp(4rem, 16.9vw, 6.25rem); margin-block: 1.15rem 1.25rem; }
  .intro { max-width: 22rem; }
  .current { margin: .7rem 0 0; }
  .current-art { max-height: 17rem; }
  .axis-top { right: 1%; }
  .axis-bottom { left: 1%; }
  figcaption { margin: 0 1%; }
  .work { grid-template-columns: 1fr; }
  .work h2 { margin: 1.5rem 0 .45rem; }
  .project-list a { grid-template-columns: 1fr 1.5rem; gap: .16rem .7rem; min-height: 4.7rem; }
  .project-description { grid-row: 2; }
  .arrow { grid-area: 1 / 2 / 3; }
  .footer { min-height: 6.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .current-art { transform: none; }
  .arrow { transition: none; }
  .project-list a:hover .arrow, .project-list a:focus-visible .arrow { transform: none; }
}
