/* ==========================================================================
   Self-hosted variable fonts (latin subset, from Google Fonts).
   Declared inline rather than @import so they don't block the render path.
   ========================================================================== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
  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;
}

/* ==========================================================================
   Mrukku Bites — stylesheet
   1. Palettes (4 options x light/dark)
   2. Reset & base
   3. Layout primitives
   4. Header / nav / theme toggle
   5. Buttons, badges, pills
   6. Home page sections
   7. Product listing & detail
   8. Blog listing & article
   9. Forms-free contact, misc pages
  10. Footer
  11. Utilities, motion, print
   ========================================================================== */

/* ==========================================================================
   1. PALETTES
   Switch the whole site by changing data-palette on <html>.
   Light values live on [data-palette]; dark values override under
   [data-theme="dark"]. data-theme is always set explicitly by the inline
   script in <head>, so there is no flash of the wrong theme.
   ========================================================================== */

/* ---- Palette A: Turmeric & Curry Leaf ---------------------------------- */
[data-palette="turmeric"] {
  --product-plate: #f6eedf;
  --bg: #fffcf5;
  --bg-subtle: #fbf3e4;
  --surface: #ffffff;
  --surface-2: #f6eedf;
  --border: #e8dcc5;
  --border-strong: #d6c5a4;
  --text: #241c10;
  --text-muted: #6b5c43;
  --brand: #9a5b08;
  --brand-strong: #7c4906;
  --on-brand: #ffffff;
  --brand-soft: #fbeed6;
  --accent: #1f5e42;
  --accent-strong: #17472f;
  --on-accent: #ffffff;
  --accent-soft: #e2f0e8;
  --shadow-rgb: 74 52 20;
}
[data-palette="turmeric"][data-theme="dark"] {
  --bg: #15110a;
  --bg-subtle: #1c1710;
  --surface: #211b12;
  --surface-2: #2a2318;
  --border: #3a3122;
  --border-strong: #4e4230;
  --text: #f4ede0;
  --text-muted: #b5a88f;
  --brand: #f2b23e;
  --brand-strong: #ffc65e;
  --on-brand: #241c10;
  --brand-soft: #33280f;
  --accent: #6fc79a;
  --accent-strong: #8fdcb4;
  --on-accent: #0e1a14;
  --accent-soft: #14281f;
  --shadow-rgb: 0 0 0;
}

/* ---- Palette B: Paprika & Cream ---------------------------------------- */
[data-palette="paprika"] {
  --product-plate: #f9eae1;
  --bg: #fff9f5;
  --bg-subtle: #fbede4;
  --surface: #ffffff;
  --surface-2: #f9eae1;
  --border: #eed9cb;
  --border-strong: #dcbca6;
  --text: #2a1610;
  --text-muted: #74564a;
  --brand: #a93a21;
  --brand-strong: #8b2d17;
  --on-brand: #ffffff;
  --brand-soft: #fbe4dc;
  --accent: #8a5a12;
  --accent-strong: #6f4709;
  --on-accent: #ffffff;
  --accent-soft: #f8ecd8;
  --shadow-rgb: 80 34 20;
}
[data-palette="paprika"][data-theme="dark"] {
  --bg: #171009;
  --bg-subtle: #1e1610;
  --surface: #241a13;
  --surface-2: #2e2119;
  --border: #3f2e23;
  --border-strong: #573e30;
  --text: #f7eae2;
  --text-muted: #c0a093;
  --brand: #ff8462;
  --brand-strong: #ff9c80;
  --on-brand: #2a1610;
  --brand-soft: #3a2018;
  --accent: #edb65e;
  --accent-strong: #f6c87e;
  --on-accent: #2a1b08;
  --accent-soft: #33260f;
  --shadow-rgb: 0 0 0;
}

/* ---- Palette C: Curry Leaf & Sesame ------------------------------------ */
[data-palette="curryleaf"] {
  --product-plate: #edf3e7;
  --bg: #fafcf7;
  --bg-subtle: #eef4e9;
  --surface: #ffffff;
  --surface-2: #edf3e7;
  --border: #dce6d3;
  --border-strong: #bfd0b2;
  --text: #14200f;
  --text-muted: #55654d;
  --brand: #1f6437;
  --brand-strong: #164e2a;
  --on-brand: #ffffff;
  --brand-soft: #e2f0e5;
  --accent: #8b5d16;
  --accent-strong: #6f4a0d;
  --on-accent: #ffffff;
  --accent-soft: #f6edda;
  --shadow-rgb: 26 48 24;
}
[data-palette="curryleaf"][data-theme="dark"] {
  --bg: #0c120c;
  --bg-subtle: #121a12;
  --surface: #161f16;
  --surface-2: #1d281c;
  --border: #2a372a;
  --border-strong: #3b4c3a;
  --text: #e9f1e5;
  --text-muted: #9daf98;
  --brand: #62c98a;
  --brand-strong: #7fdba1;
  --on-brand: #08150d;
  --brand-soft: #16281c;
  --accent: #e2b269;
  --accent-strong: #edc689;
  --on-accent: #221803;
  --accent-soft: #2b2412;
  --shadow-rgb: 0 0 0;
}

/* ---- Palette D: Charcoal & Saffron -------------------------------------- */
[data-palette="saffron"] {
  --product-plate: #f3f3ee;
  --bg: #fafaf8;
  --bg-subtle: #f1f1ec;
  --surface: #ffffff;
  --surface-2: #f3f3ee;
  --border: #e2e2da;
  --border-strong: #c9c9be;
  --text: #16161a;
  --text-muted: #5e5e66;
  --brand: #1c1c20;
  --brand-strong: #000000;
  --on-brand: #ffffff;
  --brand-soft: #eeeee9;
  --accent: #8a5a00;
  --accent-strong: #6d4700;
  --on-accent: #ffffff;
  --accent-soft: #fbeecd;
  --shadow-rgb: 20 20 24;
}
[data-palette="saffron"][data-theme="dark"] {
  --bg: #0e0e10;
  --bg-subtle: #141417;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --border: #2b2b31;
  --border-strong: #3d3d45;
  --text: #f2f2ef;
  --text-muted: #a0a0aa;
  --brand: #f5f5f0;
  --brand-strong: #ffffff;
  --on-brand: #16161a;
  --brand-soft: #24242a;
  --accent: #ffbe3d;
  --accent-strong: #ffcf6b;
  --on-accent: #221803;
  --accent-soft: #2e2410;
  --shadow-rgb: 0 0 0;
}

/* ---- Shared design tokens ---------------------------------------------- */
:root {
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.19rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.42rem, 1.29rem + 0.63vw, 1.8rem);
  --step-3: clamp(1.69rem, 1.48rem + 1.05vw, 2.3rem);
  --step-4: clamp(2.02rem, 1.68rem + 1.68vw, 2.95rem);
  --step-5: clamp(2.4rem, 1.87rem + 2.66vw, 3.8rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --wrap: 76rem;
  --wrap-narrow: 44rem;

  --shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / 0.06),
    0 1px 3px rgb(var(--shadow-rgb) / 0.05);
  --shadow-md: 0 2px 4px rgb(var(--shadow-rgb) / 0.05),
    0 8px 24px rgb(var(--shadow-rgb) / 0.08);
  --shadow-lg: 0 4px 8px rgb(var(--shadow-rgb) / 0.06),
    0 20px 50px rgb(var(--shadow-rgb) / 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 4.25rem;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}
h4 {
  font-size: var(--step-0);
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--brand-strong);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  padding-inline-start: 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-7) 0;
}

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

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--on-brand);
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}
.section--tight {
  padding-block: var(--space-7);
}
.section--subtle {
  background: var(--bg-subtle);
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--space-9);
  }
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-6);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  font-size: var(--step-1);
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

/* ==========================================================================
   4. HEADER / NAV / THEME TOGGLE
   ========================================================================== */

.promo-bar {
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--step--1);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
}
.promo-bar a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(from var(--bg) r g b / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: rgb(from red r g b / 0.5)) {
  .site-header {
    background: var(--bg);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
}
/* The wordmark ships as two images — black artwork for light pages, white for
   dark. Swap on data-theme rather than prefers-color-scheme, because the theme
   toggle sets data-theme explicitly and can disagree with the OS setting. */
.brand__word {
  width: 8.4rem;
  height: auto;
}
.brand__word--dark {
  display: none;
}
[data-theme="dark"] .brand__word--light {
  display: none;
}
[data-theme="dark"] .brand__word--dark {
  display: block;
}

.nav {
  margin-inline-start: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__link:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav__link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Theme toggle shows exactly one icon for the active theme. */
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: inline-grid;
    order: 3;
  }
  .nav {
    order: 4;
    flex-basis: 100%;
    margin-inline-start: 0;
    display: none;
    padding-bottom: var(--space-4);
  }
  .nav.is-open {
    display: block;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    padding: var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }
  .header-actions {
    margin-inline-start: auto;
  }
}

/* ==========================================================================
   5. BUTTONS, BADGES, PILLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 0.35rem;
}
.btn--ghost:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.02rem;
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--brand-soft);
  color: var(--brand);
}
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Category filter pills on the products page */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter {
  padding: 0.42rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.filter:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

/* ==========================================================================
   6. HOME PAGE SECTIONS
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-8);
}
@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-8);
    padding-block: var(--space-9);
  }
}
.hero h1 {
  font-size: var(--step-5);
  margin-bottom: var(--space-4);
}
.hero__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: var(--space-6);
}
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.pillar {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: var(--space-4);
}
.pillar__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.pillar h3 {
  margin-bottom: var(--space-2);
}
.pillar p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-band h2 {
  margin-bottom: var(--space-3);
}
.cta-band p {
  color: var(--text-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   7. PRODUCTS
   ========================================================================== */

.product-card {
  position: relative; /* anchors the full-card link overlay on the title */
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--product-plate);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__flag {
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
  gap: var(--space-2);
}
.product-card__cat {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-card__title {
  font-size: var(--step-1);
  margin: 0;
}
.product-card__title a {
  color: inherit;
  text-decoration: none;
}
.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-card__summary {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
  flex: 1;
}
.product-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.price {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
}
.price__unit {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--text-muted);
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--accent);
}
.stars svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* --- Product detail --- */
.product-detail {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 56rem) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--product-plate);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-5);
}
.gallery__thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  list-style: none;
  padding: 0;
  overflow-x: auto;
}
.gallery__thumb {
  flex: 0 0 5rem;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: var(--product-plate);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2);
}
.gallery__thumb[aria-current="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.product-info h1 {
  font-size: var(--step-3);
  margin-bottom: var(--space-3);
}
.product-info .price {
  font-size: var(--step-3);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
}

.product-order {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-block: var(--space-6);
}
.product-order p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.product-order p:last-child {
  margin-bottom: 0;
  margin-top: var(--space-3);
}

.spec {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
}
.spec h2 {
  font-size: var(--step-1);
  margin-bottom: var(--space-3);
}
.spec dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  font-size: 0.95rem;
}
.spec dt {
  font-weight: 600;
  color: var(--text-muted);
}
.spec dd {
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.95rem;
}
.check-list svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.28rem;
  color: var(--accent);
}

.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.93rem;
  margin-bottom: var(--space-5);
}
.notice svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.22rem;
  color: var(--accent);
}
.notice p {
  margin: 0;
}

/* ==========================================================================
   8. BLOG
   ========================================================================== */

.page-head {
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.page-head h1 {
  margin-bottom: var(--space-3);
}
.page-head p {
  color: var(--text-muted);
  font-size: var(--step-1);
  max-width: 48ch;
  margin-bottom: 0;
}

.breadcrumbs {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline-start: var(--space-2);
  color: var(--border-strong);
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--brand);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card__media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.post-card:hover .post-card__media img {
  transform: scale(1.04);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3);
  padding: var(--space-5);
}
.post-card__title {
  font-size: var(--step-1);
  margin: 0;
}
.post-card__title a {
  color: inherit;
  text-decoration: none;
}
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card__summary {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.post-meta__dot::before {
  content: "•";
  margin-inline-end: var(--space-3);
  color: var(--border-strong);
}

/* --- Article --- */
.article {
  padding-block: var(--space-7) var(--space-8);
}
.article__header {
  margin-bottom: var(--space-6);
}
.article__header h1 {
  font-size: var(--step-4);
  margin-bottom: var(--space-4);
}
.article__lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.article__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-7);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: var(--space-4);
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}
.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.prose ul,
.prose ol {
  padding-inline-start: 1.4rem;
}
.prose li + li {
  margin-top: var(--space-2);
}
.prose figure {
  margin: var(--space-6) 0;
}
.prose figure img {
  border-radius: var(--radius);
  width: 100%;
}
.prose figcaption {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--text-muted);
  text-align: center;
}
.prose blockquote {
  margin: var(--space-6) 0;
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--brand);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--text);
}
.prose a {
  text-decoration: underline;
}
.prose strong {
  font-weight: 600;
}

.article__foot {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   9. MISC PAGES
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 44rem) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
}
.contact-card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  margin-bottom: var(--space-2);
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}
.contact-card a.big-link {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  word-break: break-word;
}

.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > *:not(summary) {
  margin-top: var(--space-3);
  color: var(--text-muted);
}

.error-page {
  text-align: center;
  padding-block: var(--space-9);
}
.error-page .code {
  font-family: var(--font-display);
  font-size: var(--step-5);
  color: var(--brand);
  line-height: 1;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: var(--space-8);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: var(--space-7) var(--space-5);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--space-7);
  }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.footer-col a {
  color: var(--text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.footer-about p {
  color: var(--text-muted);
  max-width: 34ch;
  margin-block: var(--space-4);
}
.social-row {
  display: flex;
  gap: var(--space-3);
}
.social-row a {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
}
.social-row a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.social-row svg {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom a {
  color: var(--text-muted);
}

/* ==========================================================================
   11. UTILITIES, MOTION, PRINT
   ========================================================================== */

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

.text-muted {
  color: var(--text-muted);
}
.center {
  text-align: center;
}
.mt-6 {
  margin-top: var(--space-6);
}
.mb-0 {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

/* The logo is a black wordmark; invert it for dark backgrounds. */
[data-theme="dark"] .logo-invert {
  filter: invert(1) brightness(1.6);
}

/* The icon artwork has a transparent background; give it a white chip so the
   dark brown mark stays legible on a dark page. */
[data-theme="dark"] .logo-dark-bg {
  background-color: #fff;
  padding: 3px;
}

@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .promo-bar,
  .skip-link,
  .btn,
  .filters {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
