/* ============================================================
   ELIXUS holding site. Light only, one swap point for the rebrand.
   Logo = the existing 2025 lockup (teal mark #1497a9 + ink wordmark).
   Teal owns interaction; neutrals are tinted toward it.
   Type: Familjen Grotesk (display) + Atkinson Hyperlegible Next
   (body). Both OFL, self-hosted.
   ============================================================ */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/familjen-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: oklch(0.985 0.004 210);
  --ink: oklch(0.23 0.018 225);
  --ink-soft: oklch(0.36 0.016 225);
  --muted: oklch(0.49 0.014 225);
  --hairline: oklch(0.885 0.008 215);
  --accent: #1497a9;
  --accent-strong: #0c6f7d;
  --display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklch, var(--accent) 25%, transparent); }

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 16px; }
.skip:focus { left: 16px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Holding page ---------- */
.hold {
  display: grid;
  place-items: center;
  padding: 96px 24px 72px;
}
.hold-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 700ms var(--ease-out) both;
}
.hold-logo { width: clamp(260px, 52vw, 560px); }
.hold h1 {
  margin: clamp(48px, 7vw, 72px) 0 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.hold p {
  margin: 14px 0 0;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 18px;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Inner pages ---------- */
.site-header { padding: 28px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo-link { display: block; width: 148px; }
.header-link { font-weight: 600; text-decoration: none; }

.prose { max-width: 68ch; padding: 48px 0 96px; }
.prose h1 { margin: 0; font-size: clamp(34px, 5vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.prose h2 { margin: 48px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 16px 0 0; }
.prose ul { margin: 16px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose .updated { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.legal p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 64ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal p + .footer-links { margin-top: 12px; }
.grant-badge { display: block; width: 200px; opacity: 0.85; transition: opacity 160ms ease; }
.grant-badge:hover { opacity: 1; }
@media (min-width: 820px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hold-inner { animation: none; }
  a, .grant-badge { transition: none; }
}
