/* =========================================================
   HRNS · base.css
   Resets, typography primitives, layout helpers, topbar, footer.
   Import after tokens.css.
   ========================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg-0);
  color: var(--fg-0);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  background-position: -1px -1px, -1px -1px;
}

h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; color: var(--fg-1); }
.mono, code { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: -0.01em; }
a { color: var(--fg-0); text-decoration: none; }

/* Layout */
.page { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--line-0); width: 100%; }
.rule-dotted {
  height: 1px; width: 100%;
  background-image: linear-gradient(90deg, var(--line-1) 50%, transparent 0);
  background-size: 6px 1px; background-repeat: repeat-x;
}
.spacer { flex: 1; }

.pad { padding: 96px 0; border-top: 1px solid var(--line-0); }
.pad-sm { padding: 64px 0; border-top: 1px solid var(--line-0); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 10px oklch(0.82 0.16 220 / 0.7);
}

/* Section head */
.section-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: 13px; font-family: var(--f-mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
  font-weight: 500;
}
.section-head .kicker { max-width: 760px; }
.section-head .kicker .big {
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.028em;
  font-weight: 500; line-height: 1.05; text-wrap: balance;
  margin-bottom: 14px;
}
.section-head .kicker .big .dim { color: var(--fg-3); }
.section-head .kicker p { font-size: 16px; color: var(--fg-1); line-height: 1.55; max-width: 620px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: oklch(0.16 0.012 255 / 0.7);
  border-bottom: 1px solid var(--line-0);
}
.topbar-row {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px; max-width: 1280px; margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 22px; height: 22px; position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
}
.logo-mark::before,
.logo-mark::after { content: ''; position: absolute; background: var(--accent); }
.logo-mark::before { width: 10px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.logo-mark::after  { width: 2px; height: 10px; top: 50%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 12px var(--accent); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--fg-1); }
.nav a:hover { color: var(--fg-0); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line-0); padding: 64px 0 48px;
  font-family: var(--f-mono); font-size: 12px; color: var(--fg-2);
}
footer.site .grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px;
}
footer.site h4 {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500; margin-bottom: 12px;
}
footer.site a { display: block; padding: 4px 0; color: var(--fg-1); }
footer.site a:hover { color: var(--fg-0); }
.colophon {
  margin-top: 48px; padding-top: 20px; border-top: 1px dashed var(--line-0);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Motion */
.rise { animation: rise 600ms var(--ease) both; }
.rise.d1 { animation-delay: 60ms; }
.rise.d2 { animation-delay: 120ms; }
.rise.d3 { animation-delay: 180ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .col-4, .col-6, .col-8 { grid-column: span 12; }
  footer.site .grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
