/*
  Nzymes — base stylesheet
  Intentionally minimal and unstyled. Customer to redesign visually.
  Goals: readable defaults, mobile-first, accessible focus states, no layout fights.
*/

:root {
  --brand: #3a7d3a;
  --brand-dark: #2c5e2c;
  --ink: #222;
  --muted: #666;
  --bg: #fff;
  --rule: #e5e5e5;
  --max: 90rem;
  --measure: 42rem;

  /* Brand tokens — used by site header and homepage modules. */
  --nz-teal:  #0D3F44;
  --nz-cream: #F7F3EC;
  --nz-gold:  #FEC463;
  --nz-ink:   #0D1F22;
}

* { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 0.75rem; z-index: 100;
}

.wrap { margin: 0 auto; padding: 0 1.25rem; }
/* Use .wrap-narrow on a child container to constrain prose / forms / lists */
.wrap-narrow { max-width: var(--max); margin: 0 auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  background: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo img { height: 40px; width: auto; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.nav-shop {
  background: var(--brand); color: #fff !important;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 600;
}
.nav-shop:hover { background: var(--brand-dark); color: #fff !important; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block; background: none; border: 1px solid var(--rule);
    padding: 0.4rem 0.75rem; border-radius: 4px; font: inherit; cursor: pointer;
  }
  .site-nav ul { display: none; flex-direction: column; width: 100%; padding: 1rem 0; }
  .site-nav[data-open="true"] ul { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* Main */
main { padding: 2rem 0 3rem; }
/* Narrow reading column applies only to blog-article prose, not full pages */
.article-prose { max-width: var(--measure); margin: 0 auto; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }

article header { margin-bottom: 1.5rem; }
.byline { color: var(--muted); font-size: 0.95rem; }

/* Article hero image */
.article-hero { margin: 0 0 1.5rem; }
.article-hero img { width: 100%; height: auto; border-radius: 6px; }

/* Article list (blog index) */
.article-list { list-style: none; padding: 0; max-width: var(--measure); margin: 0 auto; }
.article-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.article-list li:last-child { border-bottom: 0; }
.article-list h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.article-list h2 a { text-decoration: none; }
.article-list p { margin: 0; color: var(--muted); }

/* TODO markers — visible to editor in dev, hidden in print */
.todo {
  background: #fff8c4; border-left: 4px solid #e6c200;
  padding: 0.5rem 0.75rem; margin: 1rem 0; font-size: 0.9rem;
}

/* Legacy content wrapper for un-restyled imports */
/* Legacy blog imports (the 8 /articles/ story pages that carry the old page-builder markup). Scoped patch,
   Sun Nov 8 2026: readable type, site fonts, icons at icon size, photos inside the column. The real fix is the
   rebuild of each at its original address in the library; nothing outside .legacy-content is touched. */
article:has(> .legacy-content) { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
article:has(> .legacy-content) > header h1 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: #0D3F44; margin: 8px 0 20px; }
.legacy-content { font-family: 'Jost', system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: #0D1F22; overflow-wrap: anywhere; }
.legacy-content h1, .legacy-content h2, .legacy-content h3, .legacy-content h4 { font-family: 'Lora', Georgia, serif; font-weight: 500; color: #0D3F44; line-height: 1.25; margin: 1.4em 0 .5em; }
.legacy-content h2 { font-size: 26px; } .legacy-content h3 { font-size: 21px; } .legacy-content h4 { font-size: 18px; }
.legacy-content p, .legacy-content li { margin: 0 0 1em; }
.legacy-content a { color: #0D3F44; text-decoration: underline; text-underline-offset: 2px; }
.legacy-content img, .legacy-content video, .legacy-content iframe { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 8px; }
.legacy-content svg, .legacy-content .instant-icon { width: 36px; height: 36px; max-width: 36px; max-height: 36px; flex: 0 0 36px; }
.legacy-content [style*="width"] { max-width: 100% !important; }
.legacy-content blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid #FEC463; color: #3A4A4C; font-style: italic; }
.legacy-content table { max-width: 100%; display: block; overflow-x: auto; }
.legacy-content button, .legacy-content input, .legacy-content form { display: none; }  /* dead page-builder forms and quiz buttons from the old store */


/* Footer */
.site-footer {
  background: #f7f7f5; border-top: 1px solid var(--rule);
  padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: 0.95rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem; margin-bottom: 1.5rem;
}
.footer-col h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.2rem 0; }
.copyright { color: var(--muted); font-size: 0.85rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--rule); }
