/* ==========================================================================
   Thistle & Loom — Craft Supplies Shop
   Global stylesheet
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Buttons & links
   5.  Header / navigation
   6.  Hero
   7.  Feature strip
   8.  Article
   9.  Shop / product grid
   10. Basket panel
   11. FAQ accordion
   12. Newsletter
   13. Contact
   14. Footer
   15. Cookie banner
   16. Toast, modal, back-to-top
   17. Legal pages
   18. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #23201c;
  --ink-soft: #5b544c;
  --ink-muted: #857c70;
  --cream: #fbf7f1;
  --cream-deep: #f6efe5;
  --sand: #f1e8dc;
  --sage: #6b7f61;
  --sage-dark: #4f6350;
  --clay: #b4663f;
  --clay-dark: #944f2d;
  --line: #e3d9cb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(35, 32, 28, 0.06), 0 4px 12px rgba(35, 32, 28, 0.05);
  --shadow-md: 0 10px 30px rgba(35, 32, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(35, 32, 28, 0.18);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.01em; }

p { margin: 0 0 1.15em; }

a { color: var(--sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25rem; }
li { margin-bottom: 0.45em; }

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--clay);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-soft);
}

blockquote p:last-child { margin-bottom: 0; }

figure { margin: 0; }

figcaption {
  font-size: 0.855rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
  line-height: 1.55;
}

address { font-style: normal; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

caption {
  caption-side: bottom;
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding-top: 0.75rem;
  text-align: left;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-muted);
  font-weight: 600;
}

tbody tr:last-child td { border-bottom: 1px solid var(--line); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; color: var(--cream); }

/* 3. Layout helpers ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--sand { background: var(--sand); }
.section--cream-deep { background: var(--cream-deep); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head--center { margin-inline: auto; text-align: center; }

.lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.grid { display: grid; gap: 1.5rem; }

.hero__grid > *,
.article-layout > *,
.about > *,
.contact__grid > *,
.legal-layout > *,
.footer__grid > * { min-width: 0; }

.contact-list a,
.footer__list a,
.footer__list address,
.sidebar__card a { overflow-wrap: anywhere; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 4. Buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 0.86rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
  background: var(--sage-dark);
  color: var(--cream);
  white-space: nowrap;
}

.btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn--clay { background: var(--clay); }
.btn--clay:hover { background: var(--clay-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink-muted);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover { background: var(--white); color: var(--ink); }

.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn .btn__icon { width: 1.05em; height: 1.05em; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-arrow:hover { color: var(--clay-dark); border-bottom-color: currentColor; }
.link-arrow svg { width: 1em; height: 1em; }

/* 5. Header / navigation ------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(251, 247, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(35, 32, 28, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark { width: 42px; height: 42px; flex: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover { color: var(--ink); background: rgba(107, 127, 97, 0.10); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }

.basket-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.basket-btn:hover { border-color: var(--ink-muted); background: var(--white); }
.basket-btn svg { width: 1.15rem; height: 1.15rem; }

.basket-btn__count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(107, 127, 97, 0.16), transparent 62%),
    radial-gradient(900px 400px at 92% 6%, rgba(180, 102, 63, 0.13), transparent 60%),
    var(--cream);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__copy { max-width: 560px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.hero__badges li {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(107, 127, 97, 0.12);
  border: 1px solid rgba(107, 127, 97, 0.24);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero h1 { margin-bottom: 0.5rem; }
.hero h1 em { font-style: italic; color: var(--clay); }

.hero__text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 1.75rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 46ch;
}

.hero__note svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; color: var(--sage); }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(251, 247, 241, 0.93);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.hero__caption strong { color: var(--ink); }

/* 7. Feature strip ------------------------------------------------------- */
.features { border-block: 1px solid var(--line); background: var(--white); }

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

.feature {
  display: flex;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem;
  align-items: flex-start;
}

.feature + .feature { border-left: 1px solid var(--line); }

.feature__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--sage-dark);
}

.feature__icon svg { width: 20px; height: 20px; }

.feature h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.feature p { font-size: 0.875rem; color: var(--ink-muted); margin: 0; line-height: 1.55; }

/* 8. Article ------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

.article {
  max-width: 760px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.article__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article__meta svg { width: 0.95rem; height: 0.95rem; }

.article__figure {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article__figure img { width: 100%; border-radius: var(--radius); }

.article h2 { margin-top: 0; }
.article h3 { margin-top: 2rem; }

.article p,
.article li { color: var(--ink-soft); }

.article strong { color: var(--ink); }

.article__intro {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.68;
  padding-bottom: 0.5rem;
}

.article__intro::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 0.82;
  padding: 0.12em 0.12em 0 0;
  color: var(--clay);
}

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.callout__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.callout__title svg { width: 1rem; height: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.65rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.05rem;
  height: 0.6rem;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}

.price-table code { font-size: 0.85em; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 1.25rem;
}

.sidebar__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.sidebar__card h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.sidebar__card ol,
.sidebar__card ul { padding-left: 1.1rem; margin-bottom: 0; }

.sidebar__card li { font-size: 0.9rem; color: var(--ink-soft); }
.sidebar__card li:last-child { margin-bottom: 0; }
.sidebar__card p { font-size: 0.9rem; color: var(--ink-soft); }
.sidebar__card p:last-child { margin-bottom: 0; }

.sidebar__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sidebar__list li { margin: 0; }

.sidebar__list a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--sage-dark);
}

.sidebar__list a:hover { color: var(--clay-dark); text-decoration: underline; }

.toc { list-style: none; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 0.55rem; counter-increment: toc; font-size: 0.9rem; }

.toc a {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.45;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--clay);
  flex: none;
}

.toc a:hover { color: var(--ink); text-decoration: underline; }

/* 9. Shop / product grid ------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

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

.filter-btn.is-active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--cream);
}

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

.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product.is-hidden { display: none; }

.product__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product:hover .product__media img { transform: scale(1.04); }

.product__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(251, 247, 241, 0.94);
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
}

.product__body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.product__name {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.3;
}

.product__desc {
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 0.4rem;
}

.product__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.product__price {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.product__price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.shop-note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

.shop-note a { color: var(--sage-dark); }

/* 9b. About band --------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.1;
}

.about__media img { width: 100%; height: 100%; object-fit: cover; }

.about__copy h2 { margin-bottom: 0.75rem; }

.about__copy .lead { margin-bottom: 1.25rem; }

.about__copy .checklist { margin-bottom: 1.6rem; }

.about__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

@media (max-width: 1140px) {
  .header__inner { gap: 0.9rem; }
  .brand__tagline { display: none; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 9; }
}

/* 10. Basket panel ------------------------------------------------------- */
.basket {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
}

.basket.is-open { transform: translateX(0); visibility: visible; }

.basket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.basket__head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.basket__close,
.modal__close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.basket__close:hover,
.modal__close:hover { background: var(--white); border-color: var(--ink-muted); }

.basket__body { padding: 1.1rem 1.25rem; overflow-y: auto; flex: 1; }

.basket__empty { text-align: center; color: var(--ink-muted); font-size: 0.92rem; padding: 2rem 0.5rem; }
.basket__empty svg { width: 44px; height: 44px; margin: 0 auto 0.85rem; color: var(--line); display: block; }

.basket__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.basket__item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }

.basket__item-name { font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.basket__item-price { font-size: 0.82rem; color: var(--ink-muted); }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.qty button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
  padding: 0;
}

.qty button:hover { border-color: var(--ink-muted); }
.qty span { font-size: 0.85rem; min-width: 1.1rem; text-align: center; }

.basket__remove {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  line-height: 1;
}

.basket__remove:hover { color: var(--clay-dark); }
.basket__remove svg { width: 16px; height: 16px; }

.basket__foot { padding: 1.1rem 1.25rem 1.35rem; border-top: 1px solid var(--line); background: var(--white); }

.basket__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.basket__total span { font-size: 0.85rem; color: var(--ink-soft); }
.basket__total strong { font-family: var(--serif); font-size: 1.35rem; }

.basket__fine { font-size: 0.75rem; color: var(--ink-muted); margin-bottom: 0.85rem; line-height: 1.5; }

.basket__actions { display: grid; gap: 0.5rem; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 32, 28, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 1050;
}

.overlay.is-visible { opacity: 1; visibility: visible; }

/* 11. FAQ accordion ------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.faq__q:hover { color: var(--sage-dark); }

.faq__icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink-soft);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 10px; }

.faq__item.is-open .faq__icon { background: var(--sage-dark); border-color: var(--sage-dark); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--cream); }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }

.faq__a { display: none; padding: 0 0 1.2rem; max-width: 66ch; }
.faq__a p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* 12. Newsletter --------------------------------------------------------- */
.newsletter {
  background: var(--sage-dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  box-shadow: var(--shadow-md);
}

.newsletter h2 { color: var(--cream); margin-bottom: 0.5rem; }
.newsletter p { color: rgba(251, 247, 241, 0.82); font-size: 0.95rem; margin-bottom: 0; }

.form__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 127, 97, 0.22);
}

.form__row .input { flex: 1 1 220px; }

.newsletter .input { border-color: transparent; }

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(251, 247, 241, 0.75);
}

.form__consent input { margin-top: 0.2rem; flex: none; }
.form__consent a { color: var(--cream); }

.form__status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #f6d7c2;
  min-height: 1.2em;
}

.form__status.is-error { color: #ffd0c2; }

/* 13. Contact ------------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }

.contact-list li { display: flex; gap: 0.85rem; margin: 0; }

.contact-list__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sage-dark);
}

.contact-list__icon svg { width: 18px; height: 18px; }

.contact-list dt,
.contact-list__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.contact-list dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.contact-list dd a { color: var(--ink); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1rem; }
.field:last-of-type { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field .input,
.field textarea {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field__error {
  display: none;
  font-size: 0.78rem;
  color: var(--clay-dark);
  margin-top: 0.35rem;
}

.has-error .input,
.has-error textarea { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180, 102, 63, 0.15); }

.has-error .field__error { display: block; }

.form__fine {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0.9rem 0 0;
}

.form__success {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(107, 127, 97, 0.12);
  border: 1px solid rgba(107, 127, 97, 0.3);
  font-size: 0.87rem;
  color: var(--sage-dark);
  line-height: 1.5;
}

.form__success.is-visible { display: flex; }
.form__success svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.1rem; }

/* 14. Footer ------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(251, 247, 241, 0.72);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.9rem;
}

.footer a { color: rgba(251, 247, 241, 0.78); text-decoration: none; }
.footer a:hover { color: var(--cream); text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(251, 247, 241, 0.14);
}

.footer .brand { color: var(--cream); margin-bottom: 0.9rem; }
.footer .brand__mark { filter: brightness(1.05); }
.footer .brand__tagline { color: rgba(251, 247, 241, 0.55); }

.footer__about p { font-size: 0.87rem; line-height: 1.65; margin-bottom: 1rem; max-width: 34ch; }

.footer h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__list li { margin: 0; font-size: 0.87rem; line-height: 1.5; }
.footer__list address { font-style: normal; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(251, 247, 241, 0.55);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.footer__cookie-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(251, 247, 241, 0.78);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__cookie-btn:hover { color: var(--cream); }

.footer__disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(251, 247, 241, 0.45);
  line-height: 1.6;
  max-width: 88ch;
}

/* 15. Cookie banner ------------------------------------------------------ */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: var(--ink);
  color: rgba(251, 247, 241, 0.85);
  box-shadow: 0 -12px 34px rgba(35, 32, 28, 0.24);
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.cookie.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

.cookie__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

.cookie__text { flex: 1 1 380px; font-size: 0.85rem; line-height: 1.55; margin: 0; }
.cookie__text strong { color: var(--cream); }
.cookie__text a { color: var(--cream); }

.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cookie__actions .btn { padding: 0.6rem 1.15rem; font-size: 0.84rem; }

.cookie__actions .btn--ghost { color: rgba(251, 247, 241, 0.9); border-color: rgba(251, 247, 241, 0.32); }
.cookie__actions .btn--ghost:hover { background: rgba(251, 247, 241, 0.1); color: var(--cream); border-color: rgba(251, 247, 241, 0.6); }

/* 16. Toast, modal, back-to-top ------------------------------------------ */
.cookie:not(.is-hidden) ~ .toast-stack { bottom: 7.5rem; }
.cookie:not(.is-hidden) ~ .back-to-top { bottom: 7.5rem; }

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1300;
  display: grid;
  gap: 0.5rem;
  width: min(340px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: auto;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.1rem; color: #a8c39b; }
.toast--info svg { color: #d8c9b4; }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--white); }
.back-to-top svg { width: 18px; height: 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 17. Legal pages -------------------------------------------------------- */
.page-hero {
  background: var(--sand);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 0; }
.page-hero__updated { font-size: 0.8rem; color: var(--ink-muted); margin-top: 1rem; display: block; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

.legal { max-width: 780px; }

.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }

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

.legal table { margin-top: 1rem; }
.legal table td:first-child { font-weight: 600; color: var(--ink); width: 34%; }

.legal__callout {
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--sage);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}

.legal__callout p:last-child { margin-bottom: 0; }

.toc-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.toc-card h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.toc-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.toc-card li { margin: 0; }
.toc-card a { font-size: 0.86rem; color: var(--ink-soft); text-decoration: none; line-height: 1.4; display: block; }
.toc-card a:hover { color: var(--sage-dark); text-decoration: underline; }

/* 18. Responsive --------------------------------------------------------- */
@media (max-width: 1140px) {
  .header__inner { gap: 0.9rem; }
  .brand__tagline { display: none; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; order: -1; }
  .hero__copy { max-width: 100%; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .newsletter { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; }
  .toc-card ol { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .back-to-top { bottom: 1rem; }
}

@media (max-width: 1090px) {
  .nav-toggle { display: inline-flex; }
  .header__actions .btn--header { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 22px 1.15rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__link { padding: 0.75rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__link:last-child { border-bottom: 0; }

  .features__grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: 1.15rem 0.25rem; }

  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field--half { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .back-to-top { display: none; }
  .toast-stack { bottom: 5.75rem; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .header__inner { gap: 0.4rem; }
  .brand { gap: 0.5rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 0.98rem; }
  .brand__tagline { display: none; }
  .basket-btn { padding: 0.55rem 0.7rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero__badges { gap: 0.4rem; }
  .hero__badges li { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
  .cookie__actions .btn { font-size: 0.8rem; padding: 0.55rem 0.9rem; }
}

@media (max-width: 340px) {
  .brand__name { font-size: 0.88rem; }
  .brand__mark { width: 28px; height: 28px; }
  .basket-btn__count { display: none; }
  .header__actions { gap: 0.35rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .toc-card ol { grid-template-columns: 1fr; }
  .legal table td:first-child { width: 42%; }
  .brand__tagline { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.08rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .products { grid-template-columns: 1fr; }
  .article__intro::first-letter { font-size: 3rem; }
  blockquote { font-size: 1.05rem; padding: 1rem 1.15rem; }
  .cookie__inner { gap: 0.85rem; }
  .cookie__text { font-size: 0.82rem; }
  table { font-size: 0.88rem; }
  th, td { padding: 0.6rem 0.5rem; }
  .basket-btn__label { display: none; }
}
