:root {
  --red: #D4000E;
  --deep-black: #1A1A2E;
  --white: #FFFFFF;
  --banner-blue: #3AB0E6;
  --banner-white: #F5F5FA;
  --banner-red: #FF4B4B;
  --banner-green: #7ED321;
  --banner-yellow: #F5A623;
  --silver: #B8B8C8;
  --near-black: #0A0A12;
  --font-head: "Playfair Display", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "Menlo", "Consolas", "Courier New", monospace;
  --container-w: 1240px;
  --header-h: 72px;
  --gutter-inline: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-black);
  background: var(--banner-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

[id="main-content"] {
  flex: 1;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  color: var(--deep-black);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: .01em;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1em;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

.content-area {
  max-width: 720px;
}

.content-area a {
  color: var(--banner-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.content-area a:hover {
  color: var(--red);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, .14), 0 4px 14px rgba(212, 0, 14, .35);
}

.btn-red:hover {
  background: #B0000C;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, .18), 0 6px 20px rgba(212, 0, 14, .45);
}

.btn-outline {
  background: transparent;
  color: var(--deep-black);
  border-color: var(--deep-black);
}

.btn-outline:hover {
  background: var(--deep-black);
  color: var(--white);
}

.btn-dark {
  background: var(--deep-black);
  color: var(--white);
  border-color: var(--deep-black);
}

.btn-dark:hover {
  background: var(--near-black);
  border-color: var(--near-black);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 12px rgba(10, 10, 18, .3);
  transition: top .25s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-black);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(10, 10, 18, .22);
}

.prayer-strip {
  height: 4px;
  background: linear-gradient(90deg,
    var(--banner-blue) 0 20%,
    var(--banner-white) 20% 40%,
    var(--banner-red) 40% 60%,
    var(--banner-green) 60% 80%,
    var(--banner-yellow) 80% 100%);
}

.site-header .prayer-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--container-w), calc(100% - var(--gutter-inline) * 2));
  min-height: var(--header-h);
  margin-inline: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  border-radius: 2px;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: .02em;
}

.site-logo-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  line-height: 1.2;
  color: var(--silver);
}

.command-bar {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  counter-reset: nav-index;
}

.nav-item {
  counter-increment: nav-index;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 2px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}

.nav-link::before {
  content: "0" counter(nav-index) " /";
  font-size: .6rem;
  color: var(--silver);
  opacity: .6;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--banner-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color .25s ease, background-color .25s ease;
}

.nav-toggle:hover {
  border-color: var(--red);
  background: rgba(255, 255, 255, .05);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
  z-index: 2;
}

.scroll-progress::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--red), var(--banner-red));
  box-shadow: 0 0 10px rgba(212, 0, 14, .55);
}

.scroll-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  left: clamp(6px, var(--scroll, 0%), calc(100% - 6px));
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 0 8px rgba(212, 0, 14, .5);
}

.site-footer {
  background: var(--near-black);
  color: var(--white);
  border-top: 2px solid var(--deep-black);
}

.site-footer .prayer-strip {
  width: 100%;
}

.footer-inner {
  width: min(var(--container-w), calc(100% - var(--gutter-inline) * 2));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 5vw, 72px);
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-logo--footer .site-logo-mark {
  width: 38px;
  height: 38px;
  font-size: .9rem;
}

.site-logo--footer .site-logo-sub {
  color: var(--silver);
}

.footer-desc {
  max-width: 320px;
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .64);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--red);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, .72);
  font-size: .875rem;
  line-height: 1.4;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-link:hover {
  color: var(--banner-red);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-trust {
  max-width: 540px;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .52);
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep-black);
  color: var(--white);
  border: 2px solid var(--red);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(10, 10, 18, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--red);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--silver);
}

.breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  display: inline-block;
  transform: rotate(22deg);
}

.container {
  width: min(var(--container-w), calc(100% - var(--gutter-inline) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 48px);
}

.card {
  background: var(--white);
  border: 2px solid var(--deep-black);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--deep-black);
  padding: clamp(20px, 3vw, 32px);
}

.card--red {
  background: var(--red);
  border-color: var(--deep-black);
  color: var(--white);
}

.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--deep-black);
  border: 2px solid var(--deep-black);
  box-shadow: 5px 5px 0 rgba(10, 10, 18, .9);
  overflow: hidden;
}

.image-frame--portrait {
  aspect-ratio: 3 / 4;
}

.image-frame--tall {
  aspect-ratio: 4 / 5;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--red) 50%);
  pointer-events: none;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.editorial-aside {
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.7;
  color: var(--silver);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--deep-black);
  background: var(--banner-white);
  border: 1px solid var(--silver);
  border-radius: 2px;
  line-height: 1.4;
}

.tag--hot {
  background: var(--banner-red);
  border-color: var(--banner-red);
  color: var(--white);
}

.tag--new {
  background: var(--banner-yellow);
  border-color: var(--banner-yellow);
  color: var(--deep-black);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--banner-yellow);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .command-bar[data-nav] {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 90;
    margin-left: 0;
    background: var(--near-black);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }

  .command-bar[data-nav][data-open] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(var(--container-w), calc(100% - var(--gutter-inline) * 2));
    margin-inline: auto;
    padding-block: 10px 20px;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 2px;
    font-size: .95rem;
  }
}

@media (max-width: 900px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-aside {
    font-size: .8rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--silver);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .btn-download {
    padding: 9px 14px;
    font-size: .78rem;
  }
}

@media (max-width: 480px) {
  .site-logo-mark {
    width: 36px;
    height: 36px;
    font-size: .88rem;
  }

  .site-logo-title {
    font-size: 1rem;
  }

  .site-logo-sub {
    font-size: .52rem;
  }

  .header-actions {
    gap: 8px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
