/* ==========================================================================
   The Pine Nest — site stylesheet
   Design idea: the Montessori "prepared environment". Calm, orderly, real
   materials. Colours come from the logo (navy book, laurel green, red type);
   the one expressive motif is the birch-wood shelf the resources sit on.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/literata-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/literata-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/literata-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #14365e;
  --navy-strong: #0d2747;
  --navy-soft: #e8eef6;
  --green: #1d6f47;
  --green-strong: #155636;
  --green-soft: #e3f1e9;
  --red: #b3192a;
  --red-soft: #fbe9eb;
  --amber: #8a5a00;
  --amber-soft: #fbf1dc;

  /* Surfaces */
  --paper: #ffffff;
  --mist: #f1f5f9;
  --birch: #e9d9bd;
  --birch-edge: #c8a46f;
  --birch-shadow: rgba(110, 76, 30, 0.22);

  /* Text & lines */
  --text: #1b2633;
  --muted: #536070;
  --line: #d8e0e8;
  --line-strong: #b9c5d2;

  /* Type */
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem; /* 14 */
  --step-0: 1.0625rem; /* 17 */
  --step-1: 1.25rem; /* 20 */
  --step-2: 1.5625rem; /* 25 */
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 1.95rem); /* ~31 */
  --step-4: clamp(1.95rem, 1.4rem + 2.2vw, 2.45rem); /* ~39 */
  --step-5: clamp(2.3rem, 1.5rem + 3.4vw, 3.3rem); /* ~53 */

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Shape & depth — radius scales with the size of the thing */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 54, 94, 0.08);
  --shadow-2: 0 6px 20px rgba(20, 54, 94, 0.1);

  --container: 1180px;
  --measure: 68ch;
  --header-h: 72px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--navy);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  font-weight: 620;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  font-weight: 650;
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.25;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.3;
}
p {
  margin: 0 0 var(--s-4);
}
p,
li {
  text-wrap: pretty;
}
a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green-strong);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}
::selection {
  background: var(--navy);
  color: #fff;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm {
  width: 1em;
  height: 1em;
}
.icon-lg {
  width: 1.75em;
  height: 1.75em;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: var(--s-3);
  color: #fff;
}
[hidden] {
  display: none !important;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--s-5), var(--container));
  margin-inline: auto;
}
.narrow {
  width: min(100% - 2 * var(--s-5), 760px);
  margin-inline: auto;
}
.section {
  padding-block: var(--s-9);
}
.section--tight {
  padding-block: var(--s-8);
}
.section--mist {
  background: var(--mist);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  max-width: 56ch;
}
.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: var(--step-3);
  margin-top: var(--s-6);
}
.prose h3 {
  margin-top: var(--s-5);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: var(--s-2);
}
.prose blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-2) var(--s-5);
  border-left: 3px solid var(--green);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--navy);
}
.prose img {
  border-radius: var(--r-md);
  margin-block: var(--s-5);
}
.prose .ql-align-center {
  text-align: center;
}
.prose .ql-align-right {
  text-align: right;
}
.grid {
  display: grid;
  gap: var(--s-5);
}
.grid-2,
.grid-3,
.grid-4 {
  /* Fluid columns with a hard maximum: items never get narrower than --min
     and there are never more than --cols columns. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--min), (100% - (var(--cols) - 1) * var(--s-5)) / var(--cols))), 1fr));
}
.grid-2 {
  --cols: 2;
  --min: 22rem;
}
.grid-3 {
  --cols: 3;
  --min: 17rem;
}
.grid-4 {
  --cols: 4;
  --min: 13.5rem;
}
.stack > * + * {
  margin-top: var(--s-4);
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--step--1);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand img {
  width: auto;
  height: 52px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
}
.brand:hover {
  color: var(--navy);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 560;
}
.nav a:hover {
  background: var(--mist);
  color: var(--navy);
}
.nav a[aria-current='page'] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--green);
  border-radius: 0;
}
.nav .btn,
.nav .btn:hover {
  color: var(--btn-fg);
  background: var(--btn-bg);
  margin-left: var(--s-3);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.basket-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.basket-link:hover {
  background: var(--mist);
}
.basket-count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.btn.menu-toggle {
  display: none;
}
@media (max-width: 1060px) {
  .btn.menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) var(--s-5) var(--s-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav:not(.is-open) {
    display: none;
  }
  .nav a {
    padding: var(--s-3);
    font-size: var(--step-1);
  }
  .nav a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--green);
  }
  .nav .btn {
    margin: var(--s-3) 0 0;
  }
}
@media (max-width: 480px) {
  .brand__name small {
    display: none;
  }
  .brand__name {
    font-size: 0.95rem;
  }
  .basket-link__label {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0.6rem 1.15rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.btn:hover {
  --btn-bg: var(--navy-strong);
  color: var(--btn-fg);
  text-decoration: none;
}
.btn--buy {
  --btn-bg: var(--green);
}
.btn--buy:hover {
  --btn-bg: var(--green-strong);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--mist);
  --btn-fg: var(--navy);
  --btn-border: var(--navy);
}
.btn--danger {
  --btn-bg: var(--red);
}
.btn--danger:hover {
  --btn-bg: #8f1421;
}
.btn--sm {
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  font-size: var(--step--1);
}
.btn--lg {
  min-height: 54px;
  padding: 0.8rem 1.5rem;
  font-size: var(--step-1);
}
.btn--block {
  width: 100%;
}
.btn--icon {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 650;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.field label,
.field legend {
  font-weight: 650;
  color: var(--text);
}
.field .hint {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  color: var(--text);
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2314365e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.4rem;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--navy);
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--navy);
  border-radius: var(--r-sm);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--red);
}
.field-error {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  color: var(--red);
  font-weight: 600;
  font-size: var(--step--1);
  margin: 0;
}
.field-error:empty {
  display: none;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row {
  display: grid;
  gap: 0 var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* ---------- Alerts, badges, toasts ---------- */
.alert {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid;
  margin-bottom: var(--s-5);
}
.alert p:last-child {
  margin: 0;
}
.alert .icon {
  margin-top: 0.15em;
}
.alert--info {
  background: var(--navy-soft);
  border-color: #bfcfe3;
  color: var(--navy-strong);
}
.alert--success {
  background: var(--green-soft);
  border-color: #b8dcc8;
  color: #0f4a2d;
}
.alert--warning {
  background: var(--amber-soft);
  border-color: #ecd29c;
  color: #5c3c00;
}
.alert--error {
  background: var(--red-soft);
  border-color: #f0bcc2;
  color: #7c0f1c;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.5;
  background: var(--mist);
  color: var(--navy);
}
.badge--green {
  background: var(--green-soft);
  color: #0f4a2d;
}
.badge--amber {
  background: var(--amber-soft);
  color: #5c3c00;
}
.badge--red {
  background: var(--red-soft);
  color: #7c0f1c;
}
.toast-region {
  position: fixed;
  z-index: 200;
  right: var(--s-5);
  bottom: var(--s-5);
  display: grid;
  gap: var(--s-3);
  width: min(380px, calc(100vw - 2 * var(--s-5)));
}
.toast {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--navy-strong);
  color: #fff;
  box-shadow: var(--shadow-2);
  animation: toast-in 0.25s var(--ease);
}
.toast--error {
  background: #7c0f1c;
}
.toast a {
  color: #fff;
}
.toast__body {
  flex: 1;
}
.toast button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Breadcrumbs, pagination, chips ---------- */
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--s-2);
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--muted);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
  margin-top: var(--s-7);
}
.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}
.pagination [aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: var(--paper);
}
.chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.chip[aria-current='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip__count {
  font-weight: 500;
  opacity: 0.75;
}

/* ---------- Empty states ---------- */
.empty {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty .icon {
  margin: 0 auto var(--s-3);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--navy);
}
.empty h3 {
  font-size: var(--step-1);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--s-8) var(--s-9);
  background: var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.hero h1 {
  margin-bottom: var(--s-5);
}
.hero .lede {
  margin-bottom: var(--s-6);
}
.hero__photo {
  position: relative;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.hero__caption {
  position: absolute;
  left: var(--s-4);
  bottom: calc(-1 * var(--s-5));
  max-width: 78%;
  background: var(--paper);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.hero__caption strong {
  display: block;
  color: var(--navy);
  font-size: var(--step-0);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.hero__facts li {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
.hero__facts .icon {
  color: var(--green);
}
@media (max-width: 860px) {
  .hero {
    padding-top: var(--s-6);
    background: var(--paper);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .hero__photo {
    order: -1;
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-block: var(--s-7) var(--s-6);
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: var(--step-4);
  margin-bottom: var(--s-3);
}
.page-header .lede {
  margin: 0;
}

/* ---------- The shelf (signature motif) ----------
   Resource covers stand on a birch ledge, the way Montessori materials
   sit on low open shelves. */
.shelf {
  position: relative;
  padding-bottom: var(--s-6);
}
.shelf::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-4));
  right: calc(-1 * var(--s-4));
  bottom: 0;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f1e4cc 0%, var(--birch) 45%, var(--birch-edge) 100%);
  box-shadow:
    0 10px 18px -8px var(--birch-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.shelf__row {
  --cols: 4;
  display: grid;
  gap: var(--s-6) var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(11rem, (100% - (var(--cols) - 1) * var(--s-5)) / var(--cols))), 1fr));
  align-items: start;
}
.catalogue .shelf__row {
  --cols: 3;
}
@media (max-width: 520px) {
  .shelf__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
  }
}
.shelf + .shelf {
  margin-top: var(--s-8);
}

/* ---------- Resource card ---------- */
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.resource-card__cover {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--mist);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 12px 18px -14px rgba(20, 54, 94, 0.55);
  transition: transform 0.25s var(--ease);
}
.resource-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card:hover .resource-card__cover {
  transform: translateY(-4px);
}
.resource-card__body {
  display: grid;
  gap: var(--s-1);
}
.resource-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.25;
  margin: 0;
  color: var(--navy);
}
.resource-card__title a {
  text-decoration: none;
  color: inherit;
}
.resource-card__title a::after {
  /* whole card is clickable via the title link */
  content: '';
  position: absolute;
  inset: 0;
}
.resource-card__title a:focus-visible {
  box-shadow: none;
}
.resource-card:has(a:focus-visible) {
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}
.resource-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  color: var(--muted);
  font-size: var(--step--1);
}
.price {
  font-weight: 750;
  color: var(--text);
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
}
.price--na {
  font-weight: 500;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ---------- Catalogue toolbar ---------- */
.catalogue {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.catalogue__filters {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}
.catalogue__filters h2 {
  font-size: var(--step-1);
  margin-bottom: var(--s-3);
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  gap: var(--s-1);
}
.filter-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
}
.filter-list a:hover {
  background: var(--mist);
}
.filter-list a[aria-current='true'] {
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--navy);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}
.search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 28rem;
}
.search .icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search .input {
  padding-left: 2.6rem;
}
.toolbar__controls {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
}
.toolbar__controls .select {
  width: auto;
  min-height: 44px;
}
.result-count {
  color: var(--muted);
  margin: 0 0 var(--s-5);
}
.currency-switch {
  display: inline-flex;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.currency-switch button {
  border: 0;
  background: var(--paper);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  min-height: 42px;
}
.currency-switch button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
}
@media (max-width: 860px) {
  .catalogue {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }
  .catalogue__filters {
    position: static;
  }
  .filter-list {
    display: flex;
    overflow-x: auto;
    gap: var(--s-2);
    margin-bottom: 0;
    padding-bottom: var(--s-2);
    scrollbar-width: thin;
  }
  .filter-list a {
    white-space: nowrap;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-pill);
  }
  .filter-list a[aria-current='true'] {
    box-shadow: none;
    border-radius: var(--r-pill);
    border-color: var(--navy);
  }
  .catalogue__filters h2 {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ---------- Resource detail ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.product__media {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}
.product__media .shelf__row {
  grid-template-columns: 1fr;
}
.product__cover {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mist);
  box-shadow: 0 22px 30px -22px rgba(20, 54, 94, 0.6);
  max-width: 460px;
  margin-inline: auto;
}
.product__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product h1 {
  font-size: var(--step-4);
}
.buy-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-5) 0 var(--s-6);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.buy-box__price {
  font-size: var(--step-3);
  font-weight: 750;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--s-1);
}
.buy-box__alt {
  color: var(--muted);
  margin: 0 0 var(--s-4);
}
.buy-box__actions {
  display: grid;
  gap: var(--s-3);
}
.assurances {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
  display: grid;
  gap: var(--s-2);
  font-size: var(--step--1);
  color: var(--muted);
}
.assurances li {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}
.assurances .icon {
  color: var(--green);
  margin-top: 0.1em;
}
.preview-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--amber-soft);
  border-bottom: 1px solid #ecd29c;
  color: #5c3c00;
  padding: var(--s-3) 0;
  font-weight: 600;
}
@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .product__media {
    position: static;
  }
  .product__cover {
    max-width: 340px;
  }
}

/* ---------- Basket ---------- */
.basket {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}
.basket-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.basket-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.basket-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--mist);
}
.basket-item h3 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 var(--s-1);
}
.basket-item h3 a {
  text-decoration: none;
}
.summary {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}
.summary h2 {
  font-size: var(--step-2);
}
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-4) 0;
  margin: 0 0 var(--s-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.summary__total strong {
  font-size: var(--step-2);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.skeleton {
  display: block;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--mist) 0%, #e4ebf2 50%, var(--mist) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  min-height: 1em;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 860px) {
  .basket {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
}

/* ---------- Status / order pages ---------- */
.status-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.status-card .status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.status-icon .icon {
  width: 32px;
  height: 32px;
}
.status-icon--ok {
  background: var(--green-soft);
  color: var(--green);
}
.status-icon--wait {
  background: var(--navy-soft);
  color: var(--navy);
}
.status-icon--bad {
  background: var(--red-soft);
  color: var(--red);
}
.status-icon--wait .icon {
  animation: spin 1.2s linear infinite;
}
.download-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.download-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.download-list img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.download-list h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  margin: 0;
}
@media (max-width: 560px) {
  .download-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .download-list .btn {
    grid-column: 1 / -1;
  }
}

/* ---------- Home sections ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--s-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.values li {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
}
.values img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.values h3 {
  font-size: var(--step-1);
  margin: 0;
}
.values p {
  color: var(--muted);
  margin: 0;
  font-size: var(--step--1);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
.split__media img {
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-height: 560px;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .split__media img {
    aspect-ratio: 4 / 3;
  }
}
.programme {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.programme__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}
.programme h3 {
  font-size: var(--step-1);
  margin-bottom: var(--s-2);
}
.programme h3 a {
  text-decoration: none;
  color: inherit;
}
.programme h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.programme:hover {
  border-color: var(--navy);
}
.programme p {
  margin: 0;
  color: var(--muted);
}
.event-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.event-row:first-child {
  border-top: 1px solid var(--line);
}
.date-block {
  width: 72px;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  padding: var(--s-2) 0;
  line-height: 1.1;
}
.date-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.date-block span {
  font-size: var(--step--1);
}
.date-block--past {
  background: var(--mist);
  color: var(--muted);
}
.event-row h3 {
  font-size: var(--step-1);
  margin: 0 0 var(--s-1);
}
.event-row h3 a {
  text-decoration: none;
}
.event-row p {
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
}
.event-row p span {
  display: inline-flex;
  gap: var(--s-1);
  align-items: center;
}
@media (max-width: 640px) {
  .event-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .event-row .btn {
    grid-column: 2;
    justify-self: start;
  }
  .date-block {
    width: 64px;
  }
}
.quote {
  margin: 0;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text);
}
.quote figcaption {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-top: auto;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
}
.quote figcaption strong {
  display: block;
}
.quote figcaption span {
  color: var(--muted);
  font-size: var(--step--1);
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}
.post-card img,
.post-card .post-card__placeholder {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  border-radius: var(--r-md);
  background: var(--mist);
}
.post-card__placeholder {
  display: grid;
  place-items: center;
  color: var(--navy);
}
.post-card h3 {
  font-size: var(--step-1);
  margin: 0;
}
.post-card h3 a {
  text-decoration: none;
  color: inherit;
}
.post-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card p {
  margin: 0;
  color: var(--muted);
}
.post-card time {
  font-size: var(--step--1);
  color: var(--muted);
}
.cta-band {
  background: var(--navy);
  color: #e8eef6;
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: var(--s-2);
}
.cta-band p {
  margin: 0;
  max-width: 54ch;
}
.cta-band .btn {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
}
.cta-band .btn:hover {
  --btn-bg: var(--green-soft);
}
.cta-band :focus-visible {
  box-shadow:
    0 0 0 3px var(--navy),
    0 0 0 6px #fff;
}
@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-grid button,
.gallery-grid a {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-md);
  overflow: hidden;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-grid button:hover img {
  transform: scale(1.03);
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
}
.lightbox::backdrop {
  background: rgba(7, 20, 36, 0.86);
}
.lightbox figure {
  margin: 0;
}
.lightbox img {
  max-height: 80vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--r-md);
}
.lightbox figcaption {
  color: #fff;
  text-align: center;
  padding: var(--s-3);
}
.lightbox__close {
  position: fixed;
  top: var(--s-4);
  right: var(--s-4);
  --btn-bg: #fff;
  --btn-fg: var(--navy);
}

/* ---------- Dialog ---------- */
.dialog {
  border: 0;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(560px, calc(100vw - 2 * var(--s-4)));
  box-shadow: 0 30px 60px rgba(7, 20, 36, 0.3);
  color: var(--text);
}
.dialog::backdrop {
  background: rgba(7, 20, 36, 0.55);
}
.dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6) 0;
}
.dialog__head h2 {
  font-size: var(--step-2);
  margin: 0;
}
.dialog__body {
  padding: var(--s-5) var(--s-6) var(--s-6);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  gap: var(--s-5);
}
.contact-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
}
.contact-list .icon {
  color: var(--green);
  margin-top: 0.2em;
}
.contact-list strong {
  display: block;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* ---------- Comments ---------- */
.comments {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: grid;
  gap: var(--s-5);
}
.comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
}
.comment p {
  margin: var(--s-1) 0 0;
  white-space: pre-line;
}
.comment time {
  color: var(--muted);
  font-size: var(--step--1);
  margin-left: var(--s-2);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--s-9);
  background: var(--navy-strong);
  color: #c9d5e3;
  padding-block: var(--s-8) var(--s-5);
}
.site-footer a {
  color: #fff;
}
.site-footer h2 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.site-footer :focus-visible {
  box-shadow:
    0 0 0 3px var(--navy-strong),
    0 0 0 6px #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.footer-brand {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-4);
}
.footer-brand img {
  width: auto;
  height: 64px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 6px 8px;
  flex: none;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: #fff;
  line-height: 1.2;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.social a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

/* ---------- Print (order pages, receipts) ---------- */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .toast-region {
    display: none !important;
  }
}
.skeleton--row {
  height: 90px;
  margin-bottom: var(--s-3);
}
.empty h2 {
  font-size: var(--step-1);
}
.h3 {
  font-size: var(--step-2);
}
.section-gap {
  margin-top: var(--s-8);
}
.section-gap-sm {
  height: var(--s-5);
}
.split--top {
  align-items: start;
}
.event-image,
.article-image {
  width: 100%;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-6);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.download-list .avatar .icon {
  width: 1.2em;
  height: 1.2em;
}
.download-list__title {
  font-family: var(--font-body);
  font-size: var(--step-0);
  margin: 0;
}
.product__media .shelf {
  max-width: 460px;
  margin-inline: auto;
}
a.badge {
  text-decoration: none;
}
a.badge:hover {
  background: var(--navy-soft);
  text-decoration: underline;
}

/* ---------- Preview/demo deployments (PREVIEW_MODE) ---------- */
.demo-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--amber-soft);
  border-bottom: 1px solid #ecd29c;
  color: #5c3c00;
  font-size: var(--step--1);
  line-height: 1.4;
  text-align: center;
}
.demo-banner strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Resources: coming soon (shop not open yet) ---------- */
.soon {
  padding: var(--s-6) 0 var(--s-8);
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}
.soon__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-8);
  align-items: start;
  margin-top: var(--s-5);
}
.soon__badge {
  margin: 0 0 var(--s-4);
}
.soon__badge svg {
  width: 1em;
  height: 1em;
}
.soon__intro h1 {
  font-size: var(--step-5);
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  max-width: 20ch;
}
.soon__features {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: grid;
  gap: var(--s-4);
}
.soon__features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.soon__features svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow-1);
}
.soon__features strong {
  display: block;
  color: var(--navy);
}
.soon__features span {
  color: var(--muted);
}
.soon__card {
  box-shadow: var(--shadow-2);
}
.soon__privacy {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.soon__privacy svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.soon__peek-title {
  margin: 0 0 var(--s-5);
}
.soon__peek {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.soon__peek img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.soon__meanwhile {
  text-align: center;
}
.soon__meanwhile .cluster {
  justify-content: center;
}
@media (max-width: 860px) {
  .soon__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .soon__peek {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
