:root {
  --ink: #151515;
  --iron: #20211f;
  --stone: #2d2e2a;
  --paper: #ece7dc;
  --paper-dark: #d8d0c1;
  --gold: #a8884d;
  --gold-pale: #c6ae79;
  --line: rgba(168, 136, 77, 0.38);
  --mist: rgba(236, 231, 220, 0.68);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(236, 231, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 231, 220, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 52px 52px;
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(168,136,77,.08), transparent 42%);
  z-index: -1;
}

a { color: inherit; }

.page-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(168,136,77,.25);
  pointer-events: none;
  z-index: 99;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(21, 21, 21, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,136,77,.2);
}

.sigil {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.sigil-ring {
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.sigil-mark {
  font-family: "Cinzel", serif;
  color: var(--gold-pale);
  font-size: 1rem;
  z-index: 2;
}

nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(236,231,220,.72);
}
nav a:hover { color: var(--gold-pale); }

.section-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0;
  position: relative;
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-rule {
  width: 96px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 26px;
  position: relative;
}
.hero-rule::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  right: -10px;
  top: -4px;
  transform: rotate(45deg);
}

.eyebrow {
  margin: 0 0 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

h1, h2, h3 { font-family: "Cinzel", serif; font-weight: 500; }

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8.5vw, 8rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  max-width: 1000px;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-pale);
}

.hero-name {
  margin: 38px 0 0;
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
  letter-spacing: .08em;
}
.hero-role {
  margin: 3px 0 24px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold-pale);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-intro {
  max-width: 790px;
  font-size: 1.2rem;
  color: rgba(236,231,220,.8);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.button {
  display: inline-block;
  padding: 13px 18px;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  border: 1px solid var(--gold);
}
.button.primary { background: var(--gold); color: var(--ink); }
.button.primary:hover { background: var(--gold-pale); }
.button.secondary:hover { background: rgba(168,136,77,.1); }

.hero-inscription {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 80px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6rem;
  letter-spacing: .16em;
  color: rgba(236,231,220,.46);
}
.hero-inscription i { height: 1px; background: rgba(168,136,77,.22); }

.section-number {
  position: absolute;
  top: 80px;
  right: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  color: rgba(198,174,121,.55);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  gap: 80px;
  border-top: 1px solid rgba(168,136,77,.25);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}
.section-heading > p:last-child { color: rgba(236,231,220,.58); max-width: 480px; }
.section-copy { max-width: 720px; }
.section-copy p { color: rgba(236,231,220,.72); }
.section-copy .lead { font-size: 1.45rem; color: var(--paper); line-height: 1.45; }

blockquote {
  margin: 42px 0 0;
  padding: 22px 0 22px 28px;
  border-left: 1px solid var(--gold);
}
blockquote p { font-size: 1.3rem; font-style: italic; color: var(--paper) !important; }

.chamber-section { border-top: 1px solid rgba(168,136,77,.25); }
.chamber-section .section-heading { margin-bottom: 48px; }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(168,136,77,.2);
  background: rgba(45,46,42,.34);
  min-height: 320px;
}
.card.featured { background: rgba(168,136,77,.08); border-color: rgba(168,136,77,.48); }
.card-meta {
  margin-top: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.card h3 { font-size: 1.55rem; line-height: 1.2; margin: 26px 0 16px; }
.card p { color: rgba(236,231,220,.67); }
.status {
  position: absolute;
  bottom: 25px;
  left: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-pale);
}
.status.muted { color: rgba(236,231,220,.36); }

.inverse-panel {
  width: min(1250px, calc(100% - 36px));
  padding-left: 42px;
  padding-right: 42px;
  background: var(--paper);
  color: var(--ink);
}
.inverse-panel .eyebrow, .inverse-panel .forge-code { color: #806631; }
.inverse-panel .section-heading > p:last-child { color: rgba(21,21,21,.6); }
.inverse-panel .section-number { color: rgba(21,21,21,.4); }

.forge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(21,21,21,.25);
  border-left: 1px solid rgba(21,21,21,.25);
}
.forge-item {
  min-height: 255px;
  padding: 28px;
  border-right: 1px solid rgba(21,21,21,.25);
  border-bottom: 1px solid rgba(21,21,21,.25);
}
.forge-code { font-family: "IBM Plex Mono", monospace; font-size: .65rem; letter-spacing: .15em; }
.forge-item h3 { font-size: 1.4rem; margin-top: 32px; }
.forge-item p { color: rgba(21,21,21,.68); }

.archive-list { margin-top: 46px; border-top: 1px solid rgba(168,136,77,.2); }
.archive-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(168,136,77,.2);
}
.archive-list span {
  font-family: "IBM Plex Mono", monospace;
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--gold-pale);
}
.archive-list strong { font-weight: 400; }

.root-section {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 100px;
  border-top: 1px solid rgba(168,136,77,.25);
  overflow: hidden;
}
.root-copy { position: relative; z-index: 2; max-width: 650px; }
.root-copy p { font-size: 1.25rem; color: rgba(236,231,220,.72); }
.root-law {
  margin-top: 36px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-pale) !important;
}
.root-orbit { position: absolute; right: -60px; width: 500px; height: 500px; opacity: .28; }
.root-orbit span { position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 50%; }
.root-orbit span:nth-child(2) { transform: rotate(60deg) scaleX(.45); }
.root-orbit span:nth-child(3) { transform: rotate(-60deg) scaleX(.45); }
.root-orbit::after {
  content: "";
  position: absolute;
  inset: 43%;
  border: 1px solid var(--gold-pale);
  transform: rotate(45deg);
}

.links-cards .card { text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.links-cards .card:hover { transform: translateY(-4px); border-color: var(--gold); }
.arrow { position: absolute; right: 26px; bottom: 22px; color: var(--gold-pale); font-size: 1.4rem; }

.final-section {
  text-align: center;
  border-top: 1px solid rgba(168,136,77,.25);
  padding-top: 140px;
  padding-bottom: 140px;
}
.final-statement {
  margin: 20px auto 0;
  max-width: 980px;
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.2;
}
.return {
  margin-top: 60px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .76rem;
  letter-spacing: .22em;
  color: var(--gold-pale);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  padding: 38px 52px 52px;
  border-top: 1px solid rgba(168,136,77,.2);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  color: rgba(236,231,220,.5);
}
footer strong { display: block; color: var(--paper); font-family: "Cinzel", serif; font-size: 1rem; font-weight: 500; }
footer span { display: block; margin-top: 4px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--gold-pale); text-decoration: none; }
footer > p { grid-column: 1 / -1; margin: 0; max-width: 850px; }

@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  nav { gap: 12px; justify-content: flex-end; }
  nav a { font-size: .6rem; }
  .section-shell { width: min(100% - 40px, 1180px); padding: 82px 0; }
  .split-section, .root-section { grid-template-columns: 1fr; gap: 35px; }
  .cards.three { grid-template-columns: 1fr; }
  .card { min-height: 250px; }
  .forge-grid { grid-template-columns: 1fr; }
  .root-orbit { right: -220px; bottom: 20px; }
  .hero-inscription { grid-template-columns: 1fr; gap: 6px; }
  .hero-inscription i { display: none; }
  .inverse-panel { width: calc(100% - 20px); padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 620px) {
  .page-frame { inset: 7px; }
  .site-header { position: relative; align-items: flex-start; }
  nav { max-width: 240px; }
  .hero { min-height: auto; padding-top: 110px; }
  h1 { font-size: clamp(3rem, 15vw, 5.5rem); }
  .hero-intro { font-size: 1.05rem; }
  .section-number { top: 54px; }
  .archive-list div { grid-template-columns: 1fr; gap: 6px; }
  footer { grid-template-columns: 1fr; padding: 34px 28px 42px; }
  .footer-links { grid-column: 1; }
}
