/* ============================================================
   IVORY GLOW — design system
   Quiet luxury: white space, warm neutrals, hairline rules,
   patient motion. No noise.
   ============================================================ */

:root {
  /* Palette — drawn from the hero photograph */
  --white: #ffffff;
  --ivory: #faf7f1;
  --ivory-deep: #f3ede2;
  --sand: #e8e0d2;
  --hairline: #e9e3d8;
  --taupe: #857a6a;
  --taupe-soft: #a99d8b;
  --ink: #211c15;
  --ink-soft: #4a4337;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --space-section: clamp(5rem, 12vw, 9rem);
  --radius: 2px;
  --radius-soft: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 18px 45px -18px rgba(33, 28, 21, 0.18);
  --shadow-drawer: -24px 0 60px -30px rgba(33, 28, 21, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* keep anchored sections clear of the fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* The hidden attribute must always win, even over display: flex/grid */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
p { margin: 0 0 1rem; }

a { color: inherit; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection { background: var(--sand); }

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

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Shared ---------- */
.eyebrow,
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}

.section-head {
  max-width: 38rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}
.button-primary:hover { background: var(--ink-soft); }
.button-primary:active { transform: scale(0.98); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none; /* also used as a link on sub-pages */
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.cart-button:hover { border-color: var(--taupe-soft); background: var(--white); }

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .brand { letter-spacing: 0.22em; }
}

/* ============================================================
   HERO — full-bleed photograph, never cropped
   The section is locked to the photo's exact aspect ratio
   (1983 × 793), so the image always shows in full. That makes
   the layout deterministic: the candle glass always starts at
   ~43% of the width and the fingertips reach ~36%, so as long
   as the copy stays inside the left ~31% — and every dimension
   below is viewport-relative — text and photo cannot collide
   at any screen size.
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 1983 / 793;
  overflow: hidden;
  background: #f2e8d9;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroIn 1.8s var(--ease) both;
}

@keyframes heroIn {
  from { transform: scale(1.04); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4rem 0 1rem 6vw; /* top padding keeps the copy clear of the fixed header */
}

.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-copy .button {
  animation: riseIn 1s var(--ease) both;
}
.hero-title { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.24s; }
.hero-copy .button { animation-delay: 0.36s; }

@keyframes riseIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  margin-bottom: clamp(0.6rem, 1vw, 1.2rem);
}

.hero-sub {
  max-width: min(25vw, 24rem);
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  margin-bottom: clamp(1.2rem, 2.2vw, 2.4rem);
}

/* Below 900px the photo gets too small to share with text:
   show it in full as a banner, copy on its own panel beneath. */
@media (max-width: 899px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
  }
  .hero-image {
    position: static;
    height: auto; /* natural aspect ratio — still never cropped */
  }
  .hero-copy {
    padding: 3rem 1.5rem 3.5rem;
    text-align: center;
    background: var(--ivory);
  }
  .hero-sub {
    max-width: 24rem;
    margin-inline: auto;
    font-size: 1rem;
  }
}

/* ============================================================
   ASSURANCE STRIP
   ============================================================ */
.assurance {
  border-block: 1px solid var(--hairline);
  background: var(--white);
}

.assurance-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 3.5rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.3rem 1.5rem;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ============================================================
   COLLECTION
   ============================================================ */
.collection {
  padding: var(--space-section) 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 2.5rem 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-media {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
}

.product-media svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}
.product-media:hover svg { transform: scale(1.04); }

.product-media .quicklook {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 8px);
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.product-media:hover .quicklook,
.product-media:focus-visible .quicklook {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 400;
  margin: 0;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.product-notes {
  margin: 0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--taupe);
}

.add-button {
  margin-top: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.add-button:hover { background: var(--ink); color: var(--white); }
.add-button.is-added {
  background: var(--ink);
  color: var(--white);
  pointer-events: none;
}

/* ============================================================
   CRAFT
   ============================================================ */
.craft {
  background: var(--ivory);
  border-block: 1px solid var(--hairline);
}

.craft-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
}

.craft-inner .section-head { margin-bottom: 4rem; }

.craft-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.craft-points li {
  border-top: 1px solid var(--taupe-soft);
  padding-top: 1.4rem;
}

.craft-points h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.craft-points p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .craft-points { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-section) 1.5rem;
}

.faq-list details {
  border-top: 1px solid var(--hairline);
}
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--taupe); }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--taupe);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { width: 12px; height: 1px; }
.faq-icon::after { width: 1px; height: 12px; }
details[open] .faq-icon::after { transform: rotate(90deg); }

.faq-list details p {
  padding: 0 2rem 1.5rem 0.25rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 38rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 78rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.footer-brand .brand { margin: 0 0 0.8rem; font-size: 1.05rem; }
.footer-brand p:last-child {
  font-size: 0.88rem;
  color: var(--taupe);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-pay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--taupe);
}

.footer-fine {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  font-size: 0.78rem;
  color: var(--taupe-soft);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(33, 28, 21, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.overlay.is-open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  width: min(26.5rem, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--hairline);
}
.drawer-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 99px;
  color: var(--ink-soft);
  transition: background-color 0.25s var(--ease);
}
.icon-button:hover { background: var(--ivory-deep); }

.shipping-meter {
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--ivory);
}
.shipping-meter p {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.shipping-meter strong { color: var(--ink); }

.meter-track {
  height: 3px;
  border-radius: 99px;
  background: var(--sand);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--ink);
  transition: width 0.6s var(--ease);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.6rem;
  overscroll-behavior: contain;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 100%;
  text-align: center;
  color: var(--taupe);
}
.cart-empty p { margin: 0 0 1.2rem; }
.cart-empty .cart-empty-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-line:last-child { border-bottom: none; }

.cart-line-media {
  border-radius: 6px;
  overflow: hidden;
}
.cart-line-media svg { display: block; width: 100%; height: auto; }

.cart-line-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.1rem;
}
.cart-line-meta {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--taupe);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 99px;
}
.qty-stepper button {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 99px;
  transition: background-color 0.2s var(--ease);
}
.qty-stepper button:hover { background: var(--ivory-deep); }
.qty-stepper span {
  min-width: 1.7rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.cart-line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.cart-line-price { font-size: 0.92rem; font-weight: 500; }

.remove-button {
  font-size: 0.74rem;
  color: var(--taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.1rem 0;
  transition: color 0.2s var(--ease);
}
.remove-button:hover { color: var(--ink); }

.drawer-foot {
  padding: 1.3rem 1.6rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}
.subtotal-row strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.drawer-note {
  margin: 0.3rem 0 1.1rem;
  font-size: 0.78rem;
  color: var(--taupe);
}

.checkout-button {
  width: 100%;
  padding: 1.05rem;
}

#paypalButtons {
  position: relative;
  z-index: 0; /* PayPal's iframe sets a high z-index of its own */
  max-height: 60vh;
  overflow-y: auto;
}

.drawer-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  color: var(--taupe);
}

/* ============================================================
   QUICK VIEW
   ============================================================ */
.quickview {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.quickview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  width: min(56rem, 100%);
  background: var(--white);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(33, 28, 21, 0.4);
  animation: qvIn 0.45s var(--ease) both;
}
@keyframes qvIn {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.quickview-media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.quickview-body {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
}

.quickview-close {
  position: absolute;
  top: 1rem; right: 1rem;
}

.quickview-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.4rem 0 0.2rem;
}

.quickview-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.quickview-desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
}

.notes-table {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
  font-size: 0.88rem;
}
.notes-table > div {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.8rem;
}
.notes-table dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-top: 0.15rem;
}
.notes-table dd { margin: 0; color: var(--ink-soft); }

.quickview-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--taupe);
}

.quickview-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
}
.quickview-actions .qty-stepper { flex: 0 0 auto; align-self: stretch; }
.quickview-actions .qty-stepper button { width: 2.6rem; height: 100%; }
.quickview-actions .add-button { flex: 1; margin: 0; }

@media (max-width: 720px) {
  .quickview { padding: 1rem; align-items: end; }
  .quickview-card { grid-template-columns: 1fr; }
  .quickview-media svg { max-height: 34vh; object-fit: cover; }
}

/* ============================================================
   SUB-PAGES (policies, 404)
   These pages don't load app.js, so the header is solid from
   the start via the is-solid class in their markup.
   ============================================================ */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 8.5rem 1.5rem var(--space-section);
}

.legal .section-head {
  text-align: left;
  margin: 0 0 3rem;
  padding: 0;
}

.legal article {
  border-top: 1px solid var(--hairline);
  padding: 2.8rem 0;
}

.legal article h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.legal article p,
.legal article li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal article ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal article li { margin-bottom: 0.5rem; }
.legal article li::marker { color: var(--taupe-soft); }

.legal-updated {
  margin: 0;
  font-size: 0.8rem;
  color: var(--taupe-soft);
}

.notfound {
  min-height: 72vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.notfound-code {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--sand);
  margin: 0 0 1rem;
}

.notfound h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.notfound p {
  color: var(--ink-soft);
  max-width: 26rem;
  margin-bottom: 2rem;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 160;
  transform: translate(-50%, 12px);
  padding: 0.8rem 1.4rem;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
