/* deathstrand.ing — hand-edited stylesheet. No external resources. */

:root {
  color-scheme: dark light;

  --bg: #0b0f14;
  --bg-alt: #10161d;
  --surface: #151c25;
  --surface-hover: #1a232e;
  --border: #253040;
  --text: #dde3ea;
  --muted: #a3adb9;
  --faint: #6f7a87;
  --accent: #5fb3c7;
  --accent-strong: #8ad0e0;
  --accent-ink: #06161b;
  --hero-top: #0d131b;
  --hero-bottom: #0b0f14;
  --ridge-far: #182230;
  --ridge-mid: #121a24;
  --ridge-near: #0d1218;

  --radius: 14px;
  --gutter: 16px;
  --measure: 40rem;
  --wide: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f7;
    --bg-alt: #e9edf1;
    --surface: #ffffff;
    --surface-hover: #f6f9fb;
    --border: #d3dae2;
    --text: #15202b;
    --muted: #4a5664;
    --faint: #6b7784;
    --accent: #0c6c83;
    --accent-strong: #0a5a6d;
    --accent-ink: #ffffff;
    --hero-top: #dfe7ee;
    --hero-bottom: #f3f5f7;
    --ridge-far: #c6d1dc;
    --ridge-mid: #d5dee6;
    --ridge-near: #e4eaf0;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

em { font-style: normal; color: var(--accent); }

svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: var(--measure); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; z-index: 100; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.5rem; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1rem; min-height: 3.5rem; padding-block: 0.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding-block: 0.25rem;
  color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; }

nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0 0.25rem;
}
nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0.5rem 0.75rem;
  color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 8px;
}
nav a:hover { color: var(--text); background: var(--surface); }

/* Hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
}
.ridge-far { fill: var(--ridge-far); }
.ridge-mid { fill: var(--ridge-mid); }
.ridge-near { fill: var(--ridge-near); }

.hero-body {
  padding-block: clamp(4rem, 6vw + 2rem, 8rem) clamp(3rem, 5vw + 1.5rem, 6rem);
  max-width: var(--wide);
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 5vw, 4.5rem);
  font-weight: 700; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.tagline {
  max-width: 34rem; margin: 1rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.6rem 1.25rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }

/* Sections */

.section { padding-block: clamp(3rem, 4vw + 1.5rem, 5.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section .narrow p { color: var(--muted); }

/* Cards */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.card {
  display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
  padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.card:hover { border-color: var(--accent); background: var(--surface-hover); color: var(--text); transform: translateY(-2px); }
.card-icon { width: 2.25rem; height: 2.25rem; color: var(--accent); margin-bottom: 0.25rem; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card-more {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}

/* Field log */

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.log li {
  display: grid; gap: 0.25rem 1.5rem;
  grid-template-columns: 1fr;
  padding-left: 1.25rem; border-left: 2px solid var(--border);
}
@media (min-width: 560px) { .log li { grid-template-columns: 7rem 1fr; } }
.log time {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); padding-top: 0.3rem;
}
.log h3 { margin-bottom: 0.25rem; }
.log p { color: var(--muted); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem; color: var(--faint);
}
.footer-brand { font-weight: 650; color: var(--text); margin-bottom: 0.75rem; }
.footer-note { max-width: var(--measure); }
.footer-meta { margin-top: 1rem; }

/* Motion */

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
@keyframes strand-flow {
  to { stroke-dashoffset: -64; }
}
.strand .node circle:last-child { animation: node-pulse 4s ease-in-out infinite; }
.strand .node:nth-child(3) circle:last-child { animation-delay: 1s; }
.strand .node:nth-child(4) circle:last-child { animation-delay: 2s; }
.strand-line { animation: strand-flow 12s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* On narrow screens the hero art is cropped to its middle; keep the strand
   from competing with the text that sits over it. */
@media (max-width: 639px) {
  .strand { opacity: 0.4; }
}
