* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #dcc895;
  --gold-light: #f1dfb2;
  --gold-deep: #9f7b3c;
  --black: #080808;
  --navy: #0b0b0b;
  --panel: rgba(16, 16, 16, .88);
  --text: #eee5d4;
  --muted: #c9bfad;
  --line: rgba(220, 200, 149, .22);
  font-family: Georgia, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  line-height: 1.7;
  background: #0b0b0b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 7, 7, .72), rgba(10, 10, 10, .86)),
    url("../assets/library.jpeg") center / cover no-repeat;
}

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

img {
  display: block;
  max-width: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b0b0b;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .28);
}

.nav-container {
  max-width: 1200px;
  min-height: 82px;
  margin: 0 auto;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  width: 86px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .42));
  transition: filter .22s ease, opacity .22s ease;
}

.logo:hover {
  filter: drop-shadow(0 10px 20px rgba(201, 162, 39, .18));
  opacity: .96;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  color: #e8dfcf;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
  white-space: nowrap;
  transition: color .25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold-light);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: transparent;
  color: #f6efe1;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.hero {
  min-height: 76vh;
  padding: 76px 22px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .36));
}

.hero-content {
  width: min(900px, 100%);
}

.hero-logo {
  width: min(180px, 36vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .42));
}

.hero-logo img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  color: #f3e5bd;
  font-size: clamp(2.45rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(43, 31, 16, .58), 0 9px 22px rgba(0, 0, 0, .72);
}

.hero p {
  max-width: 760px;
  margin: 20px auto 0;
  color: #eee3cb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 600;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  min-width: 150px;
  padding: 13px 18px;
  border: 1px solid rgba(220, 200, 149, .42);
  border-radius: 4px;
  background: rgba(15, 15, 15, .76);
  color: #f2e4c3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
  font-weight: 900;
}

.hero-actions a:hover {
  background: rgba(220, 200, 149, .16);
  border-color: var(--gold-light);
}

.archive-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 30px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
}

.archive-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 122px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 14, 14, .9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(220, 200, 149, .16);
}

.panel-heading span {
  color: #f1dfb2;
  font-size: 1.22rem;
  font-weight: 900;
}

.panel-heading strong {
  min-width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 200, 149, .36);
  border-radius: 999px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .88rem;
}

.searchBox {
  display: grid;
  gap: 8px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 900;
}

.searchBox input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(220, 200, 149, .3);
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline-color: var(--gold-light);
  font: 15px/1.35 Arial, Helvetica, sans-serif;
}

.searchBox input::placeholder {
  color: rgba(255, 255, 255, .43);
}

.filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.filters button {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(220, 200, 149, .26);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, .74);
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.filters button:hover,
.filters .active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.result-count {
  margin-bottom: 16px;
  color: #c9bfad;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
}

.result-count strong {
  color: #f1dfb2;
}

.articleList {
  display: grid;
  gap: 8px;
}

.articleList a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
}

.articleList a:hover {
  border-color: rgba(220, 200, 149, .55);
  background: rgba(255, 255, 255, .08);
}

.articleList strong {
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
}

.articleList span {
  color: rgba(255, 255, 255, .66);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .84rem;
  line-height: 1.35;
}

.reader {
  min-width: 0;
}

.reader-nav {
  position: sticky;
  top: 82px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 200, 149, .16);
  border-radius: 8px;
  background: rgba(8, 8, 8, .78);
  backdrop-filter: blur(12px);
}

.reader-nav a {
  color: #e8dfcf;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
  font-weight: 800;
}

.reader-nav a:hover {
  color: var(--gold-light);
}

.preamble,
.articles {
  display: grid;
  gap: 18px;
}

.preamble {
  padding: 30px;
  border: 1px solid rgba(220, 200, 149, .18);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(185, 149, 91, .12), rgba(0, 0, 0, .28));
}

.preamble h3,
.article h3 {
  margin-bottom: 14px;
  color: #f1dfbc;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.18;
}

.preamble p,
.article p {
  margin-bottom: 16px;
  color: rgba(243, 234, 216, .84);
  font: 18px/1.78 Georgia, "Times New Roman", serif;
}

.article {
  position: relative;
  padding: 34px 28px;
  border: 1px solid rgba(220, 200, 149, .16);
  border-radius: 8px;
  background: rgba(10, 10, 10, .78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  scroll-margin-top: 112px;
}

.article::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 34px;
  width: 38px;
  height: 2px;
  background: var(--gold);
}

.articleNumber {
  display: inline-flex;
  margin: 0 0 15px 54px;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

mark {
  background: #ead39d;
  color: #111;
  padding: 0 2px;
}

.empty {
  padding: 34px;
  border: 1px solid rgba(220, 200, 149, .16);
  border-radius: 8px;
  background: rgba(9, 9, 9, .72);
  color: rgba(243, 234, 216, .72);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

footer {
  padding: 34px 20px;
  background: #151515;
  color: #d9cfbe;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}

.footer-identity {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(220, 200, 149, .22);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.footer-logo-item {
  min-width: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-item a {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-item a.official-logo-link {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(220, 200, 149, .42);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}

.footer-logo-item a.official-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.footer-logo-item img {
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
  transition: transform .25s ease, filter .25s ease;
}

.footer-logo-item:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 22px rgba(220, 200, 149, .18));
}

.footer-logo-separator {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(220, 200, 149, .55), transparent);
}

@media (max-width: 980px) {
  .archive-shell {
    grid-template-columns: 1fr;
    padding: 54px 22px;
  }

  .archive-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .reader-nav {
    top: 0;
    justify-content: flex-start;
    overflow: auto;
  }

  .hero {
    min-height: 58vh;
  }
}

@media (max-width: 768px) {
  body::before {
    background:
      linear-gradient(rgba(7, 7, 7, .68), rgba(10, 10, 10, .76)),
      url("../assets/library.jpeg") center top / auto 100vh no-repeat;
  }

  .nav-container {
    padding-inline: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    width: 78px;
    height: 66px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    padding: 20px 0 24px;
    flex-direction: column;
    gap: 18px;
    background: var(--navy);
    text-align: center;
  }

  nav ul.open {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding-top: 62px;
  }

  .hero-logo {
    width: min(156px, 42vw);
  }

  .hero-logo img {
    height: 150px;
  }

  .archive-shell {
    padding: 46px 18px;
  }

  .preamble,
  .article {
    padding: 26px 20px;
  }

  .article::before {
    left: 20px;
  }

  .articleNumber {
    margin-left: 48px;
  }

  .preamble p,
  .article p {
    font-size: 17px;
    line-height: 1.7;
  }

  .footer-identity {
    gap: 10px;
    padding: 12px 10px;
  }

  .footer-logo-item {
    min-width: 58px;
  }

  .footer-logo-item a.official-logo-link {
    width: 56px;
    height: 56px;
  }

  .footer-logo-item img {
    max-height: 60px;
  }

  .footer-logo-separator {
    height: 44px;
  }
}

@media (max-width: 520px) {
  .nav-container {
    padding: 12px 22px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .articleList a {
    grid-template-columns: 48px 1fr;
  }

  .reader-nav {
    gap: 18px;
  }

  .footer-identity {
    max-width: 100%;
  }
}
