@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-normal-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-italic-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --cream: #f3eada;
  --porcelain: #faf6ee;
  --parchment: #ede2cd;
  --espresso: #3a2a1f;
  --espresso-deep: #2a1d14;
  --ink-2: #5c4a3b;
  --terracotta: #b9553e;
  --terracotta-deep: #8f3b2a;
  --gold: #b08a52;
  --gold-bright: #c69b63;
  --cream-on-dark: #f3eada;
  --line: rgba(58, 42, 31, 0.16);
  --line-strong: rgba(58, 42, 31, 0.34);
  --line-on-dark: rgba(243, 234, 218, 0.18);
  --scrim: rgba(26, 18, 12, 0.5);
  --shell: min(1280px, calc(100vw - 96px));
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --drawer-shadow: 0 24px 64px rgba(58, 42, 31, 0.18);
  --overlay-shadow: 0 14px 42px rgba(42, 29, 20, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--espresso);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--espresso);
  border: 1px solid var(--cream);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

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

.site-footer :focus-visible,
.concept-banner :focus-visible,
.testing-feature :focus-visible {
  outline-color: var(--cream);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.concept-banner {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px 20px;
  color: var(--cream-on-dark);
  background: var(--espresso);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* Global header */

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  color: var(--espresso);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.primary-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-self: start;
}

.primary-nav a {
  color: var(--espresso);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-underline-offset: 7px;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  color: var(--espresso);
  white-space: nowrap;
}

.header-main > .wordmark {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.wordmark-name,
.wordmark-copy {
  display: inline;
  font: italic 400 25px/1 var(--serif);
  letter-spacing: -0.01em;
}

.wordmark-dot {
  color: var(--terracotta);
}

.wordmark-mark,
.wordmark-category {
  display: none;
}

.header-utilities,
.header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-self: end;
}

.search-wrap {
  position: relative;
  width: 220px;
  transition: width 200ms ease-out;
}

.search-wrap:focus-within {
  width: 280px;
}

.search-input,
.collection-search,
.testing-lookup input,
.newsletter-form input {
  width: 100%;
  height: 40px;
  padding: 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
}

.search-input {
  height: 34px;
  padding-right: 36px;
  font-size: 13px;
}

.search-input::placeholder,
.collection-search::placeholder,
.testing-lookup input::placeholder,
.newsletter-form input::placeholder {
  color: var(--ink-2);
  opacity: 0.86;
}

.search-input:focus,
.collection-search:focus,
.testing-lookup input:focus,
.newsletter-form input:focus {
  border-bottom-color: var(--espresso);
}

.search-icon {
  display: none;
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--ink-2);
  font: 400 9px/1 var(--mono);
  transform: translateY(-50%);
}

.search-results {
  position: absolute;
  z-index: 100;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: min(510px, 72vh);
  overflow-y: auto;
  color: var(--espresso);
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: var(--drawer-shadow);
}

.search-results[hidden] {
  display: none;
}

.search-result {
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--parchment);
}

.search-result img {
  width: 44px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  background: var(--parchment);
}

.search-result strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.search-result span span {
  color: var(--ink-2);
  font: 400 9px/1.35 var(--mono);
  letter-spacing: 0.03em;
}

.search-result-price {
  font: 500 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.icon-button,
.cart-button {
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button:hover,
.cart-button:hover {
  color: var(--terracotta-deep);
}

.cart-count {
  display: inline;
  color: inherit;
  background: transparent;
  font: inherit;
}

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

.mobile-menu-button {
  display: none;
}

.category-nav-wrap {
  display: none;
}

/* Buttons and links */

.button,
.add-button,
.pdp-add,
.newsletter-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  border-radius: 2px;
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out,
    border-color 180ms ease-out;
}

.button:active,
.add-button:active,
.pdp-add:active,
.newsletter-form button:active {
  transform: translateY(1px);
}

.button-primary,
.pdp-add,
.newsletter-form button {
  color: var(--cream);
  background: var(--espresso);
  border: 1px solid var(--espresso);
}

.button-primary:hover,
.pdp-add:hover,
.newsletter-form button:hover {
  background: var(--espresso-deep);
  border-color: var(--espresso-deep);
}

.button-secondary,
.add-button {
  color: var(--espresso);
  background: transparent;
  border: 1px solid var(--espresso);
}

.button-secondary:hover,
.add-button:hover {
  color: var(--cream);
  background: var(--espresso);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
}

.text-link,
.quiet-link {
  display: inline-flex;
  align-items: center;
  color: var(--espresso);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover,
.quiet-link:hover {
  color: var(--terracotta-deep);
  text-decoration-color: currentColor;
}

.eyebrow,
.product-category,
.price-label,
.result-summary {
  margin-bottom: 12px;
  color: var(--terracotta-deep);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hero */

.home-hero {
  background: var(--cream);
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding-block: 64px 96px;
}

.hero-copy {
  grid-column: 1 / span 5;
  max-width: 560px;
}

.hero-copy .eyebrow::after {
  width: 24px;
  height: 1px;
  display: block;
  margin-top: 20px;
  content: "";
  background: var(--gold);
}

.hero-copy h1 {
  max-width: 15ch;
  margin: 0 0 24px;
  font: 500 clamp(34px, 5vw, 64px) / 1.06 var(--serif);
  letter-spacing: -0.015em;
}

.hero-copy h1 span {
  color: inherit;
  font: inherit;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.hero-actions .button-primary {
  min-height: 52px;
  padding-inline: 36px;
}

.hero-actions .button-secondary {
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-transform: none;
}

.hero-actions .button-secondary:hover {
  color: var(--terracotta-deep);
  background: transparent;
  text-decoration-color: currentColor;
}

.hero-visual {
  grid-column: 6 / -1;
  height: min(720px, 64vw);
  margin-right: calc((100vw - var(--shell)) / -2);
  overflow: hidden;
  background: var(--parchment);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-product-chip,
.hero-coa-card,
.trust-strip {
  display: none !important;
}

/* Sections */

.section {
  padding-block: 96px;
}

.section-tight {
  padding-block: 72px;
}

.section-surface {
  background: var(--porcelain);
}

.section-head {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-head h2,
.testing-feature h2,
.newsletter h2,
.page-hero h1,
.detail-section h2 {
  margin-bottom: 0;
  font: 500 clamp(27px, 3.2vw, 44px) / 1.1 var(--serif);
  letter-spacing: -0.01em;
}

.section-head > div > p:last-child:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.section-head > p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--ink-2);
}

/* Category index */

.category-section-head {
  margin-top: 96px;
  margin-bottom: 40px;
}

.category-rail,
.category-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.category-tile,
.category-index-item {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-top: 1px solid var(--line-strong);
}

.category-tile::before,
.category-index-item::before {
  display: block;
  margin-right: 16px;
  color: var(--ink-2);
  font: 400 11px/1 var(--mono);
  content: counter(category-index, decimal-leading-zero);
}

.category-rail,
.category-index {
  counter-reset: category-index;
}

.category-tile,
.category-index-item {
  counter-increment: category-index;
}

.category-tile > span:first-of-type,
.category-index-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.category-tile strong,
.category-index-item strong {
  font: 500 22px/1.2 var(--serif);
}

.category-tile span span,
.category-index-item small {
  color: var(--ink-2);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

.category-arrow {
  align-self: flex-end;
  font: 400 16px/1 var(--sans);
}

.category-tile:hover strong,
.category-tile:hover .category-arrow,
.category-index-item:hover strong,
.category-index-item:hover .category-arrow {
  color: var(--terracotta-deep);
}

/* Product grid and cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 24px;
}

.product-card {
  min-width: 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  background: var(--porcelain);
}

.product-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.product-image-wrap:hover > img {
  transform: scale(1.015);
}

.product-image-label {
  position: absolute;
  top: 55.5%;
  left: 34%;
  width: 33%;
  display: grid;
  gap: 4px;
  pointer-events: none;
  text-align: center;
}

.product-image-label strong {
  overflow: hidden;
  color: var(--espresso);
  font: 600 clamp(9px, 1.1vw, 12px) / 1.1 var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-label span {
  overflow: hidden;
  color: var(--ink-2);
  font: 500 clamp(7px, 0.7vw, 9px) / 1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-body {
  padding-top: 12px;
}

.product-card .product-category {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.product-name {
  margin-bottom: 6px;
  font: 500 15px/1.35 var(--sans);
}

.product-name a:hover {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-format {
  margin-bottom: 8px;
  color: var(--ink-2);
  font: 400 9px/1.35 var(--mono);
  letter-spacing: 0.04em;
}

.product-description {
  min-height: 38px;
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.testing-micro {
  min-height: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testing-micro span,
.testing-micro a {
  color: var(--ink-2);
  font: 400 9px/1.35 var(--mono);
  letter-spacing: 0.01em;
}

.testing-micro a {
  flex: 0 0 auto;
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testing-micro-dot {
  display: none;
}

.product-buy-row {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.price {
  display: block;
  color: var(--espresso);
  font: 500 14px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.product-card .add-button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--cream);
  background: var(--espresso);
  border-color: var(--espresso);
  font-size: 11px;
}

.product-card .add-button:hover {
  color: var(--cream);
  background: var(--espresso-deep);
  border-color: var(--espresso-deep);
}

/* Testing feature */

.testing-feature {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  gap: 24px;
  padding: 96px max(48px, calc((100vw - 1280px) / 2));
  color: var(--cream);
  background: var(--espresso);
}

.testing-feature-copy {
  grid-column: 1;
  align-self: center;
}

.testing-feature-copy .eyebrow {
  color: var(--gold-bright);
}

.testing-feature-copy h2 {
  max-width: 12ch;
  color: var(--cream);
}

.testing-feature-copy > p:not(.eyebrow) {
  max-width: 44ch;
  margin: 24px 0 28px;
  color: rgba(243, 234, 218, 0.78);
  font-size: 16px;
}

.testing-feature-copy .button,
.testing-feature-copy .text-link {
  min-height: auto;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: var(--cream);
  text-underline-offset: 5px;
  text-transform: none;
}

.testing-feature-copy .button:hover,
.testing-feature-copy .text-link:hover {
  color: var(--cream);
  background: transparent;
  text-decoration-color: var(--gold);
}

.testing-document {
  grid-column: 3;
  align-self: center;
  color: var(--cream);
  background: transparent;
  border: 0;
}

.document-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  color: rgba(243, 234, 218, 0.78);
  border-bottom: 1px solid var(--gold);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-head strong,
.document-head span {
  display: block;
  color: inherit;
  font: inherit;
}

.document-tag,
.status-pill {
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.document-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(200px, 1.6fr);
  gap: 24px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-on-dark);
}

.document-row strong {
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
}

.document-row span {
  color: rgba(243, 234, 218, 0.74);
  font: 400 10px/1.5 var(--mono);
  text-align: right;
}

/* Sets */

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

.bundle-card {
  min-width: 0;
  background: transparent;
  border: 0;
}

.bundle-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--porcelain);
}

.bundle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.bundle-card:hover .bundle-image img {
  transform: scale(1.015);
}

.bundle-count {
  display: none;
}

.bundle-body {
  padding-top: 16px;
}

.bundle-body .product-category {
  margin-bottom: 6px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.bundle-body h3 {
  margin-bottom: 10px;
  font: 500 22px/1.2 var(--serif);
}

.bundle-body > p:not(.product-category) {
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 13px;
}

.bundle-items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.bundle-items li {
  min-height: 44px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.bundle-items a {
  font-size: 13px;
}

.bundle-items a:hover {
  color: var(--terracotta-deep);
}

.bundle-items span {
  color: var(--ink-2);
  font: 400 10px/1 var(--mono);
}

.bundle-arithmetic {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-block: 12px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font: 400 9px/1.4 var(--mono);
}

.bundle-arithmetic strong {
  color: var(--espresso);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bundle-footer {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
}

.bundle-footer .add-button {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 11px;
}

/* Journal and principles */

.education-grid,
.journal-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.education-card,
.journal-card,
.value-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.education-card h3,
.journal-card h3,
.value-card h3 {
  margin-bottom: 10px;
  font: 500 22px/1.25 var(--serif);
}

.education-card p:not(.product-category),
.journal-card p:not(.product-category),
.value-card p {
  color: var(--ink-2);
  font-size: 14px;
}

.brand-principle {
  padding-block: 72px;
  text-align: center;
  background: var(--parchment);
}

.brand-principle > div {
  max-width: 640px;
  margin-inline: auto;
}

.brand-principle h2 {
  margin-bottom: 16px;
  font: 500 30px/1.2 var(--serif);
}

.brand-principle p {
  margin-bottom: 24px;
  color: var(--ink-2);
  font-size: 15px;
}

/* Newsletter */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  gap: 24px;
  align-items: center;
  color: var(--espresso);
  background: transparent;
}

.newsletter > div:first-child {
  grid-column: 1;
}

.newsletter h2 {
  margin-bottom: 14px;
}

.newsletter p {
  max-width: 44ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.newsletter-form,
.newsletter-success {
  grid-column: 3;
}

.newsletter-form {
  display: flex;
  gap: 18px;
  align-items: flex-end;
}

.newsletter-form input {
  height: 48px;
  padding-inline: 0;
  font-size: 15px;
}

.newsletter-form button {
  flex: 0 0 auto;
}

.newsletter-success {
  color: var(--espresso) !important;
  font-size: 14px !important;
}

/* Inner-page heroes */

.page-hero {
  padding-block: 72px 48px;
}

.page-hero .shell {
  max-width: 1280px;
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero .shell > p:last-child:not(.eyebrow) {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* Collection */

.collection-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  padding: 0;
  background: transparent;
  border: 0;
}

.filter-panel h2 {
  margin-bottom: 12px;
  color: var(--ink-2);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-button {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
  text-align: left;
}

.filter-button span {
  font: 400 10px/1 var(--mono);
}

.filter-button:hover {
  color: var(--terracotta-deep);
}

.filter-button[aria-pressed="true"] {
  padding-left: 10px;
  color: var(--espresso);
  font-weight: 500;
}

.filter-button[aria-pressed="true"]::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  content: "";
  background: var(--terracotta);
}

.collection-toolbar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 24px;
  align-items: end;
  padding: 0;
  background: transparent;
  border: 0;
}

.filter-drawer-trigger {
  display: none;
}

.collection-search {
  min-width: 0;
}

.collection-sort {
  height: 40px;
  padding: 0 34px 0 12px;
  color: var(--espresso);
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--espresso) 50%),
    linear-gradient(135deg, var(--espresso) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 17px,
    calc(100% - 11px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 13px;
  appearance: none;
}

.result-summary {
  margin: 18px 0 32px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  text-align: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-state h2,
.empty-state strong {
  margin-bottom: 10px;
  font: 500 26px/1.2 var(--serif);
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 14px;
}

.search-results .empty-state {
  padding: 28px 18px;
  text-align: left;
  place-items: start;
  border: 0;
}

.search-results .empty-state strong {
  font-size: 18px;
}

/* Testing page */

.testing-lookup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  max-width: 760px;
  margin-bottom: 48px;
}

.testing-lookup input {
  height: 48px;
  font-size: 16px;
}

.lookup-results {
  display: grid;
  gap: 0;
}

.lookup-card {
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.lookup-card:last-child {
  border-bottom: 1px solid var(--line);
}

.lookup-card h3 {
  margin-bottom: 10px;
  font: 500 22px/1.25 var(--serif);
}

.lookup-card p {
  max-width: 68ch;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.testing-table,
.spec-table {
  border-top: 1px solid var(--line);
}

.spec-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.6fr);
  gap: 24px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.testing-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.6fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.testing-row strong,
.spec-row strong {
  font-size: 13px;
  font-weight: 500;
}

.testing-row > span,
.spec-row > span {
  color: var(--ink-2);
  font: 400 11px/1.5 var(--mono);
  text-align: right;
}

.testing-state {
  color: var(--ink-2);
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.02em;
  text-align: right;
}

/* PDP */

.product-page {
  padding-block: 36px 96px;
}

.breadcrumb {
  margin-bottom: 28px;
  color: var(--ink-2);
  font: 400 10px/1.5 var(--mono);
}

.breadcrumb a:hover {
  color: var(--terracotta-deep);
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.pdp-gallery {
  min-width: 0;
}

.pdp-main-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--porcelain);
}

.pdp-main-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out;
}

.pdp-main-image .product-image-label {
  top: 55.5%;
  left: 34%;
  width: 33%;
}

.pdp-main-image .product-image-label strong {
  font-size: clamp(12px, 1.2vw, 16px);
}

.pdp-main-image .product-image-label span {
  font-size: clamp(9px, 0.8vw, 11px);
}

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

.pdp-thumb {
  width: 72px;
  height: 72px;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

.pdp-thumb[aria-current="true"] {
  border-color: var(--espresso);
  box-shadow: inset 0 -2px 0 var(--terracotta);
}

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

.pdp-buybox {
  position: sticky;
  top: 96px;
  padding: 0;
  background: transparent;
  border: 0;
}

.pdp-buybox .product-category {
  margin-bottom: 10px;
}

.pdp-buybox h1 {
  margin-bottom: 10px;
  font: 500 clamp(36px, 4.2vw, 56px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}

.pdp-code {
  margin-bottom: 24px;
  color: var(--ink-2);
  font: 400 11px/1.5 var(--mono);
}

.pdp-testing-link {
  min-height: 52px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: 400 11px/1.4 var(--mono);
}

.pdp-testing-link:hover {
  color: var(--terracotta-deep);
}

.pdp-description {
  margin: 24px 0;
  color: var(--ink-2);
  font-size: 15px;
}

.pdp-price {
  display: block;
  margin-bottom: 24px;
  font: 500 20px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.selection-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.selection-label span {
  color: var(--ink-2);
  font-weight: 400;
}

.buy-controls {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.quantity-control {
  height: 48px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.quantity-control button,
.quantity-control input {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 500 13px/1 var(--mono);
}

.quantity-control input {
  appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.pdp-note {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}

.buybox-cues {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.buybox-cue {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.buybox-cue strong,
.buybox-cue span {
  font: 400 10px/1.4 var(--mono);
}

.buybox-cue strong {
  color: var(--ink-2);
  font-weight: 400;
}

.detail-section {
  padding-block: 96px;
}

.detail-section.section-surface {
  background: var(--porcelain);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
}

.detail-grid h2 {
  margin-bottom: 16px;
}

.detail-grid > div:first-child > p {
  color: var(--ink-2);
}

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

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

.accordion-trigger {
  width: 100%;
  min-height: 60px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.accordion-trigger::after {
  font: 400 16px/1 var(--mono);
  content: "+";
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  max-width: 72ch;
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 14px;
}

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

.mobile-cart-bar {
  display: none;
}

/* Article, about, policies */

.article-shell {
  max-width: 760px;
  margin-inline: auto;
}

.article-shell h1 {
  margin-bottom: 20px;
  font: 500 clamp(38px, 5.8vw, 64px) / 1.05 var(--serif);
  letter-spacing: -0.015em;
}

.article-lede {
  margin-bottom: 48px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

.article-shell h2 {
  margin: 48px 0 14px;
  font: 500 26px/1.2 var(--serif);
}

.article-shell > p,
.article-shell li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.article-callout {
  margin-block: 40px;
  padding: 24px 28px;
  color: var(--espresso);
  background: var(--parchment);
  border: 0;
  border-left: 2px solid var(--terracotta);
  border-radius: 0;
  font-size: 14px;
}

.article-sources {
  margin-block: 48px 8px;
  padding: 24px 28px;
  color: var(--espresso);
  background: var(--porcelain);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.article-sources .eyebrow {
  margin-bottom: 10px;
}

.article-sources p:not(.eyebrow) {
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 13px;
}

.article-sources ul {
  margin: 0;
  padding-left: 18px;
}

.article-sources li {
  margin-block: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.article-sources a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.article-sources a:hover {
  color: var(--terracotta-deep);
}

.testing-source-wrap {
  margin-top: 48px;
}

.testing-source-wrap .article-sources {
  max-width: 760px;
  margin-inline: auto;
}

/* Drawers, cart, toast */

.drawer-backdrop {
  position: fixed;
  z-index: 180;
  inset: 0;
  pointer-events: none;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.drawer-backdrop[data-open="true"] {
  pointer-events: auto;
  opacity: 1;
}

.cart-drawer,
.mobile-drawer {
  position: fixed;
  z-index: 190;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  color: var(--espresso);
  background: var(--porcelain);
  border-radius: 0;
  box-shadow: var(--drawer-shadow);
  transition: transform 280ms cubic-bezier(0.32, 0, 0.16, 1);
}

.filter-drawer {
  display: none;
}

.cart-drawer {
  right: 0;
  width: min(420px, 92vw);
  transform: translateX(102%);
}

.mobile-drawer {
  left: 0;
  width: min(360px, 100vw);
  transform: translateX(-102%);
}

.cart-drawer[data-open="true"],
.mobile-drawer[data-open="true"] {
  transform: translateX(0);
}

.drawer-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font: 500 20px/1 var(--serif);
}

.drawer-close {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--espresso);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 24px;
  font-weight: 300;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 24px;
}

.mobile-nav a {
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font: 500 26px/1.15 var(--serif);
}

.mobile-nav a:nth-last-child(-n + 3) {
  min-height: 46px;
  font: 400 14px/1.3 var(--sans);
}

.cart-items {
  flex: 1;
  padding: 8px 24px 24px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-item > img {
  width: 68px;
  height: 84px;
  object-fit: cover;
  background: var(--parchment);
}

.cart-item-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.cart-item-top strong {
  font-size: 13px;
  font-weight: 500;
}

.remove-item {
  padding: 0;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item-meta {
  margin: 4px 0 12px;
  color: var(--ink-2);
  font: 400 9px/1.4 var(--mono);
}

.cart-item-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.mini-quantity {
  height: 32px;
  display: grid;
  grid-template-columns: 30px 30px 30px;
  border: 1px solid var(--line-strong);
}

.mini-quantity button,
.mini-quantity span {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  font: 400 11px/1 var(--mono);
}

.cart-item-price {
  font: 500 11px/1 var(--mono);
}

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-subtotal strong,
.cart-subtotal span {
  font: 500 14px/1 var(--mono);
}

.cart-terminus {
  margin-bottom: 18px;
  padding: 16px 0;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.cart-terminus strong {
  display: block;
  margin-bottom: 4px;
  color: var(--espresso);
  font-weight: 500;
}

.cart-footer .button,
.cart-footer button {
  width: 100%;
}

.cart-footer .text-link,
.cart-footer .remove-item {
  width: auto;
}

.cart-empty {
  display: grid;
  place-items: center;
  padding: 64px 24px;
  text-align: center;
}

.cart-empty h3 {
  margin-bottom: 10px;
  font: 500 25px/1.2 var(--serif);
}

.cart-empty p {
  color: var(--ink-2);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 220;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  pointer-events: none;
  color: var(--cream);
  background: var(--espresso-deep);
  border-radius: 0;
  box-shadow: var(--overlay-shadow);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.toast[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.site-footer {
  padding-block: 96px 40px;
  color: var(--cream);
  background: var(--espresso);
}

.footer-brand {
  grid-column: 1 / -1;
  margin-bottom: 48px;
  text-align: center;
}

.footer-brand .wordmark,
.site-footer .wordmark-name {
  color: var(--cream);
  font-size: 28px;
}

.footer-brand p {
  margin: 16px auto 0;
  color: var(--gold-bright);
  font: 400 10px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 48px;
}

.footer-column h2 {
  margin-bottom: 16px;
  color: var(--gold-bright);
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: rgba(243, 234, 218, 0.78);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  color: rgba(243, 234, 218, 0.62);
  border-top: 1px solid var(--line-on-dark);
  font: 400 10px/1.5 var(--mono);
}

/* Optional reveal contract */

html[data-reveal-armed] .reveal {
  opacity: 0;
  transform: translateY(14px);
}

html[data-reveal-armed] .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease) var(--reveal-delay, 0ms),
    transform 700ms var(--ease) var(--reveal-delay, 0ms);
}

/* Tablet */

@media (max-width: 1199px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .header-main {
    min-height: 68px;
    gap: 20px;
  }

  .primary-nav {
    gap: 18px;
  }

  .primary-nav a {
    font-size: 12px;
  }

  .wordmark-name,
  .wordmark-copy {
    font-size: 22px;
  }

  .search-wrap {
    width: 170px;
  }

  .search-wrap:focus-within {
    width: 220px;
  }

  .hero-grid {
    min-height: 0;
    padding-block: 48px 64px;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .hero-visual {
    grid-column: 7 / -1;
  }

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

  .testing-feature {
    padding-inline: 24px;
  }
}

/* Mobile shell begins at 960 so PDP/filter behavior matches Fable */

@media (max-width: 960px) {
  .site-header {
    display: grid;
    grid-template-rows: 56px 48px;
  }

  .header-main {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    padding-inline: 20px;
  }

  .primary-nav {
    display: none;
  }

  .header-main > .wordmark {
    grid-column: 2;
    justify-self: center;
  }

  .header-main .wordmark-name,
  .header-main .wordmark-copy {
    font-size: 20px;
  }

  .header-utilities,
  .header-actions {
    display: contents;
  }

  .mobile-menu-button {
    grid-column: 1;
    grid-row: 1;
    display: inline-grid;
    justify-self: start;
  }

  .mobile-menu-button svg {
    width: 18px;
    height: 18px;
  }

  .header-actions [data-cart-open],
  .header-utilities [data-cart-open] {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-inline: 20px;
    border-top: 1px solid var(--line);
  }

  .search-wrap:focus-within {
    width: 100%;
  }

  .search-input {
    height: 48px;
    padding-right: 40px;
    font-size: 16px;
  }

  .search-results {
    top: 48px;
    right: 0;
    left: 0;
    width: 100%;
  }

  .search-shortcut {
    right: 20px;
  }

  .category-rail,
  .category-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .testing-feature {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 72px;
  }

  .testing-feature-copy,
  .testing-document {
    grid-column: 1;
  }

  .bundle-grid,
  .education-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter > div:first-child,
  .newsletter-form,
  .newsletter-success {
    grid-column: 1;
  }

  .collection-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .filter-panel {
    display: none;
  }

  .filter-drawer-trigger {
    min-height: 48px;
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-inline: 14px;
    color: var(--espresso);
    background: var(--parchment);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
  }

  .filter-drawer-trigger [data-filter-label] {
    color: var(--ink-2);
    font: 400 10px/1.2 var(--mono);
  }

  .filter-drawer {
    position: fixed;
    z-index: 190;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(76vh, 620px);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    color: var(--espresso);
    background: var(--porcelain);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -24px 64px rgba(58, 42, 31, 0.18);
    transform: translateY(102%);
    transition:
      transform 260ms cubic-bezier(0.32, 0, 0.16, 1),
      visibility 0s linear 260ms;
  }

  .filter-drawer[data-open="true"] {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .filter-drawer-options {
    padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .filter-drawer .filter-button {
    min-height: 52px;
    padding-inline: 0;
  }

  .filter-drawer .filter-button[aria-pressed="true"] {
    padding-left: 12px;
  }

  .filter-drawer .filter-button[aria-pressed="true"]::before {
    top: 10px;
    bottom: 10px;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pdp-buybox {
    position: static;
  }

  .mobile-cart-bar {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 56px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    pointer-events: none;
    color: var(--espresso);
    background: var(--porcelain);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 30px rgba(58, 42, 31, 0.12);
    opacity: 0;
    transform: translateY(105%);
    transition:
      opacity 200ms ease-out,
      transform 220ms ease-out;
  }

  .mobile-cart-bar[data-visible="true"] {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-cart-caption {
    min-width: 0;
    display: block;
    text-align: left;
  }

  .mobile-cart-caption strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cart-caption > span {
    display: block;
    color: var(--ink-2);
    font: 400 11px/1.4 var(--mono);
  }

  .mobile-cart-action {
    min-width: 96px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding-inline: 16px;
    color: var(--cream);
    background: var(--espresso);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --shell: calc(100vw - 40px);
  }

  .section {
    padding-block: 64px;
  }

  .section-tight {
    padding-block: 64px;
  }

  .hero-grid {
    display: block;
    padding-block: 40px 64px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    gap: 20px;
    margin-top: 28px;
  }

  .hero-actions .button-primary {
    width: 100%;
  }

  .hero-actions .button-secondary {
    justify-self: center;
  }

  .hero-visual {
    width: auto;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 40px calc((100vw - var(--shell)) / -2) 0;
  }

  .hero-visual > img {
    object-position: 64% center;
  }

  .section-head {
    display: grid;
    gap: 18px;
    align-items: start;
    margin-bottom: 32px;
  }

  .category-section-head {
    margin-top: 72px;
  }

  .category-rail,
  .category-index {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .category-tile,
  .category-index-item {
    min-height: 72px;
    align-items: center;
    padding-block: 16px;
  }

  .category-arrow {
    align-self: center;
  }

  .product-grid {
    gap: 40px 12px;
  }

  .product-card .add-button {
    padding-inline: 10px;
    font-size: 10px;
  }

  .testing-feature {
    padding-inline: 20px;
  }

  .document-head {
    display: block;
  }

  .document-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .document-row span {
    text-align: left;
  }

  .bundle-grid,
  .education-grid,
  .journal-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    display: grid;
  }

  .newsletter-form button {
    width: 100%;
  }

  .page-hero {
    padding-block: 56px 32px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .collection-toolbar {
    grid-template-columns: 1fr;
  }

  .testing-lookup {
    grid-template-columns: 1fr;
  }

  .testing-lookup .button {
    width: 100%;
  }

  .testing-row,
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .testing-row > span,
  .spec-row > span {
    text-align: left;
  }

  .pdp-main-image {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
  }

  .buy-controls {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .detail-section {
    padding-block: 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .toast {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 360px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .concept-banner {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .header-main {
    padding-inline: 16px;
  }

  .search-wrap {
    padding-inline: 16px;
  }

  .search-shortcut {
    right: 16px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-card .product-category {
    font-size: 8px;
  }

  .testing-micro span,
  .testing-micro a {
    font-size: 8px;
  }

  .testing-micro {
    align-items: flex-start;
  }

  .product-buy-row {
    gap: 6px;
  }

  .price {
    font-size: 12px;
  }

  .product-card .add-button {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html[data-reveal-armed] .reveal,
  .toast,
  .mobile-cart-bar {
    transform: none !important;
  }

  html[data-reveal-armed] .reveal {
    opacity: 1 !important;
  }

  .product-image-wrap:hover > img,
  .bundle-card:hover .bundle-image img {
    transform: none;
  }
}

/* OVO Labs Porcelain
   Fable 5 binding override: Datum structure × OVO materials. */

:root {
  --canvas: #ffffff;
  --surface: #fbf9f6;
  --soft: #f3eee6;
  --ink: #2a1d14;
  --muted: #6b5d51;
  --line: #e8e1d6;
  --primary: #3a2a1f;
  --hover: #241810;
  --accent: #8f3b2a;
  --accent-soft: #f6e7d6;
  --success: #4a6741;
  --danger: #b3261e;

  /* Compatibility aliases used by the shared OVO component system. */
  --cream: #f3eada;
  --porcelain: var(--surface);
  --parchment: var(--soft);
  --espresso: var(--primary);
  --espresso-deep: var(--ink);
  --ink-2: var(--muted);
  --terracotta: #b9553e;
  --terracotta-deep: var(--accent);
  --gold: #b08a52;
  --gold-bright: #c69b63;
  --cream-on-dark: #f3eada;
  --line-strong: #cfc4b5;
  --line-on-dark: rgba(243, 234, 218, 0.2);
  --shell: min(1280px, calc(100vw - 96px));
  --drawer-shadow: 0 24px 64px rgba(58, 42, 31, 0.18);
  --overlay-shadow: 0 14px 42px rgba(42, 29, 20, 0.18);
}

html {
  color-scheme: light;
}

body {
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer :focus-visible,
.concept-banner :focus-visible,
.testing-feature :focus-visible {
  outline-color: #f3eada;
}

.eyebrow,
.product-category,
.price-label,
.result-summary {
  color: var(--accent);
}

.button,
.icon-button,
.cart-button,
.add-button,
.pdp-add,
.newsletter-form button,
.filter-drawer-trigger {
  border-radius: 4px;
}

.button,
.add-button,
.pdp-add,
.newsletter-form button {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms var(--ease);
}

.button:hover,
.add-button:hover,
.pdp-add:hover,
.newsletter-form button:hover {
  transform: translateY(-1px);
}

.button:active,
.add-button:active,
.pdp-add:active,
.newsletter-form button:active {
  transform: translateY(0);
}

.button-primary,
.add-button,
.pdp-add,
.newsletter-form button {
  color: #f3eada;
  background: var(--primary);
  border-color: var(--primary);
}

.button-primary:hover,
.add-button:hover,
.pdp-add:hover,
.newsletter-form button:hover {
  color: #f3eada;
  background: var(--hover);
  border-color: var(--hover);
}

.button-secondary {
  color: var(--primary);
  background: var(--canvas);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.add-button.is-added,
.pdp-add.is-added,
.mobile-cart-bar.is-added {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

/* Fiction banner and product-finding shell */

.concept-banner {
  min-height: 32px;
  padding: 6px 20px;
  color: #f3eada;
  background: var(--ink);
  font-size: 10px;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow:
    0 1px 0 var(--line),
    0 8px 24px rgba(42, 29, 20, 0.04);
  backdrop-filter: blur(16px);
}

.header-main {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.header-main > .wordmark {
  grid-column: 1;
  grid-row: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.wordmark-name,
.wordmark-copy {
  color: var(--ink);
  font-size: 23px;
}

.wordmark-dot {
  color: var(--gold);
}

.primary-nav {
  grid-column: 2;
  grid-row: 1;
  gap: 24px;
  justify-self: start;
}

.primary-nav a {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-utilities,
.header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
}

.search-wrap {
  width: 320px;
}

.search-wrap:focus-within {
  width: 320px;
}

.search-input {
  height: 42px;
  padding: 0 44px 0 40px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 4px;
  font: 400 14px/1 var(--sans);
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search-input:focus {
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--accent);
  outline: 0;
}

.search-shortcut {
  color: var(--muted);
  font-size: 9px;
}

.search-results {
  top: calc(100% + 8px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--overlay-shadow);
}

.search-result {
  border-color: var(--line);
}

.search-result:hover,
.search-result[aria-selected="true"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.icon-button,
.cart-button {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
}

.mobile-menu-button {
  display: none;
}

.icon-button:hover,
.cart-button:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--canvas);
  border-radius: 999px;
  font: 500 9px/1 var(--mono);
}

.category-nav-wrap {
  display: block;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-nav {
  min-height: 42px;
  display: flex;
  gap: 34px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

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

.category-nav a:hover::after,
.category-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Homepage: Datum's hierarchy, OVO's materials */

.home-hero {
  background: var(--canvas);
}

.hero-grid {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 56px;
  align-items: center;
  padding-block: 48px 56px;
}

.hero-copy {
  grid-column: 1;
  max-width: 650px;
}

.hero-copy .eyebrow::after {
  display: none;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0 0 24px;
  color: var(--ink);
  font: 500 clamp(44px, 5vw, 64px) / 1.04 var(--serif);
  letter-spacing: -0.025em;
}

.hero-copy h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 54ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .button-primary,
.hero-actions .button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions .button-primary {
  border-color: var(--primary);
}

.hero-actions .button-secondary {
  color: var(--primary);
  background: var(--canvas);
  border-color: var(--line-strong);
}

.hero-actions .button-secondary:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  grid-column: 2;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border-radius: 16px;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  animation: porcelain-hero-settle 600ms var(--ease) both;
}

@keyframes porcelain-hero-settle {
  from {
    opacity: 0.85;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-product-chip,
.hero-coa-card {
  position: absolute;
  z-index: 2;
  display: grid !important;
  color: var(--ink);
  background: rgba(251, 249, 246, 0.96);
  border: 1px solid rgba(232, 225, 214, 0.92);
  border-radius: 10px;
  box-shadow: var(--overlay-shadow);
  backdrop-filter: blur(10px);
}

.hero-product-chip {
  right: 18px;
  bottom: 18px;
  width: min(220px, calc(100% - 36px));
  gap: 5px;
  padding: 16px;
}

.hero-product-chip > span,
.hero-coa-card > span {
  color: var(--muted);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-product-chip strong {
  font-size: 15px;
  font-weight: 600;
}

.hero-product-chip p {
  margin: 0;
  color: var(--accent);
  font: 400 10px/1.4 var(--mono);
}

.hero-coa-card {
  bottom: 18px;
  left: 18px;
  width: 198px;
  gap: 10px;
  padding: 14px;
}

.hero-coa-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-coa-row span,
.hero-coa-row strong {
  color: var(--muted);
  font: 400 9px/1.25 var(--mono);
}

.hero-coa-row strong {
  color: var(--ink);
  font-weight: 500;
}

.testing-status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.trust-strip {
  min-height: 64px;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--ink);
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  min-width: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  color: var(--accent);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-item span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.section {
  padding-block: 72px;
}

.section-tight {
  padding-block: 64px;
}

.section-surface {
  background: var(--soft);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2,
.testing-feature h2,
.newsletter h2,
.page-hero h1,
.detail-section h2 {
  color: var(--ink);
  font-weight: 500;
}

.section-head > p,
.section-head > div > p:last-child:not(.eyebrow) {
  color: var(--muted);
}

.collection-feature-section {
  background: var(--canvas);
}

.category-section-head {
  margin-top: 64px;
  margin-bottom: 28px;
}

.category-rail,
.category-index {
  gap: 16px;
}

.category-tile,
.category-index-item {
  min-height: 112px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease);
}

.category-tile::before,
.category-index-item::before {
  color: var(--accent);
}

.category-tile strong,
.category-index-item strong {
  color: var(--ink);
  font: 600 16px/1.3 var(--sans);
}

.category-tile span span,
.category-index-item small {
  color: var(--muted);
}

.category-tile:hover,
.category-index-item:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(42, 29, 20, 0.06);
  transform: translateY(-2px);
}

/* Product cards */

.product-grid {
  gap: 24px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  border-color: #d6c8b9;
  box-shadow: 0 6px 20px rgba(42, 29, 20, 0.08);
  transform: translateY(-3px);
}

.product-image-wrap {
  aspect-ratio: 1;
  background: var(--soft);
}

.product-image-wrap > img {
  object-fit: cover;
  object-position: center 46%;
}

.product-image-label {
  top: 55%;
  left: 33%;
  width: 34%;
}

.product-card-body {
  padding: 16px;
}

.product-card .product-category {
  color: var(--accent);
  font: 500 9px/1.35 var(--mono);
  letter-spacing: 0.06em;
}

.product-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.product-name a:hover {
  color: var(--accent);
}

.product-format,
.product-description,
.testing-micro span {
  color: var(--muted);
}

.product-description {
  min-height: 40px;
}

.testing-micro {
  min-height: 42px;
  padding: 8px 10px;
  background: var(--accent-soft);
  border: 0;
  border-radius: 4px;
}

.testing-micro span,
.testing-micro a {
  font-size: 9px;
}

.testing-micro a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.product-buy-row {
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.price {
  color: var(--ink);
  font: 500 15px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
}

.product-card .add-button {
  min-height: 44px;
  justify-self: stretch;
  color: #f3eada;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
}

@media (hover: hover) and (pointer: fine) {
  .product-card .add-button {
    opacity: 0;
    transform: translateY(4px);
  }

  .product-card:hover .add-button,
  .product-card:focus-within .add-button {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Supporting commerce surfaces */

.testing-feature-section {
  padding: 0;
  background: var(--ink);
}

.testing-feature {
  color: #f3eada;
  background: var(--ink);
}

.testing-feature-copy .eyebrow {
  color: #c69b63;
}

.testing-feature-copy h2,
.document-row strong {
  color: #f3eada;
}

.testing-feature-copy > p:not(.eyebrow),
.document-row span,
.document-head {
  color: rgba(243, 234, 218, 0.78);
}

.testing-document-dark .testing-state {
  color: var(--ink);
}

.testing-feature-copy .button-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #f3eada;
  background: transparent;
  border: 1px solid rgba(243, 234, 218, 0.45);
  border-radius: 4px;
  text-decoration: none;
}

.testing-feature-copy .button-secondary:hover {
  color: var(--ink);
  background: #f3eada;
  border-color: #f3eada;
}

.bundle-card,
.education-card,
.journal-card,
.value-card,
.lookup-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bundle-image,
.education-card,
.journal-card {
  background: var(--soft);
}

.bundle-body,
.education-card,
.journal-card,
.value-card {
  padding: 20px;
}

.bundle-image {
  aspect-ratio: 4 / 3;
}

.bundle-image img {
  object-fit: cover;
}

.bundle-footer .add-button {
  min-height: 44px;
  border-radius: 4px;
}

.newsletter-section,
.newsletter {
  background: var(--soft);
}

.newsletter {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.newsletter h2 {
  color: var(--ink);
}

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

.newsletter-form input,
.collection-search,
.testing-lookup input {
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.newsletter-form input:focus,
.collection-search:focus,
.testing-lookup input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.newsletter-form input[aria-invalid="true"],
.collection-search[aria-invalid="true"],
.testing-lookup input[aria-invalid="true"] {
  border-color: var(--danger);
}

.page-hero {
  padding-block: 56px 36px;
  background: var(--canvas);
}

.page-hero h1 {
  max-width: 16ch;
  color: var(--ink);
}

.page-hero .shell > p:last-child:not(.eyebrow) {
  color: var(--muted);
}

.filter-panel {
  top: 128px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filter-button {
  color: var(--muted);
  border-color: var(--line);
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--accent);
}

.filter-button[aria-pressed="true"]::before {
  background: var(--accent);
}

.collection-toolbar {
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.collection-sort {
  height: 44px;
  color: var(--ink);
  background-color: var(--canvas);
  border-color: var(--line-strong);
  border-radius: 4px;
}

.empty-state {
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lookup-card {
  margin-bottom: 12px;
  padding: 22px;
}

.testing-table,
.spec-table {
  border-color: var(--line);
}

.testing-row,
.spec-row {
  border-color: var(--line);
}

.testing-row > span,
.spec-row > span,
.testing-state {
  color: var(--muted);
}

.testing-state {
  padding: 5px 8px;
  background: var(--accent-soft);
  border-radius: 4px;
}

/* PDP */

.product-page {
  padding-block: 36px 84px;
  background: var(--canvas);
}

.breadcrumb,
.pdp-code,
.pdp-description,
.pdp-note,
.buybox-cue strong {
  color: var(--muted);
}

.breadcrumb a:hover,
.pdp-testing-link:hover {
  color: var(--accent);
}

.pdp-grid {
  grid-template-columns: minmax(0, 6fr) minmax(380px, 6fr);
  gap: clamp(40px, 6vw, 80px);
}

.pdp-main-image {
  overflow: hidden;
  background: var(--soft);
  border-radius: 16px;
}

.pdp-main-image > img {
  object-position: center 46%;
}

.pdp-thumb {
  overflow: hidden;
  background: var(--soft);
  border-color: var(--line);
  border-radius: 4px;
}

.pdp-thumb[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.pdp-buybox {
  top: 144px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pdp-buybox h1,
.pdp-price {
  color: var(--ink);
}

.pdp-testing-link {
  color: var(--ink);
  background: var(--accent-soft);
  border: 0;
  border-radius: 4px;
  padding-inline: 12px;
}

.quantity-control {
  height: 48px;
  overflow: hidden;
  background: var(--canvas);
  border-color: var(--line-strong);
  border-radius: 4px;
}

.quantity-control button {
  min-width: 40px;
}

.buybox-cues,
.accordion {
  border-color: var(--line);
}

.buybox-cue,
.accordion-item {
  border-color: var(--line);
}

.detail-section.section-surface {
  background: var(--soft);
}

/* Drawers and footer */

.drawer-backdrop {
  background: rgba(42, 29, 20, 0.46);
}

.cart-drawer,
.mobile-drawer,
.filter-drawer {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--drawer-shadow);
}

.drawer-head,
.cart-item,
.cart-footer {
  border-color: var(--line);
}

.drawer-close {
  border-radius: 4px;
}

.mobile-nav-heading {
  display: block;
  padding: 18px 0 8px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-nav > a:nth-child(-n + 4) {
  font: 600 20px/1.3 var(--sans);
}

.mobile-nav .mobile-category-link {
  min-height: 42px;
  padding-left: 12px;
  color: var(--muted);
  font: 500 13px/1.3 var(--sans);
}

.remove-item {
  color: var(--danger);
}

.toast {
  color: #fff;
  background: var(--success);
  border-radius: 4px;
}

.site-footer {
  color: #f3eada;
  background: var(--ink);
  border-color: rgba(243, 234, 218, 0.16);
}

.site-footer .wordmark-name,
.site-footer h2,
.site-footer a,
.site-footer p,
.site-footer span,
.footer-bottom {
  color: #f3eada;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-column a {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
}

/* Responsive Porcelain contract */

@media (max-width: 1199px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .header-main {
    gap: 20px;
  }

  .primary-nav {
    gap: 18px;
  }

  .search-wrap,
  .search-wrap:focus-within {
    width: 260px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 36px;
  }

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

@media (max-width: 960px) {
  .site-header {
    display: block;
  }

  .header-main {
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-rows: 56px 56px;
    gap: 0 8px;
    padding-inline: 20px;
  }

  .primary-nav {
    display: none;
  }

  .header-main > .wordmark {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-main .wordmark-name {
    font-size: 21px;
  }

  .header-utilities,
  .header-actions {
    display: contents;
  }

  .mobile-menu-button {
    grid-column: 2;
    grid-row: 1;
    display: inline-grid;
    justify-self: end;
  }

  .header-utilities [data-cart-open],
  .header-actions [data-cart-open] {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .search-wrap,
  .search-wrap:focus-within {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    align-self: center;
    padding: 0;
    border: 0;
  }

  .search-input {
    height: 44px;
  }

  .search-shortcut {
    right: 14px;
  }

  .search-results {
    top: calc(100% + 4px);
  }

  .category-nav-wrap {
    position: relative;
    overflow: hidden;
  }

  .category-nav-wrap::after {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, transparent, var(--canvas));
  }

  .category-nav {
    width: 100%;
    min-height: 42px;
    gap: 26px;
    padding-inline: 20px 44px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 40px 48px;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .testing-feature {
    gap: 48px;
    padding-block: 64px;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
  }

  .pdp-buybox {
    position: static;
  }

  .filter-drawer-trigger {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line-strong);
    border-radius: 4px;
  }

  .filter-drawer {
    border-radius: 16px 16px 0 0;
  }

  .mobile-cart-bar {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
  }

  .mobile-cart-action {
    color: #f3eada;
    background: var(--primary);
    border-radius: 4px;
  }
}

@media (max-width: 767px) {
  :root {
    --shell: calc(100vw - 40px);
  }

  .concept-banner {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 9px;
  }

  .hero-grid {
    display: grid;
    padding-block: 32px 40px;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 40px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    width: 100%;
    min-height: 48px;
  }

  .hero-visual {
    aspect-ratio: 4 / 5;
    margin: 0;
  }

  .hero-product-chip {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .hero-coa-card {
    display: none !important;
  }

  .trust-item {
    min-height: 64px;
    display: grid;
    gap: 3px;
    justify-content: start;
    padding: 12px 20px;
  }

  .trust-item span {
    font-size: 11px;
  }

  .section {
    padding-block: 56px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .category-section-head {
    margin-top: 56px;
  }

  .category-rail,
  .category-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-tile,
  .category-index-item {
    min-height: 112px;
    align-items: flex-start;
    padding: 14px;
  }

  .category-tile::before,
  .category-index-item::before {
    display: none;
  }

  .category-tile strong,
  .category-index-item strong {
    font-size: 14px;
  }

  .product-grid {
    gap: 14px 10px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-description {
    min-height: 54px;
    font-size: 11px;
    -webkit-line-clamp: 3;
  }

  .testing-micro {
    min-height: 48px;
    display: grid;
    gap: 2px;
    align-content: center;
  }

  .testing-micro a {
    min-height: 24px;
  }

  .product-buy-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card .add-button {
    width: 100%;
    min-height: 44px;
    opacity: 1;
    transform: none;
  }

  .testing-feature {
    padding: 56px 20px;
  }

  .newsletter {
    padding: 24px;
  }

  .page-hero {
    padding-block: 48px 28px;
  }

  .pdp-main-image {
    width: 100%;
    margin-left: 0;
    border-radius: 12px;
  }

  .pdp-buybox {
    padding: 22px;
  }

  .site-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .header-main {
    padding-inline: 16px;
  }

  .category-nav {
    padding-left: 16px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .product-card-body {
    padding: 10px;
  }

  .product-card .product-category,
  .product-format,
  .testing-micro span,
  .testing-micro a {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual > img {
    animation: none !important;
  }

  .product-card,
  .category-tile,
  .category-index-item,
  .product-card .add-button {
    transform: none !important;
  }
}
