@import url("https://fonts.googleapis.com/css2?family=Metal+Mania&family=Pirata+One&family=UnifrakturMaguntia&display=swap");

:root {
  color-scheme: dark;
  --display-font: "Metal Mania", "Pirata One", "UnifrakturMaguntia", Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
  --bg: #020202;
  --panel: rgba(14, 14, 14, 0.86);
  --panel-strong: rgba(5, 5, 5, 0.92);
  --line: rgba(190, 38, 32, 0.44);
  --line-soft: rgba(255, 255, 255, 0.16);
  --white-line: rgba(255, 255, 255, 0.28);
  --gold: #d8aa52;
  --silver: #d7d7d7;
  --red: #b71717;
  --red-bright: #f44235;
  --thread-red: #c71919;
  --thread-bright: #ff4b3f;
  --thread-dark: #380202;
  --text: #fff;
  --muted: #e1e1e1;
  --soft-white: #f6f6f6;
  --steel: #a7a7a7;
  --shadow: rgba(0, 0, 0, 0.72);
  --filigree-rail: url("assets/red-testament-border-filigree-side-20260802.jpg");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: linear-gradient(180deg, #141414 0%, #070707 58%, #000 100%);
}

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

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

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 36px;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(12px, 3vw, 28px);
  text-align: center;
}

.hero-art {
  position: relative;
  width: min(980px, 100%);
  margin: 0;
  padding: clamp(24px, 4vw, 46px) clamp(96px, 8vw, 112px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 4px solid var(--thread-red);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 30%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(199, 25, 25, 0.18) inset,
    0 22px 70px var(--shadow);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(199, 25, 25, 0.58) inset,
    0 18px 52px rgba(0, 0, 0, 0.62);
}

.art-description {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 24px auto 0;
  color: var(--soft-white);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.hero-copy {
  position: relative;
  width: min(860px, 100%);
  padding: clamp(24px, 4vw, 46px) clamp(112px, 11vw, 138px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 4px solid var(--thread-red);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 30%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(199, 25, 25, 0.18) inset,
    0 22px 70px var(--shadow);
}

.eyebrow,
.doc-kicker,
.page-footer span {
  margin: 0 0 12px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.doc-button,
.page-footer p {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--thread-red);
  background:
    repeating-linear-gradient(
      108deg,
      rgba(255, 239, 225, 0.36) 0 1px,
      rgba(185, 15, 15, 0.08) 1px 3px,
      rgba(70, 0, 0, 0.3) 3px 5px
    ),
    linear-gradient(180deg, #ff5a4d 0%, #cc1919 38%, #7f0808 68%, #2a0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.85px rgba(18, 0, 0, 0.96);
  filter:
    drop-shadow(0 1px 0 rgba(255, 140, 122, 0.2))
    drop-shadow(0 2px 0 rgba(42, 0, 0, 0.9));
}

h1 {
  font-size: clamp(3rem, 10vw, 7.2rem);
  line-height: 0.92;
  text-shadow:
    1px 0 0 var(--thread-dark),
    -1px 0 0 var(--thread-dark),
    0 1px 0 #210000,
    0 -1px 0 rgba(255, 126, 105, 0.18),
    2px 2px 0 rgba(0, 0, 0, 0.86);
}

.red-testament-title {
  display: grid;
  justify-items: center;
  gap: 0.06em;
  text-transform: none;
}

.red-testament-title .title-the,
.red-testament-title .title-main {
  display: block;
}

.red-testament-title .title-the {
  font-size: clamp(1.7rem, 4.5vw, 3.6rem);
  line-height: 0.8;
  letter-spacing: 0.08em;
}

.red-testament-title .title-main {
  font-size: clamp(3.35rem, 10vw, 7.5rem);
  line-height: 0.84;
}

h2 {
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.95;
  background: none;
  color: var(--soft-white);
  -webkit-text-fill-color: var(--soft-white);
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.96);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.95));
}

h3 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
  background: none;
  color: var(--soft-white);
  -webkit-text-fill-color: var(--soft-white);
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.96);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.95));
}

.lead {
  width: min(700px, 100%);
  margin: 20px auto 0;
  color: var(--soft-white);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.documents {
  position: relative;
  margin-top: clamp(34px, 6vw, 76px);
  padding: clamp(24px, 4vw, 46px) clamp(112px, 11vw, 138px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(199, 25, 25, 0.34) 0 5px, transparent 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 32%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(199, 25, 25, 0.26) inset,
    0 24px 80px var(--shadow);
}

.hero-copy > *,
.hero-art > *,
.documents > *,
.reader-section-head > *,
.reader-card > * {
  position: relative;
  z-index: 1;
}

.hero-copy::before,
.hero-copy::after,
.hero-art::before,
.hero-art::after,
.documents::before,
.documents::after,
.reader-section-head::before,
.reader-section-head::after,
.reader-card::before,
.reader-card::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 0;
  width: 96px;
  pointer-events: none;
  opacity: 0.5;
  background-image: var(--filigree-rail);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 96px auto;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 46%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 46%, transparent 100%);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.1))
    drop-shadow(0 0 8px rgba(0, 0, 0, 0.96));
}

.hero-copy::before,
.hero-art::before,
.documents::before,
.reader-section-head::before,
.reader-card::before {
  left: 0;
}

.hero-copy::after,
.hero-art::after,
.documents::after,
.reader-section-head::after,
.reader-card::after {
  right: 0;
  transform: scaleX(-1);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.document-card {
  min-width: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--white-line);
  border-top: 3px solid var(--thread-red);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 45%),
    var(--panel-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.78) inset,
    0 16px 44px rgba(0, 0, 0, 0.4);
}

.document-card p {
  color: var(--muted);
  margin: 16px 0 0;
}

.document-meta,
.symbol-list {
  margin: 20px 0 0;
  padding: 0;
}

.document-meta div,
.symbol-list div {
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.document-meta dt,
.symbol-list dt {
  color: var(--gold);
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-meta dd,
.symbol-list dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, #d71919, #8d0808);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(183, 23, 23, 0.22);
  cursor: pointer;
}

button.doc-button {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.doc-button-secondary {
  border-color: rgba(255, 255, 255, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.32));
  color: var(--soft-white);
  box-shadow: none;
}

.doc-button:hover,
.doc-button:focus-visible {
  border-color: #fff;
  background: linear-gradient(180deg, #ef342d, #9a1111);
  outline: none;
}

.readable-documents {
  margin-top: clamp(28px, 5vw, 56px);
}

.public-stack {
  display: grid;
  gap: 24px;
  margin-top: clamp(28px, 5vw, 56px);
}

.public-card h2,
.documents h2 {
  font-size: clamp(1.9rem, 5vw, 3.8rem);
}

.public-card .reader-body {
  width: min(900px, 100%);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-left: 1.2rem;
}

.service-area,
.privacy-note {
  color: var(--muted);
}

.contact-line a {
  color: var(--soft-white);
  font-weight: 700;
  text-decoration-color: rgba(244, 66, 53, 0.62);
  text-underline-offset: 4px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

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

.copy-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--soft-white);
  font-size: 0.95rem;
}

.reader-section-head {
  position: relative;
  padding: clamp(24px, 4vw, 46px) clamp(112px, 11vw, 138px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(199, 25, 25, 0.34) 0 5px, transparent 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 34%),
    var(--panel);
  box-shadow: 0 18px 60px var(--shadow);
}

.reader-card {
  position: relative;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 46px) clamp(112px, 11vw, 138px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 4px solid var(--thread-red);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 30%),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(199, 25, 25, 0.18) inset,
    0 22px 70px var(--shadow);
}

.reader-title-row {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.reader-title-row h3 {
  max-width: 900px;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
}

.reader-body {
  width: min(860px, 100%);
  margin-top: 24px;
  color: var(--soft-white);
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
  line-height: 1.75;
}

.reader-body p,
.reader-list li {
  overflow-wrap: anywhere;
}

.reader-body p {
  margin: 0 0 1rem;
}

.reader-heading {
  margin: 2rem 0 0.8rem;
  color: var(--thread-bright);
  background: none;
  font-family: var(--display-font);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--thread-bright);
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.96);
  filter: none;
  text-shadow: 1px 1px 0 #000;
}

.reader-heading-1 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
}

.reader-heading-2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.reader-list {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  color: var(--soft-white);
}

.reader-list li {
  margin: 0 0 0.55rem;
  padding-left: 0.15rem;
}

.reader-list li::marker {
  color: var(--thread-bright);
}

.signature-line {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 0;
  color: var(--steel);
}

.page-footer p {
  color: var(--text);
  font-size: 1rem;
}

.page-footer span {
  margin: 0;
  color: var(--steel);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    padding: 12px 0 28px;
  }

  .hero-copy,
  .hero-art {
    width: 100%;
    padding: 24px 48px;
  }

  .hero-art {
    padding-left: 40px;
    padding-right: 40px;
  }

  .documents,
  .reader-section-head,
  .reader-card {
    padding-left: 48px;
    padding-right: 48px;
  }

  .section-head,
  .document-grid,
  .document-actions,
  .contact-actions,
  .page-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 0;
  }

  .activity-list,
  .document-meta div,
  .symbol-list div {
    grid-template-columns: 1fr;
  }

  .document-meta div,
  .symbol-list div {
    gap: 4px;
  }

  .doc-button {
    width: 100%;
  }

  .reader-section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy::before,
  .hero-copy::after,
  .hero-art::before,
  .hero-art::after,
  .documents::before,
  .documents::after,
  .reader-section-head::before,
  .reader-section-head::after,
  .reader-card::before,
  .reader-card::after {
    width: 34px;
    opacity: 0.3;
    background-size: 34px auto;
  }

  .hero-copy::before,
  .hero-art::before,
  .documents::before,
  .reader-section-head::before,
  .reader-card::before {
    left: 0;
  }

  .hero-copy::after,
  .hero-art::after,
  .documents::after,
  .reader-section-head::after,
  .reader-card::after {
    right: 0;
  }
}
