/* ==========================================================================
   PRINT MATRIX - main.css
   Bold editorial black and cream. Mobile first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self hosted fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design tokens

   Sections are built on three surface levels so light and dark share one
   rhythm: surface-0 is the page, surface-1 is an alternate band, surface-2
   is anything raised off the page such as a card.
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --ink: #111111;
  --cream: #F4EFE8;
  --paper: #FFFFFF;
  --maroon: #6B2A33;

  /* Light surfaces */
  --surface-0: #FFFFFF;
  --surface-1: #F4EFE8;
  --surface-2: #FFFFFF;
  /* Only dark uses this: in light the custom covers band is solid ink */
  --surface-3: #FFFFFF;
  --border-subtle: rgba(17, 17, 17, 0.12);

  /* Light roles. Light is the default on every first visit. */
  --bg: var(--surface-0);
  --bg-alt: var(--surface-1);
  --surface: var(--surface-2);
  --surface-alt: var(--surface-1);
  --text: var(--ink);
  --text-muted: #5E594F;
  --accent: var(--maroon);
  --accent-text: #5C232B;
  --accent-contrast: var(--cream);
  --border: rgba(17, 17, 17, 0.16);
  --border-strong: rgba(17, 17, 17, 0.42);
  --rule: rgba(17, 17, 17, 0.10);
  --on-ink-muted: #C9C2B8;
  --on-ink-accent: #E1A0AA;
  --btn-quiet-hover: rgba(17, 17, 17, 0.07);

  /* Type */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 4.2vw, 4.25rem);
  --fs-h2: clamp(1.95rem, 1.3rem + 2.9vw, 3.15rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --lh-tight: 1.02;
  --lh-head: 1.08;
  --lh-body: 1.65;
  --track-tight: -0.022em;
  --track-eyebrow: 0.16em;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 3rem);
  --container: 1240px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.10), 0 2px 6px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 4px 10px rgba(17, 17, 17, 0.10), 0 14px 30px rgba(17, 17, 17, 0.12);
  --shadow-lg: 0 10px 20px rgba(17, 17, 17, 0.14), 0 30px 60px rgba(17, 17, 17, 0.20);
  --shadow-photo: 0 12px 22px rgba(17, 17, 17, 0.18), 0 34px 64px rgba(17, 17, 17, 0.26);
  --shadow-photo-deep: 0 18px 30px rgba(17, 17, 17, 0.24), 0 46px 84px rgba(17, 17, 17, 0.34);
  --shadow-card-hover: 0 6px 14px rgba(17, 17, 17, 0.14), 0 22px 44px rgba(17, 17, 17, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 200ms;

  --header-h: 68px;
  color-scheme: light;
}

/* Dark theme. Applied only from an explicit stored choice, never from
   prefers-color-scheme, so the first visit is always light. */
:root[data-theme='dark'] {
  --surface-0: #0F0F0F;
  --surface-1: #171717;
  --surface-2: #1F1F1F;
  --surface-3: #2B2B2B;
  --border-subtle: rgba(244, 239, 232, 0.12);

  --bg: var(--surface-0);
  --bg-alt: var(--surface-1);
  --surface: var(--surface-2);
  --surface-alt: var(--surface-2);
  --text: var(--cream);
  --text-muted: #ADA69C;
  --accent: #8C3A45;
  --accent-text: #E1A0AA;
  --accent-contrast: var(--cream);
  --border: rgba(244, 239, 232, 0.20);
  --border-strong: rgba(244, 239, 232, 0.48);
  --rule: rgba(244, 239, 232, 0.13);
  --btn-quiet-hover: rgba(244, 239, 232, 0.10);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 16px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.68), 0 32px 64px rgba(0, 0, 0, 0.6);
  --shadow-photo: 0 14px 26px rgba(0, 0, 0, 0.7), 0 36px 70px rgba(0, 0, 0, 0.62);
  --shadow-photo-deep: 0 20px 34px rgba(0, 0, 0, 0.78), 0 50px 90px rgba(0, 0, 0, 0.7);
  --shadow-card-hover: 0 8px 18px rgba(0, 0, 0, 0.7), 0 26px 52px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

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

* { margin: 0; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

ul,
ol { list-style: none; padding: 0; }

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 500; }

p { text-wrap: pretty; }

::selection { background: var(--maroon); color: var(--cream); }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2,
.grid--3,
.grid--4,
.grid--products { grid-template-columns: 1fr; }

/* Product grid only: two columns from 360 px, three from 1024 px.
   One column below 360 px. Other three column grids hold wider content,
   so they stay single column until 600 px. */
@media (min-width: 360px) {
  .grid--products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid { gap: var(--sp-6); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3,
  .grid--products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .grid--products { gap: var(--sp-4); }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

/* Heading and intro stacked in one column */
.section-head--stacked { display: block; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--sp-4);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 54ch;
}

/* Intro paragraph sitting under a section heading */
.section-intro {
  max-width: 60ch;
  margin-top: var(--sp-4);
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   5. Accessibility. Skip link, focus rings, reduced motion.
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 200;
  transform: translateY(-250%);
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Every interactive element gets the same 2 px accent ring */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-photo { transform: none !important; }
  .card:hover { transform: none; }
  /* The hero's four motions are switched off outright rather than shortened,
     so each one shows its finished state from the very first paint. */
  .hero-in,
  .hero__glow,
  .frame--stack > picture { animation: none !important; }
  .hero__art { transform: none !important; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Short label swaps in on narrow product cards */
.btn__label--short { display: none; }

.btn--primary {
  background: var(--maroon);
  color: var(--cream);
  border-color: var(--maroon);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #4E1D24; border-color: #4E1D24; }
:root[data-theme='dark'] .btn--primary { background: #8C3A45; border-color: #8C3A45; }
:root[data-theme='dark'] .btn--primary:hover { background: #6B2A33; border-color: #6B2A33; }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--text); background: var(--btn-quiet-hover); }

.btn--ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: transparent;
  padding-inline: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.btn--ghost:hover { color: var(--text); background: var(--btn-quiet-hover); }

.btn--onink {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--onink:hover { background: #DED6CA; border-color: #DED6CA; }

.btn--outline-onink {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 232, 0.5);
}
.btn--outline-onink:hover { border-color: var(--cream); background: rgba(244, 239, 232, 0.12); }

.btn--sm { padding: 0.7rem 1.1rem; font-size: var(--fs-xs); }
.btn--lg {
  padding: 1.05rem 2rem;
  font-size: var(--fs-body);
  min-height: 48px;
}
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. Badge
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge__dot {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. Cards and photo frames
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
/* Every raised card lifts the same way on hover */
.card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

/* Fixed aspect ratio frames. The photo is cropped, never stretched. */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border-radius: var(--r-md);
}
/* The img now sits inside a picture element, so both depths have to be
   covered or the photo stops filling its frame. */
.frame > img,
.frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--3x4 { aspect-ratio: 3 / 4; }
.frame--1x1 { aspect-ratio: 1 / 1; }

/* A framed photo that keeps its own proportions instead of being cropped to
   a ratio. Used where the crop would cut into the notebook itself. */
.frame--natural { aspect-ratio: auto; }
.frame--natural > picture { display: block; }
.frame--natural > img,
.frame--natural > picture > img { height: auto; }

.card .frame { border-radius: 0; border-bottom: 1px solid var(--border-subtle); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1 1 auto;
}
.card__title { font-size: var(--fs-h3); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

/* Compact card furniture while the grid is two columns */
@media (max-width: 767px) {
  .card__body { padding: var(--sp-4); gap: var(--sp-2); }
  .card__title { font-size: 1rem; line-height: 1.2; }
  .card .badge { font-size: 0.6875rem; padding: 0.18rem 0.5rem; letter-spacing: 0.04em; }
  .card .btn {
    width: 100%;
    padding: 0.65rem 0.6rem;
    font-size: 0.8125rem;
    gap: 0.45em;
  }
  .card .btn__label--full { display: none; }
  .card .btn__label--short { display: inline; }
  .card__foot { padding-top: var(--sp-1); }
}

/* --------------------------------------------------------------------------
   9. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 300;
  transform: translate(-50%, 160%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* left:50% leaves only half the viewport to size against, so ask for the
     content width explicitly and cap it. */
  width: max-content;
  max-width: min(92vw, 30rem);
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(244, 239, 232, 0.24);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-sm);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
:root[data-theme='dark'] .toast { background: #242424; }
.toast svg { width: 1.05em; height: 1.05em; flex: none; color: var(--on-ink-accent); }

/* The clipboard was refused, so this toast holds the only copy of the message.
   It has to be selectable, and it wraps rather than running off the screen. */
.toast--manual {
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  border-radius: var(--r-md);
}
.toast--manual svg { margin-top: 0.15em; }

/* --------------------------------------------------------------------------
   10. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

/* Mobile has no visible nav, so two zones: lockup left, actions right.
   The nav is display:none there, which removes it as a grid item, so a three
   column track would leave an empty column and squeeze the lockup. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
  justify-self: start;
  min-width: 0;
}
.logo-lockup img {
  height: 36px;
  width: auto;
  border-radius: var(--r-sm);
}
.logo-lockup__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.045em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav { display: none; min-width: 0; justify-self: center; }
.site-nav ul { display: flex; align-items: center; gap: clamp(0.55rem, 0.9vw, 1.6rem); }
.site-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: var(--border-strong); }
.site-nav a[aria-current='page'] { border-bottom-color: var(--accent-text); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
  justify-self: end;
}
.header-actions .btn--primary { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--btn-quiet-hover); }
.icon-btn svg { width: 20px; height: 20px; }

/* Sun in light mode, moon in dark mode */
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }

.nav-toggle { display: inline-flex; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }
.nav-toggle[aria-expanded='true'] .icon-menu { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform 260ms var(--ease), visibility 260ms var(--ease);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li + li { border-top: 1px solid var(--border-subtle); }
/* Scoped to the list so the order button keeps its own button styling */
.mobile-nav ul a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: var(--track-tight);
  text-decoration: none;
  padding: 0.85rem 0;
}
.mobile-nav ul a[aria-current='page'] { color: var(--accent-text); }
.mobile-nav .btn { margin-top: var(--sp-5); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  /* Three zones now that the nav is visible. Equal 1fr side columns are what
     keep the nav centred on the page rather than pushed right. */
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .logo-lockup img { height: 48px; }
  .logo-lockup__word { font-size: 20px; }
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .header-actions .btn--primary { display: inline-flex; }
  .mobile-nav,
  .nav-scrim { display: none; }
}

/* Tight band just above the desktop breakpoint: lockup, centred nav, toggle
   and order button all share one row, so the furniture goes compact. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner { gap: var(--sp-2); }
  .site-nav ul { gap: 0.7rem; }
  .site-nav a { font-size: 0.875rem; }
  .header-actions .btn--primary { padding: 0.7rem 0.85rem; font-size: var(--fs-xs); }
  .header-actions .btn--primary svg { display: none; }
}

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: clamp(2rem, 0.9rem + 4vw, 6.5rem) clamp(2.5rem, 1rem + 5vw, 6.5rem);
  overflow: hidden;
}

/* Three rows on a phone: copy, collage, buttons. The collage is deliberately
   between the paragraph and the buttons so a notebook is on screen inside the
   first 780 px, which the test suite measures. From 768 px it moves into a
   second column beside the copy and spans both text rows. */
.hero__grid {
  display: grid;
  gap: clamp(1.25rem, 0.4rem + 3.5vw, 2.5rem);
  grid-template-areas:
    'copy'
    'art'
    'actions';
  align-items: center;
}
.hero__copy { grid-area: copy; }
.hero__art { grid-area: art; }
.hero__actions { grid-area: actions; }

.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-4);
}
/* One block per line so each can rise in on its own */
.hero-line { display: block; }
.hero .lead { margin-bottom: 0; }

.hero__art { position: relative; }

.hero-photo {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-photo);
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--paper);
}
:root[data-theme='dark'] .hero-photo { border-color: rgba(244, 239, 232, 0.16); }

/* Mobile: two photos, side by side rather than stacked down the page, which
   keeps the collage short enough to clear the fold. The front one is on the
   right, Hummingbird tucked behind it on the left. */
@media (max-width: 767px) {
  .hero__art {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-photo--b { display: none; }
  .hero-photo--a,
  .hero-photo--c { grid-area: 1 / 1; }
  .hero-photo--a {
    width: 44%;
    justify-self: start;
    align-self: start;
    margin-top: 7%;
    transform: rotate(-4deg) translateZ(14px);
    z-index: 1;
  }
  .hero-photo--c {
    width: 58%;
    justify-self: end;
    align-self: start;
    transform: rotate(2deg) translateZ(40px);
    box-shadow: var(--shadow-photo-deep);
    z-index: 2;
  }
}

/* Desktop: three photo composition. Maroon design largest and flat in front,
   Hummingbird tilted behind top left, Sunflower Girl tilted behind top right. */
@media (min-width: 768px) {
  .hero__art {
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
  .hero-photo { position: absolute; margin: 0; }
  .hero-photo--a {
    width: 46%;
    top: 0;
    left: 3%;
    transform: rotate(-4deg) translateZ(14px);
    z-index: 1;
  }
  .hero-photo--b {
    width: 46%;
    top: 4%;
    right: 3%;
    transform: rotate(4deg) translateZ(8px);
    z-index: 2;
  }
  .hero-photo--c {
    width: 56%;
    left: 22%;
    bottom: 0;
    transform: translateZ(40px);
    box-shadow: var(--shadow-photo-deep);
    z-index: 3;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'copy art'
      'actions art';
    grid-template-rows: auto auto;
    column-gap: clamp(2.5rem, 1rem + 6vw, 4.5rem);
    row-gap: var(--sp-6);
  }
  .hero__art { align-self: center; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .hero__art { max-width: none; }
}

/* --------------------------------------------------------------------------
   11b. Hero motion

   Four separate pieces, all of them CSS. Every one is switched off in the
   reduced motion block in section 5, which leaves the finished state showing
   straight away rather than a half played animation.
   -------------------------------------------------------------------------- */

/* 1. Parallax tilt. main.js writes nothing but these two angles, capped at
      six degrees at the source, and the transition does the easing so a jumpy
      pointer or a shaky hand can never make the collage twitch.

      260ms is short enough that the collage reads as following the cursor or
      the finger rather than catching up with it, and the same decelerating
      curve keeps it from arriving with a snap. */
.hero__art {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Soft moving glow, so the cream behind the collage is never a flat slab.
      Brand colours only, and well under the photos. */
.hero__glow {
  position: absolute;
  inset: -14% -10%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(40% 44% at 32% 30%, rgba(107, 42, 51, 0.20), rgba(107, 42, 51, 0) 70%),
    radial-gradient(44% 48% at 70% 70%, rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0) 72%);
  animation: hero-glow 19s ease-in-out infinite alternate;
}
:root[data-theme='dark'] .hero__glow {
  background:
    radial-gradient(40% 44% at 32% 30%, rgba(225, 160, 170, 0.16), rgba(225, 160, 170, 0) 70%),
    radial-gradient(44% 48% at 70% 70%, rgba(244, 239, 232, 0.10), rgba(244, 239, 232, 0) 72%);
}

@keyframes hero-glow {
  from { transform: translate3d(-5%, -4%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.14); }
}

/* 3. Entrance. Eyebrow, then each headline line, then the paragraph, the
      buttons and the photos, the last of them landing at 880 ms. The rise
      uses translate rather than transform so it composes with the rotation
      each photo already carries instead of wiping it out. Every element is
      fully visible without the animation, so nothing is lost if it never
      runs. */
.hero-in { animation: hero-rise 360ms var(--ease) both; }

@keyframes hero-rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

.hero .eyebrow { animation-delay: 0ms; }
.hero-line:nth-child(1) { animation-delay: 80ms; }
.hero-line:nth-child(2) { animation-delay: 160ms; }
.hero-line:nth-child(3) { animation-delay: 240ms; }
.hero .lead { animation-delay: 290ms; }
.hero__actions { animation-delay: 345ms; }
.hero-photo--a { animation-delay: 400ms; }
.hero-photo--b { animation-delay: 460ms; }
.hero-photo--c { animation-delay: 520ms; }

/* 4. The front notebook cross fades between three designs, three seconds each.
      All three layers run the same nine second cycle offset by a third, so the
      one coming up is always fading in as the one before it leaves. With no
      animation at all the first layer is the one left showing.

      The percentages below are the beat: at 9s a cycle, 25.5% is 2.30s and
      33.3% is 3.00s, so each design sits still for 2.3s and hands over across
      a 700ms fade, landing the next one exactly on the three second mark.
      92.2% to 100% is the same 700ms fade at the other end of the cycle. */
.frame--stack > picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: photo-cycle 9s linear infinite;
}
.frame--stack > picture:first-child { opacity: 1; }
.frame--stack > picture:nth-child(2) { animation-delay: -3s; }
.frame--stack > picture:nth-child(3) { animation-delay: -6s; }

/* Nobody is watching a hidden tab, so the cycle is parked there */
:root.tab-hidden .frame--stack > picture { animation-play-state: paused; }

@keyframes photo-cycle {
  0%, 25.5% { opacity: 1; }
  33.3%, 92.2% { opacity: 0; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

/* Two by two on mobile, one row of four on desktop, 1 px rules between cells */
.trust__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Equal height rows, so a two line label does not make its row taller
     than the one beside it. */
  grid-auto-rows: 1fr;
  gap: 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  min-height: 4.25rem;
}
.trust__item:nth-child(even) { border-left: 1px solid var(--border-subtle); }
.trust__item:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); }
.trust__item:nth-child(odd) { padding-left: 0; }

.trust__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
}
.trust__icon svg { width: 28px; height: 28px; }

.trust__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__item {
    padding: var(--sp-2) var(--sp-5);
    border-top: 0;
  }
  .trust__item:nth-child(n + 3) { border-top: 0; }
  .trust__item:nth-child(even) { border-left: 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--border-subtle); }
  .trust__item:first-child { padding-left: 0; }
  .trust__item:last-child { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   13. Custom covers block
   -------------------------------------------------------------------------- */
.custom-block {
  background: var(--ink);
  color: var(--cream);
  border-top: 4px solid var(--maroon);
}
/* Raised a full step above a card so the band reads as a separate slab
   rather than blending into the section above it. */
:root[data-theme='dark'] .custom-block {
  background: var(--surface-3);
  border-top-color: #8C3A45;
}
.custom-block h2 { color: var(--cream); }
.custom-block .eyebrow { color: var(--on-ink-accent); }
.custom-block .lead { color: var(--on-ink-muted); }
.custom-block__grid {
  display: grid;
  gap: clamp(2.25rem, 1rem + 4vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .custom-block__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(244, 239, 232, 0.18);
}
.steps .step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  counter-increment: step;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(244, 239, 232, 0.45);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  letter-spacing: var(--track-tight);
  margin-bottom: 0.2rem;
}
.step__text { color: var(--on-ink-muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
  overflow: hidden;
}
.quote-card__mark {
  position: absolute;
  top: clamp(-2rem, -0.75rem - 2.5vw, -0.6rem);
  right: clamp(0.5rem, 0.2rem + 1vw, 1.5rem);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(7rem, 4rem + 12vw, 12rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}
:root[data-theme='dark'] .quote-card__mark { opacity: 0.3; }
.quote-card blockquote {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: var(--track-tight);
  margin: 0;
}
.quote-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
}
.quote-card__name { font-family: var(--font-head); font-weight: 700; }
.quote-card__date { color: var(--text-muted); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   15. Closing call to action. Maroon band in both themes.
   -------------------------------------------------------------------------- */
.cta {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem);
}
.cta h2 { color: var(--cream); margin-bottom: var(--sp-4); }
.cta .lead {
  color: #EDE5DB;
  margin-inline: auto;
  margin-bottom: var(--sp-7);
}
.cta .btn-row { justify-content: center; }
/* Cream button that inverts to an outline on hover */
.cta .btn--onink:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* --------------------------------------------------------------------------
   16. Footer. Pure black in both themes so it separates from the page.
   -------------------------------------------------------------------------- */
.site-footer {
  background: #000000;
  color: var(--cream);
  padding-block: var(--sp-8) var(--sp-5);
}
.footer-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* Five groups will not sit in one row at 1024 px without squeezing the links,
   so between 1024 and 1279 the four lists run as two rows of two with the
   brand beside them. Five real columns only from 1280 px, where there is room
   for them at full size. */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1.3fr;
    grid-template-areas:
      'brand explore  contact'
      'brand partners also';
    gap: var(--sp-6);
  }
  .footer-brand { grid-area: brand; }
  .footer-col--explore { grid-area: explore; }
  .footer-col--contact { grid-area: contact; }
  .footer-col--partners { grid-area: partners; }
  .footer-col--also { grid-area: also; }
}
@media (min-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.45fr 0.8fr 1.15fr 1.1fr 1fr;
    grid-template-areas: 'brand explore contact partners also';
  }
}

.footer-brand .logo-lockup { margin-right: 0; margin-bottom: var(--sp-4); color: var(--cream); }
.footer-brand__tagline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-lead);
  letter-spacing: var(--track-tight);
  max-width: 26ch;
}

.footer-col h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-col a:hover { text-decoration: underline; }
.footer-col svg { width: 1.05em; height: 1.05em; flex: none; opacity: 0.9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(244, 239, 232, 0.18);
  font-size: 13px;
  color: #D5CEC4;
}

/* Focus rings must stay visible on dark and maroon bands */
.site-footer :focus-visible,
.toast :focus-visible,
.cta :focus-visible,
.custom-block :focus-visible { outline-color: var(--cream); }

/* --------------------------------------------------------------------------
   17. Inner page components
   -------------------------------------------------------------------------- */

/* Beats .card { display: flex } when JS hides a filtered card */
[hidden] { display: none !important; }

/* Page hero, the shorter banner used on every page except the home page */
.page-hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5.5rem);
}
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .lead { max-width: 62ch; }

/* Colour filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.chip:hover { background: var(--btn-quiet-hover); border-color: var(--text); }
.chip.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--cream);
  font-weight: 700;
}
:root[data-theme='dark'] .chip.is-active { background: #8C3A45; border-color: #8C3A45; }
.chip.is-active:hover { background: #4E1D24; border-color: #4E1D24; }
.chip__dot {
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex: none;
}
.chip.is-active .chip__dot { border-color: rgba(244, 239, 232, 0.65); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.empty-state__icon svg { width: 1.5rem; height: 1.5rem; }
.empty-state__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-h3);
  color: var(--text-muted);
}

/* Numbered step cards */
.step-cards { display: grid; gap: var(--sp-5); align-items: stretch; }
@media (min-width: 768px) {
  .step-cards { grid-template-columns: repeat(3, 1fr); }
  /* A floor as well as the grid stretch, so the three read as one row even
     when one card carries a line less than the others. */
  .step-card { min-height: 16.5rem; }
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.step-card__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent-text);
}
.step-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  letter-spacing: var(--track-tight);
}
/* Secondary copy inside a card, wherever it appears.

   These two selectors were stranded on the front of the .tick-list rule
   below, separated from it only by a comment, so every paragraph in a card
   was being laid out as a grid. That is what split the Instagram value on
   the contact page: the @ and the handle are two runs of text, so they
   became two grid items on two rows. */
.step-card__text,
.info-card p { max-width: 60ch; }

/* Ticked list, used for what you can send */
.tick-list { display: grid; gap: var(--sp-4); max-width: 60ch; }
.tick-list li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.tick-list svg,
.note svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--accent-text);
  margin-top: 0.15rem;
}

/* FAQ built on native details and summary */
.faq { display: grid; gap: var(--sp-3); max-width: 72ch; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover { background: var(--btn-quiet-hover); }
.faq__answer {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  max-width: 62ch;
}

/* About story, text beside a single photo */
/* Copy beside a single photo, on About and on Custom Covers */
.story,
.send-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.story__text p + p { margin-top: var(--sp-4); }
/* The story block that carries a photo. On mobile the photo breaks the text
   after the opening paragraph instead of sitting in a slab at the bottom.
   On desktop it sits beside the copy, spanning both text rows.

   The photo keeps its own proportions and is never cropped, so it sets its
   own height rather than being stretched to match the column of copy. That
   leaves the copy shorter than the photo, which is what the reduced bottom
   padding on the section is for. */
.story--photo {
  grid-template-areas:
    'lead'
    'photo'
    'rest';
}
.story__text--lead { grid-area: lead; }
.story__text--rest { grid-area: rest; }
.story--photo .story__photo { grid-area: photo; }

@media (min-width: 900px) {
  .story--photo {
    align-items: start;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      'lead  photo'
      'rest  photo';
    /* The photo spans both rows and is taller than the copy. A flexible
       second track takes that slack on its own, so the opening paragraph
       and the rest of the copy stay together instead of being pushed
       apart by the photo's height. */
    grid-template-rows: auto 1fr;
    row-gap: var(--sp-4);
  }
  .story--photo .story__text--rest { align-self: start; }

  /* The photo is taller than the copy beside it now that it keeps its own
     proportions, so the section would otherwise close with a wide band of
     nothing under the text. Below 900px the copy is last in flow and the
     normal section padding is right, so this is desktop only. */
  .section--story { padding-bottom: var(--sp-6); }
}

/* Contact and sister brand cards */
.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.info-card--primary { border-color: var(--maroon); border-width: 2px; }
.info-card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-text);
}
.info-card__icon svg { width: 32px; height: 32px; }
.info-card h3 { font-size: var(--fs-h3); }
.info-card__value {
  font-family: var(--font-head);
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* The Instagram handle reads as one token. It never breaks, and it drops a
   size rather than wrapping if the card gets narrow. */
.info-card__value--handle {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1rem);
}
.info-card .btn { margin-top: auto; align-self: flex-start; }

/* Partner card. The name itself is the link out, so it carries the underline
   the button on the sister brand card carries instead. */
.info-card--partner h3 a {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}
.info-card--partner h3 a:hover { text-decoration-color: currentColor; }
.info-card--partner p { color: var(--text-muted); }

/* Small note strip */
.note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maroon);
  border-radius: var(--r-md);
  background: var(--surface-1);
  max-width: 70ch;
}
.note p { color: var(--text-muted); }
.note a { color: var(--accent-text); font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 2rem + 8vw, 9rem); }
.notfound h1 { margin-bottom: var(--sp-4); }
.notfound .lead { margin-inline: auto; margin-bottom: var(--sp-6); }
.notfound .btn-row { justify-content: center; }


/* --------------------------------------------------------------------------
   19. Stage 4: placeholders, reveal on scroll, and the no JavaScript path
   -------------------------------------------------------------------------- */

/* Every frame carries the average colour of its photo as an inline background,
   so a card shows a solid tone rather than a hole while the photo streams in.
   The fade only ever runs from a state main.js set itself: without the
   is-pending class the photo is simply visible, so a script failure cannot
   hide a product. */
.frame.is-pending > img,
.frame.is-pending > picture > img {
  opacity: 0;
}
.frame > img,
.frame > picture > img {
  opacity: 1;
  transition: opacity 320ms var(--ease);
}
.frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fade and rise. main.js adds .reveal only to things that start below the
   fold, and reveals anything left over on a timer, so content is never
   stranded invisible. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------------------------
   20. Plain fallback header and footer

   These sit in the HTML of every page and main.js replaces them the moment
   config.js is available. They are what a visitor sees with JavaScript off,
   or if config.js fails to load, and they carry the Instagram and email links
   so the site is still contactable either way.
   -------------------------------------------------------------------------- */
.fallback-head {
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--sp-4);
}
.fallback-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.fallback-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.fallback-lockup img { width: 40px; height: 40px; border-radius: var(--r-sm); }
.fallback-lockup span {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

/* Shown only when there is no JavaScript at all, or when config.js failed to
   load. Both routes switch on the same rule. */
.nojs-note { display: none; }
:root.pm-degraded .nojs-note { display: block; }
.nojs-note {
  flex: 1 1 18rem;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.fallback-foot {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--sp-7);
}
.fallback-foot a { color: var(--cream); }
.fallback-foot__tagline {
  margin-top: var(--sp-3);
  color: rgba(244, 239, 232, 0.78);
}
.fallback-foot__links {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
}
.fallback-foot__links a { text-underline-offset: 3px; }
.fallback-foot__copy {
  margin-top: var(--sp-6);
  color: rgba(244, 239, 232, 0.65);
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------------
   21. Stage 4B: audit fixes
   -------------------------------------------------------------------------- */

/* ---- 4. Filter chips as one scrolling row on mobile ----------------------
   Wrapping put seven colour chips on three lines and pushed the grid down the
   page. Below 768 px they become a single row that scrolls sideways, bled out
   to the screen edges so the row reads as scrollable, with the scrollbar
   hidden and the active chip scrolled into view by main.js. */
@media (max-width: 767px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-block: 2px;
  }
  .chips::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ---- 3. The custom cover card that closes the notebooks grid -------------
   An eleventh cell so the last row is not a single stranded card, and the
   custom cover route is offered right where someone has just failed to find
   the design they wanted. */
.card--cta {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--bg-alt);
  box-shadow: none;
}
.card--cta:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.card-cta__art {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--surface-1);
  border-bottom: 1px dashed var(--border-subtle);
}
:root[data-theme='dark'] .card-cta__art { background: var(--surface-2); }
.card-cta__art img {
  width: 42%;
  max-width: 104px;
  height: auto;
  border-radius: var(--r-sm);
}
.card__text { color: var(--text-muted); font-size: var(--fs-sm); }

/* Two columns wide while the grid is two columns, so the row stays even and
   the card reads as a closing banner rather than another product. */
@media (max-width: 1023px) {
  .card--cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  /* aspect-ratio has to go here. Left on, the art fixes the row height and
     the card, which clips its overflow, cuts the heading and button off.
     Stretching it instead lets the body decide how tall the card is. */
  .card-cta__art {
    aspect-ratio: auto;
    flex: 0 0 34%;
    max-width: 160px;
    align-self: stretch;
    border-bottom: 0;
    border-right: 1px dashed var(--border-subtle);
  }
  .card--cta .card__body { justify-content: center; }
  .card--cta .card__title { font-size: var(--fs-h3); }
  .card--cta .btn__label--full { display: inline; }
  .card--cta .btn__label--short { display: none; }
}
@media (max-width: 359px) {
  .card--cta { flex-direction: column; }
  .card-cta__art {
    aspect-ratio: 4 / 5;
    flex: none;
    max-width: none;
    border-right: 0;
    border-bottom: 1px dashed var(--border-subtle);
  }
}

/* ---- 5. What you can send: two columns beside a photo -------------------- */
@media (min-width: 900px) {
  .send-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    /* The list is short, so it centres against the photo instead of hugging
       the top and leaving a slab of empty cream beneath it. The photo drops
       to a square here: at 3/4 it stood far taller than the copy and simply
       moved the emptiness to the other side of the section. */
    align-items: center;
  }
  .send-photo { aspect-ratio: 1 / 1; }
}
@media (min-width: 600px) {
  .tick-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-5);
    max-width: none;
  }
}
.send-photo {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-photo);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ---- 7 + 10. How ordering works --------------------------------------------
   A short, bordered panel used on the reviews and contact pages, where the
   next question after reading is always the same one. */
.how {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .how {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--sp-7);
  }
  .how__head { grid-column: 1 / -1; }
}
.how__head h2 { font-size: var(--fs-h3); }
.how__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.how__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  line-height: 1.45;
}
.how__num {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: 0.1rem;
}
.how .btn-row { margin: 0; }

/* ---- 10. Close the gap between the contact cards and the maroon band ----- */
.section--flush-bottom { padding-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section--flush-top { padding-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
