@font-face {
  font-family: "TBCinzel";
  src: url("../../assets/fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TBCinzel";
  src: url("../../assets/fonts/Cinzel-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TBCinzel";
  src: url("../../assets/fonts/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TBLora";
  src: url("../../assets/fonts/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TBLora";
  src: url("../../assets/fonts/Lora-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "TBInter";
  src: url("../../assets/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #050403;
  --black: #0b0806;
  --panel: rgba(13, 10, 7, 0.86);
  --panel-strong: rgba(5, 4, 3, 0.94);
  --gold: #d4a017;
  --gold-bright: #f2d18a;
  --copper: #8f4f2b;
  --text: #f4ead7;
  --muted: #b6a180;
  --red: #8b241b;
  --purple: #8e5ec4;
  --blue: #497c8f;
  --line: rgba(201, 154, 73, 0.35);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(98, 51, 20, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(94, 47, 115, 0.18), transparent 30rem),
    linear-gradient(180deg, #050403 0%, #0d0907 44%, #050403 100%);
  color: var(--text);
  font-family: "TBInter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
  z-index: 10;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.75rem clamp(1rem, 2vw, 2rem);
  background: rgba(4, 3, 2, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 154, 73, 0.45));
}

.brand-lockup strong,
.site-footer strong {
  display: block;
  color: var(--gold-bright);
  font-family: "TBCinzel", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lockup small {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold);
  font-family: "TBCinzel", Georgia, serif;
  font-size: 0.62rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(0.7rem, 1.6vw, 1.45rem);
}

.primary-nav a,
.archive-button,
.text-link,
.path-card a,
.hero-buttons a,
.archive-form button,
.guide-form button {
  font-family: "TBCinzel", Georgia, serif;
  text-transform: uppercase;
}

.primary-nav a {
  color: #d7b776;
  font-size: 0.74rem;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.header-actions img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.88;
}

.archive-button {
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-size: 0.75rem;
  background: rgba(27, 15, 8, 0.7);
}

.hero-shell {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.78) 0%, rgba(5, 4, 3, 0.34) 42%, rgba(5, 4, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.08), rgba(5, 4, 3, 0.76)),
    url("../../assets/images/tb-hero-neverwake.png") center / cover no-repeat;
  filter: saturate(0.9) contrast(1.12) brightness(0.78);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16rem;
  background: linear-gradient(0deg, var(--black), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-family: "TBCinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--gold-bright);
  font-family: "TBCinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  line-height: 0.94;
  text-shadow: 0 0 28px rgba(201, 154, 73, 0.2);
}

.hero-lede {
  max-width: 530px;
  margin: 1.6rem 0 0;
  color: #eadfc8;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button,
.path-card a,
.text-link,
.archive-form button,
.guide-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(75, 40, 18, 0.94), rgba(20, 11, 7, 0.96));
  box-shadow: inset 0 0 0 1px rgba(240, 208, 138, 0.1);
  font-size: 0.78rem;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.secondary-button {
  background: rgba(5, 4, 3, 0.65);
}

.primary-button:hover,
.secondary-button:hover,
.path-card a:hover,
.text-link:hover,
.archive-form button:hover {
  border-color: rgba(240, 208, 138, 0.78);
  transform: translateY(-1px);
}

.old-ash-card,
.path-card,
.journal-panel,
.atlas-panel,
.events-panel,
.archive-strip,
.site-footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 16, 11, 0.94), rgba(7, 5, 4, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(201, 154, 73, 0.12), transparent 18rem);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 208, 138, 0.05);
}

.old-ash-card {
  padding: 1rem;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(201, 154, 73, 0.22);
}

.guide-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050403;
}

.guide-header p,
.guide-note {
  margin: 0;
  color: var(--gold);
  font-family: "TBCinzel", Georgia, serif;
  font-size: 0.8rem;
}

.guide-header h2 {
  font-size: 1.1rem;
}

.guide-portrait {
  height: 330px;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 73, 0.22);
  background:
    radial-gradient(circle at 55% 35%, rgba(212, 160, 23, 0.18), transparent 16rem),
    #050403;
}

.guide-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: sepia(0.08) saturate(0.98) brightness(0.9);
}

blockquote {
  margin: 0;
  color: #e9dcc3;
  font-size: 0.92rem;
  line-height: 1.6;
}

.guide-options {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.guide-options a {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(201, 154, 73, 0.22);
  color: #e1c181;
  background: rgba(0, 0, 0, 0.3);
  font-family: "TBCinzel", Georgia, serif;
  font-size: 0.78rem;
}

.guide-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.guide-form input,
.archive-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(201, 154, 73, 0.28);
  color: var(--text);
  background: rgba(5, 4, 3, 0.75);
  padding: 0.7rem 0.85rem;
}

.guide-form input::placeholder,
.archive-form input::placeholder {
  color: rgba(244, 234, 215, 0.55);
}

.guide-form button:disabled,
.guide-form input:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.guide-note {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.path-section,
.feature-row,
.archive-strip {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
}

.path-section {
  padding: 1.5rem clamp(1rem, 2vw, 2rem) 0;
}

.section-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.path-card {
  min-height: 330px;
  display: grid;
  grid-template-rows: 160px 1fr;
  overflow: hidden;
}

.path-image,
.panel-image {
  background-image:
    linear-gradient(180deg, transparent, rgba(5, 4, 3, 0.85)),
    url("../../assets/images/atlas/base-eidryn-map.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.15) brightness(0.65);
}

.purple-card .path-image {
  background-image:
    linear-gradient(180deg, rgba(88, 40, 126, 0.18), rgba(5, 4, 3, 0.86)),
    url("../../assets/images/path-cards/card-twisted-horrors.png");
}

.amber-card .path-image {
  background-image:
    linear-gradient(180deg, rgba(171, 101, 26, 0.22), rgba(5, 4, 3, 0.86)),
    url("../../assets/images/path-cards/card-tabletop-campaign.png");
}

.blue-card .path-image {
  background-image:
    linear-gradient(180deg, rgba(45, 93, 105, 0.22), rgba(5, 4, 3, 0.86)),
    url("../../assets/images/path-cards/card-browser-mmorpg.png");
}

.gold-card .path-image {
  background-image:
    linear-gradient(180deg, rgba(201, 154, 73, 0.22), rgba(5, 4, 3, 0.86)),
    url("../../assets/images/path-cards/card-live-experiences.png");
}

.path-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
}

.path-content h3 {
  font-size: 1.35rem;
}

.path-content p,
.journal-panel p,
.atlas-panel p,
.events-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.path-card a,
.text-link {
  margin-top: auto;
  min-height: 36px;
  padding: 0.55rem 1rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1fr;
  gap: 0.85rem;
  padding: 0.85rem clamp(1rem, 2vw, 2rem) 0;
}

.journal-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.panel-image {
  min-height: 130px;
  border: 1px solid rgba(201, 154, 73, 0.22);
}

.atlas-panel,
.events-panel {
  padding: 1rem;
}

.journal-panel h2,
.atlas-panel h2,
.events-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.event-list {
  list-style: none;
  margin: 0.8rem 0 1rem;
  padding: 0;
}

.event-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(201, 154, 73, 0.18);
}

.event-list span {
  color: var(--gold);
  font-family: "TBCinzel", Georgia, serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.event-list strong {
  color: var(--text);
  font-weight: 500;
}

.archive-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 1.2rem clamp(1rem, 2vw, 1.5rem);
}

.archive-strip h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.archive-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.site-footer {
  max-width: 1500px;
  margin: 0.85rem auto 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(380px, 1.4fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 58px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer-columns h3 {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-quote {
  align-self: center;
  padding: 1rem;
  border: 1px solid rgba(201, 154, 73, 0.22);
  color: var(--gold-bright);
  font-family: "TBCinzel", Georgia, serif;
  text-align: center;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 154, 73, 0.16);
  color: rgba(182, 161, 128, 0.75);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .primary-nav,
  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-grid,
  .feature-row,
  .archive-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
  }

  .primary-nav {
    gap: 0.75rem;
  }

  .header-actions {
    display: none;
  }

  .hero-shell {
    min-height: auto;
  }

  h1 {
    font-size: 3rem;
  }

  .path-grid,
  .journal-panel,
  .archive-form,
  .guide-form,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: auto;
  }
}
