/* The Celestial Forge, shared styles.
   Edit colours and spacing here. Every page links to this one file,
   so a change here updates the whole site. No em dashes in copy. */

:root {
  --bg: #0a0a1a;
  --bg-2: #12122e;
  --bg-3: #1b1440;
  --card: #151530;
  --card-2: #1c1c3d;
  --ink: #f2efff;
  --ink-2: #c9c2ee;
  --muted: #9d94c9;
  --line: #2e2a5e;
  --accent: #8f7bff;
  --accent-2: #ffd166;
  --accent-3: #7dd3fc;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 1.05rem;
}

a { color: var(--accent-3); }
a:hover { color: var(--accent-2); }

/* Star canvas sits behind everything. See js/main.js. */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header and nav, shared on every page. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 20px 0 8px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  font-family: "Alegreya Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Header actions: the Hire me button (always visible) and the
   mobile menu toggle (phone only, hidden on desktop). */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.btn:hover { background: #7a66f0; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

/* Hero */
.hero { padding: 48px 0 32px; max-width: 760px; }
.hero h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 16px;
}
.hero p { color: var(--ink-2); font-size: 1.15rem; }
.kicker {
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 28px 0; }
h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.section-intro { color: var(--ink-2); max-width: 680px; margin: 0 0 24px; }

/* Lane grid. All lane cards share the same size, so no lane dominates. */
.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lane-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lane-card:hover { border-color: var(--accent); }

.lane-card img,
.lane-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-3);
}

.lane-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.lane-body h3 { margin: 0 0 6px; font-size: 1.2rem; }
.lane-body p { margin: 0 0 14px; color: var(--ink-2); flex: 1; }
.lane-body a { font-weight: 700; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

/* Currently in the Forge */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-body { padding: 16px 18px; }
.feature-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature-body p { margin: 0 0 10px; color: var(--ink-2); }
.status { font-size: 0.88rem; color: var(--accent-2); }

/* Plain content pages */
.page-intro { max-width: 720px; color: var(--ink-2); }
.page-intro p { margin: 0 0 14px; }
.todo {
  background: #241d0a;
  border: 1px solid #6b5518;
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffe9a8;
  font-size: 0.98rem;
}
.back-link { display: inline-block; margin-top: 24px; }

/* Services stub */
.price-list { list-style: none; margin: 0 0 20px; padding: 0; }
.price-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
}
.price-list strong { font-size: 1.05rem; }

/* Footer, simple. No location, no guiding-objective quote. */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .site-nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 28px; }
}

/* Hybrid visual direction, Dec 2026.
   Card art: dark celestial CSS background, central pixel art or screenshot.
   Pixel art keeps crisp edges. Original PNGs are not modified. */
.lane-card img, .feature img {
  image-rendering: pixelated;
  background:
    radial-gradient(circle at 50% 35%, rgba(125,211,252,0.22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(143,123,255,0.25), transparent 50%),
    linear-gradient(180deg, #12122e, #070512);
}
.lane-card, .feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lane-card:hover, .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(125,211,252,0.45), 0 12px 30px rgba(0,0,0,0.45);
}
