/* Ondio (Pty) Ltd — company site styles.
   Static site, no build step. One stylesheet for all pages.

   ── PALETTE ──────────────────────────────────────────────────────────
   Taken from the "ondio | onwa" admin-portal deck (Draft 2, July 2026):
   deep indigo ground, coral primary, amber secondary. To rebrand, change
   the values in this block; nothing below names a literal colour.
   ------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --coral: #fb6a45;   /* primary accent — the leading "o", links, buttons */
  --amber: #f6b64e;   /* secondary accent — eyebrows, keylines, card rules */
  --paper: #1a1536;   /* page ground */
  --panel: #262150;   /* raised surfaces */
  --ink: #f4f1ef;     /* body text */

  --muted: #b6b1cc;   /* secondary text — 8.6:1 on --paper */
  --rule: #322d5a;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 64rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  /* 400, not 300: a light weight on a dark ground renders thin, and the legal
     pages are long-form reading. */
  font-weight: 400;
  line-height: 1.7;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Masthead ---------- */

.masthead { border-bottom: 1px solid var(--rule); }

.masthead-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.logo-link { display: inline-block; text-decoration: none; }

/* The deck's lockup: coral leading "o", the rest in ink. */
.wordmark {
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark .o { color: var(--coral); }

/* Registration manifest under the wordmark */
.manifest {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.875rem;
  border-left: 2px solid var(--amber);
  padding-left: 0.75rem;
}

.manifest b { font-weight: 500; color: var(--ink); }

nav.primary {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
}

nav.primary a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

nav.primary a:hover,
nav.primary a:focus-visible { color: var(--ink); border-bottom-color: var(--coral); }
nav.primary a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }

/* ---------- Type ---------- */

h1 {
  font-weight: 600;
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
  color: var(--ink);
}

h2 {
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 1rem;
  color: var(--ink);
}

h3 {
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

p { max-width: 68ch; }
a { color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin: 0 0 1.25rem;
}

/* ---------- Layout ---------- */

main { padding: 3.5rem 0 5rem; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Panel with an amber top rule — the deck's card treatment. */
.card {
  background: var(--panel);
  border-top: 2px solid var(--amber);
  border-radius: 0 0 6px 6px;
  padding: 1.25rem 1.25rem 1.5rem;
}

.card p { font-size: 0.9375rem; color: var(--muted); margin: 0; max-width: none; }

/* ---------- Detail grid ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contact-grid dt {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.contact-grid dd { margin: 0; font-size: 1rem; line-height: 1.6; }
.contact-grid dd a { text-decoration: none; }
.contact-grid dd a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal h2 { font-size: 1.1875rem; margin: 2.75rem 0 0.75rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.25rem; max-width: 68ch; }
.legal li { margin-bottom: 0.5rem; }
.legal li::marker { color: var(--amber); }

.legal ol.steps { padding-left: 1.25rem; max-width: 68ch; }
.legal ol.steps li { margin-bottom: 0.875rem; }
.legal b { font-weight: 500; }
.legal code { font-size: 0.9375em; color: var(--amber); }

.updated {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.note {
  background: var(--panel);
  border-left: 2px solid var(--coral);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--muted);
  max-width: 68ch;
}

.note b { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */

footer {
  border-top: 2px solid var(--coral);
  padding: 2.25rem 0 3.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--muted);
}

footer .wrap > div { max-width: 68ch; }
footer b { color: var(--ink); font-weight: 500; letter-spacing: 0.12em; }
footer a { color: var(--muted); }
footer a:hover { color: var(--coral); }

footer .legal-row { margin-top: 1rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- A11y ---------- */

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

.skip { position: absolute; left: -9999px; font-size: 0.875rem; font-weight: 500; }
.skip:focus {
  left: 1.5rem; top: 1rem; background: var(--coral); color: #fff;
  padding: 0.5rem 0.875rem; z-index: 10; text-decoration: none; border-radius: 4px;
}

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

@media (max-width: 40rem) {
  .masthead-inner { flex-direction: column; gap: 1rem; }
  nav.primary { padding-top: 0; gap: 1.25rem; }
  .wordmark { font-size: 1.625rem; }
  main { padding: 2.5rem 0 3.5rem; }
  h2 { margin-top: 2.5rem; }
}
