/* HomiLabs main site: one stylesheet, no build step. */
:root {
  --bg: #f5f1ea;
  --band: #ece6db;
  --surface: #fffdf9;
  --text: #1b1c18;
  --muted: #5d5f57;
  --line: #ddd5c7;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --health: #c2410c;
  --learn: #1d4ed8;
  --kids: #9333ea;
  --tools: #1f6f5c;
  --fun: #b45309;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121310;
    --band: #191a16;
    --surface: #20221d;
    --text: #ece8df;
    --muted: #a4a69c;
    --line: #313329;
    --accent: #5cc4a6;
    --accent-ink: #0d1411;
    --health: #fb8a5a;
    --learn: #7ea6ff;
    --kids: #c99bff;
    --tools: #5cc4a6;
    --fun: #f0b35c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 650; letter-spacing: -0.01em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 650 20px "Fraunces", Georgia, serif; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--band); }
@media (max-width: 560px) { .nav a { padding: 4px 6px; font-size: 14px; } .top-row { padding-block: 8px; } }

/* Hero */
.hero { padding: 72px 16px 56px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 16ch; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 48px 0 0; }
.stats div { border-top: 2px solid var(--text); padding-top: 10px; }
.stats dt { font: 650 40px/1 "Fraunces", Georgia, serif; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 64px 0; }
.hero { padding-top: 72px; }
.band { background: var(--band); }
.section-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.section-head { margin-bottom: 24px; }
.section-sub { color: var(--muted); margin: 0; }
.lede-sm { color: var(--muted); margin: 8px 0 28px; }

/* Portfolio areas */
.areas { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 560px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--c); }
.area h3 { font-size: 19px; margin-bottom: 8px; color: var(--c); }
.area p { margin: 0; color: var(--muted); font-size: 15px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
.filter.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.card[hidden] { display: none; }
.card-head { display: flex; gap: 14px; align-items: center; }
.card-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.card h3 { font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { font-size: 12px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px !important; }
.tag.health { color: var(--health) !important; }
.tag.learn { color: var(--learn) !important; }
.tag.kids { color: var(--kids) !important; }
.tag.tools { color: var(--tools) !important; }
.tag.fun { color: var(--fun) !important; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.links a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text);
}
.links a:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.links a:hover { border-color: var(--accent); }
.soon .links a:first-child { background: transparent; color: var(--text); border-color: var(--line); }

/* Pipeline stages */
.stage-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 28px 0 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.rc { background: var(--accent); }
.dot.dev { background: var(--fun); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 32px; margin-top: 28px; }
.value .num { font: 650 15px "Fraunces", Georgia, serif; color: var(--accent); }
.value h3 { font-size: 20px; margin: 4px 0 8px; font-family: "Fraunces", Georgia, serif; font-weight: 500; }
.value p { margin: 0; color: var(--muted); }

/* Policy */
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 20px; }
.policy h3 { font-size: 17px; margin: 20px 0 6px; }
.policy ul { margin: 0; padding-left: 20px; }
.policy li { margin: 4px 0; }
.updated { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Contact and footer */
.contact { text-align: center; }
.contact p { color: var(--muted); margin: 8px 0 22px; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
