@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/fonts/pixelify-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3efe5;
  --ink: #171819;
  --muted: #53524d;
  --rule: #b9b6ad;
  --blue: #283ee9;
  --coral: #ed624f;
  --lilac: #cfc5ff;
  --page-width: 1440px;
  font-family: "Instrument Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #746f67 var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
}

::selection {
  color: var(--paper);
  background: var(--blue);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.topbar,
.footer {
  width: min(100% - 64px, var(--page-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 82px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span {
  color: var(--coral);
}

.topbar p,
.top-contact,
.opening-link,
.direction-link,
.footer nav {
  font-size: 0.94rem;
  font-weight: 600;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.015em;
}

.topbar p span {
  padding: 0 0.45rem;
  color: var(--coral);
}

.top-contact,
.opening-link,
.direction-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.7rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.top-contact svg,
.opening-link svg,
.direction-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.top-contact:hover svg,
.opening-link:hover svg,
.direction-link:hover svg {
  transform: translateX(4px);
}

main {
  width: min(100% - 64px, var(--page-width));
  margin: 0 auto;
}

.opening {
  min-height: 404px;
  padding: clamp(3.75rem, 8.3vw, 7.5rem) 0 clamp(3.25rem, 6vw, 5.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.opening h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.3rem, 8.1vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.opening h1 span {
  display: block;
}

.opening-copy > p {
  max-width: 52ch;
  margin: 1.8rem 0 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.5;
}

.opening-link {
  color: var(--blue);
}

.shared-note {
  align-self: end;
  border-top: 1px solid var(--ink);
  padding: 1.1rem 0 0.2rem;
}

.shared-note p {
  max-width: 27ch;
  margin: 0 0 1.4rem;
  font-size: 1rem;
  line-height: 1.48;
}

.shared-note span {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.direction {
  --accent: var(--blue);
  display: grid;
  grid-template-columns: 46px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.4rem);
  padding: clamp(2.75rem, 5vw, 4.75rem) 0;
  border-top: 1px solid var(--rule);
}

.direction-cinematic {
  --accent: #a54530;
}

.direction-folio {
  --accent: var(--blue);
}

.direction-arcade-a {
  --accent: #178393;
}

.direction-arcade-c {
  --accent: #bc5145;
}

.direction-number {
  align-self: start;
  padding-top: 0.4rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.direction-copy {
  align-self: center;
}

.direction-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 620;
  letter-spacing: -0.032em;
  line-height: 0.98;
}

.direction-copy p {
  max-width: 36ch;
  margin: 1.15rem 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.direction-link {
  color: var(--accent);
  text-decoration: none;
}

.direction-link:hover {
  text-decoration: underline;
}

.direction-preview {
  min-width: 0;
  margin: 0;
}

.direction-preview a {
  display: block;
  overflow: hidden;
  background: #e1ddd3;
  box-shadow: 0 14px 34px rgb(31 27 19 / 0.12);
}

.direction-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.46;
  object-fit: cover;
  object-position: center top;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-preview a:hover img {
  transform: scale(1.018);
}

.direction-preview figcaption {
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.015em;
}

.preview-origin {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 600;
}

.footer {
  min-height: 100px;
  margin-top: 1.4rem;
  border-top: 1px solid var(--rule);
  gap: 1rem;
}

.footer .wordmark {
  font-size: 1.45rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer nav {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 800px) {
  .topbar,
  .footer,
  main {
    width: min(100% - 40px, var(--page-width));
  }

  .opening {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(155px, 0.38fr);
    gap: 1.6rem;
    padding-top: 4.5rem;
  }

  .opening h1 {
    font-size: clamp(3.1rem, 8.8vw, 5.4rem);
  }

  .direction {
    grid-template-columns: 34px minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 1rem;
  }

  .direction-copy h2 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
  }
}

@media (max-width: 600px) {
  .topbar,
  .footer,
  main {
    width: calc(100% - 36px);
  }

  .topbar {
    min-height: 72px;
  }

  .topbar p {
    max-width: none;
    font-size: 0.76rem;
    text-align: right;
    white-space: nowrap;
  }

  .top-contact {
    display: none;
  }

  .opening {
    display: block;
    padding: 3.4rem 0 2.5rem;
  }

  .opening h1 {
    font-size: clamp(3.25rem, 11vw, 4.4rem);
    letter-spacing: -0.037em;
  }

  .opening-copy > p {
    max-width: 40ch;
    margin-top: 1.25rem;
  }

  .shared-note {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 0.8rem;
  }

  .shared-note p {
    max-width: 33ch;
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .shared-note span {
    flex: 0 0 auto;
    text-align: right;
    font-size: 0.875rem;
  }

  .direction {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 0.75rem;
    padding: 2.3rem 0 2.6rem;
  }

  .direction-number {
    grid-row: 1;
  }

  .direction-copy {
    grid-column: 2;
  }

  .direction-copy h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .direction-copy p {
    margin-top: 0.8rem;
    font-size: 0.98rem;
  }

  .direction-preview {
    grid-column: 2;
    margin-top: 1.15rem;
  }

  .direction-preview img {
    aspect-ratio: 1.18;
  }

  .direction-preview figcaption {
    font-size: 0.7rem;
  }

  .footer {
    flex-wrap: wrap;
    padding: 1.3rem 0 1.6rem;
  }

  .footer p {
    order: 3;
    flex-basis: 100%;
    font-size: 0.82rem;
  }
}

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

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