/* ------------------------------------------------------------------
   OHM earth — ohmaker.ca
   Single stylesheet. No build step, no preprocessor.
   Colours sampled from production packaging artwork.
   ------------------------------------------------------------------ */

:root {
  /* OHM earth — parent brand / oral care */
  --ink:        #282F24;  /* deep charcoal-green — headings, body text */
  --forest:     #436A2F;  /* bands, links */
  --leaf:       #5F813F;  /* secondary green */
  --gold:       #E5BE68;  /* accent rules, marks */
  --cream:      #E9E1D2;  /* warm cream */

  /* OHM Wash — laundry */
  --wash-leaf:  #94C640;
  --wash-sky:   #80BBE6;
  --wash-pale:  #D9E6F6;
  --wash-deep:  #0175BC;
  --wash-deep-text: #015E96; /* darkened for AA contrast on light grounds */

  /* Surfaces */
  --paper:      #F7F3EA;  /* page ground — warm paper, not clinical white */
  --paper-2:    #FFFDF8;  /* raised cards */
  --rule:       #D8D0BE;
  --muted:      #5A6152;

  --display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --body:    "Quicksand", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --wrap: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.02em; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1em; }

a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.9rem;
}

/* Colour is inherited deliberately: .lede is used on the paper ground and
   inside .panel (dark charcoal-green). Setting a colour here made panel ledes
   dark-on-dark. */
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }

section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-rule { border-top: 1px solid var(--rule); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
}
.brand span { color: var(--gold); font-style: italic; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin: 0; padding: 0;
}
.site-nav li { max-width: none; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3.5rem, 10vw, 7rem);
}
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 52ch; }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--amazon { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--amazon:hover { background: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 42em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 42em) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media { background: var(--cream); border-bottom: 1px solid var(--rule); }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* contain, not cover: the pack illustrations are portrait and cover would
     crop the top and bottom off the carton. */
  object-fit: contain;
  padding: 1rem;
}
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.35rem; }
.card__body p { flex: 1; }
.card__link { margin-top: 0.5rem; font-weight: 700; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card__link::after { content: " \2192"; }

/* ---------- Feature panel ---------- */

.panel {
  background: var(--ink);
  color: var(--cream);
}
.panel h2, .panel h3 { color: var(--paper); }
.panel a { color: var(--gold); }
.panel a:hover { color: #fff; }
.panel .eyebrow { color: var(--gold); }
.panel .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.panel .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* ---------- Ingredient teaser strip ---------- */

.chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  max-width: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 1px solid rgba(233, 225, 210, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* ---------- Tables (ingredients / specs) ---------- */

.table-scroll { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 1rem 1rem 0; font-weight: 700; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; max-width: none; }
thead th { background: var(--cream); font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); width: 3rem; color: var(--muted); }
td.cas { font-family: var(--mono); white-space: nowrap; }

.pending {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #FBEFCE;
  border: 1px dashed #B08A2A;
  color: #6B5310;
  padding: 0.05em 0.4em;
  border-radius: 3px;
}

/* ---------- Notices ---------- */

.notice {
  border-left: 4px solid var(--gold);
  background: var(--cream);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.notice > :last-child { margin-bottom: 0; }
.notice h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; }

.notice--build {
  border-left-color: #B08A2A;
  background: #FBEFCE;
  color: #4A3A08;
}

/* ---------- Fragrance callout ---------- */

.variant-note {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}
@media (min-width: 46em) { .variant-note { grid-template-columns: 1fr 1fr; } }
.variant-note > div {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
}
.variant-note h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.variant-note .ff { border-top: 4px solid var(--wash-leaf); }
.variant-note .fl { border-top: 4px solid var(--wash-deep); }
.variant-note p:last-child { margin-bottom: 0; }

/* ---------- Certification marks (typographic placeholders) ---------- */

.certs { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.certs li {
  max-width: 20rem;
  flex: 1 1 15rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  background: var(--paper-2);
}
.certs strong { display: block; font-family: var(--display); font-size: 1.1rem; }

/* Certification marks are supplied artwork and must not be recoloured,
   stretched, cropped or set below a legible size — the "epa.gov/saferchoice"
   line has to stay readable. Height is fixed; width follows the aspect ratio. */
/* align-self keeps the mark at its true aspect ratio: .card__body is a column
   flex container, and its default align-items:stretch would otherwise widen the
   image to the card and distort the artwork. */
.cert-mark { height: 190px; width: auto; margin-bottom: 1rem; align-self: flex-start; flex: 0 0 auto; }
.cert-mark--wide { height: 118px; }
@media (max-width: 30em) {
  .cert-mark { height: 165px; }
  .cert-mark--wide { height: 100px; }
}
.certs span { display: block; font-size: 0.9rem; color: var(--muted); }
.panel .certs li { background: rgba(255,255,255,0.06); border-color: rgba(233,225,210,0.3); }
.panel .certs span { color: var(--cream); opacity: 0.8; }

/* ---------- Product page ---------- */

.product-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 60em) { .product-grid { grid-template-columns: 1.05fr 1fr; } }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; grid-column: span 2; }
.gallery figure + figure { grid-column: span 1; }
.gallery img { width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-2); }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); padding-top: 0.35rem; }

.spec-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.spec-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; max-width: none; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { font-weight: 700; min-width: 9rem; }

.attr-list { margin: 1.5rem 0; padding-left: 1.15rem; }
.attr-list li { margin-bottom: 0.5rem; }

.buybox {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--forest);
  background: var(--paper-2);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.buybox p:last-child { margin-bottom: 0; }
.buybox .asin { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--rule); padding: 1.25rem 0; }
.faq-item h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.5rem; }
.faq-item > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form { max-width: 34rem; margin-top: 2rem; }
.form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.form .field { margin-bottom: 1.25rem; }
.form input, .form textarea, .form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 3px solid var(--gold);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 46em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(233, 225, 210, 0.25);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  opacity: 0.85;
}
.footer-bottom p { max-width: none; }

/* ---------- Breadcrumb ---------- */

.crumbs { font-size: 0.88rem; padding-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }

/* ---------- Utility ---------- */

.stack > * + * { margin-top: 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media print {
  .site-header, .site-nav, .btn, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .table-scroll { border: 0; }
}

/* Variant colour coding, matched to the two OHM Wash packs. Carries the
   fragrance distinction visually as well as in the copy. */
.card--ff { border-top: 4px solid var(--wash-leaf); }
.card--fl { border-top: 4px solid var(--wash-deep); }

/* Pack attribute list — the icon strip printed on the carton, set as text. */
.attr-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 34em) { .attr-grid { grid-template-columns: repeat(2, 1fr); } }
.attr-grid li {
  max-width: none;
  padding-left: 1.4rem;
  position: relative;
}
.attr-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--wash-leaf);
}

/* Dose table, matching the load chart printed on the carton. */
.dose { margin: 1.25rem 0 0; }
.dose th, .dose td { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.dose th { text-align: left; font-family: var(--body); font-weight: 700; font-size: 1rem; text-transform: none; letter-spacing: 0; background: none; }
.dose td { text-align: right; font-weight: 700; white-space: nowrap; }
