/* css/site.css — Kameleo Ltd
   Macrostructure: conversational FAQ (large questions, short answers).
   The one effect: the hue itself transitions when a swatch is picked, because a page
   that changes colour is the idea the name Kameleo carries. Off under reduced motion. */

/* ---- Base ---- */
:root { transition: --hue 0.8s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- Header ---- */
.nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-block: var(--s6); }
.mark { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.mark svg { width: 1em; height: 1em; flex: none; display: block; }
.mark .drop { fill: var(--skin); }
.mark .eye { fill: var(--on-skin); }
.nav a.go { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s12); align-items: end; padding-block: var(--s12) var(--s24); }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 span { background: var(--skin); color: var(--on-skin); padding: 0 0.12em; border-radius: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin-top: var(--s8); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s6); margin-top: var(--s8); }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; padding: var(--s3) var(--s6); border-radius: 999px; white-space: nowrap; transition: transform 0.2s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.actions a.quiet { white-space: nowrap; font-weight: 500; }

/* The colour panel */
.skin { background: var(--skin); color: var(--on-skin); border-radius: 28px 28px 28px 6px; padding: var(--s8); min-width: 0; }
.skin h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.skin p { margin-top: var(--s2); font-size: 1rem; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s6) 0 0; padding: 0; list-style: none; }
.swatches button {
  width: 100%; font: 500 0.8125rem var(--mono); color: var(--on-skin); cursor: pointer;
  background: var(--swatch); border: 2px solid transparent; border-radius: 14px;
  padding: var(--s6) var(--s2) var(--s3); text-align: left; white-space: nowrap;
}
.swatches button[aria-pressed="true"] { border-color: var(--on-skin); }
.swatches button:focus-visible { outline-color: var(--on-skin); }
.skin p.now { margin-top: var(--s4); font: 400 0.8125rem var(--mono); }

/* ---- Questions ---- */
.asks { border-top: 1.5px solid var(--ink); }
.ask { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--s6); column-gap: var(--s6); padding-block: var(--s16); border-bottom: 1px solid var(--line); }
.ask:nth-child(2) { padding-block: var(--s24); }
.ask h2 { grid-column: 1 / span 9; font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.ask .a { grid-column: 4 / span 8; min-width: 0; display: grid; gap: var(--s4); }
.ask .a > p { max-width: 58ch; }
.ask .a > p:first-child { font-size: 1.25rem; line-height: 1.5; }
.does { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: 0; max-width: 58ch; }
.does li { display: flex; justify-content: space-between; gap: var(--s6); padding-block: var(--s3); border-top: 1px solid var(--line); }
.does li span:last-child { color: var(--ink-soft); font: 400 0.8125rem var(--mono); white-space: nowrap; align-self: center; }

/* What Kameleo runs: name + domain (or status) on one line, wrapping on narrow screens */
.runs { list-style: none; padding: 0; margin: var(--s2) 0 0; max-width: 58ch; }
.runs li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--s6); row-gap: var(--s1); padding-block: var(--s4); border-top: 1px solid var(--line); }
.runs h3 { margin: 0; font: 600 1.0625rem/1.4 var(--body); }
.runs .where { font: 400 0.8125rem var(--mono); white-space: nowrap; }
.runs span.where { color: var(--ink-soft); }
.runs p { flex-basis: 100%; color: var(--ink-soft); }

.record { margin: 0; border-top: 1.5px solid var(--ink); }
.record div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.record dt { color: var(--ink-soft); font-size: 0.9375rem; }
.record dd { margin: 0; font-family: var(--mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- Contact ---- */
.reach { background: var(--paper-2); margin-top: var(--s24); }
.reach .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s12); padding-block: var(--s24) var(--s16); }
.reach h2 { font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -0.025em; }
.reach .note { color: var(--ink-soft); margin-top: var(--s6); max-width: 36ch; }
.ways { display: grid; gap: var(--s8); min-width: 0; }
.way h3 { margin: 0 0 var(--s2); font: 600 1rem var(--body); color: var(--ink-soft); }
.way address { overflow-wrap: anywhere; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.25; }
.way address a { color: inherit; }
.copy { margin-top: var(--s4); font: 600 0.9375rem var(--body); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: var(--s2) var(--s4); cursor: pointer; white-space: nowrap; }

/* ---- Privacy page ---- */
.page-head { padding-block: var(--s12) var(--s16); }
.page-head h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.025em; }
.page-head .lede { max-width: 44ch; margin-top: var(--s6); }
.updated { margin-top: var(--s6); font: 400 0.9375rem var(--mono); color: var(--ink-soft); }
.policy { padding-bottom: var(--s24); }

/* ---- Footer ---- */
.foot { background: var(--ink); color: var(--paper); }
.foot .wrap { padding-block: var(--s16) var(--s12); }
.foot p.legal { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.foot p.small { margin-top: var(--s8); font-size: 0.9375rem; max-width: 62ch; opacity: 0.8; }
.foot a { color: var(--paper); white-space: nowrap; }
.foot :focus-visible { outline-color: var(--paper); }

/* ---- One column below 800px ---- */
@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--s6) var(--s16); align-items: start; }
  .ask { padding-block: var(--s12); }
  .ask:nth-child(2) { padding-block: var(--s12); }
  .ask h2, .ask .a { grid-column: 1 / -1; }
  .reach .wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--s16) var(--s12); }
  .reach { margin-top: var(--s16); }
  .record div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .page-head { padding-block: var(--s6) var(--s12); }
  .policy { padding-bottom: var(--s16); }
}
