:root {
  --bg:            #070510;
  --surface:       #100d1a;
  --surface-alt:   #0c0916;
  --border:        #35195a;
  --border-lo:     rgba(53, 25, 90, 0.45);
  --crimson:       #8a1818;
  --crimson-hi:    #b52020;
  --gold:          #c9a84c;
  --gold-dim:      #7a6030;
  --text:          #e2d5f0;
  --text-muted:    #8a7aaa;
  --text-dim:      #4a3a5e;
}

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

html {
  scrollbar-color: var(--crimson) var(--bg);
  scrollbar-width: thin;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, #1c0a30 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='%2335195a' stroke-width='0.4' stroke-opacity='0.35'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── HEADER ──────────────────────────────────────── */
.site-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 420px;
}

.banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: brightness(0.72) saturate(0.85);
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,5,16,0.08) 0%,
    rgba(7,5,16,0.0)  30%,
    rgba(7,5,16,0.65) 78%,
    rgba(7,5,16,1.0)  100%
  );
}

.site-title {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
}

.site-title h1 {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 8px  rgba(201,168,76,0.9),
    0 0 24px rgba(201,168,76,0.5),
    0 0 50px rgba(120,40,200,0.5);
  animation: title-breathe 4s ease-in-out infinite;
}

.site-title .tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
}

@keyframes title-breathe {
  0%,100% { text-shadow: 0 0 8px rgba(201,168,76,0.9), 0 0 24px rgba(201,168,76,0.5), 0 0 50px rgba(120,40,200,0.5); }
  50%      { text-shadow: 0 0 14px rgba(201,168,76,1),  0 0 40px rgba(201,168,76,0.7), 0 0 80px rgba(138,24,24,0.55); }
}

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  background: linear-gradient(to right, transparent, rgba(138,24,24,0.4), rgba(53,25,90,0.6), rgba(138,24,24,0.4), transparent);
  border-top: 1px solid var(--crimson);
  border-bottom: 1px solid var(--crimson);
  text-align: center;
}

.site-nav ul { list-style: none; display: inline-flex; }

.site-nav a {
  display: block;
  padding: 10px 26px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-left: 1px solid rgba(138,24,24,0.35);
  transition: background 0.2s, color 0.2s, text-shadow 0.2s;
}

.site-nav li:first-child a { border-left: none; }

.site-nav a:hover {
  background: rgba(138,24,24,0.28);
  color: #fff;
  text-shadow: 0 0 10px rgba(201,168,76,0.7);
}

.site-nav a.active {
  background: rgba(138,24,24,0.22);
  color: #fff;
  text-shadow: 0 0 8px rgba(201,168,76,0.5);
  cursor: default;
}

/* ── TICKER ──────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border-lo);
  padding: 5px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-track span {
  padding: 0 32px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker-sep { color: var(--crimson) !important; padding: 0 8px !important; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── WRAPPER ─────────────────────────────────────── */
.wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 18px 70px;
}

.wrapper--narrow { max-width: 740px; }

/* ── ORNAMENTS / DIVIDERS ────────────────────────── */
.ornament {
  text-align: center;
  color: var(--gold-dim);
  letter-spacing: 0.6em;
  margin: 22px 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--crimson), var(--border), transparent);
  margin: 18px 0;
}

/* ── SHARED PANEL ────────────────────────────────── */
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 0 14px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.25);
  overflow: hidden;
}

.panel-header {
  background: linear-gradient(100deg, rgba(138,24,24,0.55), rgba(53,25,90,0.7));
  border-bottom: 1px solid var(--crimson);
  padding: 8px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header::before { content: '✦'; font-size: 0.6rem; opacity: 0.65; }

.panel-body { padding: 12px 14px; }

/* ── HOME: PROFILE GRID ──────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  align-items: start;
}

.sidebar { display: flex; flex-direction: column; gap: 16px; }

.portrait-frame {
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--crimson), 0 0 24px rgba(90,20,160,0.35), inset 0 0 20px rgba(0,0,0,0.6);
  background: #000;
  overflow: hidden;
}

.portrait-frame::before,
.portrait-frame::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.portrait-frame::before { top: 7px; left: 7px;   border-width: 2px 0 0 2px; }
.portrait-frame::after  { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; }

.portrait-img {
  width: 100%;
  display: block;
  filter: saturate(0.88) brightness(0.93);
  transition: filter 0.4s;
}
.portrait-frame:hover .portrait-img { filter: saturate(1.05) brightness(1.0); }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-lo);
  font-size: 0.88rem;
}
.stat-row:last-child { border-bottom: none; }

.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value { color: var(--text); }
.stat-value.active { color: var(--gold); }

.main-content { display: flex; flex-direction: column; gap: 18px; }

.intro-text,
.intro-text p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
}

.intro-text p + p { margin-top: 1em; }

.mood-inner {
  text-align: center;
  padding: 14px;
}

.mood-icon { font-size: 2.2rem; display: block; margin-bottom: 6px; }

.mood-label {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  font-size: 0.58rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid;
  line-height: 1.2;
}

.badge-purple { border-color: var(--border); background: #1a0d2e; color: var(--text-muted); }
.badge-red    { border-color: var(--crimson); background: #1a0808; color: #c06060; }
.badge-gold   { border-color: var(--gold-dim); background: #14100a; color: var(--gold); }

/* ── LINKS PAGE ──────────────────────────────────── */
.page-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
}

.links-section { display: flex; flex-direction: column; gap: 20px; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-lo);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-lo);
}

.link-card:last-child { border-bottom: none; padding-bottom: 0; }
.link-card:first-of-type { padding-top: 0; }

.link-badge {
  flex-shrink: 0;
  width: 88px;
  height: 31px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  padding: 3px;
  color: var(--text-muted);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

.link-badge-crimson { border-color: var(--crimson); color: #c06060; background: #0e0808; }
.link-badge-gold    { border-color: var(--gold-dim); color: var(--gold); background: #100e08; }

.link-info { flex: 1; min-width: 0; }

.link-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 3px;
}

.link-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.link-visit {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  background: transparent;
  transition: background 0.2s, color 0.2s, text-shadow 0.2s;
}

.link-visit:hover {
  background: rgba(201,168,76,0.12);
  color: #fff;
  text-shadow: 0 0 8px rgba(201,168,76,0.6);
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.footer-brand {
  color: var(--gold-dim);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.counter {
  display: inline-block;
  background: #000;
  border: 1px solid #222;
  color: var(--crimson-hi);
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  padding: 3px 12px;
  text-shadow: 0 0 6px var(--crimson-hi);
  margin: 10px 0;
  box-shadow: inset 0 0 6px #000;
}

.counter-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.best-viewed {
  margin-top: 12px;
  font-style: italic;
  opacity: 0.4;
  font-size: 0.65rem;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 660px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .portrait-frame {
    max-width: 260px;
    margin: 0 auto;
  }
}
