/* ==========================================================================
   DigitalJedi93 — digitaljedi.stream
   Palette from the brand sheet: weathered evergreen, dark iron, parchment,
   antique brass.
   ========================================================================== */

:root {
  /* Brand */
  --green-950: #08170f;
  --green-900: #0f2a21;
  --green-800: #163a2d;
  --green-700: #1e4c3b;
  --iron-900:  #1a1e21;
  --iron-800:  #23282c;
  --iron-700:  #2e3439;
  --parchment: #ede5d2;
  --parchment-2: #f5efe1;
  --brass:     #c0a568;
  --brass-hi:  #e2cd98;
  --ember:     #c8483f;

  /* Roles */
  --bg: var(--green-950);
  --panel: rgba(26, 30, 33, 0.72);
  --panel-solid: var(--iron-800);
  --text: var(--parchment);
  --text-dim: rgba(237, 229, 210, 0.62);
  --rule: rgba(192, 165, 104, 0.28);
  --rule-strong: rgba(192, 165, 104, 0.55);

  /* Type */
  --display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 46rem;
  --radius: 4px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(30, 76, 59, 0.85) 0%, rgba(15, 42, 33, 0) 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(22, 58, 45, 0.7) 0%, rgba(8, 23, 15, 0) 65%),
    linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 45%, var(--green-950) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Faint parchment grain over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

main, .topbar, .footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--green-950);
  padding: 0.5rem 1rem;
  z-index: 50;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.sep { color: var(--brass); padding: 0 0.15em; }
.muted { color: var(--text-dim); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 23, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.topbar__right { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }

/* Live / offline pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: rgba(26, 30, 33, 0.6);
  min-width: 0;
}
/* Block-level so it can be truncated when the bar runs out of room. */
.pill__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--text-dim);
}
.pill[data-state="live"] {
  color: var(--parchment-2);
  border-color: rgba(200, 72, 63, 0.7);
  background: rgba(200, 72, 63, 0.16);
}
.pill[data-state="live"] .pill__dot {
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(200, 72, 63, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 0.5rem rgba(200, 72, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 72, 63, 0); }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  font: 600 0.9rem/1 var(--body);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--brass {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  border-color: var(--brass-hi);
  color: var(--green-950);
}
.btn--brass:hover { background: linear-gradient(180deg, #f0deb0, #cdb277); }
.btn--ghost { color: var(--text); background: rgba(26, 30, 33, 0.5); }
.btn--ghost:hover { background: rgba(46, 52, 57, 0.7); border-color: var(--brass); }

/* Narrow screens: the top bar keeps the live status and drops the button label. */
@media (max-width: 30rem) {
  .topbar__inner { gap: 0.5rem; }
  .brand__name { font-size: 1.15rem; }
  .topbar__cta { padding: 0.5rem 0.6rem; }
  .topbar__cta .btn__label { display: none; }
  .pill { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 1rem;
  text-align: center;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}
.hero__crest img { width: clamp(140px, 30vw, 190px); height: auto; margin: 0 auto; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1;
  margin: 1rem 0 0.6rem;
  color: var(--parchment-2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.tagline {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-hi);
  margin: 0 0 1.2rem;
}
.tagline::before, .tagline::after {
  content: "";
  display: inline-block;
  width: clamp(1.5rem, 8vw, 4rem);
  height: 1px;
  background: var(--rule-strong);
  vertical-align: middle;
  margin: 0 0.8rem;
}
.hero__blurb {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-dim);
}

/* Now-playing card */
.nowcard { margin: 1.8rem auto 0; max-width: 34rem; }
.nowcard__link {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: left;
  text-decoration: none;
  padding: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nowcard__link:hover { border-color: var(--brass); transform: translateY(-2px); }
.nowcard__thumb {
  flex: none;
  width: 8.5rem;
  aspect-ratio: 16 / 9;
  background: var(--iron-900);
  border-radius: 2px;
  overflow: hidden;
}
.nowcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nowcard__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.nowcard__status {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-hi);
}
.nowcard[data-state="live"] .nowcard__status { color: #e8938c; }
.nowcard__title {
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nowcard__meta { font-size: 0.82rem; color: var(--text-dim); }

/* Guild nav banners */
.guildnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0;
}
.guildnav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(46, 52, 57, 0.85), rgba(26, 30, 33, 0.9));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(237, 229, 210, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guildnav__item:hover { border-color: var(--brass); transform: translateY(-2px); }
.guildnav__item .ico { color: var(--brass); }
.guildnav__item strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.guildnav__item small { color: var(--text-dim); font-size: 0.75rem; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4rem) var(--gutter) 0;
  /* Clear the sticky top bar when an anchor link jumps here. */
  scroll-margin-top: 4.5rem;
}
.section__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 0.25rem;
  color: var(--parchment-2);
}
.section__title::before, .section__title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--rule-strong));
}
.section__title::after { background: linear-gradient(90deg, var(--rule-strong), transparent); }
.section__title span { flex: none; }
.section__sub {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.75rem;
}
.section__foot { text-align: center; margin: 1.75rem 0 0; }

/* ── Link list (the linktree) ────────────────────────────────────────────── */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(35, 40, 44, 0.9), rgba(22, 26, 29, 0.92));
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brass);
  border-left-color: var(--brass-hi);
}
.link .ico { width: 1.4rem; height: 1.4rem; color: var(--brass-hi); }
.link__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link__text strong { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; }
.link__text small { color: var(--text-dim); font-size: 0.8rem; }
.link__go { color: var(--brass); transition: transform 0.14s ease; }
.link:hover .link__go { transform: translateX(3px); }
.link--primary {
  background: linear-gradient(180deg, rgba(30, 76, 59, 0.95), rgba(15, 42, 33, 0.95));
  border-color: var(--rule-strong);
}

/* ── Schedule ────────────────────────────────────────────────────────────── */
.schedule { display: grid; gap: 0.7rem; }
.schedule__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.schedule__when {
  flex: none;
  width: 4.5rem;
  text-align: center;
  border-right: 1px solid var(--rule);
  padding-right: 0.9rem;
}
.schedule__day {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-hi);
}
.schedule__date { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.schedule__what { min-width: 0; }
.schedule__what strong { display: block; font-weight: 600; }
.schedule__what small { color: var(--text-dim); font-size: 0.82rem; }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  position: relative;
  display: grid;
  gap: 1.1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--rule-strong), var(--rule) 60%, transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.03rem;
  background: var(--brass);
  border: 2px solid var(--green-950);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rule-strong);
}
.timeline__loading::before { display: none; }

.vod {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vod:hover { transform: translateY(-2px); border-color: var(--brass); }
.vod__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--iron-900);
  border-radius: 2px;
  overflow: hidden;
}
.vod__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vod__duration {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  background: rgba(8, 23, 15, 0.85);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.vod__body { min-width: 0; padding-top: 0.15rem; }
.vod__date {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-hi);
}
.vod__title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vod__meta { font-size: 0.8rem; color: var(--text-dim); display: flex; gap: 0.6rem; flex-wrap: wrap; }

@media (max-width: 34rem) {
  .vod { grid-template-columns: 1fr; }
  .vod__thumb { width: 100%; }
  .timeline { padding-left: 1.1rem; }
  .timeline__item::before { left: -1.1rem; top: 0.9rem; }
  .nowcard__link { flex-direction: column; align-items: stretch; }
  .nowcard__thumb { width: 100%; }
}

/* ── Clips ───────────────────────────────────────────────────────────────── */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.9rem; }
.clip {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.clip:hover { transform: translateY(-2px); border-color: var(--brass); }
.clip__thumb { display: block; aspect-ratio: 16 / 9; background: var(--iron-900); }
.clip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.clip__body { display: block; padding: 0.6rem 0.7rem 0.75rem; }
.clip__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.clip__meta { display: block; font-size: 0.74rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about { display: grid; gap: 1.5rem; }
.about__text p { margin: 0 0 0.9rem; color: rgba(237, 229, 210, 0.82); }
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem;
}
.pillars li {
  padding: 0.8rem 0.9rem;
  background: rgba(26, 30, 33, 0.5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.pillars strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--brass-hi);
}
.pillars span { font-size: 0.82rem; color: var(--text-dim); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--rule);
  background: rgba(8, 23, 15, 0.6);
}
.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__brand { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.02em; text-transform: none; color: var(--text); }
.footer__note {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 1.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Work with me ────────────────────────────────────────────────────────── */
.work {
  padding: clamp(1.1rem, 4vw, 1.75rem);
  background: linear-gradient(180deg, rgba(30, 76, 59, 0.5), rgba(26, 30, 33, 0.72));
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(237, 229, 210, 0.07);
}
.work__lead {
  margin: 0 0 1.4rem;
  font-size: 1.02rem;
  color: rgba(237, 229, 210, 0.86);
}
.work__offers {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.7rem;
}
.work__offers li {
  padding: 0.85rem 0.95rem;
  background: rgba(8, 23, 15, 0.45);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
}
.work__offers strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--brass-hi);
}
.work__offers span { font-size: 0.85rem; color: var(--text-dim); }

.work__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.work__note {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.work__note a { color: var(--brass-hi); text-decoration-color: var(--rule-strong); }
