:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-faint: #767676;
  --focus: #1b6ef3;
  --line: rgba(0, 0, 0, 0.12);
  --space: clamp(1rem, 4vw, 2rem);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -130%);
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#stage:active {
  cursor: grabbing;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(1.1rem, 1rem + 2vw, 2rem);
  padding: var(--space);
  text-align: center;
  pointer-events: none;
}

.hero .btn {
  pointer-events: auto;
}

.hero__logo {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.hero__the {
  font-weight: 400;
  color: var(--ink-faint);
}

.hero__logo-img {
  display: block;
  width: min(60vw, 420px);
  height: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.collection {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  padding: calc(var(--space) * 2.5) var(--space) var(--space);
  background: var(--bg);
}

.collection[hidden] {
  display: none;
}

.collection__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.collection__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 2vw, 1.8rem);
}

.btn {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  border-color: var(--ink);
}

.btn--primary:hover {
  background: #000;
  border-color: #000;
  color: #ffffff;
}

.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.work {
  background: var(--bg);
  padding: 1rem;
}

.work a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.work a:hover .work__title {
  color: var(--focus);
}

.work__title {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}

@media (min-width: 40rem) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}