﻿:root {
  color-scheme: dark;
  --ink: #f4ead7;
  --muted: #b9a98e;
  --dim: #7b6a55;
  --bg: #080706;
  --panel: rgba(15, 13, 10, 0.78);
  --panel-strong: rgba(25, 20, 15, 0.94);
  --gold: #c8a46a;
  --gold-soft: rgba(200, 164, 106, 0.28);
  --gold-line: rgba(200, 164, 106, 0.42);
  --smoke: rgba(244, 234, 215, 0.08);
  --burgundy: #7a2d29;
  --green: #60755d;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(200, 164, 106, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(122, 45, 41, 0.16), transparent 28rem),
    linear-gradient(135deg, #050504 0%, #12100d 46%, #050504 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 2;
}

body::before {
  inset: 0;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 0, rgba(200, 164, 106, 0.11) 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(244, 234, 215, 0.025) 0 1px, transparent 1px 4px);
  background-size: 96px 100%, auto;
  mix-blend-mode: screen;
}

body::after {
  top: 88px;
  right: clamp(16px, 4vw, 42px);
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line), transparent);
  box-shadow: -18px 120px 0 -0.5px rgba(200, 164, 106, 0.24);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 34px);
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 58px);
  background: rgba(5, 5, 4, 0.78);
  border-bottom: 1px solid var(--gold-line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  min-width: max-content;
}

.brand span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(200, 164, 106, 0.24), transparent 58%),
    rgba(0, 0, 0, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(200, 164, 106, 0.16);
}

.brand strong {
  max-width: none;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: translate(-50%, -50%);
}

.site-nav a {
  position: relative;
  border-radius: 0;
  padding: 13px 12px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active { color: var(--ink); background: rgba(200, 164, 106, 0.07); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.menu-button {
  display: none;
  justify-self: end;
  border: 1px solid var(--gold-line);
  border-radius: 0;
  padding: 10px 13px;
  color: var(--gold);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 164, 106, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.76;
}

.hero::after {
  display: none;
}

.hero img,
.hero__shade { position: absolute; inset: 0; }

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.1) brightness(0.58);
  transform: scale(1.02);
}

.hero__shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 52%, rgba(200, 164, 106, 0.08), transparent 26rem),
    linear-gradient(90deg, rgba(5, 5, 4, 0.92), rgba(5, 5, 4, 0.56) 48%, rgba(5, 5, 4, 0.86)),
    linear-gradient(0deg, rgba(5, 5, 4, 0.85), transparent 36%, rgba(5, 5, 4, 0.55));
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 74px 0 86px;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1, h2, h3, p, li, dd, dt { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 6.3vw, 6rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 3.6rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero p:not(.kicker) {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(244, 234, 215, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.85;
}

.quick-search,
.wiki-grid,
.section,
.subpage,
.article-layout,
.footer {
  width: min(1120px, calc(100% - 34px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding: 54px 0 22px;
  border-bottom: 1px solid rgba(200, 164, 106, 0.18);
}

.search-box {
  display: grid;
  gap: 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gold-line);
  border-radius: 0;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(5, 5, 4, 0.58);
  outline: none;
  font: inherit;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.search-box input::placeholder { color: rgba(185, 169, 142, 0.72); }
.search-box input:focus { box-shadow: 0 0 0 4px rgba(200, 164, 106, 0.1); }
.search-box.compact { max-width: 460px; margin-top: 24px; }

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 34px 0 70px;
}

.wiki-card,
.panel,
.timeline article,
.infobox,
.article-body {
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(145deg, rgba(244, 234, 215, 0.07), rgba(244, 234, 215, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.wiki-card {
  position: relative;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.wiki-card::before,
.panel::before,
.article-body::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 164, 106, 0.12);
  pointer-events: none;
}

.wiki-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 164, 106, 0.82);
  background: rgba(24, 20, 15, 0.9);
}

.wiki-card p,
.work-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wiki-card h3 { color: var(--ink); }
.wiki-card span { color: var(--muted); line-height: 1.7; font-family: Georgia, "Times New Roman", serif; }
.wiki-card.is-hidden { display: none; }
.muted-card { opacity: 0.66; }

.section { padding: 26px 0 84px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.panel {
  position: relative;
  padding: 30px;
  overflow: hidden;
}

.panel p,
.note-list a { color: var(--muted); line-height: 1.85; }
.accent-panel { background: linear-gradient(135deg, rgba(122, 45, 41, 0.2), rgba(200, 164, 106, 0.08)), var(--panel); }

.note-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.note-list a { text-decoration-color: rgba(200, 164, 106, 0.45); text-underline-offset: 5px; }
.note-list a:hover { color: var(--ink); }

.subpage { padding: 58px 0 86px; }
.page-title { max-width: 880px; margin-bottom: 28px; }
.page-title p:not(.kicker),
.article-body p,
.article-body li {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.85;
  font-size: 1.05rem;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 12px 0 88px;
}

.timeline article {
  position: relative;
  padding: 28px 30px 28px 44px;
  overflow: hidden;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.timeline span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 58px 0 88px;
}

.infobox {
  position: sticky;
  top: 92px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(67, 39, 27, 0.82), rgba(7, 6, 5, 0.96));
}

.infobox h2 { font-size: 1.8rem; }
.infobox dl { display: grid; gap: 13px; margin: 24px 0 0; }
.infobox div { border-top: 1px solid rgba(200, 164, 106, 0.22); padding-top: 13px; }
.infobox dt { color: var(--gold); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.16em; }
.infobox dd { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }

.article-body {
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumbs a { color: var(--gold); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: var(--gold); }
.article-body h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); }
.article-body h2 { margin-top: 38px; font-size: clamp(1.35rem, 3vw, 2.15rem); color: var(--gold); }
.article-body .lead { color: var(--ink); font-size: 1.22rem; }
.article-body a { color: var(--gold); text-underline-offset: 5px; }
.article-body ul { padding-left: 1.1rem; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--gold-line);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 900;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 540ms ease, transform 540ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .wiki-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-search, .two-column, .article-layout { grid-template-columns: 1fr; }
  .infobox { position: static; }
  .hero::before { width: min(82vw, 620px); }
}

@media (max-width: 720px) {
  body::after { display: none; }
  .topbar { align-items: center; flex-wrap: wrap; }
  .menu-button { display: inline-flex; }
  .site-nav {
    position: static;
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
    transform: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border: 1px solid rgba(200, 164, 106, 0.16); background: rgba(200, 164, 106, 0.05); }
  .hero { min-height: calc(100vh - 72px); }
  .hero::before { width: 92vw; opacity: 0.42; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 5, 4, 0.62), rgba(5, 5, 4, 0.94)); }
  .hero__content { text-align: left; }
  .hero p:not(.kicker) { margin-left: 0; margin-right: 0; }
  .wiki-grid { grid-template-columns: 1fr; }
  .wiki-card { min-height: 182px; }
  .footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__content, .quick-search, .wiki-grid, .section, .subpage, .article-layout, .footer { width: min(100% - 24px, 1120px); }
  .brand strong { max-width: 118px; }
  .panel, .article-body, .infobox { padding: 20px; }
}

