/* Hivora website. Brand colours sampled from the logo; text colours meet WCAG 2.2 AA contrast. */
:root {
  color-scheme: light dark;
  --navy: #103057;
  --blue: #1d7efe;
  --blue-text: #1559c9;
  --teal: #0cc7c3;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --surface: #ffffff;
  --text: #13233d;
  --muted: #4a5a73;
  --border: #d9e2ee;
  --heading: var(--navy);
  --link: var(--blue-text);
  --focus: #1d7efe;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a31;
    --bg-alt: #0f2341;
    --surface: #132a4b;
    --text: #e6edf7;
    --muted: #b3c1d6;
    --border: #24406a;
    --heading: #ffffff;
    --link: #7fb6ff;
    --focus: #7fb6ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--heading); }
.wordmark { font-weight: 800; letter-spacing: .08em; font-size: 1.35rem; color: var(--heading); }
.wordmark.small { font-size: 1rem; margin-right: .4rem; }
.nav-list { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 600; padding: .4rem 0; }
.nav-list a:hover { color: var(--link); text-decoration: underline; }

.hero { background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-art img { width: min(320px, 100%); margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38ch; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; color: var(--heading); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .9rem; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-block; padding: .8rem 1.3rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover { background: #0b2443; }
.button.secondary { border-color: var(--navy); color: var(--heading); }
@media (prefers-color-scheme: dark) {
  .button.primary { background: #ffffff; color: var(--navy); }
  .button.primary:hover { background: #dce8f8; }
  .button.secondary { border-color: #ffffff; }
}

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; border-top: 5px solid var(--blue); }
.card + .card { border-top-color: var(--teal); }
.card p { color: var(--muted); margin: 0; }
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.features.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.features p { color: var(--muted); margin: 0; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.tags li { border: 2px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; color: var(--heading); }
.closing { text-align: center; }
.closing .section-lead { margin-inline: auto; }

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 2rem; }

@media (max-width: 760px) {
  .hero-inner, .pair { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 160px; }
  .nav-list { gap: 1rem; font-size: .95rem; }
}

/* The navy figure in the mark needs a light backdrop on dark backgrounds. */
@media (prefers-color-scheme: dark) {
  .brand img, .hero-art img, .not-found img { background: radial-gradient(circle closest-side, #ffffff 98%, transparent 100%); }
  .brand img { padding: 5px; }
  .hero-art img { padding: 40px; }
  .not-found img { padding: 12px; }
}
