:root {
  --ink: #f7efe1;
  --muted: #d2c2aa;
  --paper: #fff8eb;
  --night: #15120e;
  --panel: #211c16;
  --rail: #393026;
  --line: rgba(247, 239, 225, 0.17);
  --brass: #d59a52;
  --moss: #66745d;
  --smoke: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(247, 239, 225, 0.13);
  background: rgba(18, 14, 9, 0.76);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav a {
  text-decoration: none;
}

.brand {
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.site-header nav a {
  color: rgba(247, 239, 225, 0.76);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--brass);
}

.home-hero,
.lore-hero,
.page-intro {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  padding: clamp(124px, 18vh, 190px) clamp(18px, 6vw, 86px) clamp(64px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}

.lore-hero {
  min-height: 78svh;
}

.page-intro {
  min-height: auto;
  padding-top: clamp(132px, 18vh, 180px);
  padding-bottom: clamp(56px, 8vw, 92px);
  overflow: visible;
  background:
    linear-gradient(125deg, rgba(102, 116, 93, 0.18), transparent 48%),
    #17130e;
}

.hero-bg,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 11, 7, 0.94), rgba(19, 14, 8, 0.66) 42%, rgba(19, 14, 8, 0.14) 100%),
    linear-gradient(180deg, rgba(15, 12, 8, 0.2), rgba(15, 12, 8, 0.9));
}

.home-copy,
.lore-copy {
  max-width: 790px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.82);
}

.kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(3.4rem, 9vw, 8.6rem);
  line-height: 0.86;
}

.lore-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
}

.page-intro h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.home-copy p:not(.kicker),
.hero-line {
  max-width: 42ch;
  color: rgba(247, 239, 225, 0.85);
  font-size: clamp(1.15rem, 2.2vw, 1.58rem);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid rgba(247, 239, 225, 0.22);
  border-radius: 4px;
  background: rgba(213, 154, 82, 0.94);
  color: #16100a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button-row .button {
  margin-top: 0;
}

.button.secondary {
  background: rgba(14, 11, 7, 0.62);
  color: var(--paper);
}

.notice-band,
.story-section,
.reference-section,
.archive-section,
.disclaimer {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 86px);
}

.notice-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #1a1610;
}

.notice-band p,
.disclaimer p,
.page-intro > p:not(.kicker) {
  max-width: 820px;
  margin: 0;
  color: rgba(247, 239, 225, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.story-section {
  background:
    linear-gradient(90deg, rgba(102, 116, 93, 0.12), transparent 44%),
    #17130e;
}

.story-card {
  width: min(900px, 100%);
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 2px solid rgba(213, 154, 82, 0.7);
}

.story-card .lead {
  color: rgba(247, 239, 225, 0.9);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.5;
}

.story-card h2,
.section-heading h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 0.98;
}

.story-card h2 {
  margin: 44px 0 14px;
}

.story-card p {
  color: rgba(247, 239, 225, 0.77);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.78;
}

.closing {
  margin-top: 42px;
  color: var(--paper) !important;
  font-style: italic;
}

.reference-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26)),
    #211c16;
}

.archive-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.24)),
    #211c16;
}

.section-heading {
  max-width: 980px;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.source-heading {
  margin-top: clamp(42px, 6vw, 72px);
}

.section-heading h2 {
  max-width: 12ch;
  margin-bottom: 18px;
}

.section-heading p:not(.kicker) {
  max-width: 70ch;
  color: rgba(247, 239, 225, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.feature-grid,
.place-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

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

.feature-card,
.place-card,
.note-card,
.claim-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(74, 58, 39, 0.54), rgba(14, 11, 7, 0.7));
}

.feature-card,
.place-card,
.note-card {
  padding: 24px;
}

.feature-card h3,
.place-card h2,
.note-card h2 {
  margin: 18px 0 12px;
  color: var(--paper);
  font-size: clamp(1.45rem, 2.3vw, 2.4rem);
  line-height: 1.05;
}

.feature-card p,
.place-card p,
.note-card p,
.claim-row p {
  color: rgba(247, 239, 225, 0.73);
  font-size: 1rem;
  line-height: 1.62;
}

.feature-card a,
.link-panel a {
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.claim-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(247, 239, 225, 0.17);
  border-radius: 999px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.claim-tag.official {
  background: rgba(93, 111, 129, 0.28);
  border-color: rgba(154, 187, 215, 0.42);
}

.claim-tag.documented {
  background: rgba(83, 103, 91, 0.33);
  border-color: rgba(155, 190, 151, 0.48);
}

.claim-tag.lore {
  background: rgba(213, 154, 82, 0.2);
  border-color: rgba(213, 154, 82, 0.46);
}

.claim-tag.family {
  background: rgba(102, 116, 93, 0.28);
  border-color: rgba(151, 170, 139, 0.44);
}

.claim-tag.artifact {
  background: rgba(136, 108, 69, 0.3);
  border-color: rgba(219, 181, 120, 0.42);
}

.claim-tag.lead {
  background: rgba(109, 89, 138, 0.3);
  border-color: rgba(181, 153, 213, 0.46);
}

.claim-tag.unverified {
  background: rgba(120, 74, 61, 0.3);
  border-color: rgba(213, 122, 93, 0.46);
}

.evidence-box {
  margin: 26px 0 34px;
  padding: 22px;
  border: 1px solid rgba(213, 154, 82, 0.34);
  border-radius: 6px;
  background: rgba(14, 11, 7, 0.48);
}

.evidence-box h3 {
  margin-bottom: 12px;
  color: var(--paper);
  font-size: 1.35rem;
}

.evidence-box ul,
.research-list {
  margin: 0;
  padding-left: 22px;
  color: rgba(247, 239, 225, 0.77);
  line-height: 1.72;
}

.research-list {
  max-width: 760px;
}

.evidence-box li,
.research-list li {
  margin-bottom: 8px;
}

.claim-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.source-status-list {
  margin-top: 18px;
}

.claim-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px;
}

.claim-row p {
  margin: 2px 0 0;
}

.link-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin-top: 26px;
}

.link-panel a {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(14, 11, 7, 0.58);
  text-decoration: none;
}

.link-panel a:hover {
  border-color: rgba(213, 154, 82, 0.58);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.reference-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(14, 11, 7, 0.66);
}

.reference-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.16) contrast(1.03);
}

.reference-card figcaption {
  padding: 16px;
  color: rgba(247, 239, 225, 0.74);
  font-size: 0.94rem;
  line-height: 1.5;
}

.reference-card span,
.document-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brass);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reference-card a,
.document-card {
  color: var(--paper);
}

.reference-card a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.document-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(74, 58, 39, 0.64), rgba(14, 11, 7, 0.72));
  text-decoration: none;
}

.document-card:hover {
  border-color: rgba(213, 154, 82, 0.6);
}

.document-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.16;
}

.document-card small {
  color: rgba(247, 239, 225, 0.7);
  font-size: 0.94rem;
  line-height: 1.48;
}

.disclaimer {
  border-top: 1px solid var(--line);
  background: #110f0c;
}

.disclaimer p {
  color: rgba(247, 239, 225, 0.86);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .reference-grid,
  .document-list,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .site-header nav a {
    font-size: 0.68rem;
  }

  .home-hero,
  .lore-hero,
  .page-intro {
    min-height: 86svh;
    padding: 150px 20px 54px;
  }

  h1,
  .lore-copy h1,
  .page-intro h1 {
    font-size: clamp(2.7rem, 16vw, 4.3rem);
    max-width: 10ch;
  }

  .home-copy p:not(.kicker),
  .hero-line {
    font-size: 1.08rem;
  }

  .reference-grid,
  .document-list,
  .feature-grid,
  .place-grid,
  .note-grid,
  .link-panel {
    grid-template-columns: 1fr;
  }

  .claim-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-card {
    padding-left: 18px;
  }
}
