/*
  Shared styles for redesigned pages: tokens, base elements, layout helpers,
  buttons, the honeycomb texture, the site header and footer components, and
  sections used on more than one page. Page-specific styles live in their own
  file, such as home.css.

  Breakpoints: 40rem (640px), 48rem (768px), 64rem (1024px), 75rem (1200px, full nav).
*/

/* Fonts: self-hosted variable fonts (Latin subset, SIL Open Font License, via Fontsource).
   Newsreader includes the optical-size axis, so large headings get display-cut letterforms. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */

:root {
  --green-900: #1c3a2c;
  --green-700: #33513f;
  --green-600: #3d5a4a;
  --green-500: #4a6357;
  --sage-400: #8ba296;
  --sage-200: #c6d3ca;
  --paper: #f2ede3;
  --cream-50: #fdfaf4;
  --cream-100: #f7f2e8;
  --cream-200: #f0e8d8;
  --line: #e2d9c8;
  --line-strong: #d6cbb6;
  --line-field: #978b78; /* form field borders, at least 3:1 against white and cream */
  --ink-900: #2b2318;
  --ink-700: #5f5648;
  --ink-600: #6b6154;
  --gold-500: #f5a623;
  --gold-600: #d4920a;
  --amber-700: #8a5a06;
  --red-600: #a8321e;
  --red-700: #8f2a19;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.3125rem, 1.35rem + 3.3vw, 3.875rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.55vw, 2.625rem);
  --fs-h2-sm: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.1875rem, 1rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(0.96875rem, 0.9rem + 0.3vw, 1.15625rem);
  --fs-sm: 0.90625rem;
  --fs-xs: clamp(0.65625rem, 0.6rem + 0.25vw, 0.75rem);
  --fs-2xs: 0.6875rem;

  --container: 80.5rem;
  --gutter: clamp(1.125rem, 5.3vw, 4.75rem);
  --section-y: clamp(2.125rem, 1.2rem + 4.1vw, 5.25rem);
  --radius: 2px;
  --hexagon: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);

  /* Topbar + masthead. The header renders with JavaScript, so this space is
     reserved up front to keep the page from jumping when it appears. */
  --header-height: 6.125rem;
}

@media (min-width: 48rem) {
  :root { --header-height: 6.5rem; }
}

@media (min-width: 75rem) {
  :root { --header-height: 8.25rem; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

/* Components toggle visibility with the hidden attribute; keep it winning over display rules. */
[hidden] {
  display: none !important;
}

h1, h2, h3, p, figure, address {
  margin: 0;
}

:where(ul, ol)[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--green-900);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.on-dark :focus-visible,
.honeycomb :focus-visible {
  outline-color: var(--gold-500);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Layout and utilities */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 700;
  transform: translateY(-150%);
}

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

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-700);
}

.eyebrow--gold {
  color: var(--gold-500);
}

.section-title {
  font-size: var(--fs-h2);
}

.section-title--sm {
  font-size: var(--fs-h2-sm);
  text-align: center;
}

.lead {
  max-width: 31em;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-700);
}

/* Text link: dark amber with a soft gold underline that darkens on hover. */
.text-link {
  padding-bottom: 0.1875rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-500) 30%, var(--line-strong));
  color: var(--amber-700);
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--amber-700);
}

/* Flat-top hexagon, echoing the logo. Set the width; the height follows. */
.hex {
  display: inline-block;
  flex: none;
  aspect-ratio: 1.1547;
  background: var(--gold-500);
  clip-path: var(--hexagon);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9375rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 700 0.96875rem/1.2 var(--font-sans);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn--gold {
  background: var(--gold-500);
  color: var(--ink-900);
}

.btn--gold:hover {
  background: var(--gold-600);
}

.btn--outline {
  border-color: currentColor;
  color: var(--green-900);
}

.btn--outline:hover {
  border-color: var(--green-900);
  background: var(--green-900);
  color: var(--cream-50);
}

/* Honeycomb texture on green bands. Anchored top-right by default. */

.honeycomb {
  --honeycomb-at: 100% 3%;
  --honeycomb-position: right top;
  background-color: var(--green-900);
  background-image:
    radial-gradient(135% 130% at var(--honeycomb-at), transparent, color-mix(in srgb, var(--green-900) 50%, transparent) 38%, var(--green-900) 68%),
    url("/images/patterns/honeycomb.svg");
  background-position: 0 0, var(--honeycomb-position);
  background-repeat: no-repeat, repeat;
  background-size: auto, 84px 48.5px;
}

.honeycomb--bottom {
  --honeycomb-at: 100% 100%;
  --honeycomb-position: right bottom;
}

/* Site header component */

site-header {
  display: block;
  position: relative;
  z-index: 10;
  min-height: var(--header-height);
}

.topbar {
  background: var(--green-900);
  color: var(--sage-200);
  font-size: var(--fs-2xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 2.125rem;
  white-space: nowrap;
}

.topbar__facts span + span::before {
  content: "·";
  content: "·" / "";
  margin-inline: 0.5rem;
  color: var(--green-500);
}

.topbar__extra,
.topbar__contact {
  display: none;
}

.topbar__contact {
  gap: 1.25rem;
}

.topbar a:hover {
  color: var(--cream-50);
}

.topbar__phone {
  color: var(--gold-500);
}

.masthead {
  position: relative;
  height: 4rem;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--green-900);
}

.brand__logo {
  width: 2.25rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  max-width: 7.5em;
  font: 500 1.125rem/1.1 var(--font-serif);
  letter-spacing: -0.01em;
}

.brand__place {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.menu-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-900);
  cursor: pointer;
}

.menu-button::before,
.menu-button::after {
  content: "";
  grid-area: 1 / 1;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.menu-button::before {
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}

.menu-button::after {
  opacity: 0;
}

site-header[data-open] .menu-button::before {
  box-shadow: none;
  transform: rotate(45deg);
}

site-header[data-open] .menu-button::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
}

site-header[data-open] .site-nav {
  display: grid;
  gap: 1.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgb(43 35 24 / 0.08);
}

.site-nav__list a {
  display: block;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current] {
  color: var(--green-900);
}

@media (min-width: 48rem) {
  .topbar {
    font-size: 0.8125rem;
  }

  .topbar__inner {
    justify-content: space-between;
    height: 2.5rem;
  }

  .topbar__facts span + span::before {
    margin-inline: 1.375rem;
  }

  .topbar__contact {
    display: flex;
  }
}

@media (min-width: 75rem) {
  .topbar__extra {
    display: inline;
  }

  .masthead {
    height: 5.75rem;
  }

  .brand {
    gap: 0.8125rem;
  }

  .brand__logo {
    width: 2.875rem;
  }

  .brand__name {
    max-width: none;
    font-size: 1.4375rem;
    line-height: 1;
  }

  .brand__place {
    display: block;
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2rem;
  }

  .site-nav__list {
    display: flex;
    gap: clamp(1.25rem, 1.9vw, 1.75rem);
    margin-inline: auto;
  }

  .site-nav__list a {
    padding: 0 0 0.25rem;
    border-bottom: 2px solid transparent;
  }

  .site-nav__list a[aria-current] {
    border-bottom-color: var(--gold-500);
  }

  .site-nav__cta {
    padding: 0.8125rem 1.25rem;
    font-size: 0.90625rem;
  }
}

/* Site footer component */

site-footer {
  display: block;
}

.site-footer {
  padding-block: 2.125rem 1.625rem;
  color: var(--sage-200);
  font-size: var(--fs-sm);
}

.site-footer a:hover {
  color: var(--cream-50);
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6875rem;
  margin-bottom: 1.125rem;
}

.hex-mark {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: 2.875rem;
  aspect-ratio: 52 / 45;
  font: 700 0.71875rem/1 var(--font-sans);
  color: #fff;
}

.hex-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 3;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
}

.footer-brand__name {
  font: 500 1.125rem/1 var(--font-serif);
  color: var(--cream-50);
}

.footer-brand__since {
  margin-top: 0.375rem;
  font-size: 0.53125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-400);
}

.site-footer__contact {
  display: grid;
  gap: 0.875rem;
  font-style: normal;
  line-height: 1.7;
}

.site-footer__phone {
  color: var(--gold-500);
}

.chip-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0.8125rem;
  border: 1px solid var(--green-600);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.site-footer__heading {
  margin-bottom: 1.125rem;
  font: 700 0.71875rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-50);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.125rem;
  font-size: 0.8125rem;
}

.site-footer__legal {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.375rem;
  padding-top: 1rem;
  border-top: 1px solid var(--green-700);
  font-size: 0.65625rem;
  line-height: 1.6;
  color: var(--sage-400);
}

@media (min-width: 48rem) {
  .site-footer {
    padding-block: 4.375rem 2.125rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 4.5rem;
  }

  .footer-brand {
    gap: 0.8125rem;
    margin-bottom: 1.375rem;
  }

  .hex-mark {
    width: 3.25rem;
    font-size: 0.8125rem;
  }

  .footer-brand__name {
    font-size: 1.3125rem;
  }

  .footer-brand__since {
    font-size: 0.59375rem;
    letter-spacing: 0.2em;
  }

  .site-footer__links {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    justify-content: start;
    gap: 0.75rem 2rem;
    font-size: var(--fs-sm);
  }

  .site-footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-top: 3.375rem;
    padding-top: 1.5rem;
    font-size: 0.71875rem;
  }

  .site-footer__legal p:first-child {
    max-width: 62em;
  }

  .site-footer__legal p:last-child {
    flex: none;
  }
}

/* Shared sections, used on more than one page */

/* Logos with white backgrounds sit on cream without a visible box. */
.blend {
  mix-blend-mode: multiply;
}

/* Hexagon bullet list. On green bands the rules switch to green.
   Bullets line up with the first line, so items can wrap. */
.hex-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-block: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  border-top: 1px solid var(--hex-list-rule, var(--line));
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
}

.hex-list li:last-child {
  border-bottom: 1px solid var(--hex-list-rule, var(--line));
}

.hex-list li::before {
  content: "";
  flex: none;
  width: 0.75rem;
  aspect-ratio: 1.1547;
  margin-top: calc(0.8em - 0.325rem);
  background: var(--gold-500);
  clip-path: var(--hexagon);
}

.honeycomb .hex-list {
  --hex-list-rule: var(--green-700);
}

/* Experience and certifications bar */

.trust {
  padding-block: 1.375rem;
  background: var(--cream-50);
  border-top: 1px solid var(--green-900);
  border-bottom: 1px solid var(--line);
}

.trust__inner {
  display: grid;
  gap: 1.125rem;
}

.trust__stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6875rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--line);
}

.trust__number {
  font: 400 2.5rem/0.9 var(--font-serif);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
  color: var(--amber-700);
}

.trust__label {
  font-size: 0.78125rem;
  line-height: 1.35;
  color: var(--ink-600);
}

.trust__certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.25rem 0.75rem;
}

.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5625rem;
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-600);
}

.cert img {
  width: auto;
  height: 2.25rem;
}

.cert--fda {
  grid-column: 1 / -1;
  order: -1;
}

.fda-chip {
  white-space: nowrap;
  padding: 0.5625rem 0.875rem;
  background: var(--cream-100);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-900);
}

@media (min-width: 40rem) {
  .trust__certs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 75rem) {
  .trust {
    padding-block: 2rem;
  }

  .trust__inner {
    display: flex;
    align-items: center;
    gap: 2.75rem;
  }

  .trust__stat {
    flex: none;
    padding: 0 2.625rem 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .trust__number {
    font-size: 3.375rem;
  }

  .trust__label {
    max-width: 8em;
    font-size: 0.8125rem;
  }

  .trust__certs {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .cert--fda {
    order: 0;
  }

  .cert img {
    height: 2.75rem;
  }

  .cert--ccof img {
    height: 3rem;
  }

  .cert .fda-chip {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.75rem;
  }
}

/* Product cards. The heading link covers the whole card. */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.product-card__media {
  position: relative;
  padding: 0.875rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.product-card__media img {
  width: 100%;
  mix-blend-mode: multiply;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 0.75rem;
  border-top: 3px solid var(--gold-500);
}

.product-card h2,
.product-card h3 {
  font-size: var(--fs-h3);
}

.product-card :is(h2, h3) a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card :is(h2, h3) a:focus-visible {
  outline: none;
}

.product-card:has(a:focus-visible) {
  outline: 2px solid var(--amber-700);
  outline-offset: 4px;
}

.product-card:hover .product-card__media {
  border-color: var(--line-strong);
}

.product-card p {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-600);
}

.product-card__more {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber-700);
}

/* Compact cards (other products): fixed image height, image beside text on phones. */
.product-grid--related {
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.product-card--compact {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.75rem;
  border-top: 3px solid var(--gold-500);
}

.product-card--compact .product-card__media {
  padding: 0.625rem;
}

.product-card--compact .product-card__body {
  padding-top: 0;
  border-top: 0;
}

.product-card--compact p {
  margin-top: 0.25rem;
  font-size: 0.84375rem;
}

@media (min-width: 40rem) {
  .product-grid--related {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .product-card--compact {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }

  .product-card--compact .product-card__media {
    padding: 1.375rem;
  }

  .product-card--compact .product-card__media img {
    height: 9.375rem;
    object-fit: contain;
  }

  .product-card--compact .product-card__body {
    padding-top: 1rem;
    border-top: 3px solid var(--gold-500);
  }

  .product-card--compact p {
    margin-top: 0.375rem;
    font-size: var(--fs-sm);
  }
}

@media (min-width: 64rem) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

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

  .product-card__media {
    padding: 1.5rem;
  }

  .product-card__body {
    padding-top: 1.125rem;
  }

  .product-card__more {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.78125rem;
    letter-spacing: 0.1em;
  }
}

/* Sample and wholesale call to action */

.cta-band {
  padding-block: clamp(2rem, 1.2rem + 3.4vw, 4.5rem);
  background: var(--cream-200);
  border-top: 1px solid var(--line);
}

.cta-band__inner {
  display: grid;
  gap: 1.25rem;
}

.cta-band p {
  max-width: 38em;
  margin-top: 0.75rem;
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-700);
}

.cta-band__actions {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 40rem) {
  .cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (min-width: 64rem) {
  .cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .cta-band__actions {
    flex: none;
  }
}

/* Choice chips: a radio button inside a label, shown as a selectable chip.
   <label class="choice-chip"><input type="radio" name="…" value="…">Label</label> */

.choice-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--green-900);
  cursor: pointer;
  transition: border-color 0.2s;
}

.choice-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-chip:hover {
  border-color: var(--green-900);
}

.choice-chip:has(:checked) {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--cream-50);
  font-weight: 700;
}

.choice-chip:has(:focus-visible) {
  outline: 2px solid var(--amber-700);
  outline-offset: 3px;
}

/* Numbered steps. Items share one row on wide screens. */

.steps {
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}

.steps h2 {
  margin-bottom: 1.375rem;
}

.steps__list {
  display: grid;
  gap: 1.375rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step + .step {
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  display: block;
  font: 400 2.125rem/1 var(--font-serif);
  font-variant-numeric: lining-nums;
  color: var(--amber-700);
}

.step h3 {
  margin-top: 0.375rem;
  font-size: var(--fs-h3);
}

.step p {
  margin-top: 0.375rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-600);
}

@media (min-width: 64rem) {
  .steps h2 {
    margin-bottom: 2.5rem;
  }

  .steps__list {
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 3rem;
  }

  .step + .step {
    padding: 0 0 0 3rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .step::before {
    font-size: 3rem;
  }

  .step h3 {
    margin-top: 0.75rem;
  }

  .step p {
    margin-top: 0.625rem;
    font-size: 0.96875rem;
  }
}

/* Facts strip: short facts in one band, separated by dots */

.facts-strip {
  padding-block: 1.125rem;
  background: var(--cream-50);
  border-top: 1px solid var(--green-900);
  border-bottom: 1px solid var(--line);
}

.facts-strip__list {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--ink-700);
}

.facts-strip__list li + li::before {
  content: "·";
  content: "·" / "";
  margin-inline: 0.5rem;
  color: var(--line-field);
}

/* Capability card: hexagon, heading and a short description. Pages set the grid. */

.capability {
  padding: 1.25rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
}

.capability::before {
  content: "";
  display: block;
  width: 0.875rem;
  aspect-ratio: 1.1547;
  background: var(--gold-500);
  clip-path: var(--hexagon);
}

.capability h3 {
  margin-top: 0.875rem;
  font-size: 1.3125rem;
  line-height: 1.15;
}

.capability p {
  margin-top: 0.5rem;
  font-size: 0.90625rem;
  line-height: 1.55;
  color: var(--ink-600);
}

/* Link card: the heading link covers the whole card. */
.capability--link {
  position: relative;
  transition: border-color 0.2s;
}

.capability--link:hover {
  border-color: var(--line-strong);
}

.capability--link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.capability--link a:focus-visible {
  outline: none;
}

.capability--link:has(a:focus-visible) {
  outline: 2px solid var(--amber-700);
  outline-offset: 4px;
}

.capability--link h3 span {
  color: var(--amber-700);
}

@media (min-width: 64rem) {
  .facts-strip {
    padding-block: 1.5rem;
  }

  .facts-strip__list {
    justify-content: center;
    row-gap: 0.625rem;
    font-size: 0.90625rem;
  }

  .facts-strip__list li + li::before {
    margin-inline: 1.25rem;
  }

  .capability {
    padding: 1.875rem;
  }

  .capability::before {
    width: 1rem;
  }

  .capability h3 {
    margin-top: 1.25rem;
    font-size: 1.5625rem;
  }

  .capability p {
    margin-top: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* Page intro: eyebrow, headline and lead at the top of a page */

.page-intro {
  padding-block: 1.75rem 1.5rem;
}

.page-intro__inner {
  display: grid;
  gap: 0.875rem;
}

.page-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.page-intro .eyebrow .hex {
  width: 1.25rem;
}

.page-intro h1 {
  font-size: clamp(2.1875rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.05;
  text-wrap: pretty;
}

.page-intro .lead {
  max-width: 34em;
}

@media (min-width: 64rem) {
  .page-intro {
    padding-block: 4.5rem 0;
  }

  .page-intro__inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
    gap: 4.375rem;
  }

  .page-intro .eyebrow {
    gap: 0.75rem;
    margin-bottom: 1.375rem;
  }

  .page-intro .eyebrow .hex {
    width: 1.5rem;
  }

  .page-intro .lead {
    margin-bottom: 0.625rem;
  }
}

/* Category bar: links to the sections of a long page. A row of chips that
   scrolls sideways on phones and tablets, tabs from 75rem. */

.category-bar {
  background: var(--cream-50);
  border-top: 1px solid var(--green-900);
  border-bottom: 1px solid var(--line);
}

.category-bar__list {
  display: flex;
  gap: 0.5rem;
  padding: 0.6875rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar__list li {
  flex: none;
}

.category-bar a {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5625rem 0.8125rem;
  background: var(--cream-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.78125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--green-900);
}

.category-bar a[aria-current] {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--cream-50);
}

.category-bar__long {
  display: none;
}

@media (min-width: 75rem) {
  .category-bar__list {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: 0;
    gap: 0;
    overflow: visible;
  }

  .category-bar a {
    gap: 0.5625rem;
    margin-bottom: -1px;
    padding: 1rem 1.375rem;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.84375rem;
    color: var(--ink-600);
  }

  .category-bar li:first-child a {
    padding-left: 0;
  }

  .category-bar a:hover {
    color: var(--green-900);
  }

  .category-bar a[aria-current] {
    background: none;
    border-bottom-color: var(--gold-500);
    color: var(--green-900);
  }

  .category-bar__long {
    display: inline;
  }

  .category-bar__short {
    display: none;
  }
}

/* Page index: an "On this page" card linking to the parts of a long page. Each
   link holds a title in a span, with an optional <time> above it. */

.page-index {
  padding: 1rem 1.125rem 0.875rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
}

.page-index__title {
  padding-bottom: 0.75rem;
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.page-index a {
  display: block;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--green-900);
}

.page-index li:last-child a {
  padding-bottom: 0.125rem;
}

.page-index time {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-600);
}

.page-index a span {
  display: block;
  margin-top: 0.1875rem;
  font: 400 1.09375rem/1.25 var(--font-serif);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.page-index a:hover span {
  text-decoration-color: var(--gold-500);
}

@media (min-width: 64rem) {
  .page-index {
    padding: 1.375rem 1.625rem 1.25rem;
  }

  .page-index__title {
    padding-bottom: 0.875rem;
    font-size: 0.71875rem;
  }

  .page-index a {
    padding-block: 0.875rem;
  }

  .page-index time {
    font-size: 0.78125rem;
  }

  .page-index a span {
    margin-top: 0.25rem;
    font-size: 1.1875rem;
  }
}

/* Photo in a cream mat, with an optional caption under it */

.photo-frame {
  padding: 0.625rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
}

.photo-frame img {
  width: 100%;
}

/* A plain caption under the photo. :where keeps it easy for a page to restyle. */
.photo-frame :where(figcaption) {
  margin-top: 0.4375rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-600);
}

@media (min-width: 64rem) {
  .photo-frame :where(figcaption) {
    margin-top: 0.6875rem;
    font-size: 0.84375rem;
    line-height: 1.45;
  }
}

/* Photo gallery component: main photo with thumbnails */

product-gallery {
  display: block;
}

.gallery__stage {
  padding: 1.5rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
}

.gallery__image {
  width: 100%;
  mix-blend-mode: multiply;
}

.gallery__thumbs {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery__thumb {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.375rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery__thumb:hover {
  border-color: var(--line-strong);
}

.gallery__thumb[aria-pressed="true"] {
  border-color: var(--gold-500);
  box-shadow: inset 0 0 0 1px var(--gold-500);
}

.gallery__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Labels stay available to screen readers on phones, where they don't fit. */
.gallery__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .gallery__label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin-top: 0.375rem;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 0.65625rem;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: var(--ink-600);
  }
}

@media (min-width: 64rem) {
  .gallery__stage {
    padding: 2.125rem;
  }

  .gallery__thumbs {
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .gallery__thumb {
    padding: 0.625rem;
  }
}
