@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;800&display=swap");

:root {
  --paper: #f7f6f3;
  --paper-2: #efece6;
  --ink: #101011;
  --ink-2: #3d3c3a;
  --muted: #7c7a76;
  --line: #e0ddd5;
  --line-strong: #c9c5ba;
  --signal: #b8462a;
  --signal-bg: #f8ece7;
  --good: #2c6047;
  --white: #fff;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131313;
    --paper-2: #1c1c1d;
    --ink: #f2f0ec;
    --ink-2: #c3bfb8;
    --muted: #8e8a83;
    --line: #2c2c2d;
    --line-strong: #43423f;
    --signal: #e0764f;
    --signal-bg: #2a1d18;
    --good: #6fb894;
    --white: #1c1c1d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip:focus {
  top: 8px;
}

/* ---------- header ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  height: 62px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.26em;
  text-decoration: none;
  padding-left: 0.26em;
}

.head nav {
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.head nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
}
.head nav a:hover {
  color: var(--ink);
}

.cart-btn {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.15s var(--ease);
}
.cart-btn:hover {
  border-color: var(--ink);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.cart-count[data-empty="true"] {
  background: var(--line-strong);
  color: var(--ink);
}

/* ---------- announce bar ---------- */

.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px var(--pad);
  font-weight: 500;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(48px, 9vw, 110px) var(--pad) clamp(40px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(44px, 12vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero p {
  max-width: 34em;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-2);
  margin: 0 0 32px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hero-meta b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- section frame ---------- */

.section {
  padding: clamp(44px, 7vw, 88px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(24px, 4.5vw, 38px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 34em;
}

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(18px, 3vw, 34px) clamp(14px, 2.4vw, 26px);
}

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  gap: 14px;
}

.thumb {
  aspect-ratio: 5 / 6;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.thumb svg {
  width: 72%;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.card:hover .thumb svg,
.card:focus-visible .thumb svg {
  transform: scale(1.045);
}

.flag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
}
.flag[data-tone="low"] {
  background: var(--signal);
  color: #fff;
}

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: -9px;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

.swatches {
  display: flex;
  gap: 6px;
  margin-top: -4px;
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* ---------- product view ---------- */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(26px, 5vw, 70px);
  padding: clamp(26px, 4vw, 52px) var(--pad) clamp(50px, 8vw, 96px);
  align-items: start;
}

.pdp-media {
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  position: sticky;
  top: 86px;
}

.pdp-media svg {
  width: 68%;
  height: auto;
  transition: color 0.35s var(--ease);
}

.back {
  background: none;
  border: 0;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.back:hover {
  color: var(--ink);
}

.pdp h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.028em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1;
}

.pdp-sub {
  color: var(--muted);
  margin: 0 0 18px;
}

.pdp-price {
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}
.pdp-price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

.pdp-body {
  color: var(--ink-2);
  max-width: 42em;
  margin: 0 0 30px;
}

/* ---------- option pickers ---------- */

.opt {
  margin-bottom: 26px;
}

.opt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 11px;
}

.opt-name {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.opt-chosen {
  font-size: 13px;
  color: var(--muted);
}

.opt-guide {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
}
.opt-guide:hover {
  color: var(--ink);
}

.opt-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  min-width: 52px;
  text-align: center;
  position: relative;
  transition:
    border-color 0.14s var(--ease),
    color 0.14s var(--ease);
}
.chip:hover:not([aria-disabled="true"]) {
  border-color: var(--ink);
}
.chip[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.chip[aria-disabled="true"] {
  color: var(--muted);
  border-style: dashed;
  cursor: not-allowed;
  background: transparent;
}
.chip[aria-disabled="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top left,
    transparent calc(50% - 0.5px),
    var(--line-strong) calc(50% - 0.5px),
    var(--line-strong) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

.chip-colour {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 11px;
}

.chip-colour .dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  flex: 0 0 auto;
}

/* ---------- stock + add ---------- */

.stock {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 18px;
  min-height: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock[data-state="low"] {
  color: var(--signal);
}
.stock[data-state="out"] {
  color: var(--muted);
}
.stock[data-state="in"] {
  color: var(--good);
}
.stock .pip {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 15px 20px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  transition:
    opacity 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.btn:hover:not(:disabled) {
  opacity: 0.86;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.notify {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.notify input {
  flex: 1;
  min-width: 0;
}

.detail-list {
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.detail-list dt {
  color: var(--muted);
  margin: 0;
}
.detail-list dd {
  margin: 0;
  text-align: right;
}

/* ---------- inputs ---------- */

input[type="email"],
input[type="text"] {
  font: inherit;
  font-size: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
}
input::placeholder {
  color: var(--muted);
}
input:focus-visible {
  border-color: var(--ink);
}

/* ---------- signup ---------- */

.signup {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.signup form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.signup input {
  flex: 1 1 220px;
}
.signup .btn {
  width: auto;
  flex: 0 0 auto;
  padding-inline: 28px;
}

.form-msg {
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--good);
}
.form-msg[data-error="true"] {
  color: var(--signal);
}

/* ---------- cart drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 17, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 50;
}
.scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer[data-open="true"] {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.icon-btn {
  background: none;
  border: 0;
  padding: 6px;
  line-height: 0;
  color: var(--muted);
}
.icon-btn:hover {
  color: var(--ink);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--pad);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 70px 10px;
  font-size: 14px;
}

.line-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.line-item .thumb {
  aspect-ratio: 1;
  background: var(--paper-2);
}
.line-item .thumb svg {
  width: 74%;
}

.li-title {
  font-weight: 600;
  font-size: 14px;
}
.li-opts {
  color: var(--muted);
  font-size: 12.5px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  margin-top: 8px;
}
.qty button {
  background: none;
  border: 0;
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
}
.qty button:hover:not(:disabled) {
  color: var(--ink);
}
.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.li-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.li-remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.li-remove:hover {
  color: var(--signal);
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom));
}

.ship-bar {
  height: 3px;
  background: var(--line);
  margin: 12px 0 8px;
  overflow: hidden;
}
.ship-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.ship-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.ship-note b {
  color: var(--ink);
  font-weight: 600;
}

.totals {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.totals + p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- size guide dialog ---------- */

dialog {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
}
dialog::backdrop {
  background: rgba(16, 16, 17, 0.45);
}

.dlg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.dlg-head h2 {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.dlg-body {
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

.dlg-note {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 130%);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 500;
  z-index: 70;
  transition: transform 0.34s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast[data-show="true"] {
  transform: translate(-50%, 0);
}

/* ---------- colophon ---------- */

.colophon {
  padding: clamp(44px, 7vw, 80px) var(--pad) 70px;
  background: var(--paper-2);
}

.colophon h2 {
  font-size: clamp(20px, 3vw, 27px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 8px;
}

.colophon > p {
  color: var(--muted);
  max-width: 44em;
  margin: 0 0 32px;
  font-size: 14px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px 32px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}

.notes h3 {
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 700;
}

.notes ul {
  margin: 0;
  padding-left: 17px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.notes li {
  margin-bottom: 7px;
}

.fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp-media {
    position: static;
    aspect-ratio: 5 / 4;
  }
  .signup {
    grid-template-columns: 1fr;
  }
  .head nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
