:root {
  --ink: #0b0e14;
  --ink-soft: #141926;
  --card: #171d2b;
  --line: #263049;
  --text: #e8edf6;
  --muted: #9aa7bf;
  --lava: #ff6b35;
  --lava-soft: #ffa15c;
  --ice: #8fd3ff;
  --moss: #4fbf9f;
  --max: 74rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.top nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.94rem;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.top nav a:hover {
  color: var(--text);
  border-bottom-color: var(--lava);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lava-soft);
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.4rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.accent { color: var(--lava); }

.lead {
  margin: 0 auto;
  max-width: 44rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

/* ---------- sections ---------- */

section { padding: 4.5rem 0; }

section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.015em;
}

.sub {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 46rem;
}

.prose p { max-width: 46rem; }

.prose p + p { margin-top: 1.1rem; }

.pull {
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--lava);
  background: var(--ink-soft);
  border-radius: 0 10px 10px 0;
  font-size: 1.1rem;
  color: var(--text);
}

.pull span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- facts ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 1.02rem;
}

.big {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ice);
  margin-bottom: 0.15rem;
}

.big-lava { color: var(--lava-soft); }
.big-moss { color: var(--moss); }

/* ---------- timeline ---------- */

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.tl li {
  position: relative;
  padding: 0 0 2.2rem 1.8rem;
}

.tl li::before {
  content: "";
  position: absolute;
  left: -0.48rem;
  top: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--lava);
  border: 2px solid var(--ink);
}

.tl li:last-child { padding-bottom: 0; }

.tl h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
}

.tl time {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lava-soft);
  margin-bottom: 0.35rem;
}

.tl p {
  margin: 0;
  color: var(--muted);
}

/* ---------- tales feed ---------- */

.updated-note {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ice);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feed-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

.feed-item.is-new {
  border-color: rgba(255, 107, 53, 0.55);
}

.feed-item time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.feed-item p { margin: 0; max-width: 46rem; }

.feed-archive { margin-top: 1rem; }

.feed-archive summary {
  cursor: pointer;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ice);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.feed-archive[open] summary { margin-bottom: 1rem; }

.badge-new {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #17110d;
  background: var(--lava-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.disclaimer {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: #6f7c94;
}

/* ---------- 404 ---------- */

.center-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--lava);
  color: #17110d;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--lava-soft); }

@media (max-width: 640px) {
  .top nav { gap: 0.9rem; font-size: 0.86rem; }
  .hero-copy { padding: 3rem 0 2.5rem; }
  section { padding: 3.2rem 0; }
}
