:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --ink: #20251f;
  --muted: #62685f;
  --line: #deded3;
  --green: #355a45;
  --green-dark: #234331;
  --green-pale: #e7eee6;
  --orange: #d9875b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}

a { color: inherit; }
a:hover { color: var(--green); }
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-header,
.site-footer,
.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font: 700 22px/1 var(--serif);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span { color: var(--orange); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.page-shell { padding-block: 74px 96px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 { font-family: var(--serif); }

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
}

.hero {
  position: relative;
  padding-block: 30px 84px;
}

.hero::after {
  position: absolute;
  top: 8px;
  right: 7%;
  width: clamp(100px, 17vw, 190px);
  aspect-ratio: 1;
  border: 1px solid #d5d9cd;
  border-radius: 50%;
  box-shadow: 14px 14px 0 -13px var(--orange), 30px 30px 0 -29px var(--green);
  content: "";
  pointer-events: none;
}

.hero h1,
.hero .lead,
.hero .eyebrow,
.hero-actions { position: relative; z-index: 1; }

.hero h1 { max-width: 780px; }

.hero h1 span { color: var(--green); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
}

.button.secondary:hover { background: var(--green-pale); }

.hero-actions,
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.section-heading p {
  max-width: 440px;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.product-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card.children-card { background: var(--green-pale); }

.card-index {
  margin-bottom: 28px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-card p {
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--muted);
}

.product-card .card-actions { margin-top: auto; }

.detail-hero {
  padding-block: 14px 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.detail-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-card.highlight {
  background: var(--green-pale);
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.detail-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 10px;
}

.lab-note {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.lab-note p {
  max-width: 700px;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 42px;
  margin-top: 96px;
  padding-block: 44px;
  border-top: 1px solid var(--line);
}

.about-section p { max-width: 620px; color: var(--muted); }

.contact-panel {
  margin-top: 44px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}

.contact-panel .eyebrow { color: #d7e4d7; }
.contact-panel p { max-width: 560px; color: #d7e4d7; }
.contact-panel h2 { max-width: 600px; }
.contact-panel a { color: white; }
.contact-panel .button { border-color: white; background: white; color: var(--green-dark); }
.contact-panel .button:hover { background: var(--green-pale); }

.detail-hero { max-width: 820px; padding-block: 18px 58px; }
.detail-hero h1 { font-size: clamp(46px, 7vw, 76px); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 24px;
}

.detail-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-card p:last-child { margin-bottom: 0; }
.detail-card p { color: var(--muted); }
.detail-card.highlight { background: var(--green-pale); }

.detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-list li + li { margin-top: 8px; }

.back-link {
  display: inline-block;
  margin-top: 34px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 3px; }

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .page-shell { width: min(100% - 36px, 560px); }

  .site-header { min-height: 72px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .page-shell { padding-block: 52px 68px; }
  .hero { padding-block: 18px 64px; }
  .hero::after { top: 0; right: 1%; }
  .section-heading,
  .about-section { display: block; }
  .section-heading p { margin-top: 12px; }
  .product-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 260px; }
  .about-section { margin-top: 68px; }
  .about-section > div + div { margin-top: 18px; }
  .site-footer { flex-direction: column; gap: 8px; }
}

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