/* KernelStats teaser — one dark screen, typography-led, no boxes. */

:root {
  --bg: #060b15;
  --bg-top: #0b1526;
  --ink: #f2f5fa;
  --ink-2: #b7c3d6;
  --ink-3: #8e9db5;
  --ink-4: #7d8ba3;
  --accent: #40b7e6;
  --accent-2: #8fd6f5;
  --rule: rgba(255, 255, 255, 0.14);
  --serif: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 58%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(64, 183, 230, 0.35);
  color: #fff;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vh, 44px) var(--gutter) clamp(20px, 3.5vh, 36px);
}

/* Signature motion: lives behind the page content, sized to the whole page. */
.kde {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: -1;
}

/* Masthead — the lockup is the page's h1. */
.brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
  line-height: 1;
}

.brand-icon {
  width: clamp(44px, 3.6vw, 52px);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

.brand-word {
  height: clamp(21px, 1.75vw, 25px);
  width: auto;
  aspect-ratio: 768 / 104;
  display: block;
  margin-top: 1px;
}

/* Hero — the statement. */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62rem;
  padding-block: clamp(40px, 9vh, 104px);
}

.hero > * { margin: 0; }

.tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.3vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.descriptor {
  margin-top: clamp(1.25rem, 2.6vh, 1.75rem);
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: 0.002em;
  text-wrap: pretty;
}

.descriptor .quiet { color: var(--ink-3); }

.principle {
  position: relative;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* Portrait: reserve room under the hero so the density has a band of its own above the colophon. */
@media (max-width: 759px) {
  .hero { padding-bottom: max(200px, 26svh); }
}

.principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--rule);
}

.contact {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  font-size: 1.0625rem;
  font-weight: 500;
}

a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(143, 214, 245, 0.4);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover { color: #fff; text-decoration-color: var(--accent-2); }

a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.contact a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
}

.contact .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact a:hover .arrow { transform: translateX(4px); }

/* Colophon — small print under a hairline. */
.colophon {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1rem, 2.4vh, 1.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 2.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.colophon p { margin: 0; text-wrap: pretty; }

.colophon a {
  color: var(--ink-2);
  text-decoration-color: rgba(183, 195, 214, 0.35);
}

.colophon a:hover { color: #fff; text-decoration-color: #fff; }

.legal {
  color: var(--ink-4);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding-top: 0.35rem;
}

@media (min-width: 900px) {
  .colophon {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 2.5rem;
  }
  .status { max-width: 44rem; }
  .creator { max-width: 26rem; }
  .legal { text-align: right; padding-top: 0.1rem; white-space: nowrap; }
  .colophon--solo { grid-template-columns: 1fr; }
  .colophon--solo .legal { text-align: left; }
}

/* 404 variant */
.notice {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  a, .contact .arrow { transition: none; }
  .contact a:hover .arrow { transform: none; }
}

@media print {
  .kde { display: none; }
  body { background: #fff; color: #000; }
}
