:root {
  color-scheme: light;
  --paper: #f7f4ea;
  --card: #fffcf5;
  --ink: #1c2924;
  --muted: #52615a;
  --green: #193f36;
  --green-dark: #113229;
  --moss: #dce7d8;
  --accent: #a34222;
  --line: #d7d8c9;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, label.file-picker, summary, select { cursor: pointer; }
button { background: none; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; }
h1, h2 { font: 400 clamp(2.7rem, 5.2vw, 4.5rem)/.97 var(--display); }
h3 { font-size: 1.03rem; line-height: 1.3; }
.shell { width: min(100% - 112px, 1240px); margin-inline: auto; }
.section { margin-block: 76px; }
.visually-hidden, .file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip { position: absolute; z-index: 5; top: 0; left: 1rem; padding: .6rem 1rem; background: var(--card); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; gap: 11px; align-items: center; font-weight: 700; letter-spacing: -.045em; font-size: 1.2rem; white-space: nowrap; }
.identity img { border-radius: 8px; flex: none; }
.nav { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); font-size: .91rem; font-weight: 600; }
.nav-item:hover, .nav-item[aria-current="page"], .footer a:hover, .back-link:hover { color: var(--accent); }
.dropdown { position: relative; }
.dropdown summary { display: flex; min-height: 44px; justify-content: space-between; align-items: center; gap: 9px; list-style: none; }
.dropdown summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.dropdown summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.dropdown[open] summary::after { transform: translateY(2px) rotate(225deg); }
.locale-dropdown summary { gap: 12px; padding-inline: 12px; border-radius: 4px; border: 1px solid var(--line); }
.dropdown-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 184px;
  padding: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #27382414;
  border-radius: 6px;
}
.category-menu { width: max-content; grid-template-columns: repeat(2, minmax(130px, 1fr)); }
.dropdown-menu a { display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 38px; padding: 7px 10px; border-radius: 3px; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible, .dropdown-menu [aria-current] { background: var(--moss); }
.dropdown-menu a span { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 104px);
  padding-top: 48px;
}
.hero-content { padding-block: 22px; }
.hero h1 { font-size: clamp(4.5rem, 9.4vw, 8.8rem); letter-spacing: -.045em; line-height: .81; }
.hero h1 em { color: var(--green); font-weight: 400; }
.hero-content p { margin-top: 28px; max-width: 37ch; color: var(--muted); font-size: clamp(1rem, 1.38vw, 1.14rem); }
.hero-actions { margin-top: 26px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; column-gap: 15px; padding: 11px 16px; border: 1px solid transparent; border-radius: 4px; font-size: .88rem; font-weight: 700; line-height: 1.2; text-align: start; }
.button span { font-size: 1rem; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.quiet { border-color: #a4b2a4; color: var(--green); }
.quiet:hover { background: var(--moss); }
.plain:hover { text-decoration: underline; }
.light { background: var(--paper); color: var(--green); }
.light:hover { background: var(--moss); }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; border-radius: 6px; }
.hero-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .74rem; text-align: right; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.section-head p, .section > p { max-width: 61ch; color: var(--muted); margin-top: 12px; }
.category-section { margin-top: 54px; }
.category-grid { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.category-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 100%; min-height: 65px; padding: 12px; font-weight: 700; font-size: .88rem; line-height: 1.2; color: var(--green); overflow-wrap: anywhere; }
.category-grid a:hover, .category-grid a:focus-visible { background: var(--moss); }
.category-grid a span { flex: none; color: var(--accent); font-size: 1rem; }
.finds > .button { margin-top: 24px; }
.source-note { display: grid; gap: 4px; color: var(--muted); font-size: .79rem; text-align: right; }
.catalog-tools { display: flex; gap: 13px; margin-bottom: 20px; }
.search-box { display: flex; align-items: center; gap: 11px; padding-inline: 13px; max-width: 450px; flex: 1; border: 1px solid #aab4a8; border-radius: 4px; background: var(--card); }
.search-box span { color: var(--green); font-size: 1.5rem; line-height: 1; }
.catalog-tools input, .catalog-tools select { min-width: 0; min-height: 46px; color: var(--ink); font-size: .94rem; }
.catalog-tools input { padding: 5px 0; width: 100%; border: 0; background: none; }
.search-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-box input:focus { outline: none; }
.catalog-tools select { max-width: 46%; padding: 5px 32px 5px 12px; border: 1px solid #aab4a8; border-radius: 4px; background: var(--card); }
.no-results { background: var(--card); border: 1px solid var(--line); padding: 24px; }

.product-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; min-height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 5px; }
.product-link { display: flex; flex-direction: column; min-height: 100%; }
.product-link:hover h3 { text-decoration: underline; text-underline-offset: .16em; }
.product-visual { aspect-ratio: 1.26; overflow: hidden; background: #efeee4; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px 13px 12px; }
.product-category { color: var(--green); font-size: .74rem; font-weight: 700; }
.product-body h3 { flex: 1; font-size: .99rem; line-height: 1.33; overflow-wrap: anywhere; }
.product-meta { margin-top: 7px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 10px; font-size: .8rem; font-weight: 700; }
.product-meta span:last-child { color: var(--green); }
.product-meta span span { color: var(--accent); }

.qc-banner { overflow: hidden; background: var(--green); color: var(--paper); }
.qc-banner-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(26px, 6vw, 90px); padding-block: 40px; }
.qc-banner img { width: 100%; aspect-ratio: 1.58; height: auto; max-height: 370px; object-fit: cover; border-radius: 5px; }
.qc-banner figcaption { color: #e1e9df; margin-top: 6px; font-size: .74rem; text-align: right; }
.qc-banner-copy { max-width: 540px; }
.qc-banner-copy p { color: #e1e9df; max-width: 44ch; margin: 16px 0 21px; }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; margin: 28px 0 0; }
.steps li { border-top: 1px solid #a4b2a4; padding-top: 14px; }
.steps p, .faq p { color: var(--muted); font-size: .94rem; margin-top: 8px; max-width: 58ch; }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 54px; padding: 10px 0; list-style: none; font-weight: 700; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 15px; }
.footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.footer p { max-width: 50ch; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; font-weight: 700; font-size: .85rem; }

.lab-intro { padding-top: 42px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; font-size: .88rem; font-weight: 700; color: var(--green); }
.lab-intro h1 { font-size: clamp(3.55rem, 7vw, 7rem); letter-spacing: -.025em; }
.lab-intro p { margin-top: 17px; max-width: 58ch; color: var(--muted); }
.lab { margin-top: 26px; }
.lab-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.lab-tools > div { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-tools p, .demo-note { color: var(--muted); font-size: .83rem; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photo-panel { padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
.photo-panel h2 { font: 700 1rem/1.25 var(--sans); margin: 3px 0 12px; }
.photo-frame { aspect-ratio: 1; max-height: 560px; background: #eeeade; border-radius: 3px; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.photo-panel .button { margin-top: 13px; }
.file-picker:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.demo-note { margin-top: 7px; max-width: 90ch; }
.upload-status { margin-top: 9px; color: var(--accent); }
.checklist { margin-top: 35px; padding: 21px; background: var(--moss); border-radius: 5px; }
.checklist-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.checklist-head h2 { font-size: clamp(2.4rem, 4.3vw, 3.4rem); }
.checklist-head output { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; color: var(--green); font-size: .82rem; }
.checklist-head output strong { font-variant-numeric: tabular-nums; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.check { display: flex; align-items: start; gap: 10px; min-height: 82px; padding: 11px; background: var(--card); border: 1px solid #bac9b8; border-radius: 4px; cursor: pointer; }
.check:hover { border-color: var(--green); }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.check strong, .check span span { display: block; }
.check strong { font-size: .9rem; }
.check span span { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.next h2 { font-size: clamp(2.75rem, 5.2vw, 4rem); }
.next .button { margin-top: 18px; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 64px, 1240px); }
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { min-height: 60px; gap: 8px; }
  .identity { font-size: 1.02rem; gap: 7px; }
  .identity img { width: 27px; height: 27px; border-radius: 6px; }
  .nav { gap: 9px; font-size: .82rem; position: static; }
  .nav-item { display: none; }
  .categories-dropdown { position: static; }
  .category-menu { top: 60px; right: 17px; width: calc(100vw - 34px); }
  .locale-dropdown summary { min-height: 37px; gap: 8px; padding-inline: 8px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; }
  .hero-content { padding-block: 0; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6.5rem); }
  .hero-content p { margin-top: 20px; }
  .hero-actions { margin-top: 18px; }
  .hero-figure img { aspect-ratio: 1.5; }
  .section { margin-block: 48px; }
  .category-section { margin-top: 32px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid a { min-height: 55px; font-size: .81rem; padding: 9px 8px; }
  .section-head { display: block; margin-bottom: 17px; }
  .source-note { text-align: start; margin-top: 9px; }
  .catalog-tools { gap: 7px; }
  .catalog-tools select { padding-inline: 7px 2px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { padding: 9px; }
  .product-body h3 { font-size: .88rem; }
  .product-meta { font-size: .75rem; }
  .qc-banner-inner { grid-template-columns: 1fr; padding-block: 22px 29px; gap: 18px; }
  .qc-banner img { aspect-ratio: 1.75; }
  .steps ol { grid-template-columns: 1fr; gap: 13px; }
  .faq { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { flex-direction: column; gap: 13px; }
  .lab-intro { padding-top: 26px; }
  .back-link { margin-bottom: 15px; }
  .photo-pair { gap: 8px; }
  .photo-panel { padding: 7px; }
  .photo-panel .button { margin-top: 8px; font-size: .81rem; padding: 8px; min-height: 41px; }
  .photo-panel h2 { font-size: .87rem; margin-block: 1px 6px; }
  .photo-frame { aspect-ratio: .75; }
  .checklist { padding: 12px; }
  .checklist-head { align-items: start; flex-direction: column; }
  .check { min-height: 72px; }
}
@media (max-width: 410px) {
  .nav { gap: 7px; }
  .dropdown summary { gap: 6px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: 1fr; }
}
