/* Krevāri All Audio. Colours from the app icon and Big Button Mode
   (All Audio docs/website-brief.md, section 12.5). System fonts only: nothing to host or license. */

:root {
  color-scheme: light dark;
  --brand-red: #E20101;

  --bg: #FFFFFF;
  --surface: #F4F4F2;
  --text: #1D1D1D;      /* icon ground; 16.9:1 on white */
  --text-2: #5F5F5F;    /* 6.4:1 on white */
  --accent: #003CB9;    /* icon blue; 9.0:1 on white */
  --rule: #E3E3E0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0D;      /* Big Button Mode background */
    --surface: #1A1A1A;
    --text: #F0EDE8;    /* 16.6:1 */
    --text-2: #A3A3A3;  /* 7.7:1 */
    --accent: #FFB84D;  /* Big Button Mode accent; 11.3:1 */
    --rule: #2A2A2A;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  padding: 0.5rem 0.75rem; background: var(--surface); border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }

/* The bar on inner pages */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }

main { flex: 1; }

/* Home */
.hero { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 4rem 0 3rem; }
.hero .app-icon {
  width: 112px; height: 112px; margin: 0 auto 1.75rem; border-radius: 22.5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
@media (prefers-color-scheme: dark) {          /* after the rule above, so it wins */
  .hero .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.6); }
}
.eyebrow {
  margin: 0; color: var(--text-2);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
h1 { margin: 0.25rem 0 0; font-size: clamp(2.5rem, 9vw, 3.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.lede { margin: 1rem 0 0; font-size: 1.25rem; color: var(--text-2); }
.status {
  display: inline-block; margin: 1.75rem auto 0; padding: 0.3rem 0.85rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  font-size: 0.875rem; font-weight: 600;
}
.status::before {
  content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem;
  border-radius: 50%; background: var(--brand-red); vertical-align: 0.06em;
}
.promise { margin: 2.5rem 0 0; font-weight: 600; }
.links { display: flex; justify-content: center; gap: 1.75rem; margin: 1.25rem 0 0; }

/* Inner pages */
.page { padding: 2.5rem 0 3rem; }
.page h1 { font-size: clamp(2rem, 7vw, 2.5rem); }
.updated { margin: 0.5rem 0 2rem; color: var(--text-2); font-size: 0.9375rem; }
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p, ul { margin: 0.75rem 0; }
ul { padding-left: 1.25rem; }
li { margin: 0.5rem 0; }
.contact {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: 14px; background: var(--surface);
  font-size: 1.125rem; overflow-wrap: anywhere;
}

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--text-2); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--text-2); }
.site-footer p { margin: 0; }
