:root {
  color-scheme: light;
  --ink: #20202c;
  --muted: #5f6070;
  --paper: #faf9fc;
  --line: #e5e3ed;
  --accent: #6635c8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ac70ed; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: 1.8rem; }
img { max-width: 100%; height: auto; }
pre { overflow-x: auto; padding: 1.2rem; background: #eeedf4; border-radius: 8px; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
.container, .header-inner, .footer-inner { width: min(1180px, 92%); margin-inline: auto; }
.container { min-height: 65vh; padding-block: 2.5rem 4rem; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: 0.7rem; background: white; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { background: #20202c; color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.site-header a { color: white; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.1rem; }
.brand-mark { padding: 0.4rem 0.5rem; background: #383447; font-size: 0.95rem; letter-spacing: -0.05em; }
.brand-mark span { color: #c7a8ff; }
nav { display: flex; gap: 1.6rem; font-size: 0.9rem; }
nav a:hover { color: #d1b7ff; }
.hero { padding-block: 2.25rem 2.75rem; }
.eyebrow { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 1.3rem 0; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -0.065em; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 600px; font-size: 1.15rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 2rem; margin-top: 1rem; padding: 0.8rem 1.2rem; background: var(--accent); color: white; border-radius: 7px; text-decoration: none; font-weight: 650; }
.button:hover { background: #5126a6; }
.hero-details { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.5rem; color: var(--muted); font-size: 0.8rem; }
.hero-details strong { color: var(--ink); }
#products { border-top: 1px solid var(--line); padding-top: 2rem; scroll-margin-top: 1.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0.5rem 0 0; }
.section-heading p { color: var(--muted); font-size: 0.9rem; }
.section-heading .eyebrow { color: var(--accent); font-size: 0.75rem; }
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; }
.product-card { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 1.3rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.product-card:hover { border-color: #ac8adc; box-shadow: 0 4px 16px #32215b0c; }
.product-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 9px; background: #eee7fb; color: #6635c8; font-weight: 750; font-size: 0.9rem; }
.product-grid li:nth-child(3n + 2) .product-icon { background: #e1f2ee; color: #216b5b; }
.product-grid li:nth-child(3n) .product-icon { background: #fcEddd; color: #975519; }
.product-name, .product-caption { display: block; }
.product-name { font-weight: 650; line-height: 1.35; }
.product-caption { margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; }
.card-arrow { margin-left: auto; color: var(--muted); }
.archive-section { margin-block: 2.5rem; }
.archive-section h2 { font-size: 1.2rem; }
.archive-section p { color: var(--muted); font-size: 0.9rem; }
.archive-links { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; list-style: none; padding: 0; font-size: 0.9rem; }
.about-callout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem; border-radius: 12px; background: #eee8f7; }
.about-callout h2 { margin-top: 0; font-size: 1.5rem; }
.about-callout p { max-width: 670px; margin-bottom: 0; color: #58506a; font-size: 0.95rem; }
.about-callout > a { flex-shrink: 0; font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; }
.notice { margin-block: 1rem; padding: 1rem; border-left: 4px solid var(--accent); background: #eee8f7; }
.product-history > p { color: var(--muted); }
.table-scroll { overflow: auto; max-height: 70vh; margin-top: 2rem; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: separate; border-spacing: 0; font-size: 0.85rem; }
.table-scroll table { width: 100%; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.table-scroll thead th { position: sticky; top: 0; z-index: 2; background: #eae6f2; font-weight: 700; }
.table-scroll tr > :first-child { position: sticky; left: 0; z-index: 1; background: #f2eff8; font-weight: 650; border-right: 1px solid var(--line); }
.table-scroll thead tr > :first-child { z-index: 3; background: #eae6f2; }
.table-scroll tbody tr:nth-child(even) { background: #f4f3f8; }
.table-scroll tbody tr:hover { background: #eee8f7; }
.table-notes { margin-top: 1.5rem; color: var(--muted); font-size: 0.85rem; max-width: 800px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-callout { align-items: start; flex-direction: column; gap: 1rem; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 0.8rem; }
  nav { gap: 1.2rem; }
  .hero { padding-top: 1rem; }
  .section-heading { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1rem; }
  .about-callout { padding: 1.4rem; }
  .footer-inner { flex-direction: column; align-items: start; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
}
