/* ONGROOVE LABS — Bauhaus design system
   Palette sampled from the Purr Track app icon. Light mode only. */

:root {
  --cream: #F4EDDE;
  --cream-soft: #EDE3CE;
  --black: #141414;
  --red: #E8471D;
  --yellow: #EFA91F;
  --blue: #2D5C86;
  --muted: #4A463E;

  --border: 2px solid var(--black);
  --shadow: 6px 6px 0 0 var(--black);
  --shadow-lg: 9px 9px 0 0 var(--black);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: min(1200px, 92vw);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: on short pages the footer pins to the viewport bottom */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

a { color: var(--blue); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--black); }

.container { width: var(--container); margin: 0 auto; }

/* ---------- Tri-color poster edge ---------- */
.tricolor {
  height: 8px;
  background: linear-gradient(90deg,
    var(--red) 0 33.34%,
    var(--yellow) 33.34% 66.67%,
    var(--blue) 66.67% 100%);
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: var(--border);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--black);
  font-weight: 800; font-size: 17px; letter-spacing: .04em;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand .squares { display: inline-flex; gap: 4px; }
.brand .squares i { width: 9px; height: 9px; display: block; }
.brand .squares i:nth-child(1) { background: var(--red); }
.brand .squares i:nth-child(2) { background: var(--yellow); }
.brand .squares i:nth-child(3) { background: var(--blue); }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  color: var(--black);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: var(--red); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100dvh - var(--header-h) - 8px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(56px, 9vh, 110px) 0;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 28px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 12px; height: 12px; background: var(--red); }
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(52px, 6.6vw, 100px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  margin: 0 0 40px;
  max-width: 46ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--black); color: var(--cream);
  border: var(--border);
  box-shadow: 4px 4px 0 0 var(--black);
  font: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; user-select: none;
  transition: transform 130ms ease-out, box-shadow 130ms ease-out, background 130ms ease-out;
}
.btn:hover { background: var(--red); color: var(--cream); text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 0 var(--black); }
.btn.ghost { background: var(--cream); color: var(--black); }
.btn.ghost:hover { background: var(--yellow); color: var(--black); }

/* Hero artwork — the real app icon, clipped to its squircle shape */
.art {
  border: var(--border);
  border-radius: 23.5%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  line-height: 0;
}
.art img { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
section.band { border-top: var(--border); padding: clamp(72px, 10vh, 120px) 0; }
section.band.alt { background: var(--cream-soft); }

.section-head { display: flex; align-items: center; gap: 18px; margin: 0 0 48px; }
.section-head .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--yellow); border: var(--border);
  font-size: 15px; font-weight: 800;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800; letter-spacing: .01em; text-transform: uppercase;
}

/* Apps grid */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.app-card {
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform 130ms ease-out, box-shadow 130ms ease-out;
}
@media (hover: hover) {
  .app-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
}
.app-card .top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-mark { width: 64px; height: 64px; border: var(--border); flex: none; line-height: 0; }
.app-mark svg { width: 100%; height: 100%; display: block; }
.app-mark img { width: 100%; height: 100%; display: block; border-radius: 13px; }
.app-card h3 { margin: 0; font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.chip {
  display: inline-flex; align-items: center;
  margin-top: 6px; padding: 3px 10px;
  border: var(--border);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.chip.yellow { background: var(--yellow); color: var(--black); }
.chip.blue { background: var(--blue); color: var(--cream); }
.app-card p { margin: 0; color: var(--muted); font-size: 16px; max-width: 44ch; }

/* About / Contact */
.duo { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.duo .about p { margin: 0 0 18px; max-width: 58ch; font-size: 18px; line-height: 1.65; }
.duo .about p:last-child { margin-bottom: 0; }
.contact-card {
  border: var(--border); box-shadow: var(--shadow);
  background: var(--cream); padding: 30px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.contact-card p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.contact-card .where { margin: 22px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Cats page */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1000px; }
.cat-card {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--cream);
  transition: transform 130ms ease-out, box-shadow 130ms ease-out;
}
@media (hover: hover) {
  .cat-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
}
.cat-card .portrait { border-bottom: var(--border); line-height: 0; aspect-ratio: 3 / 4; }
.cat-card .portrait svg, .cat-card .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card .info { padding: 26px 30px 30px; }
.cat-card .name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.cat-card h3 { margin: 0; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cat-card .name-row .chip { margin-top: 0; }
.cat-card .info > p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; gap: 12px; align-items: baseline; }
.facts dt {
  flex: none; width: 92px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--black);
}
.facts dd { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) {
  .cats { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer.site { border-top: var(--border); background: var(--black); color: var(--cream); }
footer.site .inner {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  padding: 30px 0;
  font-size: 14px; letter-spacing: .04em;
}
footer.site a { color: var(--cream); font-weight: 600; }
footer.site a:hover { color: var(--yellow); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Content pages (support / privacy / 404) ---------- */
.page { padding: clamp(64px, 9vh, 110px) 0 clamp(72px, 10vh, 120px); }
.page-head { margin-bottom: 48px; }
.page-head .squares { display: flex; gap: 6px; margin-bottom: 22px; }
.page-head .squares i { width: 14px; height: 14px; display: block; }
.page-head .squares i:nth-child(1) { background: var(--red); }
.page-head .squares i:nth-child(2) { background: var(--yellow); }
.page-head .squares i:nth-child(3) { background: var(--blue); }
.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.page-head .sub { margin: 0; color: var(--muted); font-size: 18px; }
.prose { max-width: 720px; }
.prose h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 44px 0 14px;
  font-size: 22px; font-weight: 800; letter-spacing: .01em;
}
.prose h2::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--red); }
.prose h2:nth-of-type(3n+2)::before { background: var(--yellow); }
.prose h2:nth-of-type(3n)::before { background: var(--blue); }
.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.prose strong { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; }
  .art { max-width: 520px; }
  .apps, .duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links a { padding: 0 9px; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .app-card, .contact-card { padding: 24px; }
}

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