/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --void: #0e0b12;
  --void-raised: #16121b;
  --ember: #c4432b;
  --ember-bright: #e8672f;
  --twitch: #9146ff;
  --bone: #ede3d3;
  --bone-dim: #a89e91;
  --gold: #b08d3f;
  --hairline: rgba(237, 227, 211, 0.12);

  --font-display: "Cinzel", serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-w: 780px;
  --edge: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
}

/* ---------------------------------------------
   Ambient ember glow field (signature element)
--------------------------------------------- */
.ember-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(196, 67, 43, 0.21), transparent 60%),
    radial-gradient(ellipse 50% 30% at 85% 60%, rgba(145, 70, 255, 0.09), transparent 60%);
  animation: ember-breathe 9s ease-in-out infinite;
}

@keyframes ember-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--edge);
  max-width: 1040px;
  margin: 0 auto;
}

.mark {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ember-bright);
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12vh var(--edge) 10vh;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(232, 103, 47, 0.35);
}

.hero-handle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--bone-dim);
  margin: 0 0 28px;
}

.hero-handle span {
  color: var(--ember-bright);
}

.hero-line {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--bone);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
  color: var(--void);
  font-weight: 500;
}

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

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--bone);
}

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

.btn-twitch {
  margin-top: 18px;
  border: 1px solid rgba(145, 70, 255, 0.5);
  color: var(--twitch);
}

.btn-twitch:hover {
  background: rgba(145, 70, 255, 0.12);
}

/* ---------------------------------------------
   About
--------------------------------------------- */
.about {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4vh var(--edge) 10vh;
  border-top: 1px solid var(--hairline);
}

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 6vh auto 0;
}

.about-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  display: block;
}

.about-copy p {
  font-size: 1.02rem;
  color: var(--bone-dim);
  margin: 0 0 18px;
}

.about-copy p:last-of-type {
  margin-bottom: 28px;
}

.hl {
  color: var(--bone);
  font-weight: 500;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.skill-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(176, 141, 63, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ---------------------------------------------
   Section heads (shared)
--------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0;
}

.eyebrow-log { color: var(--ember-bright); }
.eyebrow-stream { color: var(--twitch); }

/* ---------------------------------------------
   Campaign log
--------------------------------------------- */
.log {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 10vh var(--edge);
  border-top: 1px solid var(--hairline);
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log-entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
}

.log-version {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ember-bright);
  border: 1px solid rgba(196, 67, 43, 0.4);
  border-radius: 3px;
  padding: 4px 8px;
  white-space: nowrap;
}

.v-line {
  flex: 1;
  width: 1px;
  background: var(--hairline);
  margin-top: 10px;
}

.log-body {
  padding-bottom: 12px;
}

.log-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.log-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0 0 16px;
}

.log-desc {
  color: var(--bone-dim);
  margin: 0 0 18px;
  max-width: 56ch;
}

.log-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.log-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ---------------------------------------------
   Stream & craft
--------------------------------------------- */
.stream {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 10vh var(--edge);
  border-top: 1px solid var(--hairline);
}

.stream-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.stream-card {
  background: var(--void-raised);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 32px;
}

.stream-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.stream-card p {
  color: var(--bone-dim);
  margin: 0;
}

.handle {
  color: var(--twitch);
  font-family: var(--font-mono);
}

/* ---------------------------------------------
   Gallery
--------------------------------------------- */
.gallery {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.gallery-craft {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-craft .gallery-item {
  aspect-ratio: 3 / 4;
}

.gallery-moments {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-moments .gallery-item {
  aspect-ratio: 4 / 3;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  background: linear-gradient(0deg, rgba(14, 11, 18, 0.92), transparent);
}

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10vh var(--edge) 14vh;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.contact-line {
  color: var(--bone-dim);
  max-width: 480px;
  margin: 0 auto 36px;
}

.contact-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.contact-links a {
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover {
  color: var(--ember-bright);
  border-color: var(--ember-bright);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px var(--edge) 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bone-dim);
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 640px) {
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .log-entry {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.66rem;
  }

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

  .about-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .gallery-craft {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-moments {
    grid-template-columns: 1fr;
  }
}
