:root {
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #ffffff;
  --soft: #f3f3f3;
  --black: #111111;
  --danger: #8c1d1d;
  --header: 72px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-padding-top: 88px; overflow-x: clip; }

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { opacity: 0.55; cursor: wait; }

a { color: inherit; text-decoration: none; }

p { margin: 0; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; }

::selection { background: var(--black); color: #fff; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.manifesto :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--black);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.topbar {
  margin: 0;
  background: var(--black);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.mark { width: 22px; height: auto; display: block; fill: currentColor; }

.logo span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.primary-nav { display: flex; gap: 22px; }

.primary-nav a,
.text-btn {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
}

.primary-nav a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] { background-size: 100% 1px; }

.header-actions { margin-left: auto; }

.bag-count { font-variant-numeric: tabular-nums; }

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display {
  margin: 0 0 16px;
  font-size: clamp(76px, 11vw, 140px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  font-weight: 500;
  text-transform: uppercase;
}

.page-title {
  margin: 8px 0 14px;
  font-size: clamp(46px, 6vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lede {
  margin: 0 0 22px;
  max-width: 28rem;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: #2a2a2a; }

.btn-block { width: 100%; }

.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light:hover { background: #fff; color: var(--black); }

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.08fr;
  min-height: calc(100svh - 106px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 48px 28px;
}

.hero-links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hero-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-links a:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-links .price { color: var(--muted); }

.hero-figure {
  position: relative;
  margin: 0;
  min-height: 560px;
  background: var(--soft);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-figure figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.wrap-wide { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }

.section { padding: 80px 0; }

.section-shop { padding-top: 20px; }

.section-label {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 18px;
}

.card-media {
  background: var(--soft);
  aspect-ratio: 687 / 1024;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding-top: 14px;
}

.card-meta h2,
.card-meta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.card-meta .price { margin: 0; }

.swatch-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #cfcfcf;
  display: inline-block;
}

.swatch-light { background: #fff; }

.swatch-dark { background: #111; border-color: #111; }

.notes { border-top: 1px solid var(--line); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.num {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.notes-grid h3 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.notes-grid p:last-child { margin: 0; max-width: 32ch; }

.manifesto {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #f4f4f4;
  padding: 96px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.manifesto h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.manifesto p {
  margin: 0 0 28px;
  max-width: 38ch;
  color: #d5d5d5;
  font-size: 18px;
  line-height: 1.6;
}

.watermark {
  position: absolute;
  width: min(480px, 70vw);
  right: -30px;
  bottom: -70px;
  fill: #fff;
  opacity: 0.08;
  pointer-events: none;
}

.page-intro { padding: 48px 0 8px; }

.prose {
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.65;
}

.prose p + p { margin-top: 1em; }

.about-block { padding-bottom: 72px; }

.product-page { width: min(1240px, calc(100% - 40px)); margin: 22px auto 0; }

.crumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs a:hover { color: var(--ink); }

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin: 16px 0 72px;
}

.product-photo { background: var(--soft); }

.product-photo img { width: 100%; height: auto; }

.product h1 {
  margin: 8px 0 8px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.product-price {
  margin: 0 0 14px;
  font-size: 18px;
}

.buy p + p { margin-top: 0; }

.description { margin: 0 0 22px; max-width: 42ch; }

.buy { position: sticky; top: 96px; }

.buy .swatch-line { margin: 0 0 18px; }

.sizes { border: 0; margin: 0; padding: 0; }

.sizes legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.size-row { display: flex; flex-wrap: wrap; gap: 8px; }

.size { position: relative; }

.size input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.size span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
}

.size input:checked + span {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.size input:focus-visible + span {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.fit-btn {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }

.buy-row { display: flex; gap: 10px; margin-top: 18px; }

.btn-grow { flex: 1; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.qty span { min-width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }

.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.details li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.related { padding-bottom: 88px; }

.related h2 {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.grid.cols-2 { grid-template-columns: 1fr 1fr; }

.fit-dialog {
  border: 0;
  padding: 32px;
  width: min(460px, calc(100% - 32px));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.fit-dialog::backdrop { background: rgba(17, 17, 17, 0.42); }

.fit-dialog h2 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.fit-dialog p { margin: 0 0 12px; }

.fit-dialog .text-btn { margin-top: 8px; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.bag-open .backdrop { opacity: 1; pointer-events: auto; }

body.bag-open { overflow: hidden; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.bag-open .drawer { transform: translateX(0); }

.drawer-head,
.drawer-foot { padding: 20px 24px; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { margin: 0; font-size: 20px; letter-spacing: 0; }

.drawer-body { flex: 1; overflow: auto; padding: 8px 24px 24px; }

.drawer-foot { border-top: 1px solid var(--line); }

.bag-empty {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px 0;
}

.line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line img {
  width: 76px;
  height: 96px;
  object-fit: contain;
  background: var(--soft);
}

.line-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}

.line .muted { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }

.line-actions { display: flex; align-items: center; gap: 14px; }

.remove {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.totals {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
}

.ship-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.narrow { width: min(720px, calc(100% - 40px)); margin: 48px auto 96px; }

.checkout-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: start;
}

.field-groups { display: grid; gap: 28px; margin-top: 8px; }

.fields { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }

.fields legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 6px; }

.field span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
}

.field textarea { min-height: 88px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--black); }

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-bottom-color: var(--danger); }

.reserve-actions { display: grid; gap: 12px; margin-top: 28px; }

.summary {
  position: sticky;
  top: 96px;
  background: var(--soft);
  padding: 24px;
}

.summary h2 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

#summary-lines { list-style: none; margin: 0; padding: 0; }

#summary-lines li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e3e3e3;
}

#summary-lines img {
  width: 56px;
  height: 72px;
  object-fit: contain;
  background: #fff;
}

#summary-lines p { margin: 0; }

#summary-lines .muted { color: var(--muted); font-size: 13px; }

.sum-totals { margin: 8px 0 0; }

.sum-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.sum-totals dt,
.sum-totals dd { margin: 0; }

.sum-totals div:last-child {
  border-top: 1px solid #ddd;
  margin-top: 6px;
  padding-top: 14px;
  font-size: 18px;
}

.confirm-card { background: var(--soft); padding: 24px; margin: 28px 0 32px; }

.confirm-card p { margin: 0 0 14px; }

.confirm-lines { list-style: none; margin: 8px 0; padding: 0; }

.confirm-lines li,
.confirm-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e3e3e3;
}

.confirm-total { font-size: 18px; }

.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer ul { list-style: none; margin: 0; padding: 0; }

.footer li { margin: 8px 0; }

.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-brand p { max-width: 28ch; color: var(--muted); margin-top: 12px; }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .card:hover .card-media img { transform: scale(1.035); }
  .size:hover span { border-color: var(--black); }
  .qty button:hover { background: var(--soft); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure { order: -1; min-height: 72vw; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-copy { display: block; padding: 28px 20px 12px; }
  .hero-lower { margin-top: 28px; }
  .grid, .notes-grid, .manifesto-grid, .footer-grid, .product, .checkout-layout, .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .product { gap: 24px; }
  .buy, .summary { position: static; }
  .summary { order: -1; }
  .manifesto { padding: 72px 0; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .header { gap: 14px; padding: 0 16px; }
  .split { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
  .hero-figure { min-height: 88vw; }
}

@media (max-width: 380px) {
  .logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
