/* What every page on the site wears: the colours and fonts, the buttons, the bar across the top,
   the back strip and the footer. The pages add leo.css; the library and legal pages add site.css.
   The design is Ian Mirels's (November 2026). Light only: the photographs are drawn for a white page. */

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.239318 0.025646 251.2863);
  --card: oklch(1 0 0);
  --primary: oklch(0.463738 0.204828 266.239);
  --primary-foreground: oklch(1 0 0);
  --muted: oklch(0.97155 0.004097 121.5604);
  --muted-foreground: oklch(0.445303 0.02695 254.5487);
  --accent: oklch(0.935267 0.023595 272.8163);
  --accent-foreground: oklch(0.463738 0.204828 266.239);
  --border: oklch(0.9 0.027 267);
  --input: oklch(0.832422 0.026816 276.3332);
  --ring: oklch(0.463738 0.204828 266.239);
  --brand-soft: oklch(0.935267 0.023595 272.8163);
  --brand-deep: oklch(0.38 0.175 266.239);
  --secondary: oklch(0.935267 0.023595 272.8163);
  --secondary-foreground: oklch(0.463738 0.204828 266.239);
  --highlight-stroke: oklch(0.79 0.12 215);
  --site-content-width: 1184px;
  --warm: oklch(0.97155 0.004097 121.5604);
  --warning: oklch(0.53 0.115 70);
  --warning-soft: oklch(0.97 0.035 85);
  --success: oklch(0.45 0.12 150);
  --success-soft: oklch(0.96 0.035 150);
  --surface-soft: oklch(0.982 0.009 267);
  --shadow-float: 0 18px 55px oklch(0.38 0.12 266 / 0.1);
  --shadow-soft: 0 4px 16px oklch(0.38 0.12 266 / 0.055);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

.container-site { width: min(var(--site-content-width), calc(100% - 64px)); margin-inline: auto; }

/* ---------- buttons ---------- */

.btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; margin: 0; padding: 8px 16px; border: 0; border-radius: calc(var(--radius) - 2px); background: none; color: inherit; font: 500 14px/20px var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn-default { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-default:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn-hero { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-hero:hover { background: var(--brand-deep); }
.btn-outline { border: 1px solid var(--input); background: var(--background); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-outline:hover, .btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-inverse { background: var(--background); color: var(--brand-deep); }
.btn-inverse:hover { background: var(--brand-soft); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, transparent); }
.btn-link { color: var(--primary); text-underline-offset: 4px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { height: 32px; padding-inline: 12px; font-size: 12px; line-height: 16px; }
.btn-lg { height: 48px; padding-inline: 24px; }
.btn-icon { width: 36px; padding: 0; }

/* ---------- the bar across the top ---------- */

.site-header, .site-header *, .back-navigation, .back-navigation *, .footer, .footer * { box-sizing: border-box; }
.site-header, .back-navigation, .footer { font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.site-header a, .back-navigation a, .footer a { text-decoration: none; }
.site-header { position: relative; z-index: 20; display: flex; align-items: center; height: 72px; border-bottom: 1px solid var(--border); background: var(--background); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--foreground); font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.brand-dot { color: var(--primary); }
.leo-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; color: var(--primary); }
.leo-mark-image { display: block; width: 30px; height: 30px; object-fit: contain; }
.website-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 9px 10px; border-radius: 5px; color: var(--foreground); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nav-link:hover, .nav-link[data-active="true"] { color: var(--primary); }
.website-nav .nav-link[data-active="true"] { background: var(--brand-soft); }
.website-header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; }
.mobile-nav-toggle[aria-expanded="false"] svg:last-child, .mobile-nav-toggle[aria-expanded="true"] svg:first-child { display: none; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-bottom: 1px solid var(--border); background: var(--background); }
.mobile-menu[hidden] { display: none; }
.website-mobile-links { display: flex; flex-direction: column; gap: 3px; }
.mobile-menu-actions { display: flex; gap: 12px; }
.mobile-menu-actions .btn { flex: 1; }

@media (max-width: 1150px) {
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .container-site { width: calc(100% - 40px); }
  .site-header { height: 64px; }
  .brand { font-size: 20px; gap: 5px; }
  .leo-mark { width: 30px; height: 30px; }
  .website-header-actions { gap: 6px; }
  .website-header-signup { padding-inline: 12px; font-size: 11px; }
  .website-login { padding-inline: 8px; font-size: 11px; }
  .mobile-menu { max-height: calc(100dvh - 64px); overflow: auto; }
}
@media (max-width: 380px) {
  .site-header .container-site { width: calc(100% - 24px); gap: 6px; }
  .site-header .brand { font-size: 17px; gap: 4px; }
  .site-header .leo-mark { width: 24px; height: 24px; }
  .website-header-actions { gap: 4px; }
  .website-header-signup { padding-inline: 7px; font-size: 10px; }
  .website-login { padding-inline: 6px; font-size: 10px; }
  .mobile-nav-toggle { width: 30px; height: 32px; }
}

/* ---------- the strip that takes you back ---------- */

.back-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.back-navigation a { min-height: 40px; padding-inline: 12px; font-size: 17px; line-height: 1.3; }
.back-navigation a svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .back-navigation a { font-size: 18px; } }
.back-link { color: var(--primary); }
.back-home { color: var(--muted-foreground); }

/* ---------- the footer ---------- */
/* Ian's v3 footer: the brand, three columns of links, and the company line with a way to write. */

.footer { padding: 30px 0 20px; border-top: 1px solid var(--border); background: var(--surface-soft); color: var(--muted-foreground); }
.footer h2 { margin: 0; font-family: var(--font-display); }
.footer p { margin: 0; }
.footer-brand .brand { font-size: 29px; }
.footer-brand p { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.footer-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.footer-navigation > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-navigation h2 { margin-bottom: 2px; color: var(--foreground); font-size: 14px; font-weight: 800; }
.footer-navigation a { color: var(--muted-foreground); font-size: 14px; line-height: 1.4; }
.footer-navigation a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted-foreground); font-size: 12px; line-height: 1.6; }
.footer-social { display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) {
  .footer > .container-site { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); column-gap: 50px; }
  .footer-navigation { margin-top: 0; }
  .footer-bottom { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer { padding: 22px 0 18px; }
  .footer-navigation { gap: 14px; margin-top: 20px; }
  .footer-navigation h2, .footer-navigation a { font-size: 12px; }
  .footer-navigation > div { gap: 9px; }
  .footer-bottom { gap: 10px; margin-top: 20px; padding-top: 12px; }
  .footer-bottom p { font-size: 11px; }
}
@media (max-width: 359px) {
  .footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
