/* ===== Font: SF Pro on Apple devices (built into the system, never hosted: Apple's licence forbids it),
   and Inter elsewhere, the closest free font (OFL licence), hosted on the site itself ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Variables ===== */
/* Opalin palette: white pages, Apple grey, soft black, a touch of the logo's pink */
:root {
  --color-bg: #ffffff;
  --color-bg-deep: #f5f5f7;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-soft: #424245;
  --color-muted: #6e6e73;
  --color-border: #d2d2d7;
  --color-border-strong: #86868b;
  --color-primary: #1d1d1f;
  --color-ink: #1d1d1f; /* dark text on white, pink or light surfaces */
  --color-accent: #fdaceb; /* matched to the logo */
  --color-dark: #1d1d1f;

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;

  --shadow-pill: none;
  --shadow-card: none;
  --shadow-lift: none; /* flat surfaces */

  --radius: 0;
  --radius-card: 0;
  --radius-panel: 0; /* square corners everywhere, like the buttons */
  --max-width: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-space: clamp(72px, 9vw, 132px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Blurred glass, used by the cookie notice */
  --glass-blur: blur(20px) saturate(180%);
  --glass-rim: rgba(255, 255, 255, 0.14);
}

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

/* Anything marked "hidden" stays hidden, whatever its other styles say */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* min-width: 0 lets the page shrink to narrow phone screens instead of growing to its widest content */
main,
.site-footer {
  min-width: 0;
}

main {
  flex: 1;
}

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

a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Page titles: upright and calm */
.display,
.page h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Small technical labels */
.product-kicker,
.footer-heading,
.legal-table th {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--color-muted);
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Each page fills almost a whole screen: only the top of the footer peeks in at the bottom */
.page {
  min-height: calc(100vh - 140px - var(--header-h));
  min-height: calc(100svh - 140px - var(--header-h));
  padding-block: 3.5rem clamp(6rem, 12vw, 10rem);
}

.page h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1.5rem;
}

.section {
  padding-block: var(--section-space) 0;
}

.section:last-child {
  padding-bottom: var(--section-space);
}

/* ===== Header: one row, logo on the left, menu centred, actions on the right ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

/* Home page: the menu floats on the hero, and turns white once the page scrolls */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.home .site-header.is-scrolled {
  background: #fff;
  border-bottom-color: var(--color-border);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The pink logo, centred in the header and the footer */
.wordmark {
  display: block;
}

.wordmark img {
  width: auto;
  height: 44px;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.header-cta {
  margin-right: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  background: var(--color-text);
  color: #fff;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.icon-btn:hover,
.icon-btn.active {
  background: var(--color-bg-deep);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Small green dot on the account icon when logged in */
.account-link.is-logged-in::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px var(--color-bg);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.cart-count.bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  50% { transform: scale(1.3); }
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.nav-toggle {
  display: none;
}

/* ===== Buttons: black rectangles, small capitals ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #3a3a3c;
  border-color: #3a3a3c;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-quiet {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-quiet:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.btn-danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.btn-danger:hover {
  background: #8f1c13;
  border-color: #8f1c13;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ===== Hero: full-width background ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh; /* fills the whole screen, behind the menu too */
  background: #8fa6c4 url("../images/fond-hero.jpg") center / cover no-repeat;
}

@media (max-width: 760px) {
  .hero {
    background-image: url("../images/fond-hero-mobile.jpg");
  }
}

/* The 3D mouse pad, drawn by hero-3d.js over the whole hero */
.hero-pad {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 40px 45px rgba(10, 25, 50, 0.4));
}

/* Fallback picture on devices without WebGL */
.hero-pad-image {
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

/* ===== Editorial blocks: image on the left, centred text on the right ===== */
.editorial {
  padding-block: var(--section-space) 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.editorial-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-deep);
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 1s var(--ease);
}

.editorial-media:hover img {
  transform: scale(1.03);
}

.editorial-text {
  justify-self: center;
  max-width: 30rem;
  text-align: center;
}

.editorial-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.editorial-text p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.editorial-text .editorial-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
}

.editorial-text .edition-progress {
  margin-bottom: 1.75rem;
  text-align: left;
}

/* The numbered edition, on Apple grey */
.edition-panel {
  display: grid;
  place-items: center;
  background: var(--color-bg-deep);
}

.edition-number {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.edition-number span {
  color: var(--color-accent);
}

/* ===== Three tiles with a label on the image ===== */
.tiles {
  padding-block: var(--section-space) 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  isolation: isolate;
  color: var(--color-text);
  text-decoration: none;
}

/* Grey panel behind the render */
.tile::before {
  content: "";
  background: var(--color-bg-deep);
}

.tile::before,
.tile img,
.tile-label {
  grid-area: 1 / 1;
}

.tile img {
  width: 100%;
  height: auto;
  min-height: 0; /* without this the grid keeps the photo's natural 1400 px height */
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.tile-label {
  align-self: end;
  justify-self: center;
  margin-bottom: 1.25rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.tile:hover .tile-label {
  background: var(--color-text);
  color: #fff;
}

.tile-caption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  text-align: center;
  color: var(--color-muted);
}

/* ===== FAQ heading (home page) ===== */
.faq-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.faq-head p {
  margin: 0;
  color: var(--color-muted);
}

.faq-head + .faq-list {
  margin-inline: auto;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-deep);
  box-shadow: none;
}

/* ===== Specs list ===== */
.specs {
  margin: 0;
}

.specs div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.specs dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.2rem;
}

.specs dd {
  margin: 0;
  font-weight: 550;
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
}

.faq-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  padding: 0.5rem clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.faq details {
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.15rem;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  font-weight: 650;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
}

/* ===== Forms (shared) ===== */
.contact-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form {
  max-width: 560px;
}

.contact-form input,
.contact-form textarea,
.auth-form input,
.reserve-email input {
  font: inherit;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  margin-bottom: 0.6rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.reserve-email input {
  margin: 0;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus,
.auth-form input:focus,
.reserve-email input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-status {
  color: var(--color-muted);
}

.form-error {
  color: #c2410c;
  margin: 0.5rem 0 0;
}

.remember {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.remember input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--color-text);
  flex-shrink: 0;
}

/* ===== Account ===== */
.auth-card {
  max-width: 460px;
  margin: 1rem auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0 0 1.25rem;
}

.auth-form small {
  margin: -0.4rem 0 0.6rem;
}

.auth-form .btn {
  margin-top: 0.5rem;
}

.auth-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

.code-input {
  font-size: 1.5rem !important;
  letter-spacing: 0.4em;
  text-align: center;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  cursor: pointer;
}

.name-form {
  margin-bottom: 1.25rem;
}

.danger-zone {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.danger-zone .link-btn,
.danger-zone p {
  color: var(--color-muted);
}

.danger-zone p {
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

#server-warning {
  margin: 0 0 1.25rem;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--color-bg-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.small {
  font-size: 0.85rem;
}

/* ===== Cart ===== */
.cart-empty {
  padding-block: 2rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: start;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cart-items,
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--color-border);
}

.cart-swatch {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
}

.swatch-blanc {
  background: linear-gradient(135deg, #ffffff 50%, #111111 50%);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item .qty-control {
  height: 2.5rem;
}

.cart-line-total {
  font-weight: 650;
  min-width: 5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-remove:hover {
  color: var(--color-text);
}

.cart-summary {
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.summary-total {
  border-top: 1px solid var(--color-border);
  margin: 0.5rem 0 1.25rem;
  padding-top: 0.9rem;
  font-weight: 750;
  font-size: 1.15rem;
}

.pay-methods {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.9rem 0 0;
}

/* ===== Order confirmation ===== */
.success-card {
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 1.6rem;
}

.order-lines {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: left;
}

.success-card .summary-total {
  text-align: left;
}

/* ===== My orders (account page) ===== */
.orders-title {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.orders-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.order div {
  display: flex;
  flex-direction: column;
}

.order-total {
  font-weight: 650;
}

/* ===== Quantity ===== */
.qty {
  margin-bottom: 1.25rem;
}

.qty label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 550;
}

.qty-control {
  display: inline-flex;
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.qty-btn {
  width: 2.75rem;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text);
}

.qty-btn:hover {
  background: var(--color-bg-deep);
}

.qty-control input {
  width: 3.25rem;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  background: transparent;
  color: var(--color-text);
  -moz-appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ===== Product page ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.75rem;
}

/* Grey panels: multiply melts the white background of the renders into the grey */
.product-stage {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--color-bg-deep);
}

.product-stage img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.thumb {
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background: var(--color-bg-deep);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.thumb:hover {
  border-color: var(--color-border-strong);
}

.thumb.is-active {
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-text);
}

.thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.product-kicker {
  display: block;
  margin: 0;
  color: var(--color-muted);
}

.product-info h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  margin: 0.6rem 0 0.75rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.price-note {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-muted);
}

.product-lead {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.buy-box {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.product-format {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.product-format strong {
  color: var(--color-text);
}

.reserve-email {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reserve-email label {
  font-weight: 550;
}

.reserve-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.product-perks {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.product-perks li {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1rem;
  background: var(--color-bg-deep);
  font-size: 0.88rem;
  line-height: 1.35;
}

.product-perks span {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.product-details {
  max-width: none;
  margin-top: 1.25rem;
  padding: 0.25rem clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.product-details details:last-child {
  border-bottom: 0;
}

.product-details .specs div {
  grid-template-columns: 8rem 1fr;
}

.product-details .specs div:last-child {
  border-bottom: 0;
}

/* ===== Limited edition counter ===== */
.edition-progress {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--color-bg-deep);
}

.edition-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.edition-count {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.edition-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.edition-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 0.8s var(--ease);
}

.edition-compact {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* ===== Cookie notice ===== */
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 1.4rem;
  background: rgba(18, 18, 20, 0.9);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 40px rgba(12, 12, 12, 0.25);
  color: #c9c9ce;
  font-size: 0.88rem;
}

.cookie-notice strong,
.cookie-notice a {
  color: #fff;
}

.cookie-notice p {
  margin: 0;
  flex: 1;
}

.cookie-notice .btn {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
  background: #fff;
  color: var(--color-ink);
}

/* ===== Legal pages ===== */
.legal-page {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  color: var(--color-muted);
}

/* ===== Footer: services strip, link columns, newsletter, brand name ===== */
.site-footer {
  --color-text: #f5f5f7;
  --color-text-soft: #d2d2d7;
  --color-muted: #a1a1a6;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-strong: rgba(255, 255, 255, 0.24);
  --color-surface: transparent;
  --color-primary: #f5f5f7;
  background: var(--color-dark);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-text-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.service-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}

.services p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.services .service-title {
  color: var(--color-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  padding-block: 3rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-links div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text);
}

.newsletter-row {
  display: flex;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--color-text);
}

.newsletter-row input::placeholder {
  color: var(--color-muted);
}

.newsletter-row input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.newsletter-row .btn {
  flex-shrink: 0;
  padding: 0.8rem 1.3rem;
}

.site-footer .btn {
  color: var(--color-ink);
}

.site-footer .btn:hover {
  background: #d2d2d7;
  border-color: #d2d2d7;
}

.newsletter-legal {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.site-footer .newsletter-legal a {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.newsletter-status {
  margin: 0.75rem 0 0;
  padding: 0.7rem 1rem;
  background: rgba(110, 231, 168, 0.1);
  color: #b9f5d3;
  font-size: 0.88rem;
}

.newsletter-status.is-error {
  background: rgba(255, 120, 120, 0.1);
  color: #ffc4c4;
}

.footer-brand-row {
  display: flex;
  justify-content: center;
  padding-block: 1.5rem 0.75rem;
}

.footer-brand-row .wordmark img {
  height: 56px;
}

.footer-bottom {
  padding-block: 0.75rem 1.75rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-muted);
}

.footer-bottom p {
  margin: 0;
}

/* The newsletter page keeps a dark band: light form inside it */
.newsletter-hero .newsletter-row {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-hero .newsletter-row input {
  color: #fff;
}

.newsletter-hero .newsletter-row input::placeholder {
  color: #8d8d92;
}

.newsletter-hero .newsletter-row .btn {
  background: #fff;
  border-color: #fff;
  color: var(--color-ink);
}

.newsletter-hero .newsletter-legal {
  color: #8d8d92;
}

.newsletter-hero .newsletter-status {
  background: rgba(110, 231, 168, 0.1);
  color: #b9f5d3;
}

.newsletter-hero .newsletter-status.is-error {
  background: rgba(255, 120, 120, 0.1);
  color: #ffc4c4;
}

/* ===== Newsletter page ===== */
.newsletter-page {
  max-width: 900px;
}

.newsletter-hero {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-panel);
  background: var(--color-dark);
  color: #f2f2f0;
}

.newsletter-hero h1 {
  margin: 0.6rem 0 0.75rem;
  color: #fff;
}

.newsletter-hero .product-kicker {
  color: #a1a1a6;
}

.lead-text {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: #a9a9ae;
}

.newsletter-form-large {
  max-width: 34rem;
}

.newsletter-message {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0;
  background: rgba(110, 231, 168, 0.1);
  color: #b9f5d3;
}

.newsletter-message.is-error {
  background: rgba(255, 120, 120, 0.1);
  color: #ffc4c4;
}

.newsletter-unsubscribe {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.newsletter-unsubscribe p {
  margin: 0;
}

.newsletter-unsubscribe .btn {
  background: #ffffff;
  color: var(--color-ink);
}

.newsletter-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.newsletter-point {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.newsletter-point h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.newsletter-point p {
  margin: 0;
  color: var(--color-muted);
}

/* ===== Scroll reveal (added by site.js) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .editorial-grid,
  .product-grid,
  .cart-layout,
  .footer-grid,
  .newsletter-info {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery {
    position: static;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Menu folds into a list under the header ===== */
@media (max-width: 900px) {
  .header-bar {
    grid-template-columns: 1fr auto;
  }

  /* The menu drops under the bar, so it must not take a place in the row */
  .nav-main {
    display: contents;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--gutter) 1rem;
    border-block: 1px solid var(--color-border);
    background: #fff;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: var(--color-border);
  }
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .wordmark img {
    height: 38px;
  }

  .tile-grid,
  .product-perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-item {
    grid-template-columns: auto 1fr auto;
  }

  .cart-item .qty-control {
    grid-column: 2;
    justify-self: start;
  }

  .cart-line-total {
    grid-column: 3;
    grid-row: 2;
  }

  .specs div,
  .product-details .specs div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 480px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Browsers without backdrop blur: keep the surfaces readable ===== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-notice {
    background: rgba(20, 20, 22, 0.96);
  }
}
