/* Tirawen portal. Dark ground, silver line work, warm filament accent (shared with the
   Eureka lab aesthetic). The globe and footage carry the colour. */

:root {
  --ink: #0a0a0b;
  --ink-raised: #131316;
  --ink-card: #17171b;
  --silver: #e8e6e1;
  --silver-dim: #9a978f;
  --line: #2c2c31;
  --filament: #f0a84b;
  --filament-soft: rgba(240, 168, 75, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--silver);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

h1, h2, h3, .brand-name, .hero-title { font-family: "Cormorant Garamond", Georgia, serif; }
a { color: var(--filament); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.brand:hover { text-decoration: none; }
.brand-name { color: var(--silver); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em; }
.site-header nav { display: flex; gap: 1.6rem; }
.site-header nav a {
  color: var(--silver-dim);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--filament); text-decoration: none; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, var(--filament-soft), transparent 70%),
    var(--ink);
}
.hero-globe {
  width: min(380px, 78vw);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 45px rgba(240, 168, 75, 0.22));
}
.hero-title {
  margin-top: 1.6rem;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver);
}
.tagline {
  margin: 0.6rem auto 0;
  max-width: 34rem;
  font-size: 1.18rem;
  color: var(--silver-dim);
}
.hero-cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--filament);
  border-radius: 2rem;
  color: var(--filament);
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: var(--filament); color: var(--ink); text-decoration: none; }
.cta-arrow { display: inline-block; transition: transform 0.2s; }
.hero-cta:hover .cta-arrow { transform: translateX(3px); }

/* ---- section headings ---- */
section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  color: var(--silver);
}
.rule { flex: 0 1 110px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
section h2 .rule:last-child { background: linear-gradient(270deg, transparent, var(--line)); }

.lede {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--silver-dim);
}

/* ---- world ---- */
.world { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }

.montage { margin: 0 auto 3rem; max-width: 900px; }
.montage video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
  display: block;
}
figcaption {
  text-align: center;
  color: var(--silver-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.7rem;
}

.worldmap { margin: 0 auto; }
.worldmap img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

/* ---- systems (deep dives) ---- */
.systems { padding: 4rem 1.5rem; max-width: 880px; margin: 0 auto; }
.dive {
  margin: 0 auto 2.5rem;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  scroll-margin-top: 5rem;
}
.dive:last-of-type { margin-bottom: 0; }
.dive-head { margin-bottom: 1rem; }
.dive-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--filament);
  border: 1px solid #6b4a1e;
  background: var(--filament-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
}
.dive-head h3 { font-size: 1.85rem; font-weight: 600; color: var(--silver); line-height: 1.15; }
.dive-hook { font-size: 1.07rem; color: var(--silver); margin-bottom: 1.5rem; }
.dive-how { border-left: 2px solid var(--filament); padding-left: 1.25rem; }
.dive-how h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--filament);
  margin-bottom: 0.55rem;
}
.dive-how > p { color: var(--silver-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.dive-facts { list-style: none; display: grid; gap: 0.6rem; }
.dive-facts li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--silver-dim);
  font-size: 0.87rem;
  line-height: 1.5;
}
.dive-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--filament);
}

/* ---- built with ---- */
.stack { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.stack-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
}
.stack-card:hover { border-color: var(--filament); }
.stack-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--silver); }
.stack-card p { margin-top: 0.35rem; color: var(--silver-dim); font-size: 0.85rem; }

/* ---- about ---- */
.about { padding: 4rem 2rem 5rem; max-width: 46rem; margin: 0 auto; }
.about p { color: var(--silver-dim); margin-bottom: 1.1rem; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--silver-dim);
  font-size: 0.85rem;
}
.footer-fine { margin-top: 0.4rem; font-size: 0.75rem; color: #6a675f; }

/* ---- small screens ---- */
@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 0.7rem; }
  section h2 { font-size: 1.5rem; }
}
