/* Sintaxis Humana: provisional landing page. Palette and type follow the channel's visual
   line: soft black, electric blue (technology), crimson (the human side), white, warm gray.
   Fonts are self-hosted (OFL.txt next to each file), so no request leaves the site. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('vendor/fonts/inter-5.3.0/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  src: url('vendor/fonts/lora-5.3.0/lora-latin-wght-italic.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --surface: #111111;
  --line: #262626;
  --white: #ffffff;
  --gray: #9ca3af; /* 7.9:1 on --black */
  --blue: #3b7dd8; /* 4.8:1 on --black: text and lines */
  --crimson: #c41e3a; /* 3.4:1 on --black: accents and large shapes only, never small text */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --radius: 10px;
}

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

html {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* One screen: everything fits in the viewport on most devices, centered over a quiet,
   static field of connected points (the channel's "lines that connect points" motif). */
body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}
/* The animated network (background.js) replaces the static drawing when scripts run. */
.network {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.has-network .hero-art {
  display: none;
}
/* A soft shade behind the text keeps it readable over the moving lines. */
.screen::before {
  content: '';
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0));
  pointer-events: none;
}
@media (min-width: 900px) {
  .screen::before {
    inset: 0 -14%;
  }
}
.hero-art {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.screen {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding: 32px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(16px, 3vh, 28px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.brand svg {
  width: 28px;
  height: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, min(9vw, 11vh), 5.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
h1 .accent {
  color: var(--blue);
}

.tagline {
  margin: clamp(12px, 2.5vh, 20px) 0 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  color: var(--gray);
}

.question {
  margin: clamp(20px, 4vh, 36px) 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--crimson);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1875rem, 2.8vw, 1.625rem);
  line-height: 1.35;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: clamp(28px, 5vh, 48px);
}
.link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.link.human {
  border-left-color: var(--crimson);
}
.link:hover {
  background: #171717;
  border-color: #3a3a3a;
}
.link.human:hover {
  border-left-color: var(--crimson);
}
.link.tech:hover {
  border-left-color: var(--blue);
}
.link-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.link-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.link-title::after {
  content: ' →';
  color: var(--blue);
}
.link.human .link-title::after {
  color: var(--gray);
}

footer {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 16px 0 24px;
  font-size: 0.8125rem;
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
