:root {
  --ink: #111111;
  --navy: #0c326e;
  --navy-deep: #071e48;
  --paper: #ffffff;
  --mist: #f3f3f3;
  --line: #e7e7e7;
  --muted: #5c5c5c;
  --header: 78px;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  min-height: var(--header);
  padding: 0 34px;
  gap: 16px;
}

.nav-toggle {
  display: none;
  grid-area: left;
  justify-self: start;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-left a,
.nav-right button,
.nav-extra,
.search-bar button,
.drawer-head button {
  background: none;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.nav-left a:hover,
.nav-right button:hover,
.nav-extra:hover { opacity: 0.55; }
.nav-extra { display: none; text-align: left; }

.logo {
  grid-area: logo;
  justify-self: center;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(20px, 1.7vw, 32px);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.nav-right {
  grid-area: right;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 34px 16px;
}
.search-bar[hidden] { display: none; }
.search-bar form { flex: 1; }
.search-bar input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  font-size: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 62vh;
  min-height: 520px;
  max-height: 680px;
  background: #f4f4f4;
}

.hero-photo {
  min-height: 0;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}
.hero-photo img {
  height: 156%;
  width: auto;
  max-width: none;
  flex: none;
  display: block;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 7vw 56px 6.5vw;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.08) 0%, transparent 32%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px),
    linear-gradient(162deg, #1a4e94 0%, #0c326e 46%, #071e48 100%);
}

.hero-copy h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.shop-now {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 22px;
  background: #fff;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}
.shop-now:hover { background: #f2f2f2; }

.edit {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.15fr;
  gap: 28px 32px;
  padding: 36px 34px 28px;
  align-items: start;
}

.edit h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.product img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  background: var(--mist);
  display: block;
}
.product span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #222;
}
.product:hover img { opacity: 0.86; }
.product.is-hidden { display: none; }

.match {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  height: 260px;
  background: #f2f2f2;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.match p {
  margin: 0;
  align-self: center;
  padding: 16px 8px 16px 16px;
  font-family: Anton, Impact, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.match img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 76% 48%;
  display: block;
}
.match:hover img { opacity: 0.92; }

.filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--muted);
}
.filter-empty[hidden] { display: none; }

.site-footer {
  margin-top: 36px;
  padding: 48px 34px 28px;
  border-top: 3px solid var(--navy);
  background: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px 48px;
  align-items: start;
}
.footer-logo {
  display: inline-block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.footer-brand p {
  max-width: 28ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.site-footer nav p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-footer nav a,
.site-footer nav button {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #1c1c1c;
}
.site-footer nav a:hover,
.site-footer nav button:hover { color: var(--navy); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-base p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, 0.38);
  z-index: 50;
}
.scrim[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}
.drawer[hidden] { display: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drawer-body { padding: 22px; overflow: auto; flex: 1; }
.drawer-foot { padding: 8px 22px 22px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.note[hidden] { display: none; }

.account-form { display: flex; flex-direction: column; gap: 10px; }
.account-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-form input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  border-radius: 0;
  margin-bottom: 8px;
}

.btn-navy {
  width: 100%;
  border: 0;
  background: var(--navy);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  padding: 15px 16px;
}
.btn-navy:hover { background: var(--navy-deep); }

.product-view img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  background: var(--mist);
  display: block;
}
.price { margin: 14px 0 6px; font-weight: 600; }
.size-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sizes { display: flex; gap: 8px; margin-bottom: 18px; }
.sizes button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.sizes button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }

.empty { margin: 12px 0; color: var(--muted); }
.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line img { width: 72px; height: 84px; object-fit: cover; background: var(--mist); }
.line h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.line p { margin: 0; color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.remove {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.total {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.hero-copy :focus-visible { outline-color: #fff; }

@media (max-width: 980px) {
  .hero { height: auto; max-height: none; grid-template-columns: 1fr; }
  .hero-photo { height: 92vw; min-height: 420px; max-height: 640px; }
  .hero-photo img {
    height: 100%;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 12%;
  }
  .hero-copy { padding: 42px 24px 48px; }
  .hero-copy h1 { max-width: none; }
  .edit { grid-template-columns: 1fr; padding: 28px 20px 8px; }
  .match { margin-top: 0; height: 240px; }
  .site-footer { padding: 36px 20px 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .bar { padding: 0 16px; min-height: 68px; }
  .nav-toggle { display: inline-grid; align-content: center; }
  .nav-left {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav-left { display: flex; }
  .nav-left a,
  .nav-extra {
    display: block;
    padding: 12px 0;
    font-size: 14px;
  }
  .nav-extra { display: block; }
  .nav-right .desk { display: none; }
  .logo { font-size: 18px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-bar { padding: 0 16px 14px; }
  .products { gap: 8px; }
  .product span { font-size: 11px; }
  .match { grid-template-columns: 0.9fr 1.1fr; height: 220px; }
}

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