/* NoviKari: one-page site. Bauhaus palette (see brand/palette.html), Saira throughout. */

@font-face {
  font-family: "Saira";
  src: url("assets/saira.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

/* Colour tokens. Light is the default; dark comes from the system setting unless the
   toggle has set data-theme on <html>. The hero and footer are black in both modes. */
:root {
  --red: #E3262F;
  --bg: #FFFFFF; --surface: #FFFFFF; --cream: #F6F1E7; --border: #E7E1D3; --border-strong: #8A8478;
  --text: #111113; --muted: #55555C;
  --label: #C41E26;
  --btn: #1F4FD8; --btn-text: #FFFFFF; --btn-hover: #1A43B8;
  --hl: #1F4FD8; --link: #1A43B8;
  --band: #1F4FD8; --band-text: #FFFFFF; --band-muted: #DDE5FB; --band-hl: #F5B700;
  --nk-novi: #000000;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E10; --surface: #17171A; --cream: #1C1A16; --border: #2C2C30; --border-strong: #71717A;
    --text: #F4F4F5; --muted: #A1A1AA;
    --label: #FF5A5F;
    --btn: #F5B700; --btn-text: #111113; --btn-hover: #FFC933;
    --hl: #8FB0FF; --link: #8FB0FF;
    --nk-novi: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E10; --surface: #17171A; --cream: #1C1A16; --border: #2C2C30; --border-strong: #71717A;
  --text: #F4F4F5; --muted: #A1A1AA;
  --label: #FF5A5F;
  --btn: #F5B700; --btn-text: #111113; --btn-hover: #FFC933;
  --hl: #8FB0FF; --link: #8FB0FF;
  --nk-novi: #FFFFFF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Saira", system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--btn); color: var(--btn-text); padding: 8px 16px; z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; }

/* Wordmark: live text. NOVI is half the size of KARI, on the same baseline. */
.nk-wordmark { font-weight: 900; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.nk-wordmark .novi { font-size: 0.5em; color: var(--nk-novi); }
.nk-wordmark .kari { color: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .nk-wordmark { font-size: 34px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme-active="dark"] .theme-toggle .sun { display: none; }
:root[data-theme-active="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 680px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .site-nav ul { gap: 16px; font-size: 16px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle .text { display: none; }
  .brand .nk-wordmark { font-size: 28px; }
  html { scroll-padding-top: 120px; }
}

/* Sections. Each opens with a small red label above a large heading, echoing the wordmark. */
.section { padding: 88px 0; }
.section.cream { background: var(--cream); }
.label { display: block; font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
h1, h2 { font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.01em; margin: 10px 0 24px; }
h1 { font-size: clamp(42px, 8vw, 88px); max-width: 13ch; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h1 em, h2 em { font-style: normal; color: var(--hl); }
.lead { font-size: 21px; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
p { margin: 0 0 16px; max-width: 65ch; }

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 700; padding: 12px 24px; border-radius: 2px; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--btn); color: var(--btn-text); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.secondary { border: 2px solid var(--border-strong); color: var(--text); }
.btn.secondary:hover { border-color: var(--text); }

/* Hero: black in both modes, red highlight. */
.hero { background: #000000; color: #FFFFFF; padding: 112px 0 104px; }
.hero .label { color: #FF5A5F; }
.hero h1 em { color: var(--red); }
.hero .lead { color: #A1A1AA; }
.hero .btn.secondary { border-color: #71717A; color: #FFFFFF; }
.hero .btn.secondary:hover { border-color: #FFFFFF; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.team { background: var(--surface); border: 1px solid var(--border); padding: 28px; position: relative; }
.team::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: #F5B700; }
.team h3 { margin: 4px 0 10px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.team p { margin: 0; color: var(--muted); }

/* How we work: the cobalt band. */
.band { background: var(--band); color: var(--band-text); }
.band .label { color: #FFFFFF; }
.band h2 em { color: var(--band-hl); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 900; font-size: 44px; line-height: 1; color: var(--band-hl); margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.steps p { margin: 0; color: var(--band-muted); }

/* Contact */
.contact .email { font-weight: 800; font-size: clamp(22px, 3vw, 30px); }

/* Footer: black in both modes. */
.site-footer { background: #000000; color: #A1A1AA; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer .nk-wordmark { font-size: 24px; --nk-novi: #FFFFFF; }
.site-footer p { margin: 0; }
.site-footer .legal { font-size: 13px; font-style: normal; color: #8B8B94; }
