@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #141617;
  --ink: #17191a;
  --paper: #edeeec;
  --white: #f5f6f3;
  --silver: #bfc3c3;
  --line: #c8ccc9;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

p, h1, h2, h3, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #c9ccca; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.shell { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }

.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link {
  position: absolute;
  z-index: 5;
  top: .65rem;
  left: .65rem;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--black);
}

.site-header { border-bottom: 1px solid #ffffff24; }
.header-inner {
  min-height: 4.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .095em;
}

.brand-fit { color: #b9bfc0; margin-inline-start: .24em; }
.brand img { border-radius: .2rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.site-nav a, .back-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  white-space: nowrap;
  color: #d7d9d7;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover, .back-link:hover, .footer-social a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .28em;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 46vw, 41rem);
  overflow: clip;
  background: #262829;
}

.hero-picture, .hero::after { position: absolute; inset: 0; }
.hero-picture { z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #101213eb 5%, #101213b8 31%, #10121318 71%),
              linear-gradient(0deg, #121415a8, transparent 34%);
}

.hero-inner { padding-block: 3.75rem; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(5rem, 9.55vw, 9.3rem); line-height: .82; }
.hero h1 span { color: #c3c9ca; }
.hero-copy { margin-block: 1.65rem 1.4rem; color: #edeeec; font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 24rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.35rem;
  padding: .65rem 1rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .18s ease;
}

.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #d9ddd9; }
.button-light:focus-visible { outline-color: var(--white); }
.arrow {
  display: inline-block;
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(-45deg);
}

.arrow-up { transform: rotate(-135deg) translate(-.04rem, -.04rem); }
.arrow-external { transform: rotate(-90deg); }

.catalog { padding-block: clamp(3.15rem, 6vw, 6rem); background: var(--paper); color: var(--ink); color-scheme: light; }
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 2rem;
  margin-bottom: 1.5rem;
}

.catalog-heading h2 { font-size: clamp(2.8rem, 5.65vw, 5.25rem); line-height: .91; }
.catalog-heading p { color: #4e5452; max-width: 23rem; margin-bottom: .15rem; }
.category-tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(.2rem, 2.5vw, 2rem);
  margin-bottom: 1.45rem;
  border-bottom: 1px solid var(--line);
}

.category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  position: relative;
  min-height: 3.1rem;
  border: 0;
  padding: .35rem .75rem;
  background: transparent;
  color: #4c5351;
  text-align: left;
  font-size: .94rem;
  font-weight: 650;
  cursor: pointer;
}

.category-tabs button:hover { color: var(--ink); background: #dfe2de; }
.category-tabs button[aria-selected="true"] { color: var(--ink); }
.category-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: currentColor;
}

.category-tabs button span { color: #4d5552; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.category-panel + .category-panel:not([role]) { margin-top: 2rem; }
.category-title { margin: .3rem 0 1rem; font-size: 1.15rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(.85rem, 1.9vw, 1.7rem); }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid #b3b9b6; }
.product-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #fff; }
.product-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .24s ease; }
.product:hover .product-photo img { transform: scale(1.035); }

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding-block: 1rem .35rem;
}

.product-info h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.25; letter-spacing: -.02em; }
.product-color { color: #525955; margin-top: .24rem; font-size: .875rem; }
.size-list { display: flex; flex-wrap: wrap; gap: .32rem; padding: 0; list-style: none; }
.product-info .size-list { margin-block: .65rem .38rem; }
.size-list li {
  display: grid;
  place-items: center;
  min-width: 1.85rem;
  min-height: 1.65rem;
  padding: .12rem .35rem;
  border: 1px solid #b5bcb8;
  color: #282f2b;
  font-size: .8rem;
  font-weight: 650;
}

.product-open {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.product-open::after { content: ""; position: absolute; inset: 0; }
.product-open:hover { text-decoration: underline; text-underline-offset: .25em; }
.product-open:focus-visible { outline: none; }
.product-open:focus-visible::after { outline: 2px solid currentColor; outline-offset: 4px; }

.site-footer { padding-block: clamp(2.4rem, 5.6vw, 4.8rem); background: #191c1d; border-top: 1px solid #ffffff26; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-brand { display: grid; justify-items: start; gap: .65rem; }
.footer-logo { display: block; width: min(100%, 12.75rem); }
.footer-logo img { width: 100%; height: auto; }
.footer-brand small { color: #bfc3bf; font-size: .8125rem; }
.footer-social { justify-self: center; }
.footer-social p { color: #bfc3bf; font-size: .875rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
  text-decoration: none;
}

.back-link { justify-self: end; }

.product-dialog {
  position: fixed;
  width: min(49rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.product-dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog::backdrop { background: #0d0f10d6; }
.product-dialog form { display: contents; }
.dialog-media { display: grid; align-content: center; justify-items: center; min-width: 0; background: #fff; }
.dialog-media img { width: 100%; height: clamp(12rem, 55svh, 30rem); object-fit: contain; }
.photo-views { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: .4rem .6rem 1rem; }
.photo-views button {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: .3rem .55rem;
  border: 1px solid #939b96;
  background: #f5f6f3;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}

.photo-views button:hover { border-color: var(--ink); }
.photo-views button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.photo-views button:focus-visible { outline-color: var(--ink); }
.dialog-content { align-self: center; padding: 3.75rem 2rem 2rem; }
.dialog-content h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: .94; }
.dialog-category { margin-block: .6rem .95rem; color: #49534d; font-weight: 650; font-size: .9rem; }
.dialog-content h3 { margin-block: 1.25rem .4rem; font-size: 1rem; }
.dialog-sizes li { min-height: 2rem; padding-inline: .55rem; }

.dialog-close {
  position: absolute;
  z-index: 1;
  top: .7rem;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #919793;
  border-radius: 50%;
  background: #f5f6f3;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dialog-close:focus-visible { outline-color: var(--ink); }
.close-mark { display: grid; place-items: center; }
.close-mark::before, .close-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: .9rem;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.close-mark::after { transform: rotate(-45deg); }
html:has(.product-dialog[open]) { overflow: hidden; }

@media (max-width: 850px) {
  .hero-picture img { object-position: 62% center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { justify-self: start; }
  .back-link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 0; gap: 0; flex-direction: column; align-items: start; padding-top: .45rem; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 2rem; height: 2rem; }
  .site-nav { gap: clamp(.65rem, 4.3vw, 2rem); }
  .site-nav a { font-size: .8375rem; }
  .hero { min-height: clamp(27rem, 117vw, 38rem); align-items: end; }
  .hero-picture img { object-position: 58% 50%; }
  .hero::after { background: linear-gradient(0deg, #111314 0%, #111314e8 24%, #11131470 63%, #11131409 100%); }
  .hero-inner { padding-block: 2.5rem; }
  .hero h1 { font-size: clamp(4.15rem, 14.5vw, 6.7rem); }
  .hero-copy { margin-block: 1.2rem 1.05rem; }
  .catalog-heading { margin-bottom: .85rem; }
  .catalog-heading p { margin-bottom: 0; }
  .category-tabs { margin-bottom: 1rem; gap: .12rem; }
  .category-tabs button { padding-inline: .42rem; gap: .26rem; font-size: .83rem; }
  .category-tabs button span { font-size: .75rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .8rem; }
  .product-photo { aspect-ratio: 4 / 5; }
  .product-info { padding-top: .7rem; }
  .product-open { font-size: .8375rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-logo { width: min(100%, 10rem); }
  .footer-social a { font-size: 2.2rem; }
}

@media (max-width: 490px) {
  .product-dialog[open] { grid-template-columns: 1fr; }
  .dialog-media img { height: min(43svh, 21rem); }
  .dialog-content { padding: 1.25rem; }
  .photo-views { margin-bottom: .65rem; }
}

@media (max-width: 360px) {
  .category-tabs button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

