/* ==========================================================================
   MandarinPrints — design system
   Palette: rice paper · ink · cinnabar seal
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-2: #fcfaf5;
  --paper-3: #efe8da;
  --paper-4: #e8dfcc;

  --ink: #1c1a17;
  --ink-2: #3b3730;
  --ink-soft: #57514a;
  --muted: #8b8378;

  --line: #e3daca;
  --line-2: #d1c5ae;

  --cinnabar: #b03a2e;
  --cinnabar-d: #8c2a20;
  --cinnabar-l: #f3e2de;
  --gold: #b28c4c;
  --jade: #6c8a79;

  --ok: #3f7d5a;

  --font-display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia,
    "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --container: 1180px;
  --radius: 3px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.05);
  --shadow: 0 12px 32px -16px rgba(28, 26, 23, 0.22);
  --shadow-lg: 0 40px 70px -30px rgba(28, 26, 23, 0.32);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --header-h: 74px;
  /* Height of the header as it actually occupies the page: the inner 74px plus
     its hairline border. Anything that sticks underneath it offsets by this,
     otherwise the two translucent layers overlap by a pixel and the seam reads
     as a double rule. */
  --header-stick: calc(var(--header-h) + 1px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The header follows the page now, so an in-page link (about.html#printing,
     the footer's FAQ link) would otherwise park its heading behind it. */
  scroll-padding-top: calc(var(--header-stick) + 8px);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

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

/* `hidden` is the only way the scripts take an element off the page, but any
   rule that sets its own `display` (all of `.btn`, for one) outranks the UA
   stylesheet's `display: none` and quietly leaves the element on screen — the
   finished checkout kept a spinning button because of exactly that. One rule
   here keeps the attribute honest everywhere. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  /* Balanced line breaks: no more two-word orphan on the second line of a
     centred heading. Ignored by browsers that do not know it, which is fine. */
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ------------------------------------------------------------ primitives -- */

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

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--paper2 {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cinnabar);
  opacity: 0.6;
}

.eyebrow--center {
  justify-content: center;
}

.h-display {
  font-size: clamp(38px, 6.4vw, 76px);
}

.h1 {
  font-size: clamp(32px, 4.4vw, 52px);
}

.h2 {
  font-size: clamp(27px, 3.4vw, 40px);
}

.h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

.muted {
  color: var(--muted);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

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

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
  flex-wrap: wrap;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.32s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
}

.btn--primary:hover {
  background: var(--cinnabar);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--cinnabar);
  color: #fff;
}

.btn--accent:hover {
  background: var(--cinnabar-d);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(28, 26, 23, 0.04);
}

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

.btn--light:hover {
  background: #fff;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 12px;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 14px;
}

/* A submitted button has to look submitted: the label alone was the only signal,
   and on a slow connection the form read as unresponsive. The spinner is a real
   element so it survives a label swap, and `min-width` is locked in JS so the
   button does not jump when "Send it" becomes "Sending…". */
.btn.is-loading {
  cursor: progress;
  opacity: 0.88;
}

.btn.is-loading:hover {
  transform: none;
}

.btn:disabled {
  cursor: progress;
}

.spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.7px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.72s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.9s;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 5px;
  transition: all 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
  gap: 13px;
}

/* --------------------------------------------------------- announcement -- */

.promo {
  background: var(--ink);
  color: #e9e2d4;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 60;
}

.promo b {
  color: #fff;
  font-weight: 600;
}

.promo .seal-mini {
  color: #e8b4ac;
}

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

/* The chrome is injected into a placeholder div. A sticky box can never travel
   beyond its containing block, and that wrapper is exactly as tall as the promo
   strip plus the header — so the nav used to slide away with the page while the
   chip bar stayed pinned underneath it, leaving a bare 74px band of scrolling
   products on top of the shelf. `display: contents` removes the wrapper's box
   from layout (it is only a mount point), which makes the page itself the
   containing block and lets the header do what sticky means. */
[data-chrome-header] {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo__seal {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--cinnabar);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-cn);
  font-size: 19px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo__sub {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--cinnabar);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--ink);
  position: relative;
  transition: background 0.25s var(--ease);
}

.icon-btn:hover {
  background: rgba(28, 26, 23, 0.06);
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--cinnabar);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
}

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

.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__char {
  font-family: var(--font-cn);
  font-size: clamp(150px, 22vw, 260px);
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.055;
  position: absolute;
  right: -2%;
  top: -8%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--cinnabar);
}

.hero .lede {
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero__meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  color: var(--cinnabar);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 34px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 240px;
}

.hero__badge .seal {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--cinnabar);
  color: #fff;
  font-family: var(--font-cn);
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero__badge b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero__badge small {
  display: block;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--muted);
}

/* --------------------------------------------------------------- trust -- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  padding: 26px 22px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}

.trust__item:last-child {
  border-right: 0;
}

.trust__item svg {
  color: var(--cinnabar);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust__item b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.trust__item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------- collections -- */

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.collections--3 {
  grid-template-columns: repeat(3, 1fr);
}

.collections--3 .collection {
  min-height: 410px;
}

.collections--3 .collection__body {
  padding: 28px;
}

.collections--3 .collection__body h3 {
  font-size: clamp(22px, 2.2vw, 27px);
}

.collections--3 .collection__body p {
  font-size: 13.5px;
}

.collection {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}

.collection img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease);
}

.collection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(20, 18, 16, 0.95) 0%,
    rgba(20, 18, 16, 0.88) 40%,
    rgba(20, 18, 16, 0.62) 68%,
    rgba(20, 18, 16, 0.06) 100%
  );
}

.collection:hover img {
  transform: scale(1.045);
}

.collection__body {
  padding: 34px;
  width: 100%;
  /* A whisper of shadow so a white-on-white photo (a stack of printed sheets)
     cannot swallow the heading — the scrim does most of the work, this is the
     last 5%. */
  text-shadow: 0 1px 10px rgba(20, 18, 16, 0.45);
}

.collection__body .tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0c9c2;
  margin-bottom: 12px;
}

.collection__body h3 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 10px;
}

.collection__body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin-bottom: 18px;
}

.collection__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
}

.collection:hover .collection__link {
  gap: 14px;
}

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

.shop-hero {
  padding-top: clamp(26px, 3.2vw, 42px);
}

.shop-hero__copy {
  margin-top: 26px;
  max-width: 660px;
}

.shop-hero__copy .h1 {
  margin-bottom: 16px;
}

/* Open a shelf and the page becomes a listing: the title drops to a working
   size and the stat strip steps aside, so the first row of cards is on screen
   without a jump. Nothing is removed, so the shelf still has a headline. */
.shop-hero--slim .shop-hero__copy {
  margin-top: 18px;
}

.shop-hero--slim {
  padding-top: clamp(22px, 2.6vw, 34px);
}

.shop-hero--slim .shop-hero__copy .h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 12px;
}

.shop-hero--slim .shop-hero__copy .lede {
  font-size: 14.5px;
  max-width: 64ch;
}

.shop-hero--slim .shop-facts {
  display: none;
}

.shop-facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shop-facts li {
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}

.shop-facts li + li {
  padding-left: 22px;
}

.shop-facts li:last-child {
  border-right: 0;
}

.shop-facts > li > span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.shop-facts b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* The chip row follows the grid down the page: with 32 listings, choosing a
   shelf at the top and losing the chips 900px later is the whole problem. */
.shelf-bar {
  position: sticky;
  top: var(--header-stick);
  z-index: 40;
  margin-top: clamp(24px, 3vw, 36px);
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 6px;
}

.shelf-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  padding-bottom: 13px;
  flex-wrap: wrap;
}

.shelf-bar .filters {
  margin-bottom: 0;
}

.shelf-bar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shelf-bar__count {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.filter--select {
  padding: 9px 14px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

/* ------------------------------------------------------------ products -- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter {
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease);
  background: transparent;
}

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

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 26px 22px;
}

.product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.grid-empty .seal {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--font-cn);
  font-size: 26px;
  color: var(--line-2);
}

.grid-empty p {
  margin: 0;
  font-size: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 15px;
  aspect-ratio: 4 / 5;
}

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

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  z-index: 2;
}

.card__flag--sale {
  background: var(--cinnabar);
  color: #fff;
}

.card__flag--new {
  background: var(--ink);
  color: var(--paper-2);
}

.card__quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(6px);
  color: var(--ink);
  border-radius: 2px;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(calc(100% + 16px));
  opacity: 0;
  transition: all 0.42s var(--ease);
  z-index: 2;
}

.card:hover .card__quick {
  transform: translateY(0);
  opacity: 1;
}

.card__quick:hover {
  background: var(--ink);
  color: var(--paper-2);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.card__cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.card__title a:hover {
  color: var(--cinnabar);
}

.card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  /* Price and rating sit on the floor of the card, so a two-line title in one
     tile does not leave the row looking ragged. */
  margin-top: auto;
  padding-top: 9px;
}

.price {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.price s {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 7px;
}

.card__stars {
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__stars svg {
  color: var(--gold);
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.split--rev .split__media {
  order: 2;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 30px;
}

.feature {
  display: flex;
  gap: 15px;
}

.feature__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  border-radius: var(--radius-pill);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.feature b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.feature p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------------------------------------------------------- freebies -- */

.free-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.free-block__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.free-block__body {
  padding: clamp(28px, 4vw, 54px) clamp(28px, 4vw, 54px) clamp(28px, 4vw, 54px) 0;
}

.free-block__body .h2 {
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- form -- */

.form-inline {
  display: flex;
  gap: 9px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  caret-color: var(--cinnabar);
  font-size: 14.5px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

/* Safari paints an empty email field a shade lighter than the paper; without this
   the placeholder reads as disabled. */
.field::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field:focus {
  outline: none;
  border-color: var(--ink);
}

.form-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 11px;
}

.form-msg {
  font-size: 13px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  display: none;
}

.form-msg.is-ok,
.form-msg.is-err {
  display: block;
  animation: msg-in 0.32s var(--ease) both;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-msg.is-ok {
  background: #eef4ee;
  color: var(--ok);
  border: 1px solid #cfe0d5;
}

.form-msg.is-err {
  background: var(--cinnabar-l);
  color: var(--cinnabar-d);
  border: 1px solid #e8c8c2;
}

.form-msg__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.form-msg__head svg {
  flex: 0 0 auto;
}

/* ----------------------------------------------------------- check list -- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px;
}

.check-list li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-list svg {
  color: var(--cinnabar);
  flex-shrink: 0;
  margin-top: 3px;
}

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

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
}

.step {
  position: relative;
  padding: 32px 34px 36px 0;
  border-right: 1px solid var(--line);
}

.step + .step {
  padding-left: 34px;
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--cinnabar);
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  margin-bottom: 10px;
}

.step p {
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

.steps__foot {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------- testimonials -- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.quote p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quote__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.quote__by b {
  display: block;
  font-size: 13px;
}

.quote__by small {
  font-size: 11.5px;
  color: var(--muted);
}

/* -------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 26px;
  text-align: center;
  border-right: 1px solid rgba(246, 241, 231, 0.16);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.62);
}

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

.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 231, 0.66);
  padding: clamp(52px, 6vw, 78px) 0 0;
  font-size: 13.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand .logo__name {
  color: #fff;
}

.footer__brand .logo__sub {
  color: rgba(246, 241, 231, 0.42);
}

.footer__brand p {
  margin: 18px 0 20px;
  max-width: 34ch;
  line-height: 1.65;
}

/* The footer element carries .site-footer, not .footer — the column headings
   were falling back to the browser's default h5 until this matched. */
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links a:hover {
  color: #fff;
}

/* The newsletter sits in a narrow column: stack it rather than letting the
   button wrap to a lonely second line at half width. */
.site-footer .form-inline {
  gap: 8px;
}

/* The footer is ink-dark and the shared .field is cream, so an inherited cream
   text colour left the typed address invisible — a glow of nothing on a pale
   box. A translucent well keeps the paper feel and makes the text legible. */
.site-footer .field {
  flex: 1 1 100%;
  background: rgba(246, 241, 231, 0.07);
  border-color: rgba(246, 241, 231, 0.26);
  color: var(--paper-2);
  caret-color: var(--paper-2);
}

.site-footer .field::placeholder {
  color: rgba(246, 241, 231, 0.44);
}

.site-footer .field:hover {
  border-color: rgba(246, 241, 231, 0.42);
}

.site-footer .field:focus {
  background: rgba(246, 241, 231, 0.12);
  border-color: rgba(246, 241, 231, 0.7);
}

/* Chrome's own autofill palette is white-on-white inside a dark panel. */
.site-footer .field:-webkit-autofill,
.site-footer .field:-webkit-autofill:hover,
.site-footer .field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: inset 0 0 0 40px #f6f1e7;
}

.site-footer .form-inline .btn {
  flex: 1 1 100%;
}

.social {
  display: flex;
  gap: 9px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 241, 231, 0.18);
  display: grid;
  place-items: center;
  transition: all 0.28s var(--ease);
}

.social a:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--paper-2);
}

.footer__bottom {
  border-top: 1px solid rgba(246, 241, 231, 0.13);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
}

.pay-badges {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.pay-badges__label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.42);
  margin-right: 3px;
  white-space: nowrap;
}

.pay-badges__chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(246, 241, 231, 0.18);
  border-radius: 3px;
  padding: 4px 8px;
  color: rgba(246, 241, 231, 0.55);
}

/* The processor is the one that matters at checkout, so it is the one that
   reads at a glance; the cards ride along inside it. */
.pay-badges__chip--lead {
  background: rgba(246, 241, 231, 0.94);
  border-color: transparent;
  color: var(--ink);
}

/* ---------------------------------------------------------------- cart -- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  z-index: 90;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: var(--paper-2);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.44s var(--ease);
  box-shadow: var(--shadow-lg);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h4 {
  font-size: 20px;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
  background: var(--paper);
}

.cart-line {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__img {
  width: 62px;
  height: 76px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--paper-3);
}

.cart-line__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.25;
  margin-bottom: 3px;
}

.cart-line__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 9px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease);
}

.qty button:hover {
  background: var(--paper-3);
}

.qty span {
  min-width: 30px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
}

.cart-line__price {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.cart-line__rm {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  margin-top: 9px;
  transition: color 0.2s var(--ease);
}

.cart-line__rm:hover {
  color: var(--cinnabar);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 9px;
  color: var(--ink-soft);
}

.sum-row--total {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.cart-empty .seal {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 4px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--font-cn);
  font-size: 26px;
  color: var(--line-2);
}

/* --------------------------------------------------------------- modal -- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(12px) scale(0.99);
  transition: transform 0.4s var(--ease);
  z-index: 2;
}

.modal.is-open .modal__box {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--paper-3);
  color: var(--ink);
}

/* --------------------------------------------------------- breadcrumbs -- */

.crumbs {
  font-size: 12px;
  color: var(--muted);
  padding: 20px 0 0;
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--cinnabar);
}

/* ------------------------------------------------------ product detail -- */

.pdp {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 76px);
}

.pdp__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}

.pdp__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pdp__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pdp__thumb {
  width: 74px;
  height: 74px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}

.pdp__thumb:hover,
.pdp__thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

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

.pdp__title {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 12px 0 12px;
}

.pdp__price {
  font-size: 27px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.pdp__price s {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pdp__price .save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cinnabar);
  background: var(--cinnabar-l);
  padding: 5px 9px;
  border-radius: 2px;
}

.pdp__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.72;
  margin-bottom: 22px;
}

/* The file itself, stated in numbers. Sits where a "format" selector used to:
   one option is not a choice, so show the facts instead. */
.pdp__files {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pdp__files b {
  font-weight: 600;
  color: var(--ink);
}

.pdp__files i {
  font-style: normal;
  color: var(--line-2);
}

.opt-group {
  margin-bottom: 22px;
}

.opt-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.opts {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.opt {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 11px 15px;
  font-size: 13px;
  background: var(--paper-2);
  transition: all 0.24s var(--ease);
  text-align: left;
  line-height: 1.35;
}

.opt small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.opt:hover {
  border-color: var(--ink-soft);
}

.opt.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

.opt.is-active small {
  color: rgba(246, 241, 231, 0.62);
}

.pdp__actions {
  display: flex;
  gap: 10px;
  margin: 26px 0 20px;
  flex-wrap: wrap;
}

.pdp__actions .btn--primary {
  flex: 1 1 200px;
}

.pdp__assure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.pdp__assure div {
  display: flex;
  gap: 11px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: flex-start;
}

.pdp__assure svg {
  color: var(--cinnabar);
  flex-shrink: 0;
  margin-top: 3px;
}

.accordion {
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

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

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
}

.acc__head svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  color: var(--muted);
}

.acc.is-open .acc__head svg {
  transform: rotate(45deg);
}

.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.acc__panel > div {
  padding: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.72;
}

.acc__panel ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc__panel li {
  padding-left: 18px;
  position: relative;
}

.acc__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cinnabar);
  opacity: 0.7;
}

/* ------------------------------------------------------------ checkout -- */

.pay-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
}

.pay-strip__label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.pay-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  background: var(--paper-2);
}

.pay-chip--lead {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.pay-note {
  display: flex;
  gap: 11px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.pay-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cinnabar);
}

.checkout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 40px 0 90px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  padding: clamp(22px, 3vw, 32px);
}

.panel + .panel {
  margin-top: 18px;
}

.panel h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.panel > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field-wrap .field {
  width: 100%;
  flex: none;
}

.order-line {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.order-line__img {
  width: 52px;
  height: 64px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--paper-3);
}

.order-line b {
  font-size: 14px;
  font-family: var(--font-display);
  display: block;
  line-height: 1.25;
}

.order-line small {
  font-size: 11.5px;
  color: var(--muted);
}

.order-line__p {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

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

.badge-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 6px 11px;
  color: var(--ink-soft);
}

.badge--red {
  color: var(--cinnabar);
  border-color: #e0bdb6;
  background: var(--cinnabar-l);
}

/* ----------------------------------------------------------------- about -- */

/* Long-form copy is capped for line length — 760px is a comfortable measure —
   but it keeps the left edge of the header and the breadcrumb above it. A
   centred column here read as if it belonged to a different site. */
.about-hero {
  max-width: 760px;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 44px 0 14px;
}

.prose h3 {
  font-size: 21px;
  margin: 32px 0 10px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.78;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.prose li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cinnabar);
}

.prose blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--paper-2);
  border-left: 3px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: var(--paper-2);
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 13.5px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast svg {
  color: #8fc9a4;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
  .collections--3 {
    grid-template-columns: 1fr 1fr;
  }
  .collections--3 .collection:last-child {
    grid-column: 1 / -1;
    min-height: 320px;
  }
  .shop-facts {
    grid-template-columns: 1fr 1fr;
  }
  .shop-facts li:nth-child(2n) {
    border-right: 0;
  }
  .shop-facts li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .product-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid rgba(246, 241, 231, 0.16);
  }
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust__item:nth-child(2) {
    border-right: 0;
  }
  .trust__item:nth-child(1),
  .trust__item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* -------------------------------------------------------- order delivery -- */

.checkout-complete {
  padding: clamp(20px, 3vw, 30px);
}

.order-success .eyebrow {
  margin-bottom: 10px;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.order-summary-grid .panel + .panel {
  margin-top: 0;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.download-row__meta {
  min-width: 0;
}

.download-row__meta b,
.download-row__meta span {
  display: block;
}

.download-row__meta b {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
}

.download-row__meta span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.download-row .btn {
  flex: none;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.order-bookmark {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .order-summary-grid {
    grid-template-columns: 1fr;
  }

  .download-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .download-row .btn {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  /* The panel hangs off the bottom of the header instead of the viewport: the
     announcement bar above it is not sticky, so a fixed panel at top:var(--header-h)
     overlaps the header itself whenever the page is at the top. Absolute inside the
     sticky header keeps the two welded together at any scroll position. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.34s var(--ease),
      visibility 0.34s var(--ease);
    z-index: 45;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav a::after {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .hero__grid,
  .split,
  .free-block,
  .pdp,
  .checkout,
  .collections {
    grid-template-columns: 1fr;
  }
  .split--rev .split__media {
    order: 0;
  }
  .free-block__body {
    padding: 0 26px 30px;
  }
  .free-block__media {
    order: -1;
  }
  .hero__badge {
    left: 14px;
    bottom: 14px;
  }
  .hero__char {
    display: none;
  }
  .hero__visual {
    order: -1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  /* A three-column step row becomes a stack; the rules follow the flow of the
     page instead of running down the side of nothing. */
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 26px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step + .step {
    padding-left: 0;
  }
  .step p {
    max-width: none;
  }
  .step__num {
    margin-bottom: 12px;
  }
  /* The chip bar stops following on phones: two sticky bars plus the header
     leaves no room for the shelf itself. */
  .shelf-bar {
    position: static;
  }
  .shelf-bar__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .shop-facts {
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }
  .quotes,
  .product-grid,
  .product-grid--4 {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .logo__sub {
    display: none;
  }
}

@media (max-width: 460px) {
  .product-grid,
  .product-grid--4,
  .quotes {
    grid-template-columns: 1fr;
  }
  .shop-facts {
    grid-template-columns: 1fr;
  }
  .shop-facts li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .shop-facts li + li {
    padding-left: 0;
  }
  .shop-facts li:last-child {
    border-bottom: 0;
  }
  .shelf-bar__inner {
    gap: 10px;
  }
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .trust__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust__item:last-child {
    border-bottom: 0;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(246, 241, 231, 0.16);
  }
}

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

/* ------------------------------------------------------ email preferences -- */

/* Deliberately the smallest page on the site: one sentence, one field, one
   button. A wall of retention copy on an unsubscribe page is a dark pattern. */
.unsub {
  max-width: 600px;
  /* padding-block, not the shorthand: a `padding: X 0` here would wipe the
     container's 24px inline padding and let the field run to the screen edge. */
  padding-block: clamp(48px, 6vw, 82px) clamp(60px, 8vw, 100px);
  text-align: center;
}

.unsub__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border-radius: 4px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--font-cn);
  font-size: 25px;
  color: var(--line-2);
}

.unsub .h1 {
  margin-bottom: 16px;
}

.unsub .lede {
  margin: 0 auto 28px;
  color: var(--ink-soft);
}

.unsub .form-inline {
  justify-content: center;
  max-width: 460px;
  margin-inline: auto;
}

.unsub .form-inline .field {
  flex: 1 1 240px;
}

.unsub .form-msg {
  text-align: left;
  margin-top: 16px;
}

.unsub .form-note {
  max-width: 46ch;
  margin-inline: auto;
}

.unsub__aside {
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.unsub__aside a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.unsub__aside a:hover {
  color: var(--cinnabar);
}

/* A spinner frozen by the global reduced-motion reset reads as a broken ring.
   Keep it turning, just slowly, so "working" still looks like working. */
@media print, (prefers-reduced-motion: reduce) {
  .btn.is-loading .spinner {
    animation-duration: 1.9s !important;
  }
}
