/* Minimal, classy base styles for Oddslab */
:root {
  --bg: #fafafa;
  --text: #111111;
  --muted: #666666;
  --line: #eaeaea;
  --brand: #111111;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --line: #22252b;
    --brand: #f5f5f7;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  min-height: 100svh;           /* fill the viewport, even on mobile */
  display: flex;
  flex-direction: column;
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

main {                          /* takes up the leftover space */
  flex: 1 0 auto;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  z-index: 10;
  background: white;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
/* Brand link lays out icon + wordmark cleanly */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand);
  text-decoration: none;
}
/* Icon: crisper box, smoother hover, no baseline gap */
.ol-icon{
  --icon: 22px;
  width: var(--icon); height: var(--icon);
  display: block;                /* removes inline-img baseline gap */
  border-radius: 8px;            /* a touch rounder feels modern */
  flex: 0 0 var(--icon);
  box-shadow: 0 1px 0 rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.brand:hover .ol-icon { 
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
/* Optional: stronger keyboard focus on the whole brand link */
.brand:focus-visible {
  outline: 2px solid #5b9dff;
  outline-offset: 3px;
  border-radius: 10px;
}
.topnav a {
  display: inline-block;
  margin-left: 18px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.topnav a:hover { border-color: var(--line); }
.topnav a.active {
  font-weight: 700;
  border-color: var(--text);
}

/* Main */
main.container { padding: 28px 16px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; /* margin-top: 24px; */ }
.lede { color: var(--muted); margin-top: 6px; }

ul { padding-left: 18px; }
li + li { margin-top: 6px; }

.callout {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 92%, #8aa9ff 8%);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 36px;
  background: white;
}
.site-footer small { color: var(--muted); }

/* Homepage */
.hero.-plain{
  min-height: clamp(360px, 54vh, 560px);
  display:flex; align-items:center;
  background: transparent; /* keeps your #fafafa body */
}
.hero-inner{ max-width: 720px; }
.hero.-plain h1{ font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem); }
.hero.-plain .lede{ margin-top: 6px; max-width: 60ch; }

/* simple primary button that works on #fafafa */
.btn{
  display:inline-block;
  margin-top:14px;
  padding:10px 14px;
  border-radius:10px;
  background:#111; color:#fff;
  text-decoration:none; font-weight:600;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:hover{ opacity:.9; transform: translateY(-1px); }
.btn:focus-visible{ outline:2px solid #5b9dff; outline-offset:3px; }