@font-face {
  font-family: ALIAS Display;
  src: url("display.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: ALIAS Display;
  src: url("display-cyr.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: ALIAS Body;
  src: url("body.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: ALIAS Body;
  src: url("body-cyr.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --ink: #151515;
  --paper: #f1efe8;
  --lime: #d9ff40;
  --wine: #53252d;
  --muted: #bab8b0;
  --line: #43433e;
  --gutter: clamp(1rem, 4.4vw, 5rem);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --display: "ALIAS Display", "Arial Narrow", sans-serif;
  --body: "ALIAS Body", Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
  font: 400 1rem/1.5 var(--body);
}

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

body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, summary { touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
a:active, summary:active { opacity: .78; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--lime);
  color: var(--ink);
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}

.masthead { border-bottom: 1px solid var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--paper);
  font: 700 2rem/.9 var(--display);
  letter-spacing: -.06em;
}

.brand span { margin-left: .22em; color: var(--lime); font: 650 .6em/1 var(--body); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem clamp(.65rem, 2.8vw, 2.75rem);
}

.nav a, .footer-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 2.75rem;
  padding-inline: .125rem;
  font-size: .875rem;
}

.nav [aria-current] {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: .4em;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 650;
  font-size: .875rem;
  transition: color 150ms ease, background-color 150ms ease;
}

.action:focus-visible { outline-color: var(--lime); }
.action span { font-size: 1.15em; }

.wrap { max-width: 112rem; margin-inline: auto; padding-inline: var(--gutter); }

.intro {
  display: grid;
  grid-template-columns: 1.65fr minmax(12rem, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 6.5vw, 6rem) clamp(2rem, 4.4vw, 4rem);
}

h1, h2, h3 { font-family: var(--display); }
h1, h2 { text-wrap: balance; }

h1 {
  font-size: clamp(3rem, 11.6vw, 11.5rem);
  line-height: .91;
  font-weight: 700;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.intro > p, .studio-copy > p, .motion-notes > p {
  max-width: 29rem;
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  text-wrap: pretty;
}

.intro > p { padding-bottom: .15em; }

.footer {
  margin-top: clamp(3.5rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
  font-size: .8rem;
}

.footer-link { color: var(--paper); }

/* Contact sheet */
body.collection { color-scheme: light; color: var(--ink); background: var(--paper); }
.collection .masthead { color-scheme: dark; color: var(--paper); background: var(--ink); }
.collection .intro { border-bottom: 1px solid #b0aea5; }
.collection .intro p { max-width: 23rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem clamp(.75rem, 4vw, 4rem);
  padding-block: 1rem;
  border-bottom: 1px solid #b0aea5;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 650;
}

.jump span { font-weight: 400; }
.category { margin-top: clamp(2.6rem, 6vw, 6rem); scroll-margin-block-start: 1.25rem; }

.category-title {
  margin-bottom: .7em;
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.product-grid, .look-grid, .motion-grid {
  display: grid;
  list-style: none;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.625rem, 1.3vw, 1.25rem);
}

.product { display: block; }
.product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1.16;
  overflow: clip;
  background: #dfddd4;
  box-shadow: inset 0 0 0 1px #15151514;
  transition: background-color 160ms ease;
}

.product-grid :where(li:nth-child(2)) .product-photo { background: #d1d1c9; }
.product-grid :where(li:nth-child(3)) .product-photo { background: #dfd4ce; }

.product-photo img {
  width: 75%;
  height: 81%;
  object-fit: contain;
}

.shoe-photo img { width: 82%; }
.hat-photo img { width: 62%; height: 70%; }

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .625rem;
  padding-block: .75rem .5rem;
}

.product-info h3 {
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  line-height: 1.18;
  font-weight: 650;
}

.product-info p { margin-top: .3rem; color: #47463f; font-size: .85rem; }

.arrow {
  display: grid;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #96968e;
  line-height: 1;
  font-size: 1.15rem;
  transition: background-color 160ms ease, color 160ms ease;
}

/* Look covers */
.looks-intro { color: var(--lime); }
.looks-intro h1 { font-size: clamp(3rem, 9.8vw, 10rem); }
.looks-intro p { color: var(--paper); }
.look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.625rem, 1.3vw, 1.25rem); }

.look-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: clip;
  aspect-ratio: .78;
  background: #b4bf87;
  color: #363c27;
}

.look:nth-child(2) .look-stage { background: #bdbaaf; color: #454039; }
.look:nth-child(3) .look-stage { background: var(--wine); color: #eac4ba; }

.look-stage::before {
  position: absolute;
  inset: 10%;
  border: 1px solid currentColor;
  border-radius: 49%;
  opacity: .36;
  content: "";
}

.look-stage p {
  position: absolute;
  top: 6%;
  width: 100%;
  font: 700 clamp(1.75rem, 6.25vw, 7rem)/1 var(--display);
  letter-spacing: -.04em;
  text-align: center;
  text-transform: uppercase;
}

.look-stage img {
  position: absolute;
  width: 95%;
  height: 96%;
  inset: auto 2.5% 0;
  object-fit: contain;
  object-position: center bottom;
}

.look-info { padding: 1rem 0 .25rem; }
.look-info h2 {
  font-size: clamp(1.7rem, 3vw, 3.3rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.look-info p { margin: .45em 0 1.2em; color: var(--muted); }

/* Field guide */
.guide-intro { border-bottom: 1px solid var(--line); }
.guide-layout { display: grid; grid-template-columns: 1.4fr minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); padding-top: clamp(1rem, 4vw, 4rem); }
.steps { list-style: none; counter-reset: step; }

.steps > li {
  position: relative;
  counter-increment: step;
  padding: 1.7rem 0 1.7rem clamp(3.5rem, 8vw, 8rem);
  border-top: 1px solid var(--line);
}

.steps > li:first-child { border-top: 0; }
.steps > li::before {
  position: absolute;
  top: 1.56rem;
  left: 0;
  content: counter(step, decimal-leading-zero);
  color: var(--lime);
  font: 650 clamp(1.75rem, 4vw, 4.5rem)/1 var(--display);
}

.steps h2 { font-size: clamp(1.35rem, 2.75vw, 3rem); line-height: 1.14; text-wrap: wrap; }
.steps p { max-width: 28rem; margin-top: .65rem; color: var(--muted); }
.access { align-self: start; padding: clamp(1rem, 2.5vw, 2rem); background: var(--paper); color: var(--ink); }
.access h2 { margin-bottom: .7em; font-size: clamp(1.65rem, 3vw, 3rem); font-weight: 650; line-height: 1; text-transform: uppercase; }
.access details { border-top: 1px solid #b9b6ad; }
.access summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding-block: .55rem;
  list-style: none;
  font-weight: 650;
  cursor: pointer;
}
.access summary::-webkit-details-marker { display: none; }
.access summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.access details[open] summary::after { content: '−'; }
.access details p { padding-block: .3rem 1rem; font-size: .925rem; }
.access .action { margin-top: 1rem; background: var(--ink); color: var(--paper); }
.access .action:focus-visible { outline-color: var(--ink); }
kbd { padding: .1em .25em; border: 1px solid #88857b; border-radius: .2rem; font: inherit; font-weight: 600; white-space: nowrap; }

/* Studio */
.studio-hero {
  display: grid;
  grid-template-columns: 1.13fr minmax(0, 1fr);
  min-height: min(44rem, 65vw);
  margin: clamp(1.25rem, 3vw, 3.25rem) calc(-1 * var(--gutter)) 0;
  color: var(--ink);
  background: var(--lime);
}

.studio-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter);
}

.studio-copy h1 { font-size: clamp(4rem, 10.6vw, 10rem); }
.studio-copy .action { background: var(--ink); color: var(--paper); }
.studio-copy .action:focus-visible { outline-color: var(--ink); }

.studio-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  position: relative;
  isolation: isolate;
  min-height: 25rem;
  overflow: clip;
  padding: 1rem;
  background: #afb974;
}

.studio-photo::before {
  position: absolute;
  inset: 6% 14% 7%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .45;
  content: "";
}

.studio-photo img {
  position: absolute;
  width: 95%;
  height: 166%;
  max-width: none;
  inset: 4.5% 2.5% auto;
  object-fit: contain;
  object-position: center top;
}

.studio-photo figcaption {
  position: relative;
  z-index: 1;
  grid-row: 2;
  justify-self: start;
  padding: .3rem .65rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 .875rem/1.4 var(--display);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.motion-notes { margin-top: clamp(3.5rem, 8vw, 7rem); }
.motion-notes h2 {
  margin-bottom: .3em;
  font-size: clamp(2.3rem, 5.8vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
}

.motion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(1.25rem, 3.5vw, 3rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.motion-grid a {
  display: grid;
  height: 100%;
  padding: clamp(.7rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.motion-grid a:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.motion-arrow { margin-bottom: .25em; color: var(--lime); font: 400 clamp(2rem, 4.75vw, 5rem)/1 var(--body); }
.motion-name { align-self: end; font: 650 clamp(1rem, 2.2vw, 2rem)/1.2 var(--display); text-transform: uppercase; }
.motion-note { margin-top: .4em; color: var(--muted); font-size: .85rem; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .footer-link:hover { color: var(--lime); }
  .action:hover { background: var(--paper); color: var(--ink); }
  .jump a:hover { text-decoration: underline; text-underline-offset: .3em; }
  .product:hover .product-photo { background: var(--lime); }
  .product:hover .arrow { background: var(--ink); color: var(--paper); }
  .access summary:hover { text-decoration: underline; text-underline-offset: .25em; }
  .access .action:hover, .studio-copy .action:hover { background: var(--wine); color: var(--paper); }
  .motion-grid a:hover { background: #262623; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro h1 { animation: rise 530ms var(--ease) both; }
  .intro > p { animation: rise 460ms var(--ease) 70ms both; }
  .look-stage img { animation: cover 560ms var(--ease) 80ms both; }
  .look:nth-child(2) .look-stage img { animation-delay: 155ms; }
  .look:nth-child(3) .look-stage img { animation-delay: 205ms; }
  .studio-photo img { animation: cover 640ms var(--ease) 50ms both; }

  @keyframes rise {
    from { transform: translateY(.18em); opacity: .15; }
  }

  @keyframes cover {
    from { transform: translateY(8%) scale(.96); opacity: 0; }
  }

  @media (hover: hover) and (pointer: fine) {
    .product-photo img, .motion-arrow { transition: transform 210ms var(--ease); }
    .product:hover img { transform: translateY(-3%) scale(1.055); }
    .motion-grid a:hover .motion-arrow { transform: translateY(-.11em); }
    .motion-grid li:nth-child(1) a:hover .motion-arrow { transform: translateY(.11em); }
    .motion-grid li:nth-child(2) a:hover .motion-arrow { transform: translateX(-.11em); }
    .motion-grid li:nth-child(3) a:hover .motion-arrow { transform: translate(-.08em, -.08em); }
  }
}

@media (max-width: 47.5rem) {
  .masthead {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .25rem 1rem;
    padding-block: .6rem .15rem;
  }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0 .4rem; }
  .nav a { font-size: clamp(.7rem, 2.9vw, .875rem); }
  .header-action { grid-column: 2; grid-row: 1; padding: .6rem .8rem; }
  .intro { grid-template-columns: 1fr; }
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .look-stage p { font-size: clamp(2rem, 9vw, 5rem); }
  .guide-layout { grid-template-columns: 1fr; }
  .studio-hero { grid-template-columns: 1fr; }
  .studio-photo { min-height: clamp(20rem, 72vw, 30rem); }
  .motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-wrap: wrap; gap: .5rem 1rem; }
  .footer p { flex: 1 0 12rem; }
}

@media (max-width: 32rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .6rem; }
  .product-info p { font-size: .775rem; }
  .arrow { flex-basis: 1.7rem; height: 1.7rem; }
  .look-grid { grid-template-columns: 1fr; }
  .look-stage p { font-size: 15vw; }
}
