:root {
  --bg: #11110f;
  --panel: #191814;
  --text: #f4efe4;
  --muted: #c7bdad;
  --gold: #d6b36d;
  --olive: #a9bd73;
  --line: rgba(244, 239, 228, 0.18);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.84), rgba(10, 10, 9, 0.58)),
    url("./assets/intro/the-house-of-what-remains.jpg") center / cover fixed no-repeat;
  color: var(--text);
  font-family: Sora, system-ui, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 28px clamp(18px, 5vw, 72px) 56px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 56px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-nav a:hover {
  border-color: var(--olive);
}

.page-hero,
.content-panel {
  max-width: 980px;
}

.page-hero span,
.kicker {
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.86;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.92;
}

h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 2rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.lead {
  max-width: 780px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.content-panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 15, 0.78);
  padding: clamp(20px, 4vw, 42px);
  backdrop-filter: blur(18px);
}

.series-list {
  display: grid;
  gap: 22px;
  padding: 0;
  list-style: none;
}

.series-list li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.work-grid figure {
  margin: 0;
}

.work-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid #8d5928;
  background: #080806;
}

.work-grid figcaption {
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
}

.doc-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.doc-links a,
.contact-links a,
.return-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244, 239, 228, 0.06);
  padding: 11px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.return-link {
  display: inline-block;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 22px 18px 44px;
  }

  .page-nav {
    margin-bottom: 34px;
  }

  .content-panel {
    padding: 20px;
  }
}
