/* ============================================================
   JTS Workshop — Global Styles
   ============================================================ */

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

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface-2: #21262d;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #58a6ff;
  --accent-h:  #79c0ff;
  --gold:      #d4a017;
  --gold-h:    #e8b84a;
  --green:     #3fb950;
  --red:       #f85149;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; }

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 58px;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: #0d1117;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

.btn-gold {
  background: var(--gold);
  color: #0d1117;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-h);
  border-color: var(--gold-h);
  color: #0d1117;
}

/* ============================================================
   Tags / Badges
   ============================================================ */

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.25);
}

.tag-gold {
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
  border-color: rgba(212, 160, 23, 0.3);
}

.tag-green {
  background: rgba(63, 185, 80, 0.1);
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.25);
}

/* ============================================================
   Origin Story Section
   ============================================================ */

.story-section {
  padding: 4.5rem 2rem;
  background: var(--bg);
}

.story-inner {
  max-width: 680px;
  margin: 0 auto;
}

.story-inner p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.story-inner p em {
  color: var(--text);
  font-style: italic;
}

.story-close {
  color: var(--text) !important;
  font-weight: 500;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ============================================================
   Homepage — Hero
   ============================================================ */

.hero {
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88, 166, 255, 0.07) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 20px;
  background: rgba(88, 166, 255, 0.06);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero h1 .highlight { color: var(--gold); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Sections
   ============================================================ */

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

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Card Grid
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: 1rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   D&D / Westmarch Section on Homepage
   ============================================================ */

.dnd-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212, 160, 23, 0.06) 0%, transparent 70%),
    #0a0700;
  border-top: 1px solid #2a1f00;
  border-bottom: 1px solid #2a1f00;
}

.dnd-band .section h2 { color: var(--gold); }
.dnd-band .section-label { color: var(--gold); }
.dnd-band .section-sub { color: #a08040; }

.dnd-card {
  background: #100c00;
  border: 1px solid #3a2800;
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
}

.dnd-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.dnd-card h3 { color: var(--gold); }
.dnd-card p  { color: #a08040; }

/* ============================================================
   Page Header (inner pages)
   ============================================================ */

.page-header {
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(88, 166, 255, 0.05) 0%, transparent 70%),
    var(--bg);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   About / Profile Styles
   ============================================================ */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}

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

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #1f6feb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.profile-avatar.jt-avatar {
  background: linear-gradient(135deg, var(--gold) 0%, #c87a00 100%);
}

.profile-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.profile-title {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.profile-section {
  margin-bottom: 1.5rem;
}

.profile-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.profile-section p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.profile-section p.filled { color: var(--text); }

.profile-placeholder-card {
  border-style: dashed;
  border-color: var(--border);
  opacity: 0.85;
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.experience-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:last-child { border-bottom: none; }

.experience-item .exp-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
  gap: 1rem;
}

.experience-item .exp-role {
  font-weight: 600;
  font-size: 0.9rem;
}

.experience-item .exp-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.experience-item .exp-company {
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ============================================================
   Westmarch Page Styles
   ============================================================ */

body.westmarch-page {
  background: #08060a;
}

body.westmarch-page .site-nav {
  background: rgba(8, 6, 10, 0.95);
  border-bottom-color: #2a1f0a;
}

.wm-hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212, 160, 23, 0.1) 0%, transparent 70%),
    #08060a;
  border-bottom: 1px solid #2a1f0a;
}

.wm-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.wm-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 60px rgba(212, 160, 23, 0.35);
}

.wm-subtitle {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #a08040;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-style: italic;
  line-height: 1.7;
}

.wm-ornament {
  font-size: 1.2rem;
  color: #5a3e10;
  letter-spacing: 1rem;
}

.wm-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.wm-lore {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.wm-lore h2 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.wm-lore p {
  color: #a08040;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.wm-hr {
  border: none;
  text-align: center;
  color: #3a2800;
  font-size: 1.1rem;
  letter-spacing: 0.8rem;
  margin: 2.5rem 0;
}

.wm-hr::before { content: '— ✦ —'; }

.wm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.wm-quote {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #2a1f0a;
}

.wm-quote p {
  font-family: Georgia, serif;
  font-style: italic;
  color: #7a5c20;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 0.5rem;
}

.wm-quote cite {
  font-size: 0.78rem;
  color: #4a3010;
  font-style: normal;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer p + p { margin-top: 0.4rem; }

body.westmarch-page .site-footer {
  background: #100c00;
  border-top-color: #2a1f0a;
}

body.westmarch-page .site-footer a { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .wm-hero { padding: 4rem 1.25rem 3.5rem; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 1rem; }
  .nav-links { gap: 0.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
