/* ==========================================================================
   Sugarwren Candy Co. — stylesheet
   Palette, type and layout for a small handmade candy shop.
   No external fonts, no frameworks, no tracking.
   ========================================================================== */

:root {
  --ink: #241a20;
  --ink-soft: #4d3f46;
  --ink-muted: #6f6068;
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --sand: #efe4d4;
  --sand-deep: #e4d5c1;
  --line: #e0d3c2;
  --rose: #a83c5b;
  --rose-deep: #832c45;
  --rose-soft: #f4e4e7;
  --sage: #63755f;
  --amber: #b8792f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 32, .06), 0 6px 18px rgba(36, 26, 32, .05);
  --shadow-md: 0 2px 4px rgba(36, 26, 32, .06), 0 18px 40px rgba(36, 26, 32, .1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); }
h4 { font-size: 1.08rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

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

::selection { background: var(--rose-soft); color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: var(--cream); }

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

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

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; width: 34px; height: 34px; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -.015em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-sub {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: inline-block;
  font-size: .94rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover { color: var(--ink); border-bottom-color: var(--rose); }
.primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
}

/* --------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .86rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rose-deep); color: #fff; }
.btn-primary:hover { background: var(--rose); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: .62rem 1.15rem; font-size: .88rem; }
.btn-subtle { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-subtle:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.7rem; }

/* -------------------------------- section -------------------------------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #e8ddd2; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--cream); }
.section--ink a { color: #f0c9d2; }
.section--ink a:hover { color: #fff; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 .9rem;
}
.section--ink .eyebrow { color: #d9a2b0; }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-foot { margin-top: clamp(28px, 4vw, 44px); }

/* --------------------------------- hero ---------------------------------- */

.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(52px, 7vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: .5em; }
.hero .lead { max-width: 33ch; }
.hero-note {
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hero-note svg { flex: 0 0 auto; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  right: -8px;
  bottom: -18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------- value list ------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.pillar {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.pillar h3 { font-size: 1.14rem; margin-bottom: .35em; }
.pillar p { font-size: .95rem; margin: 0; color: var(--ink-soft); }

/* --------------------------------- cards --------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 34px);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.candy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.candy-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.candy-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.candy-card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.candy-card h3 { margin-bottom: .3em; }
.candy-card .card-kicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: .55rem;
}
.candy-card p { font-size: .95rem; }
.candy-card .card-link {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rose-deep);
}
.card-link,
.post-card .card-link {
  display: inline-block;
  margin-top: .35rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rose-deep);
}
.card-link:hover,
.post-card .card-link:hover { text-decoration: underline; }

/* the duplicated "Request an order" link only appears in the mobile menu */
.nav-cta-wrap { display: none; }

/* ------------------------------ product rows ----------------------------- */

.candy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.candy-row:first-of-type { border-top: 0; padding-top: 0; }
.candy-row:nth-child(even) .candy-row-media { order: 2; }
.candy-row-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.candy-num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--ink-muted);
  letter-spacing: .12em;
  display: block;
  margin-bottom: .6rem;
}
.candy-row h2 { margin-bottom: .35em; }
.candy-shape {
  font-size: .9rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 1em;
}
.candy-row dl { margin: 1.3rem 0 0; }
.candy-row dt {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin-top: .9rem;
}
.candy-row dd { margin: .2rem 0 0; font-size: .97rem; }

/* -------------------------------- figures -------------------------------- */

.figure-wide { margin: 0; }
.figure-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.figure-wide figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--ink-muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split--flip > *:first-child { order: 2; }

/* --------------------------------- steps --------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  font-size: .93rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: .6rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .4em; }
.steps p { margin: 0; }

/* -------------------------------- article -------------------------------- */

.page-head { padding: clamp(40px, 5vw, 68px) 0 clamp(20px, 3vw, 32px); }
.page-head .lead { max-width: 62ch; }
.breadcrumb {
  font-size: .82rem;
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose-deep); text-decoration: underline; }
.breadcrumb span { margin: 0 .45rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--rose);
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink);
  font-style: italic;
}
.prose blockquote p { margin: 0; }

.article-meta {
  font-size: .85rem;
  color: var(--ink-muted);
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.article-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  font-size: .92rem;
  position: sticky;
  top: 96px;
}
.article-aside h2 { font-size: 1.05rem; margin-bottom: .6em; }
.article-aside ul { padding-left: 1.1em; margin-bottom: 0; }
.article-aside li { margin-bottom: .5em; }

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post-card:first-of-type { border-top: 0; }
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.post-card h2 { font-size: 1.32rem; margin-bottom: .35em; }
.post-card:hover h2 { color: var(--rose-deep); }
.post-card p { font-size: .95rem; margin-bottom: .5em; }
.post-card .post-meta { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: .6rem; }

/* ---------------------------------- faq ---------------------------------- */

.faq-list { max-width: 820px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-list details[open] { padding-bottom: 1.3rem; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--rose);
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: .8rem; font-size: .97rem; }

/* --------------------------------- forms --------------------------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field .req { color: var(--rose); }
.field .hint { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-muted); margin-top: .25rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sand-deep);
  border-radius: 4px;
  padding: .72rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(168, 60, 91, .14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #a12b2b; background: #fdf5f5; }
.field-error {
  display: none;
  font-size: .82rem;
  color: #8f2020;
  margin-top: .35rem;
}
.field.has-error .field-error { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: .84rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}
.form-required-key { font-size: .8rem; color: var(--ink-muted); margin-bottom: 1.2rem; }

.alert {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.6rem;
  font-size: .95rem;
  border: 1px solid;
}
.alert h2 { font-size: 1.15rem; margin-bottom: .4em; }
.alert ul { margin-bottom: 0; }
.alert-error { background: #fdf1f1; border-color: #e3c1c1; color: #6f1f1f; }
.alert-error h2 { color: #6f1f1f; }
.alert-ok { background: #f1f6ef; border-color: #c8d7c1; color: #35472f; }
.alert-ok h2 { color: #35472f; }

/* --------------------------------- contact ------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-bottom: 20px;
}
.contact-card h2, .contact-card h3 { font-size: 1.08rem; margin-bottom: .5em; }
.contact-card p { font-size: .95rem; margin-bottom: .4em; }
.contact-card address { font-style: normal; font-size: .97rem; line-height: 1.6; }
.hours-list { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .95rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; border-bottom: 1px dotted var(--line); padding-bottom: .35rem; }
.hours-list li:last-child { border-bottom: 0; }

/* --------------------------------- footer -------------------------------- */

.site-footer {
  background: var(--ink);
  color: #cdbfc4;
  padding: clamp(44px, 6vw, 72px) 0 26px;
  font-size: .93rem;
}
.site-footer h2, .site-footer h3 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
}
.site-footer a { color: #e3d5d9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { color: var(--cream); margin: 0 0 .8rem; }
.footer-brand .brand-text { color: var(--cream); }
.footer-brand .brand-sub { color: #a9989f; }
.footer-brand p { max-width: 34ch; color: #b8a9ae; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-address { font-style: normal; line-height: 1.7; color: #b8a9ae; }
.footer-bottom {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid #3b2c33;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .82rem;
  color: #9c8d93;
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }

/* ------------------------------ cookie banner ---------------------------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 780px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.05rem 1.2rem;
  display: none;
  gap: 1rem 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.is-open { display: flex; }
.cookie-banner p { margin: 0; font-size: .86rem; flex: 1 1 320px; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: .55rem 1.05rem; font-size: .84rem; }

/* --------------------------------- misc ---------------------------------- */

.cta-band {
  background: var(--rose-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; max-width: 52ch; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.badge {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .75rem;
  color: var(--ink-muted);
  background: var(--paper);
}

.note-box {
  border-left: 3px solid var(--amber);
  background: #fbf3e6;
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .94rem;
  margin: 1.8rem 0;
}
.note-box p:last-child { margin-bottom: 0; }

.pagination-link { display: inline-block; margin-top: 2rem; font-weight: 600; text-decoration: none; }

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }
  .hero .lead { max-width: none; }
  .hero-media::after { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .candy-row { grid-template-columns: 1fr; }
  .candy-row:nth-child(even) .candy-row-media { order: 0; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { aspect-ratio: 16 / 9; }

  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; order: 3; }
  .header-cta { display: none; }
  .primary-nav {
    display: none;
    flex-basis: 100%;
    order: 4;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 8px; }
  .primary-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: 11px 2px; font-size: 1rem; }
  .primary-nav a[aria-current="page"] { border-bottom-color: transparent; font-weight: 600; }
  .nav-cta-wrap { display: block; }
  .primary-nav .nav-cta { display: block; padding: 14px 2px; color: var(--rose-deep); font-weight: 600; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .card-grid, .card-grid--2, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; display: inline-block; margin-top: 12px; box-shadow: none; }
  .figure-wide img { aspect-ratio: 4 / 3; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom ul { flex-wrap: wrap; gap: 12px 18px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: .95rem 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
}
