/* Metics store styles.
   Colors and fonts come straight from the Metics brand guide:
   Paper background, Ink text, Graphite / Sand / Stone as supporting tones,
   and Signal Orange only as a small accent. */

/* ---------- Brand values ---------- */
:root {
  --paper: #F5F4F0;
  --ink: #0E0F12;
  --graphite: #2A2C31;
  --sand: #D8CBB6;
  --stone: #D9D8D3;
  --orange: #FF5A1F;

  --muted: #5E6066;            /* Graphite, softened, for secondary text */
  --tile: #EFEEE9;             /* shows behind a photo while it loads */
  --on-dark-muted: #A9AAA8;    /* secondary text on Ink */
  --on-dark-rule: #2E3035;     /* thin lines on Ink */

  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 82rem;
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --header-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sand); color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
}
.skip:focus { top: 0.5rem; }

/* ---------- Type ---------- */
.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.5rem); letter-spacing: -0.035em; line-height: 0.98; }
.h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.85rem, 1.35rem + 2vw, 3rem); }
.h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }

.lede { font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-top: var(--space-section); }
main { display: block; padding-bottom: var(--space-section); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.page-head { padding-top: clamp(2.5rem, 6vw, 5rem); display: grid; gap: 1.25rem; }
.page-head .lede { max-width: 38rem; }
.page-head + .wrap { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.625rem;
  padding: 0 2.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  /* A soft Ink shadow lifts the button off the page so it is the first thing you see. */
  box-shadow: 0 16px 28px -16px rgb(14 15 18 / 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 22px 34px -16px rgb(14 15 18 / 0.75); }
.button:active { transform: translateY(0); box-shadow: 0 8px 16px -12px rgb(14 15 18 / 0.7); }
.button--wide { width: 100%; min-height: 3.875rem; font-size: 1.125rem; }
.button--quiet { background: transparent; color: var(--ink); box-shadow: none; }
.button--quiet:hover { background: var(--ink); color: var(--paper); box-shadow: 0 16px 28px -16px rgb(14 15 18 / 0.7); }

/* ---------- Top strip and header ---------- */
.strip {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.55rem var(--gutter);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--stone);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.header__logo { display: inline-flex; padding: 0.5rem 0; margin-right: auto; }
.header__logo img { height: 1.125rem; width: auto; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.nav__link { font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding: 0.4rem 0; }
.nav__link:hover,
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.4em; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.cart-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.4em; }
.cart-link__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.cart-link__count[hidden] { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius-s);
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 51.99rem) {
  .header__inner { flex-wrap: wrap; }
  /* Without JavaScript the links simply sit under the logo. With it, they tuck behind "Menu". */
  .nav { order: 5; width: 100%; padding-bottom: 0.75rem; }
  .js .header__inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; flex: none; }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: grid;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
  }
  .js .nav.is-open .nav__link {
    font-family: var(--font-head);
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--stone);
  }
  .js .nav.is-open .nav__link:last-child { border-bottom: 0; }
}

/* Very narrow screens: keep logo, Cart and Menu on one line. */
@media (max-width: 23.5rem) {
  .header__inner { gap: 0.75rem; }
  .header__logo img { height: 1rem; }
  .menu-toggle { padding: 0 0.7rem; }
}

/* ---------- Home: hero ---------- */
/* Very large words, then the desk photo with a dot on every product you can shop.
   When the page opens, the words rise into place, the photo settles and the dots pop in one by one. */
.hero { position: relative; }
.hero__text { padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) clamp(1.75rem, 6vw, 2.75rem); }
.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3.25rem, 19.5vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
/* Each line of the headline slides up from behind its own edge. */
.hero__line { display: block; overflow: hidden; white-space: nowrap; padding: 0.06em 0.06em 0.14em; margin: -0.06em -0.06em -0.14em; }
.hero__line > span {
  display: inline-block;
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
/* The orange dot from the logo, ending the headline. */
.hero__dot { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.07em; border-radius: 50%; background: var(--orange); }

.hero__side { animation: hero-fade 0.9s ease 0.35s backwards; }
.hero__lede { margin-top: 1.25rem; max-width: 24rem; font-size: 1.125rem; line-height: 1.45; color: var(--graphite); }
.hero__action { margin-top: 1.5rem; }
.hero__action .button { white-space: nowrap; }
/* A one-line caption that explains the dots. It sits under the photo, or on it on wide screens. */
.hero__hint { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.9rem var(--gutter) 0; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); animation: hero-fade 0.9s ease 1.4s backwards; }
.hero__hint-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--stone); }

/* The photo sits in a frame. On phones the frame shows the right side of the photo, where the desk is. */
.hero__stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tile); }
.hero__canvas {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 2752 / 1536;
  transform-origin: 70% 60%;
  animation: hero-settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero__photo { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* A dot on each product in the photo. --x and --y say where (0 to 100, from store.json). */
.spots { list-style: none; margin: 0; padding: 0; }
.spot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  animation: spot-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
  animation-delay: calc(0.75s + var(--i, 0) * 0.11s);
}
.spot__link { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; text-decoration: none; }
.spot__link:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; background: rgb(245 244 240 / 0.7); }
.spot__dot {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2.5px var(--paper), 0 3px 12px 2px rgb(14 15 18 / 0.35);
  transition: transform 0.15s ease;
}
.spot__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: spot-pulse 2.2s ease-out 3 backwards;
  animation-delay: calc(1.5s + var(--i, 0) * 0.11s);
}
/* The name and price that appear above a dot. */
.spot__tag {
  --tx: -50%;
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.3rem);
  display: flex;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--tx), 5px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  pointer-events: none;
}
.spot__price { font-weight: 400; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.spot--start .spot__tag { --tx: 0%; left: 0.55rem; }
.spot--end .spot__tag { --tx: 0%; left: auto; right: 0.55rem; }

.spot.is-open,
.spot:focus-within { z-index: 3; }
.spot.is-open .spot__tag,
.spot__link:focus-visible .spot__tag {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--tx), 0);
  transition-delay: 0s;
}
.spot.is-open .spot__dot { transform: scale(1.25); }
@media (hover: hover) {
  .spot:hover { z-index: 3; }
  .spot__link:hover .spot__tag { opacity: 1; visibility: visible; transform: translate(var(--tx), 0); transition-delay: 0s; }
  .spot__link:hover .spot__dot { transform: scale(1.25); }
}

@keyframes hero-rise { from { transform: translateY(110%); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes hero-settle { from { transform: scale(1.06); } }
@keyframes spot-in { from { opacity: 0; transform: scale(0.2); } }
@keyframes spot-pulse {
  from { box-shadow: 0 0 0 0 rgb(245 244 240 / 0.85); }
  to { box-shadow: 0 0 0 1.1rem rgb(245 244 240 / 0); }
}

/* Tablets: headline on the left, the rest lined up with its last line on the right. */
@media (min-width: 40rem) {
  .hero__text { display: grid; grid-template-columns: auto minmax(0, 21rem); justify-content: space-between; gap: 2rem; align-items: end; }
  .hero__title { font-size: 12vw; }
  .hero__lede { margin-top: 0; }
  .hero__stage { aspect-ratio: 16 / 9; }
}

/* Wide screens: the words sit on the empty wall on the left of the photo.
   Sizes use cqw (a share of the photo's width) so the words always line up with the picture. */
@media (min-width: 64rem) {
  .hero { container-type: inline-size; }
  .hero__stage { aspect-ratio: 2752 / 1536; }
  .hero__text { display: block; position: absolute; z-index: 2; left: 4.6cqw; top: 5.4cqw; width: 34cqw; padding: 0; pointer-events: none; }
  .hero__text a { pointer-events: auto; }
  .hero__title { font-size: clamp(4rem, 7.4cqw, 12rem); }
  .hero__side { width: 21cqw; margin-top: 2.2cqw; }
  .hero__lede { max-width: none; font-size: clamp(1rem, 1.3cqw, 1.625rem); }
  .hero__action { margin-top: 2cqw; }
  .hero__hint { position: absolute; z-index: 2; left: 4.6cqw; bottom: 3cqw; width: 21cqw; padding: 0; color: var(--graphite); }
  .spot__dot { width: 1rem; height: 1rem; box-shadow: 0 0 0 3px var(--paper), 0 3px 12px 2px rgb(14 15 18 / 0.35); }
  .spot__tag { font-size: 0.9375rem; padding: 0.65rem 0.9rem; }
}

/* ---------- Color switch (Graphite / Sand) ---------- */
.switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.switch[hidden] { display: none; }
.switch__label { font-size: 0.9375rem; color: var(--muted); white-space: nowrap; }
.switch__options {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--stone);
  border-radius: 12px;
  background: color-mix(in srgb, var(--stone) 38%, var(--paper));
}
.switch__option { position: relative; }
.switch__option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch__face {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 9px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.switch__option input:checked + .switch__face { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.switch__option input:focus-visible + .switch__face { outline: 2px solid var(--ink); outline-offset: 2px; }

.dot {
  flex: none;
  width: 0.8125rem;
  height: 0.8125rem;
  border-radius: 50%;
  background: var(--c, var(--ink));
  box-shadow: inset 0 0 0 1px rgb(14 15 18 / 0.16);
}

/* ---------- Product grid ---------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.4vw, 2rem);
}
@media (min-width: 36rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card__link { display: block; text-decoration: none; }
.card__photo { display: block; aspect-ratio: 1; border-radius: var(--radius-l); overflow: hidden; background: var(--tile); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
.card__photo img.is-swapping { opacity: 0; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.card__name { font-family: var(--font-head); font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.card__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.card__kind { display: block; margin-top: 0.2rem; font-size: 0.9375rem; color: var(--muted); }
.card__link:hover .card__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }

/* ---------- Home: photo + words ---------- */
.feature { display: grid; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.feature__media img { width: 100%; border-radius: var(--radius-l); background: var(--tile); }
.feature__text { display: grid; gap: 1.1rem; justify-items: start; max-width: 28rem; }
.feature__price { font-family: var(--font-head); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--flip .feature__media { order: 2; }
}

.linklist { list-style: none; margin: 0.4rem 0 0; padding: 0; width: 100%; border-top: 1px solid var(--stone); }
.linklist__link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--stone);
  text-decoration: none;
  font-weight: 500;
}
.linklist__link:hover .linklist__name { text-decoration: underline; text-decoration-thickness: 1.5px; }
.linklist__price { font-variant-numeric: tabular-nums; }

/* ---------- Home: the one bright detail ---------- */
.details__intro { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem clamp(0.75rem, 1.6vw, 1.25rem);
}
@media (min-width: 40rem) { .details { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .details { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.details__link { display: block; text-decoration: none; }
.details__name { display: block; margin-top: 0.8rem; font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; }
.details__text { display: block; margin-top: 0.1rem; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.details__link:hover .details__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }

/* A close-up: the photo is enlarged and moved so the orange detail sits in the middle.
   --fx / --fy are where the detail is in the photo (0 to 100), --zoom is how far to zoom in. */
.crop { display: block; aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--tile); }
.crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 0 0;
  transform:
    translate(
      clamp((1 - var(--zoom)) * 100%, (50 - var(--fx) * var(--zoom)) * 1%, 0%),
      clamp((1 - var(--zoom)) * 100%, (50 - var(--fy) * var(--zoom)) * 1%, 0%)
    )
    scale(var(--zoom));
}

/* ---------- Store basics (shipping, returns, contact) ---------- */
.basics { display: grid; gap: 1.75rem; padding-top: 2.25rem; border-top: 1px solid var(--stone); }
@media (min-width: 48rem) { .basics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.basics__label { font-size: 0.9375rem; color: var(--muted); }
.basics__value {
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* ---------- Product page ---------- */
.crumbs { display: flex; gap: 0.5rem; padding: 1.25rem 0; font-size: 0.875rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.product__layout { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); }
.product__photo { aspect-ratio: 1; border-radius: var(--radius-l); overflow: hidden; background: var(--tile); }
.product__photo img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-family: var(--font-head); font-weight: 500; font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.product__kind { margin-top: 0.6rem; color: var(--muted); }
.product__price { margin-top: 1.4rem; font-family: var(--font-head); font-size: 1.625rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.product__copy { margin-top: 1.75rem; color: var(--graphite); }

@media (min-width: 46rem) {
  .product__layout { grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 1fr); align-items: start; }
  .product__buy { position: sticky; top: calc(var(--header-h) + 1.5rem); max-width: 27rem; }
}
@media (min-width: 64rem) {
  .product__buy { padding-top: 1.5rem; }
}

.buy { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.options { margin: 0; padding: 0; border: 0; min-width: 0; }
.options__legend { padding: 0; margin-bottom: 0.65rem; font-size: 0.9375rem; color: var(--muted); }
.options__chosen { color: var(--ink); font-weight: 500; }
.options__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.option { position: relative; }
.option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.option__face {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.15rem;
  border: 1.5px solid var(--stone);
  border-radius: var(--radius-m);
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.option:hover .option__face { border-color: var(--muted); }
.option input:checked + .option__face { border-color: var(--ink); }
.option input:focus-visible + .option__face { outline: 2px solid var(--ink); outline-offset: 3px; }

.assurances { list-style: none; margin: 1.75rem 0 0; padding: 0; font-size: 0.9375rem; border-top: 1px solid var(--stone); }
.assurances li { padding: 0.75rem 0; border-bottom: 1px solid var(--stone); }

.bright { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; margin-top: 1.75rem; }
.bright__label { display: block; font-size: 0.9375rem; color: var(--muted); }
.bright__text { font-family: var(--font-head); font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.25; }

.band { padding-top: var(--space-section); }
.band img { width: 100%; max-height: 44rem; object-fit: cover; border-radius: var(--radius-l); background: var(--tile); }
.band figcaption { margin-top: 0.8rem; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Cart (slide-out panel and cart page) ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(27rem, 100%);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.drawer::backdrop { background: rgb(14 15 18 / 0.4); }
.drawer[open]::backdrop { animation: backdrop-in 0.28s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes backdrop-in { from { opacity: 0; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--stone);
}
.drawer__title { font-family: var(--font-head); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; }
.drawer__close {
  padding: 0.5rem;
  margin: -0.5rem;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__body .cart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__body .lines { flex: 1; min-height: 0; overflow-y: auto; padding: 0 1.5rem; overscroll-behavior: contain; }
.drawer__body .summary { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--stone); }
.drawer__body .cart-empty { padding: 2rem 1.5rem; }

.lines { list-style: none; margin: 0; padding: 0; }
/* One cart item: photo on the left; name and price on top; quantity and Remove underneath. */
.line {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "thumb info price"
    "thumb controls controls";
  gap: 0.6rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stone);
}
.lines .line:last-child { border-bottom: 0; }
.line__thumb { grid-area: thumb; align-self: start; display: block; width: 5.5rem; aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--tile); }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__info { grid-area: info; min-width: 0; }
.line__name { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.line__name:hover { text-decoration: underline; }
.line__variant { display: block; font-size: 0.9375rem; color: var(--muted); }
.line__controls { grid-area: controls; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.line__price { grid-area: price; font-weight: 500; font-variant-numeric: tabular-nums; }
.line__remove {
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.line__remove:hover { color: var(--ink); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--stone); border-radius: var(--radius-s); }
.qty__button { width: 2.5rem; height: 2.5rem; border: 0; background: none; font-size: 1.125rem; line-height: 1; cursor: pointer; }
.qty__button:disabled { color: var(--stone); cursor: default; }
.qty__value { min-width: 1.75rem; text-align: center; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.summary { display: grid; gap: 0.6rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; }
.summary__row--main { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.summary__row--quiet { font-size: 0.9375rem; color: var(--muted); }
.summary .button { margin-top: 0.6rem; }
.summary__keep { justify-self: center; padding: 0.4rem; border: 0; background: none; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }

.cart-empty { display: grid; gap: 1.25rem; justify-items: start; }
.cart-empty__text { font-family: var(--font-head); font-size: 1.375rem; letter-spacing: -0.015em; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--sand) 24%, var(--paper));
  font-size: 0.9375rem;
  line-height: 1.45;
}
.notice[hidden] { display: none; }
.notice::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.45rem; border-radius: 50%; background: var(--orange); }

/* Very narrow screens: a smaller photo leaves room for the quantity buttons. */
@media (max-width: 23.5rem) {
  .line { grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 0.75rem; }
  .line__thumb { width: 4.5rem; }
  .drawer__head { padding-inline: 1.25rem; }
  .drawer__body .lines { padding-inline: 1.25rem; }
  .drawer__body .summary { padding-inline: 1.25rem; }
  .drawer__body .cart-empty { padding-inline: 1.25rem; }
}

/* Cart page: items on the left, totals on the right */
.cart-page__view { margin-top: clamp(1.5rem, 4vw, 2.5rem); min-height: 12rem; }
.cart-page__view .lines { border-top: 1px solid var(--stone); }
.cart-page__view .lines .line:last-child { border-bottom: 1px solid var(--stone); }
.cart-page__view .summary { margin-top: 2rem; }
.cart-page__view .summary__keep { display: none; }
@media (min-width: 56rem) {
  .cart-page__view .cart { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .cart-page__view .summary { margin-top: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.5rem; border: 1px solid var(--stone); border-radius: var(--radius-l); }
  .cart-page__view .line { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .cart-page__view .line__thumb { width: 7rem; }
}

/* ---------- About, shipping and returns, contact ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.about__text { display: grid; gap: 1.1rem; max-width: 36rem; }
.about__media img,
.about__wide { width: 100%; border-radius: var(--radius-l); background: var(--tile); }
@media (min-width: 56rem) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

.palette__intro { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.palette { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .palette { grid-template-columns: 1fr 1fr 0.5fr; } }
.palette__chip { display: block; height: clamp(6rem, 14vw, 10rem); border-radius: var(--radius-l); background: var(--c); box-shadow: inset 0 0 0 1px rgb(14 15 18 / 0.08); }
.palette__name { display: block; margin-top: 0.7rem; font-family: var(--font-head); font-weight: 500; }
.palette__note { display: block; font-size: 0.9375rem; color: var(--muted); }

.facts { border-top: 1px solid var(--stone); max-width: 52rem; }
.facts__row { display: grid; gap: 0.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--stone); }
.facts__label { font-size: 0.9375rem; color: var(--muted); }
.facts__value { font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem); letter-spacing: -0.015em; line-height: 1.25; }
@media (min-width: 44rem) { .facts__row { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; align-items: baseline; } }

.bigmail {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 0.9rem + 4vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.bigmail + .basics { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Privacy, refund and terms pages ---------- */
.policy { display: grid; gap: clamp(2rem, 4vw, 2.75rem); max-width: 42rem; }
.policy__section { display: grid; gap: 0.7rem; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--stone); }
.policy__section p { color: var(--graphite); text-wrap: pretty; }
.policy__updated { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer__inner { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; } }
.footer__logo img { height: 1.375rem; width: auto; }
.footer__tag { margin-top: 1rem; max-width: 16rem; color: var(--on-dark-muted); }
.footer__title { margin-bottom: 0.9rem; font-size: 0.875rem; font-weight: 500; color: var(--on-dark-muted); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: var(--paper); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--on-dark-rule);
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}
/* Privacy, refund and terms links, on every page. */
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__legal a { color: var(--paper); text-decoration: none; }
.footer__legal a:hover,
.footer__legal a[aria-current="page"] { text-decoration: underline; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}
