/* histogami.com front page. Google Sans, light + dark, no scripts. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --sunk: #efeee8;
  --ink: #161925;
  --ink2: #444a5c;
  --muted: #6b7185;
  --line: #e2e0d8;
  --brand: #2a3a86;
  --brand-soft: #e6e9fb;
  --assay: #0e6b66;
  --assay-soft: #dff1ee;
  --colony: #2f7a3a;
  --colony-soft: #e3f1e2;
  --dot: rgba(42, 58, 134, .10);
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 12px 40px rgba(20, 24, 40, .10);
  --r: 18px;
  --sans: "Google Sans", "Google Sans Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --surface: #171b2c;
    --sunk: #13172a;
    --ink: #eceef6;
    --ink2: #b9bed0;
    --muted: #8d93a8;
    --line: #262b40;
    --brand: #9fb0ff;
    --brand-soft: #222a4d;
    --assay: #5fd0c4;
    --assay-soft: #12302f;
    --colony: #8fd394;
    --colony-soft: #173020;
    --dot: rgba(159, 176, 255, .065);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
.material-symbols-rounded { font-size: 22px; line-height: 1; font-variation-settings: "opsz" 24, "wght" 400, "FILL" 0; user-select: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* --- top bar --- */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand--small { font-size: 15px; gap: 8px; }
.brand--small img { border-radius: 6px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink2); font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--sunk); color: var(--ink); }

/* --- hero --- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  /* a faint 96-well plate behind the headline */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, var(--dot) 0 6px, transparent 6.5px);
  background-size: 28px 28px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.kicker { display: inline-block; font-size: 14px; font-weight: 500; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 15ch; max-width: none; }
.lede { margin-top: 22px; max-width: 60ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); }
.hero-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 390px)); gap: 16px; }
.pick { display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px 18px; box-shadow: 0 1px 2px rgba(20, 24, 40, .04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.pick-ic .material-symbols-rounded { font-size: 26px; }
.pick--assay .pick-ic { background: var(--assay-soft); color: var(--assay); }
.pick--colony .pick-ic { background: var(--colony-soft); color: var(--colony); }
.pick--assay:hover { border-color: var(--assay); }
.pick--colony:hover { border-color: var(--colony); }
.pick-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-t strong { font-size: 19px; font-weight: 600; }
.pick-t span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.pick-go { color: var(--muted); transition: transform .15s ease; }
.pick:hover .pick-go { transform: translateX(3px); color: var(--ink); }
.hero-note { margin-top: 22px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.hero-note .material-symbols-rounded { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .pick, .pick-go { transition: none; } .pick:hover { transform: none; } }

/* --- product sections --- */
.product { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 48px; }
.product-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.product--flip .product-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product--flip .product-copy { order: 2; }
.product--flip .shot { order: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 5px 12px 5px 9px; border-radius: 999px; margin-bottom: 18px; }
.tag .material-symbols-rounded { font-size: 18px; }
.tag--assay { background: var(--assay-soft); color: var(--assay); }
.tag--colony { background: var(--colony-soft); color: var(--colony); }
.product h2 { font-size: clamp(28px, 3.2vw, 40px); }
.product-copy > p { margin-top: 16px; color: var(--ink2); }
.feats { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 16px; }
.feats li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }
.feats li b { color: var(--ink); font-weight: 600; }
.feats .material-symbols-rounded { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--sunk); color: var(--ink2); }
#assay .feats .material-symbols-rounded { background: var(--assay-soft); color: var(--assay); }
#colony .feats .material-symbols-rounded { background: var(--colony-soft); color: var(--colony); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 20px 12px 22px; border-radius: 999px; color: #fff; transition: filter .15s ease, transform .15s ease; }
.btn .material-symbols-rounded { font-size: 20px; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--assay { background: var(--assay); }
.btn--colony { background: var(--colony); }
@media (prefers-color-scheme: dark) { .btn { color: #0f1220; } }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* --- your data --- */
.data { padding: 72px 0 88px; border-top: 1px solid var(--line); scroll-margin-top: 48px; }
.data h2 { font-size: clamp(26px, 2.8vw, 34px); }
.data-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.data-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.data-item .material-symbols-rounded { font-size: 24px; color: var(--brand); }
.data-item h3 { margin-top: 14px; font-size: 17px; }
.data-item p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink2); }

/* --- footer --- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-left: auto; color: var(--muted); font-size: 14px; }

/* --- narrower screens --- */
@media (max-width: 980px) {
  .product-in, .product--flip .product-in { grid-template-columns: 1fr; gap: 36px; }
  .product--flip .product-copy, .product--flip .shot { order: 0; }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .hero { padding: 56px 0 52px; }
  .br-wide { display: none; }
  .hero-cards { grid-template-columns: 1fr; }
  .product, .data { padding: 52px 0; }
  .data-grid { grid-template-columns: 1fr; }
  .foot-note { margin-left: 0; width: 100%; }
}
