/* Foundations and shared components. Page compositions live in editorial.css. */
@font-face {
  font-family: Jost;
  src: url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --color-page: #f7f9f8;
  --color-surface: #fff;
  --color-surface-muted: #edf1ef;
  --color-text: #14231e;
  --color-secondary: #3f5048;
  --color-muted: #586860;
  --color-border: #d6dfda;
  --color-control: #7b8b82;
  --color-action: #00563f;
  --color-action-hover: #004532;
  --color-on-action: #fff;
  --font-body: Jost, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bodoni Moda", Georgia, serif;
  --gutter: 48px;
  --gap: 24px;
  --header-height: 92px;
  --radius-control: 2px;
  --motion-feedback: 180ms;
  --motion-open: 340ms;
  --motion-close: 260ms;
  --motion-editorial: 650ms;
  --motion-crossfade: 760ms;
  --ease-spatial: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 20;
  --z-menu: 30;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-block-start: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}
p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}
p {
  color: var(--color-secondary);
}
button,
a {
  touch-action: manipulation;
}
input {
  caret-color: var(--color-action);
}
input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
::selection {
  background: var(--color-action);
  color: white;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px white;
}
:target {
  scroll-margin-block-start: calc(var(--header-height) + 20px);
}
.container {
  width: 100%;
  max-width: 1440px;
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.section {
  padding-block: 64px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
  vertical-align: middle;
}
.icon-small {
  width: 16px;
  height: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-control);
}
.icon-button:not(:disabled):hover {
  background: var(--color-surface-muted);
}
.outlined {
  border: 1px solid var(--color-control);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.button-primary {
  background: var(--color-action);
  color: white;
}
.button-primary:hover {
  background: var(--color-action-hover);
}
.button-secondary {
  background: white;
  border-color: var(--color-control);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  color: var(--color-action);
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 5px;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 18px;
  height: 18px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 2.5rem;
  line-height: 1.15;
}
.section-heading p {
  margin-top: 12px;
  font-size: 1rem;
}
.section-context,
.guide-meta,
.maker-name,
.sample-note,
.reference,
.rail-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.sample-note {
  margin-block: 12px;
}
.register {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-action);
}
/* Quiet, viewport-centred header. Equal columns centre the logo independently. */
.announcement-bar {
  min-height: 32px;
  padding: 5px 16px;
  text-align: center;
  background: var(--color-action);
  color: white;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.announcement-bar button {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 8px;
  min-height: 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.header-seal {
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
}
.header-seal img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.primary-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  grid-column: 1;
  grid-row: 1;
  font-size: 0.875rem;
}
.nav-link,
.primary-navigation summary,
.secondary-navigation a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}
.header-right {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.secondary-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
}
.header-utilities {
  display: flex;
  align-items: center;
  gap: 4px;
}
.utility-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  font-size: 0.8125rem;
}
.mobile-menu {
  display: none;
}
.maker-menu {
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
.maker-panel {
  position: absolute;
  top: 48px;
  left: -16px;
  width: 220px;
  padding: 16px;
  background: white;
  box-shadow: 0 12px 40px rgb(20 35 30 / 14%);
  z-index: var(--z-menu);
}
.maker-panel button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--color-border);
}
.maker-panel button:hover {
  color: var(--color-action);
}
/* Product primitives: real photographs remain proportional and readable. */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-control) transparent;
  padding: 4px 4px 12px;
  margin: -4px;
}
.carousel-track > * {
  min-width: 0;
  scroll-snap-align: start;
}
.product-link {
  display: block;
}
.product-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: white;
  overflow: hidden;
}
.product-stage > img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  transform: scale(var(--product-scale, 1));
}
.product-stage > .alternate-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.product-copy {
  padding-top: 16px;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 8px;
}
/* Shared rows follow actual content, rather than fixed title-height spacers. */
@supports (grid-template-rows: subgrid) {
  .product-rail {
    grid-template-rows: auto repeat(5, auto);
    row-gap: 8px;
  }
  .product-card,
  .product-card > .product-link {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
  }
  .product-copy {
    grid-template-rows: subgrid;
    grid-row: span 5;
  }
}
.maker-name {
  font-size: 0.8125rem;
}
.product-copy h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-height: 0;
}
.product-meta {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.product-price {
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}
.product-price span {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-left: 4px;
}
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-action);
  padding-top: 4px;
}
.rail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}
.rail-controls {
  display: flex;
  gap: 8px;
}
.rail-label {
  max-width: 60ch;
}
/* Service and footer are useful routes, not unverified trust claims. */
.service-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--color-border);
}
.service-strip h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.service-strip > p {
  font-size: 0.875rem;
}
.service-strip nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.service-strip button {
  min-height: 44px;
  padding: 0;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer {
  background: var(--color-surface-muted);
  padding-top: 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-seal img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.footer-brand p {
  font-size: 1rem;
  max-width: 18ch;
}
.newsletter {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
.newsletter h2 {
  font-size: 1.75rem;
  line-height: 1.3;
}
.newsletter > p {
  font-size: 0.875rem;
  margin-top: 8px;
}
.newsletter-control {
  display: flex;
  border-bottom: 1px solid var(--color-control);
  margin-top: 16px;
}
.newsletter-control input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  background: none;
  border: none;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 1rem;
}
.newsletter-control button {
  width: 48px;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-action);
  flex-shrink: 0;
}
.form-status {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-action);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom button,
.footer-bottom a {
  padding: 8px 0;
  min-height: 36px;
  font-size: 0.8125rem;
}
/* Shared overlay lifecycle: JS awaits this one closing duration. */
dialog {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 680px;
  max-height: calc(100dvh - 48px);
  border: 0;
  border-radius: 2px;
  padding: 28px;
  background: white;
  color: var(--color-text);
  box-shadow: 0 12px 40px rgb(20 35 30 / 14%);
  overscroll-behavior: contain;
  scrollbar-color: var(--color-control) white;
}
dialog::backdrop {
  background: rgb(20 35 30 / 40%);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}
.dialog-heading > .icon-button {
  margin-right: -8px;
}
.sample-tag {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(480px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-radius: 0;
}
.navigation-drawer {
  inset-inline: 0 auto;
}
.mobile-navigation {
  display: flex;
  flex-direction: column;
}
.mobile-navigation > * {
  min-height: 48px;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.search-dialog,
.browse-dialog {
  max-width: 820px;
}
.search-dialog label,
.browse-toolbar label {
  font-size: 0.875rem;
  display: block;
}
.search-field {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--color-control);
  padding: 8px;
  margin-top: 8px;
}
.search-field input {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--color-text);
}
.search-field .button {
  min-height: 44px;
}
.search-result {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-block: 16px;
}
.search-result > img {
  width: 72px;
  height: 84px;
  object-fit: contain;
  background: var(--color-page);
}
.search-result h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.search-result p {
  font-size: 0.8125rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.search-empty {
  padding-block: 24px;
}
.search-empty p {
  margin-block: 12px 20px;
}
.browse-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.browse-toolbar select {
  display: block;
  border: 1px solid var(--color-control);
  background: white;
  min-height: 44px;
  padding: 8px 40px 8px 12px;
  margin-top: 8px;
  color: var(--color-text);
}
.product-dialog {
  max-width: 960px;
}
.product-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.preview-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-page);
  aspect-ratio: 1;
  padding: 24px;
}
.preview-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-product-copy h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-block: 8px 12px;
}
.reference {
  overflow-wrap: anywhere;
}
.preview-product-copy .product-price {
  font-size: 1.5rem;
  margin-top: 24px;
}
.preview-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-block: 24px;
}
.preview-specs dt {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.preview-specs dd {
  margin: 4px 0 0;
  font-size: 0.875rem;
}
.preview-product-copy > .button {
  width: 100%;
  margin-top: 12px;
}
.preview-product-copy > .text-link {
  font-size: 0.8125rem;
  margin-top: 8px;
}
.cart-empty {
  padding-block: 40px;
  text-align: center;
}
.cart-empty > .icon {
  width: 40px;
  height: 40px;
  color: var(--color-action);
  margin-bottom: 20px;
}
.cart-empty h3 {
  font-size: 1.5rem;
}
.cart-empty p {
  font-size: 0.875rem;
  margin-block: 12px 24px;
}
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-line > img {
  width: 88px;
  height: 120px;
  object-fit: contain;
  background: var(--color-page);
  padding: 8px;
}
.cart-line h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.cart-line .reference {
  margin-block: 4px 8px;
}
.cart-line .product-price {
  font-size: 0.875rem;
}
.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.cart-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-control);
}
.cart-quantity button {
  width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-quantity > span {
  min-width: 20px;
  text-align: center;
  font-size: 0.8125rem;
}
.remove-item {
  min-height: 44px;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cart-totals {
  margin-top: 32px;
}
.cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.cart-totals > .button {
  width: 100%;
  margin-top: 12px;
}
.cart-totals > .button:disabled {
  opacity: 1;
  background: var(--color-border);
  color: var(--color-secondary);
}
.cart-totals > .text-link {
  margin-top: 8px;
}
.reading-dialog {
  max-width: 760px;
}
.reading-dialog h2 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 25ch;
}
.reading-dialog h3 {
  font-size: 1.25rem;
  margin-block: 24px 12px;
}
.reading-dialog p,
.reading-dialog li {
  line-height: 1.75;
  max-width: 65ch;
  color: var(--color-secondary);
}
.reading-dialog p + p {
  margin-top: 16px;
}
.reading-dialog ul {
  padding-left: 24px;
}
.reading-dialog .sample-note {
  font-size: 0.8125rem;
}
.reading-dialog .text-link {
  margin-top: 20px;
}
.quiz-progress {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.quiz-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-control);
  cursor: pointer;
}
.quiz-options label:has(input:checked) {
  border-color: var(--color-action);
  box-shadow: inset 0 0 0 1px var(--color-action);
  background: var(--color-surface-muted);
}
.quiz-options input {
  accent-color: var(--color-action);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.quiz-actions .button {
  min-width: 120px;
}
.quiz-reason {
  font-size: 0.875rem;
  margin-top: 8px;
}
.quiz-result-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-border);
}
.quiz-result-item img {
  width: 88px;
  height: 120px;
  object-fit: contain;
  background: var(--color-page);
}
.quiz-result-item h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.quiz-result-item p {
  font-size: 0.875rem;
  line-height: 1.55;
}
.quiz-result-item .text-link {
  margin-top: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .product-link:not(:has(.alternate-image)):hover .product-stage > img {
    transform: scale(calc(var(--product-scale, 1) * 1.03));
  }
  .product-link:has(.alternate-image):hover .alternate-image {
    opacity: 1;
  }
  .card-action span {
    transition: transform var(--motion-feedback) var(--ease-spatial);
  }
  .product-link:hover .card-action span {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .icon-button,
  .text-link {
    transition:
      background-color var(--motion-feedback),
      color var(--motion-feedback);
  }
  .product-stage img {
    transition:
      opacity 600ms var(--ease-spatial),
      transform 600ms var(--ease-spatial);
  }
  dialog[open] {
    animation: dialog-enter var(--motion-open) var(--ease-spatial);
  }
  dialog[open].is-closing {
    animation: dialog-exit var(--motion-close) var(--ease-spatial) forwards;
  }
  dialog.drawer[open] {
    animation: drawer-enter var(--motion-open) var(--ease-spatial);
  }
  dialog.drawer[open].is-closing {
    animation: drawer-exit var(--motion-close) var(--ease-spatial) forwards;
  }
  dialog.navigation-drawer[open] {
    animation: navigation-enter var(--motion-open) var(--ease-spatial);
  }
  dialog.navigation-drawer[open].is-closing {
    animation: navigation-exit var(--motion-close) var(--ease-spatial) forwards;
  }
  dialog[open]::backdrop {
    animation: backdrop-enter var(--motion-open) ease-out;
  }
  dialog.is-closing::backdrop {
    animation: backdrop-exit var(--motion-close) ease-out forwards;
  }
  .quiz-step {
    animation: step-enter 200ms var(--ease-spatial);
  }
  @keyframes dialog-enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes dialog-exit {
    to {
      opacity: 0;
      transform: translateY(8px);
    }
  }
  @keyframes drawer-enter {
    from {
      transform: translateX(100%);
    }
    to {
      transform: none;
    }
  }
  @keyframes drawer-exit {
    to {
      transform: translateX(100%);
    }
  }
  @keyframes navigation-enter {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: none;
    }
  }
  @keyframes navigation-exit {
    to {
      transform: translateX(-100%);
    }
  }
  @keyframes backdrop-enter {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes backdrop-exit {
    to {
      opacity: 0;
    }
  }
  @keyframes step-enter {
    from {
      opacity: 0.5;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 1279px) {
  :root {
    --gutter: 32px;
  }
  .header-right {
    gap: 16px;
  }
  .secondary-navigation {
    gap: 16px;
  }
  .primary-navigation {
    gap: 20px;
  }
}
@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
    --header-height: 80px;
  }
  .header-inner {
    grid-template-columns: 1fr 88px 1fr;
    gap: 16px;
  }
  .header-seal img {
    width: 76px;
    height: 76px;
  }
  .primary-navigation,
  .secondary-navigation {
    display: none;
  }
  .mobile-menu {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .header-right {
    grid-column: 3;
  }
  .carousel-track {
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
  }
  .service-strip {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
  .service-strip nav {
    margin-left: 0;
    width: 100%;
  }
  .footer-top {
    gap: 32px;
  }
  .section-heading h2 {
    font-size: 2.125rem;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --header-height: 72px;
  }
  .announcement-bar {
    font-size: 0.75rem;
    padding-block: 4px;
  }
  .header-inner {
    grid-template-columns: 1fr 72px 1fr;
    gap: 8px;
  }
  .header-seal img {
    width: 64px;
    height: 64px;
  }
  .section {
    padding-block: 40px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    font-size: 2rem;
  }
  .section-heading p {
    font-size: 0.9375rem;
  }
  .section-heading > .text-link {
    font-size: 0.8125rem;
    max-width: 120px;
    min-width: 100px;
  }
  .carousel-track {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }
  .product-copy {
    gap: 7px;
    padding-top: 12px;
  }
  .product-copy h3 {
    font-size: 0.9375rem;
  }
  .product-meta {
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .rail-footer {
    gap: 16px;
  }
  .rail-label {
    font-size: 0.8125rem;
    max-width: 24ch;
  }
  .service-strip {
    padding-block: 24px;
  }
  .service-strip h2 {
    font-size: 1rem;
  }
  .service-strip nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .service-strip button {
    text-align: left;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 24px;
  }
  .footer-brand {
    gap: 20px;
  }
  .footer-seal img {
    width: 88px;
    height: 88px;
  }
  .newsletter {
    max-width: none;
    justify-self: stretch;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 16px;
  }
  .footer-bottom > div {
    gap: 8px 20px;
  }
  .footer-bottom button,
  .footer-bottom a {
    min-height: 44px;
  }
  .drawer {
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }
  dialog:not(.drawer) {
    padding: 20px 16px;
    max-height: calc(100dvh - 24px);
    width: calc(100% - 24px);
  }
  .product-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .preview-product-media {
    aspect-ratio: 4/3;
    max-height: 300px;
  }
  .preview-product-copy h2 {
    font-size: 1.875rem;
  }
  .search-result {
    grid-template-columns: 56px 1fr 20px;
    gap: 12px;
  }
  .search-result > img {
    width: 56px;
    height: 72px;
  }
  .search-result h3 {
    font-size: 0.9375rem;
  }
  .reading-dialog h2 {
    font-size: 1.875rem;
  }
  .cart-line {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .cart-line > img {
    width: 64px;
    height: 100px;
  }
  .cart-line-bottom {
    flex-wrap: wrap;
  }
  .quiz-result-item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .quiz-result-item img {
    width: 64px;
    height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  .product-stage img {
    transition: none !important;
  }
  .product-link:hover .product-stage > img {
    transform: scale(var(--product-scale, 1));
  }
}
