/* Dragon Sculpting — shared dovahcin theme (black + neon green).
   Matches thaxil.dovahcin.com: pitch black, neon-green accents, rune wordmark glow. */

:root {
  --bg: #000;
  --panel: #070b07;
  --panel-hover: #0b120b;
  --neon: #39ff14;
  --neon-soft: rgba(57, 255, 20, 0.55);
  --rune-fill: #dcffe4;
  --text: #d6e6d8;
  --text-dim: #7f927f;
  --hair: rgba(57, 255, 20, 0.18);
  --maxw: 760px;
  --gap: 1.5rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* --- wordmark: rune-fill + 4-layer neon-green glow (locked spec) --- */
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rune-fill);
  text-shadow:
    0 0 4px rgba(57, 255, 20, 0.9),
    0 0 11px rgba(57, 255, 20, 0.7),
    0 0 19px rgba(57, 255, 20, 0.5),
    0 0 40px rgba(57, 255, 20, 0.35);
  line-height: 1.1;
  margin: 0;
}

.logo {
  display: block;
  margin: 0 auto 0.75rem;
  width: clamp(140px, 40vw, 200px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(57, 255, 20, 0.35));
}

.home .wordmark { font-size: clamp(2.1rem, 8vw, 3.4rem); text-align: center; }

.tagline {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  margin: 0.75rem 0 0;
  font-size: 1.02rem;
}

/* rune subtitle slot — populated from the Thaxil glyph set once exported */
.rune-sub {
  color: var(--rune-fill);
  text-shadow: 0 0 6px var(--neon-soft), 0 0 14px rgba(57, 255, 20, 0.4);
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  min-height: 1em;
}

/* --- section headers with ✦ marker --- */
h2.section {
  font-family: var(--serif);
  color: var(--neon);
  font-size: 1.5rem;
  margin: 2.75rem 0 0.5rem;
  letter-spacing: 0.02em;
}
h2.section::before { content: "✦ "; color: var(--neon); opacity: 0.85; }

h3 {
  font-family: var(--serif);
  color: var(--rune-fill);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.4rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 2.5rem 0;
}

a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; text-shadow: 0 0 8px var(--neon-soft); }

p { margin: 0.6rem 0; }
strong { color: var(--rune-fill); }
small { color: var(--text-dim); }

ul, ol { padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

/* --- hub craft grid --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 2.75rem;
}
@media (min-width: 620px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.5rem;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  position: relative;
}
a.card:hover {
  background: var(--panel-hover);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon-soft), 0 0 24px rgba(57, 255, 20, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

.card .glyph { font-size: 1.9rem; line-height: 1; }
.card h3 { margin: 0.5rem 0 0.15rem; color: var(--rune-fill); }
.card p { margin: 0.35rem 0 0; color: var(--text-dim); font-size: 0.95rem; }

.badge {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.badge.live { color: var(--bg); background: var(--neon); font-weight: 700; }
.badge.soon { color: var(--text-dim); border: 1px solid var(--hair); }

.card.disabled { opacity: 0.72; cursor: default; }

/* --- learning-plan content --- */
.back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.phase {
  border-left: 2px solid var(--hair);
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin: 1.25rem 0;
}
.phase .est { color: var(--neon); font-size: 0.85rem; letter-spacing: 0.03em; }

.resource {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0.6rem 0;
}
.resource .why { display: block; color: var(--text-dim); font-size: 0.9rem; margin-top: 0.15rem; }

.callout {
  border: 1px solid var(--neon-soft);
  background: rgba(57, 255, 20, 0.05);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--neon); font-family: var(--serif); font-weight: 600; }
td:last-child { color: var(--text-dim); }

.coming {
  text-align: center;
  padding: 4rem 1rem;
}
.coming .glyph { font-size: 3rem; }

footer {
  border-top: 1px solid var(--hair);
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
footer .neon { color: var(--neon); }
