@font-face {
  font-family: InstrumentSans;
  src: url("fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e0e12;
  --page: #f5f5f7;
  --blue: #2440e0;
  --grey: #5c5c64;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: InstrumentSans, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1080px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 28px 24px;
}

.shell > * {
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
}

.link {
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
}

.link:hover,
.link:active {
  opacity: 0.55;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(72px, 14vw, 152px);
  width: max-content;
  max-width: 100%;
}

.mark {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.underline {
  display: block;
  width: 58%;
  min-width: 0;
  height: 0.3em;
  margin-top: -0.14em;
  position: relative;
  z-index: 0;
  left: 0.12em;
  overflow: visible;
  clip-path: inset(0 100% 0 0);
}

.underline.is-drawn {
  clip-path: inset(0 0 0 0);
  transition: clip-path 720ms cubic-bezier(0.22, 0.9, 0.28, 1);
}

.products {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  opacity: 0;
  transform: translateY(8px);
}

.product.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product.is-in:hover,
.product.is-in:active {
  opacity: 0.5;
  transition: opacity 220ms ease;
}

.product-name {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.product-note {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--grey);
}

@media (min-width: 800px) {
  .shell {
    padding: 36px 48px 32px;
  }

  .products {
    margin-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .underline,
  .underline.is-drawn,
  .product,
  .product.is-in {
    transition: none !important;
    clip-path: none;
    opacity: 1;
    transform: none;
  }
}
