:root {
  --ink: #171615;
  --muted: #68635d;
  --line: #ded8cf;
  --paper: #faf7f0;
  --panel: #fffdfa;
  --moss: #69715d;
  --rust: #a85635;
  --sky: #7699a8;
  --gold: #cfaa58;
  --navy: #273642;
  --shadow: 0 24px 60px rgba(38, 29, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell > *:not(.under-construction) {
  display: none;
}

.under-construction {
  align-items: center;
  background: #000;
  color: #7fd845;
  display: flex;
  flex-direction: column;
  font-family: "Courier New", ui-monospace, monospace;
  gap: 20px;
  height: 100vh;
  justify-content: center;
  text-align: center;
}

.under-construction p {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 0 14px rgba(127, 216, 69, 0.6);
  text-transform: uppercase;
}

.back-link {
  background: transparent;
  border: 1px solid rgba(127, 216, 69, 0.5);
  border-radius: 999px;
  color: #7fd845;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
}

.back-link:hover {
  background: rgba(127, 216, 69, 0.12);
}

.back-link:focus-visible {
  outline: 2px solid #7fd845;
  outline-offset: 2px;
}

body.gate-locked {
  background: #080806;
  color: #f8f1df;
  min-height: 100vh;
  overflow: hidden;
}

body.gate-open {
  overflow: auto;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

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

.site-shell[hidden],
.coming-soon[hidden] {
  display: none;
}

.coming-soon {
  background: #000;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  position: relative;
}

.soon-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.soon-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.soon-chrome {
  align-items: flex-start;
  display: flex;
  font-size: clamp(0.76rem, 1vw, 0.96rem);
  font-weight: 900;
  justify-content: space-between;
  left: clamp(18px, 3vw, 42px);
  letter-spacing: 0;
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vw, 42px);
  text-transform: uppercase;
  z-index: 1;
}

.soon-left {
  display: grid;
  gap: 10px;
}

.countdown {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.time-value {
  color: #7fd845;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  text-shadow: 0 0 14px rgba(127, 216, 69, 0.6);
}

.clock-colon {
  color: #7fd845;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.7;
  text-shadow: 0 0 14px rgba(127, 216, 69, 0.5);
}

.signup-card {
  background: #000;
  border: 1px solid rgba(127, 216, 69, 0.35);
  border-radius: 10px;
  font-family: "Courier New", ui-monospace, monospace;
  left: 50%;
  max-width: min(360px, calc(100vw - 36px));
  padding: 26px 22px 20px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}

.signup-card[hidden] {
  display: none;
}

.signup-close {
  background: transparent;
  border: 0;
  color: #f8f1df;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
  position: absolute;
  right: 10px;
  top: 8px;
}

.signup-close:hover {
  color: #7fd845;
}

.signup-close:focus-visible {
  outline: 2px solid #7fd845;
  outline-offset: 2px;
}

.signup-title {
  color: #7fd845;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-align: center;
  text-shadow: 0 0 10px rgba(127, 216, 69, 0.6);
  text-transform: uppercase;
}

.signup-subtext {
  color: rgba(127, 216, 69, 0.7);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0 0 16px;
  text-align: center;
}

.signup-form {
  display: grid;
  gap: 8px;
}

.signup-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(127, 216, 69, 0.4);
  border-radius: 6px;
  color: #7fd845;
  font-family: inherit;
  font-size: 0.86rem;
  min-height: 40px;
  padding: 0 12px;
}

.signup-form input::placeholder {
  color: rgba(127, 216, 69, 0.45);
}

.signup-form input:focus-visible {
  outline: 2px solid #7fd845;
  outline-offset: 1px;
}

.signup-form button {
  background: #7fd845;
  border: 0;
  border-radius: 6px;
  color: #0d0d0a;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 40px;
  text-transform: uppercase;
}

.signup-message {
  color: #7fd845;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 8px 0 0;
  min-height: 1.1em;
  text-align: center;
}

.pin-pad {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.pin-status {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pin-status span {
  background: transparent;
  border: 1px solid rgba(127, 216, 69, 0.85);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.pin-status span.filled {
  background: #7fd845;
  border-color: #7fd845;
}

.pin-keys {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pin-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.pin-keys button {
  background: transparent;
  border: 0;
  color: #7fd845;
  cursor: pointer;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  min-width: 1.5em;
  padding: 4px 2px;
  text-align: center;
  text-shadow: 0 0 10px rgba(127, 216, 69, 0.6);
}

.pin-keys button:hover {
  text-shadow: 0 0 14px rgba(127, 216, 69, 0.9);
}

.pin-keys button:focus-visible {
  outline: 2px solid #7fd845;
  outline-offset: 2px;
}

.pin-pad.error .pin-keys {
  animation: pin-shake 0.24s linear;
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.gate-message {
  color: #f8f1df;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 1.3em;
  text-align: center;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 240, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.catalog-toolbar,
.filter-header,
.trust-strip,
.drawer-header,
.order-summary div,
.quantity-control {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.main-nav {
  color: var(--muted);
  gap: 24px;
  font-size: 0.94rem;
}

.header-actions {
  gap: 10px;
}

.icon-button,
.cart-button,
.primary-button,
.primary-link,
.secondary-link,
.filters button,
.product-card button,
.quick-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.icon-button {
  background: var(--panel);
  min-width: 42px;
}

.cart-button,
.primary-button,
.primary-link {
  background: var(--ink);
  color: var(--paper);
}

.secondary-link,
.filters button {
  background: var(--panel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  padding: 56px clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 840px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 570px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.primary-button {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.hero-media {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #d8c9b2, #f2eadf 46%, #889487 100%);
  min-height: 520px;
  position: relative;
}

.hero-asset {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.look-card,
.shoe,
.cap,
.collection-art,
.product-art {
  box-shadow: var(--shadow);
  position: absolute;
}

.look-card-large {
  background: linear-gradient(145deg, #f5efe4, #d1c1aa);
  height: 52%;
  left: 18%;
  opacity: 0;
  top: 18%;
  transform: rotate(-9deg);
  width: 35%;
}

.fold,
.stitch {
  position: absolute;
}

.fold-one {
  background: #2d3a42;
  height: 42%;
  left: 18%;
  top: 24%;
  width: 64%;
}

.fold-two {
  background: #f2eee7;
  bottom: 11%;
  height: 18%;
  left: 12%;
  width: 76%;
}

.stitch {
  border: 2px dashed rgba(23, 22, 21, 0.26);
  inset: 20px;
}

.look-card-small {
  height: 28%;
  opacity: 0;
  right: 20%;
  top: 15%;
  transform: rotate(8deg);
  width: 28%;
}

.look-card-small.olive {
  background: linear-gradient(160deg, #394333, var(--moss));
}

.look-card-small.rust {
  background: linear-gradient(160deg, #d69b72, var(--rust));
  right: 12%;
  top: 52%;
  transform: rotate(-15deg);
}

.shoe {
  background: #f8f5ef;
  border-radius: 70% 30% 26% 24%;
  bottom: 12%;
  height: 15%;
  left: 23%;
  opacity: 0;
  transform: rotate(-11deg);
  width: 36%;
}

.cap {
  background: radial-gradient(circle at 52% 38%, #3f505d 0 34%, var(--navy) 35% 70%, transparent 71%);
  bottom: 29%;
  height: 24%;
  opacity: 0;
  right: 37%;
  width: 22%;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px 34px;
  justify-content: center;
  padding: 18px;
}

.shop-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: 280px 1fr;
  padding: 46px clamp(18px, 4vw, 52px);
}

.filters {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.filter-header {
  justify-content: space-between;
}

.filters h2,
.catalog-toolbar h2 {
  margin-bottom: 0;
}

.search-field,
.sort-field,
.checkout-form label {
  display: grid;
  gap: 8px;
}

.search-field,
.filter-group,
.toggle-row {
  margin-top: 22px;
}

.search-field span,
.sort-field span,
.checkout-form label,
.range-field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

input[type="range"] {
  padding: 0;
  width: 100%;
}

.filter-options,
.chip-grid,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options button,
.chip-grid button {
  color: var(--muted);
}

.filter-options button.active,
.chip-grid button.active {
  background: var(--ink);
  color: var(--paper);
}

.toggle-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.catalog-toolbar {
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-visual {
  aspect-ratio: 1 / 1.08;
  background: #e7ded1;
  overflow: hidden;
  position: relative;
}

.product-art {
  inset: 13%;
}

.product-art.tee {
  background: linear-gradient(140deg, #f8f5ef, #d8cdbc);
  clip-path: polygon(30% 8%, 42% 0, 58% 0, 70% 8%, 92% 24%, 80% 42%, 70% 36%, 70% 92%, 30% 92%, 30% 36%, 20% 42%, 8% 24%);
}

.product-art.overshirt {
  background: linear-gradient(135deg, #2d3a42, #516273);
  clip-path: polygon(25% 8%, 75% 8%, 90% 26%, 78% 44%, 71% 38%, 71% 94%, 29% 94%, 29% 38%, 22% 44%, 10% 26%);
}

.product-art.tote {
  background: linear-gradient(160deg, #d4b487, #f2e7d2);
  clip-path: polygon(24% 28%, 76% 28%, 86% 94%, 14% 94%);
}

.product-art.denim {
  background: linear-gradient(145deg, #243a55, #5f7791);
  clip-path: polygon(24% 6%, 76% 6%, 70% 94%, 55% 94%, 50% 34%, 45% 94%, 30% 94%);
}

.product-art.cap-art {
  background: var(--moss);
  border-radius: 50% 50% 32% 32%;
}

.product-art.sneaker {
  background: #f9f4ea;
  border-radius: 64% 28% 22% 20%;
  inset: 34% 12%;
}

.product-art.jacket {
  background: linear-gradient(135deg, #926d45, #caa874);
  clip-path: polygon(25% 6%, 75% 6%, 94% 42%, 75% 52%, 70% 36%, 70% 94%, 30% 94%, 30% 36%, 25% 52%, 6% 42%);
}

.product-art.scarf {
  background: repeating-linear-gradient(90deg, #a85635 0 20%, #e1c18a 20% 40%, #273642 40% 60%);
  clip-path: polygon(26% 6%, 66% 6%, 80% 94%, 40% 94%);
}

.badge {
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  left: 12px;
  padding: 6px 9px;
  position: absolute;
  top: 12px;
}

.product-info {
  padding: 16px;
}

.product-meta,
.rating-row,
.swatches,
.card-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.rating-row {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 10px 0 14px;
}

.swatches {
  justify-content: flex-start;
}

.swatch {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  height: 18px;
  width: 18px;
}

.card-actions button:first-child {
  flex: 1;
}

.collections,
.journal,
.support {
  padding: 54px clamp(18px, 4vw, 52px);
}

.collection-grid,
.journal-list,
.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-grid article,
.journal-list article,
.support-grid details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.collection-art {
  display: block;
  height: 180px;
  margin-bottom: 18px;
  position: relative;
  width: 100%;
}

.collection-art.workwear {
  background: linear-gradient(135deg, var(--navy), #8aa1a9);
}

.collection-art.weekend {
  background: linear-gradient(135deg, var(--rust), #e2c47d);
}

.collection-art.travel {
  background: linear-gradient(135deg, var(--moss), #d9ded0);
}

.journal-list span {
  color: var(--rust);
  font-weight: 900;
}

.drawer-backdrop {
  background: rgba(23, 22, 21, 0.32);
  inset: 0;
  position: fixed;
  z-index: 19;
}

.drawer {
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 440px;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 0.24s ease;
  width: min(92vw, 440px);
  z-index: 20;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  justify-content: space-between;
}

.drawer-items {
  display: grid;
  flex: 1;
  gap: 12px;
  overflow: auto;
  padding: 12px 0;
}

.line-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
  padding: 10px;
}

.line-thumb {
  background: #e7ded1;
  min-height: 72px;
  position: relative;
}

.quantity-control {
  gap: 8px;
}

.quantity-control button {
  background: #fff;
  border: 1px solid var(--line);
  height: 30px;
  width: 30px;
}

.order-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.order-summary div {
  justify-content: space-between;
}

.total {
  font-size: 1.2rem;
}

.modal {
  background: var(--panel);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 920px;
  padding: 0;
  width: min(94vw, 920px);
}

.modal::backdrop {
  background: rgba(23, 22, 21, 0.4);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1fr;
}

.detail-media {
  min-height: 480px;
  position: relative;
}

.detail-copy {
  padding: 44px;
}

.size-row,
.color-row,
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.size-row button,
.color-row button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  min-width: 48px;
}

.checkout-form {
  display: grid;
  gap: 22px;
  padding: 34px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.toast {
  background: var(--ink);
  bottom: 24px;
  color: var(--paper);
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: all 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  color: var(--muted);
  padding: 20px 0;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero,
  .shop-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 420px;
    order: -1;
  }

  .filters {
    position: static;
  }

  .collection-grid,
  .journal-list,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .soon-bg {
    object-position: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .cart-button {
    flex: 1;
  }

  .catalog-toolbar,
  .product-meta,
  .card-actions,
  .form-grid {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
  }

  body.gate-locked {
    overflow: auto;
  }

  .coming-soon {
    min-height: 100svh;
  }

  .soon-chrome {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .pin-pad {
    justify-items: start;
  }
}
