:root {
  --paper: #f0ede6;
  --paper-light: #f7f5ef;
  --ink: #171715;
  --muted: #79766d;
  --line: rgba(23, 23, 21, 0.15);
  --olive: #7a7d62;
  --sand: #c8b89d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.maintenance-screen { position: fixed; z-index: 10000; inset: 0; display: grid; place-content: center; gap: 18px; padding: 32px; background: var(--paper); color: var(--ink); text-align: center; }
.maintenance-screen::before { position: absolute; z-index: -1; inset: 8%; border: 1px solid var(--line); content: ""; }
.maintenance-screen > * { max-width: 620px; margin-right: auto; margin-left: auto; }
.maintenance-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); font: 500 28px var(--serif); }
.maintenance-screen .eyebrow { margin-bottom: 0; }
.maintenance-screen h1 { margin: 0; font: 500 clamp(42px, 8vw, 86px)/.94 var(--serif); letter-spacing: -.05em; }
.maintenance-screen p:not(.eyebrow) { max-width: 420px; margin-top: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.waitlist-dialog { width: min(480px, calc(100% - 32px)); border: 0; padding: 0; background: transparent; color: var(--ink); }
.waitlist-dialog::backdrop { background: rgba(23, 23, 21, .48); }
.waitlist-dialog-card { position: relative; display: grid; gap: 12px; padding: 32px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 18px 60px rgba(23, 23, 21, .22); }
.waitlist-dialog-card h2 { margin: 0 0 4px; font: 500 clamp(32px, 6vw, 52px)/.96 var(--serif); }
.waitlist-dialog-card p:not(.eyebrow):not(.waitlist-consent):not(.waitlist-status) { margin: 0 0 8px; color: var(--muted); line-height: 1.55; }
.waitlist-dialog-card label { font-size: 12px; font-weight: 700; }
.waitlist-dialog-card input { width: 100%; border: 1px solid var(--line); padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; }
.waitlist-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.waitlist-consent, .waitlist-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.waitlist-status { color: var(--olive); }

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--olive);
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Announcement and header */

.announcement {
  display: flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--ink);
  color: var(--paper-light);
  font: 10px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.announcement span {
  color: #b7b69c;
}

.site-header {
  display: flex;
  max-width: 1440px;
  margin: auto;
  padding: 25px 42px 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 12px var(--serif);
  font-style: italic;
}

nav {
  display: flex;
  gap: 31px;
  margin-left: 72px;
  font: 11px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  color: #56534b;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--ink);
}

nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.currency-switcher {
  position: relative;
}

.currency-button {
  white-space: nowrap;
}

.currency-button::after {
  display: inline-block;
  margin-left: 5px;
  content: "⌄";
  font-size: 13px;
  transform: translateY(-1px);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -10px;
  z-index: 5;
  display: grid;
  min-width: 94px;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 12px 28px rgba(23, 23, 21, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.2s, transform 0.2s;
}

.currency-switcher.open .currency-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.currency-menu button {
  padding: 8px 9px;
  text-align: left;
  font: 10px var(--mono);
  letter-spacing: 0.04em;
}

.currency-menu button:hover,
.currency-menu button.selected {
  background: var(--paper);
}

.bag-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bag-count {
  min-width: 19px;
  height: 19px;
  padding: 2px 5px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 10px;
}

.mobile-menu {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  max-width: 1440px;
  margin: auto;
  padding: 58px 42px 70px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(500px, 1.1fr);
  gap: 7vw;
  align-items: center;
}

h1 {
  max-width: 500px;
  margin: 0;
  font: 500 clamp(52px, 6.7vw, 102px) / 0.91 var(--serif);
  letter-spacing: -0.065em;
}

h1 em {
  font-style: italic;
}

.hero-copy {
  max-width: 340px;
  margin: 32px 0 29px;
  color: #605d54;
  font-size: 14px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 43px;
  padding: 0 18px 0 21px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.button::after {
  content: "↗";
  font-size: 15px;
  line-height: 0;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.hero-note {
  display: flex;
  margin-top: 55px;
  align-items: center;
  gap: 11px;
  color: #868278;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note::before {
  width: 25px;
  height: 1px;
  background: #aaa69a;
  content: "";
}

.hero-art-wrap {
  position: relative;
  min-height: 565px;
}

.hero-art {
  position: absolute;
  inset: 0 8% 0 0;
  overflow: hidden;
  background: #c7b89f url("public/ivory-hero.png") center / cover;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  color: rgba(255, 255, 255, 0.78);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
}

.hero-art::before {
  top: 18px;
  left: 19px;
  content: "NO. 01";
}

.hero-art::after {
  right: 20px;
  bottom: 18px;
  content: "THE QUIET ARC";
}

.art-sticker {
  position: absolute;
  right: 0;
  bottom: 55px;
  z-index: 2;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-light);
  text-align: center;
  font: 10px / 1.45 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: rotate(13deg);
}

.art-sticker span {
  display: block;
  margin-bottom: 4px;
  font: 27px var(--serif);
  line-height: 0.8;
}

/* Collection */

.collection {
  max-width: 1440px;
  margin: auto;
  padding: 0 42px 105px;
}

.section-rule {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  margin-bottom: 31px;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
  font: 500 43px / 0.95 var(--serif);
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 210px;
  margin: 0 0 2px;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
}

.filters {
  display: flex;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 9px;
}

.filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: transparent;
  color: #69665e;
  font: 10px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.filter:hover,
.filter.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 18px;
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ddd5c5;
}

/* Real product previews should stay clean; these shapes belong to the old mock cards. */
.product-image::before,
.product-image::after {
  display: none;
}

.product-image::after {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: multiply;
  pointer-events: none;
}

.product-image::before {
  position: absolute;
  z-index: 1;
  width: 75%;
  height: 75%;
  top: 21%;
  left: -15%;
  border-radius: 48% 52% 47% 53%;
  background: rgba(248, 244, 232, 0.85);
  content: "";
  transform: rotate(28deg);
}

.product-image.art-two { background: #9a9f87; }
.product-image.art-two::before { width: 120%; height: 36%; top: 34%; left: -8%; border-radius: 50%; background: #222722; transform: rotate(-25deg); }
.product-image.art-two::after { opacity: 0.2; }
.product-image.art-three { background: #be8c68; }
.product-image.art-three::before { width: 58%; height: 122%; top: -10%; left: 24%; border-radius: 50%; background: #ece2d1; transform: rotate(18deg); }
.product-image.art-four { background: #e0d6c2; }
.product-image.art-four::before { width: 95%; height: 95%; top: -30%; left: 38%; border-radius: 50%; background: #5c6250; transform: rotate(-12deg); }
.product-image.art-five { background: #e7e2d8; }
.product-image.art-five::before { width: 40%; height: 140%; top: -20%; left: 31%; border-radius: 45%; background: #b88968; transform: rotate(43deg); }
.product-image.art-six { background: #292a29; }
.product-image.art-six::before { width: 100%; height: 43%; top: 22%; left: -10%; border-radius: 50%; background: #c7bda8; transform: rotate(33deg); }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.format-dialog { width: min(560px, calc(100% - 32px)); border: 0; padding: 0; background: transparent; color: var(--ink); }
.format-dialog::backdrop { background: rgba(23, 23, 21, .48); }
.format-dialog-card { position: relative; display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 18px 60px rgba(23, 23, 21, .22); }
.format-dialog-card h2 { margin: 0; font: 500 clamp(28px, 5vw, 44px)/1 var(--serif); }
.format-dialog-note { margin: -4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.format-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; }
.format-options { display: grid; gap: 10px; }
.format-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); background: rgba(240, 237, 230, .64); cursor: pointer; }
.format-option:has(input:checked) { border-color: var(--ink); background: #fff; }
.format-option input { width: auto; margin-top: 3px; }
.format-option span { display: grid; gap: 4px; }
.format-option small { color: var(--muted); font-size: 12px; font-weight: 400; }
.format-dialog-error { min-height: 18px; margin: -4px 0 0; color: #8c4c3d; font-size: 12px; line-height: 1.45; }

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-meta {
  display: flex;
  padding-top: 13px;
  align-items: baseline;
  justify-content: space-between;
}

.product-name {
  margin: 0;
  font: 500 18px var(--serif);
  letter-spacing: -0.02em;
}

.product-price {
  color: #646158;
  font: 11px var(--mono);
}

.product-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-description {
  min-height: 36px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-tools {
  display: flex;
  margin-top: 12px;
  gap: 8px;
}

.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: #69665e;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-btn.add,
.mini-btn.buy {
  flex: 1;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.mini-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mini-btn.add:hover {
  color: var(--paper-light);
}

.heart {
  width: 33px;
  padding: 0;
  font-size: 15px;
}

.heart.liked {
  color: #a15b45;
}

/* Footer and overlays */

footer {
  display: flex;
  padding: 25px 42px;
  justify-content: space-between;
  background: #dedbd2;
  color: #69665d;
  font: 10px var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 10;
  padding: 14px 17px;
  opacity: 0;
  background: var(--ink);
  color: var(--paper-light);
  font: 10px var(--mono);
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: translateY(90px);
  transition: all 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 9;
  width: min(390px, 100%);
  padding: 28px;
  background: var(--paper-light);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.13);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

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

.cart-drawer h3 {
  margin: 0 0 32px;
  font: 500 30px var(--serif);
}

.close-cart {
  position: absolute;
  top: 29px;
  right: 28px;
  border: 0;
  background: transparent;
  font: 20px var(--sans);
}

.cart-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0;
  background: rgba(23, 23, 21, 0.25);
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive adjustments */

@media (max-width: 850px) {
  .site-header {
    padding: 20px 20px 17px;
  }

  nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    font-size: 19px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-actions .search {
    display: none;
  }

  .hero {
    display: block;
    padding: 45px 20px 60px;
  }

  h1 {
    max-width: 500px;
    font-size: clamp(60px, 16vw, 98px);
  }

  .hero-art-wrap {
    min-height: 510px;
    margin-top: 40px;
  }

  .hero-art {
    inset: 0 14% 0 0;
  }

  .collection {
    padding: 0 20px 75px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 15px;
    text-align: left;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  footer {
    display: block;
    padding: 22px 20px;
    line-height: 2;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .announcement {
    font-size: 9px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-price {
    font-size: 10px;
  }

  .hero-art-wrap {
    min-height: 405px;
  }

  .art-sticker {
    right: -2px;
    bottom: 35px;
    width: 90px;
    height: 90px;
    font-size: 8px;
  }

  .art-sticker span {
    font-size: 22px;
  }
}
