/* Cairnea — cairnea.com
   Corporate parent page. KinDash leads; the Android apps are a second line, and
   the layout says so before the words do.

   The promise is "calm, accessible", so the page argues it by being it rather
   than claiming it: 18px base text, generous leading, a short measure, large
   targets, one accent colour, and no motion at all. Restraint is the design.

   Palette is early-morning kitchen light — a cool pale ground with one warm
   ochre, the colour of a lamp on at 7am. Deliberately not the warm-cream-and-
   serif or the dark-mode-with-acid-accent that every software company uses. */

:root {
  --ground:   #edf0f2;
  --panel:    #f7f8f9;
  --warm:     #f6eee1;   /* flagship panel — lamp light */
  --seam:     #ccd3d8;
  --ink:      #16232b;   /* 12.6:1 on --ground */
  --ink-2:    #4d6069;   /* 5.4:1 on --ground */
  --ochre:    #9a5f1c;   /* 5.1:1 on --ground */
  --ochre-lo: #e6d3b4;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;

  --wrap: 62rem;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #131a1e;
    --panel:    #1a2226;
    --warm:     #23201a;
    --seam:     #2f3a40;
    --ink:      #e7ecee;
    --ink-2:    #9dadb4;
    --ochre:    #e0a860;
    --ochre-lo: #4a3d28;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;          /* 18px — stated in the footer, so it must be true */
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: var(--ochre); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--ground);
  padding: 0.75rem 1.25rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: 44rem; }

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--seam); padding-block: 1.15rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.mark {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.mark-stack { display: inline-flex; flex-direction: column; gap: 2px; }
.mark-stack i { display: block; height: 3px; background: var(--ochre); border-radius: 2px; }
.mark-stack i:nth-child(1) { width: 8px;  margin-inline: auto; }
.mark-stack i:nth-child(2) { width: 13px; margin-inline: auto; }
.mark-stack i:nth-child(3) { width: 18px; }

.topbar nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 1rem; }
.topbar nav a { color: var(--ink-2); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Shared bits ────────────────────────────────────────────────── */
.eyebrow, .rail {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.rail { color: var(--ochre); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.lede {
  max-width: 44ch;
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

/* ── Flagship: weight on the page mirrors weight in the business ── */
.flagship {
  background: var(--warm);
  border-block: 1px solid var(--seam);
}
.prod-h {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 0.75rem;
}
.prod-sub {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  text-wrap: pretty;
}

.feat { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 0; }
.feat li {
  padding-block: 1rem;
  border-top: 1px solid var(--ochre-lo);
  color: var(--ink-2);
  text-wrap: pretty;
}
.feat li:last-child { border-bottom: 1px solid var(--ochre-lo); }
.feat strong { display: block; color: var(--ink); font-weight: 600; }

.commit {
  max-width: 50ch;
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0 0 2.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ochre);
  text-wrap: pretty;
}

.cta-row { margin: 0; }
.cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.cta:hover { background: transparent; color: var(--ink); }

/* ── Sections ───────────────────────────────────────────────────── */
.sec-h {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
}
.sec-sub {
  max-width: 52ch;
  color: var(--ink-2);
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  text-wrap: pretty;
}

/* ── Apps: lighter treatment than the flagship, on purpose ──────── */
.apps { list-style: none; margin: 0; padding: 0; }
.apps li {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(0.35rem, 2vw, 1.5rem);
  padding-block: 1.15rem;
  border-top: 1px solid var(--seam);
}
.apps li:last-child { border-bottom: 1px solid var(--seam); }
.app-n { font-weight: 600; }
.app-d { color: var(--ink-2); font-size: 1rem; text-wrap: pretty; }
.app-w { color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; }

@media (max-width: 46rem) {
  .apps li { grid-template-columns: 1fr auto; }
  .app-d { grid-column: 1 / -1; }
}

.aside {
  max-width: 50ch;
  font-size: 1rem;
  color: var(--ink-2);
  margin: 2rem 0 0;
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact { margin: 0; }
.contact > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: clamp(0.35rem, 3vw, 1.5rem);
  padding-block: 1rem;
  border-top: 1px solid var(--seam);
}
.contact > div:last-child { border-bottom: 1px solid var(--seam); }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; color: var(--ink-2); }

@media (max-width: 34rem) {
  .contact > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
.foot { background: var(--panel); border-top: 1px solid var(--seam); }
.fine {
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 1rem;
  text-wrap: pretty;
}
.foot-in .fine:last-child { margin-bottom: 0; }
