<br />
<b>Deprecated</b>:  The each() function is deprecated. This message will be suppressed on further calls in <b>/home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php</b> on line <b>456</b><br />
/*
  Liturgy portfolio prototype
  Dark editorial HUD design inspired by system/archive interfaces.
*/
:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-soft: #101012;
  --surface: rgba(18, 18, 22, 0.68);
  --surface-strong: rgba(23, 23, 28, 0.9);
  --text: #f7f4ee;
  --muted: #b9adac;
  --dim: #7b7173;
  --line: rgba(45, 212, 191, 0.22);
  --line-strong: rgba(232, 77, 138, 0.36);
  --brand: #b31954;
  --accent: #2dd4bf;
  --accent-2: #f0b45b;
  --hot: #fff7ec;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 999px;
  --container: min(1180px, calc(100vw - 42px));
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fffaf5;
  --bg-soft: #f2ede7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #211316;
  --muted: #665a57;
  --dim: #887d78;
  --line: rgba(15, 118, 110, 0.2);
  --line-strong: rgba(179, 25, 84, 0.3);
  --accent: #0f766e;
  --accent-2: #9a3412;
  --hot: #150b0d;
  --shadow: 0 24px 70px rgba(43, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 16% 8%,
      rgba(179, 25, 84, 0.34),
      transparent 32rem
    ),
    radial-gradient(
      circle at 84% 24%,
      rgba(45, 212, 191, 0.14),
      transparent 28rem
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 48%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 88%);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
strong {
  color: var(--hot);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  opacity: 0.58;
}

.scanlines,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.scanlines {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.32;
}

.grain {
  opacity: 0.08;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0.7px,
    transparent 0.9px
  );
  background-size: 18px 18px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  z-index: 20;
}
.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(1120px, calc(100vw - 32px));
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  backdrop-filter: blur(20px);
  z-index: 12;
  box-shadow: var(--shadow);
}

.brand,
.main-nav,
.top-actions {
  display: flex;
  align-items: center;
}
.brand {
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: linear-gradient(135deg, var(--brand), var(--accent));
  background-clip: padding-box;
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.14),
    inset 0 0 14px rgba(45, 212, 191, 0.24);
  color: white;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.brand-text {
  font-size: 0.98rem;
}

.main-nav {
  flex-direction: row;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.main-nav a,
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: 180ms ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(45, 212, 191, 0.12);
}
.nav-cta {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-clip: padding-box;
  justify-content: center;
}
.top-actions {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}
.theme-toggle {
  width: 54px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.18);
  padding: 4px;
  cursor: pointer;
}
.theme-toggle__dot {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(240, 180, 91, 0.5);
  transition: transform 180ms ease;
}
html[data-theme="light"] .theme-toggle__dot {
  transform: translateX(20px);
}

.hud {
  position: fixed;
  bottom: 22px;
  z-index: 9;
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}
.hud strong {
  color: var(--muted);
  font-weight: 600;
}
.hud-left {
  left: 28px;
}
.hud-right {
  right: 28px;
}
.scroll-meter {
  position: fixed;
  right: 18px;
  top: 50%;
  width: 2px;
  height: 160px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--line);
  z-index: 9;
}
.scroll-meter span {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.68);
}

.section-pad {
  width: var(--container);
  margin-inline: auto;
  padding: 8rem 0;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero {
  min-height: 100svh;
  padding-top: 10rem;
}
.eyebrow,
.card-code {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1,
.chapter-heading h2,
.featured-copy h2,
.support-copy h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0;
  line-height: 0.88;
  color: var(--hot);
  text-wrap: balance;
}
.hero h1 {
  font-size: 10rem;
}
.hero-line {
  max-width: 780px;
  margin: 1.2rem 0 0;
  color: var(--text);
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-text {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  background-clip: padding-box;
  font-weight: 800;
  overflow: hidden;
  transition: 180ms ease;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  background-clip: padding-box;
  box-shadow: 0 16px 38px rgba(179, 25, 84, 0.28);
}
.button-ghost {
  color: var(--accent-2);
}

.glass-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    ),
    var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at 16% 0%,
    rgba(240, 180, 91, 0.16),
    transparent 34%
  );
  opacity: 0.7;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}
.portrait-card {
  width: min(430px, 100%);
  margin-left: auto;
  padding: 0.6rem;
  transform: rotate(1.2deg);
}
.portrait-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(1.05) contrast(1.03);
}
.portrait-card__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.84rem 1rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0;
}
.portrait-card__label span {
  color: var(--muted);
}
.signal-card {
  position: absolute;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  transform: rotate(-1.8deg);
}
.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37f28a;
  box-shadow: 0 0 18px rgba(55, 242, 138, 0.8);
}
.banner-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.4rem;
  align-items: center;
  padding: 0.7rem;
}
.banner-strip img {
  width: 100%;
  height: clamp(190px, 28vw, 360px);
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}
.banner-strip div {
  padding: 1.2rem 1.4rem;
}
.banner-strip p:last-child {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.chapter {
  min-height: 70vh;
}
.chapter-heading {
  max-width: 840px;
  margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
}
.chapter-heading h2,
.featured-copy h2,
.support-copy h2 {
  font-size: 5.8rem;
}
.chapter-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
.featured-poster {
  padding: 0.65rem;
}
.featured-poster img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  border-radius: 6px;
}
.featured-copy p,
.support-copy p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}
.featured-actions,
.support-copy .button {
  margin-top: 1.6rem;
}
.support-copy .button {
  display: flex;
  width: fit-content;
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.project-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 1.6rem);
}
.story-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}
.story-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
}
.poster-link {
  display: block;
  padding: 0.75rem 0.75rem 0;
}
.poster-link img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.94) contrast(1.02);
}
.story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.2rem;
}
.story-card h3,
.feature-card h3,
.helper-copy h3,
.engine-icon-card h3,
.support-benefits h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: 0;
}
.story-card p:not(.card-code),
.feature-card p,
.helper-copy p,
.engine-icon-card p,
.support-benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  margin-top: 1rem;
}
.tag-row span,
.helper-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-2);
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}
.story-action {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 900;
}
.story-action:hover,
.story-action:focus-visible {
  color: var(--accent);
}

.engine-layout,
.helper-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 1.7rem);
  align-items: stretch;
}
.engine-icon-card {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}
.engine-icon-card img {
  width: min(240px, 76%);
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
}
.code-card {
  padding: 0;
}
.code-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}
.code-card pre {
  margin: 0;
  padding: 1.25rem;
  overflow: auto;
  max-height: 560px;
  color: #efe8ff;
  background: linear-gradient(180deg, rgba(3, 0, 8, 0.55), rgba(3, 0, 8, 0.18));
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.75;
}
html[data-theme="light"] .code-card pre {
  color: #1d0d2e;
  background: rgba(179, 25, 84, 0.05);
}
.syntax-label {
  color: #ffb3c7;
  font-weight: 800;
}
.syntax-directive {
  color: #8ddcff;
}
.syntax-string {
  color: #b9ffdd;
}
.syntax-quote {
  color: #f4e8ff;
}
html[data-theme="light"] .syntax-quote {
  color: #2b173d;
}

.compact-grid,
.link-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
  padding: 1.2rem;
}
.feature-card span,
.link-card__number {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.helper-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
}
.helper-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
}
.helper-copy h3 {
  font-size: 2.2rem;
}
.helper-copy p {
  margin-bottom: 1.4rem;
}
.helper-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.helper-image {
  padding: 0.65rem;
}
.helper-image img {
  border-radius: 6px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
.support-benefits {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}
.support-benefits article {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}
.support-benefits span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.link-card {
  --link-strip: linear-gradient(90deg, var(--brand), var(--accent));
  --link-strip-text: #ffffff;
  --link-strip-border: rgba(255, 255, 255, 0.14);
  min-height: 184px;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}
.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.link-card__strip {
  display: flex;
  align-items: center;
  min-height: 38px;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  border-bottom: 1px solid var(--link-strip-border);
  background: var(--link-strip);
  color: var(--link-strip-text);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-card__number {
  display: inline-flex;
  margin: 1.2rem 1.2rem 0;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.link-card strong {
  display: block;
  margin: 0 1.2rem 0.35rem;
  font-size: 1.08rem;
}
.link-card em {
  display: block;
  margin: 0 1.2rem 1.2rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}
.link-card--patreon {
  --link-strip: #ff424d;
  --link-strip-text: #050505;
  --link-strip-border: rgba(5, 5, 5, 0.22);
}
.link-card--github {
  --link-strip: #0d1117;
  --link-strip-text: #f0f6fc;
  --link-strip-border: rgba(240, 246, 252, 0.14);
}
.link-card--yfe {
  --link-strip: linear-gradient(90deg, #2e7580, #8abfc6);
  --link-strip-text: #071014;
  --link-strip-border: rgba(138, 191, 198, 0.28);
}
.link-card--13bbc {
  --link-strip: linear-gradient(90deg, #d8c56b, #f4ebaa);
  --link-strip-text: #14100a;
  --link-strip-border: rgba(244, 235, 170, 0.24);
}
.link-card--patreon:hover {
  border-color: #ff424d;
}
.link-card--github:hover {
  border-color: #f0f6fc;
}
.link-card--yfe:hover {
  border-color: #8abfc6;
}
.link-card--13bbc:hover {
  border-color: #f4ebaa;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--accent-2);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.topbar[data-reveal] {
  transform: translateY(-16px);
}
.topbar[data-reveal].is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #field {
    display: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .topbar[data-reveal] {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    top: 18px;
    right: 16px;
    width: min(1120px, calc(100vw - 32px));
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
  }
  .brand,
  .top-actions {
    flex: 0 0 auto;
  }
  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    flex: 0 0 auto;
  }
  .top-actions {
    flex-direction: row;
    align-items: center;
  }
  .section-grid,
  .engine-layout,
  .helper-layout,
  .featured-layout,
  .support-layout,
  .banner-strip {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 11rem;
  }
  .hero h1 {
    font-size: 7rem;
  }
  .hero-line {
    font-size: 1.85rem;
  }
  .chapter-heading h2,
  .featured-copy h2,
  .support-copy h2 {
    font-size: 4.2rem;
  }
  .hero-visual {
    min-height: auto;
  }
  .portrait-card {
    margin-inline: auto;
  }
  .signal-card {
    position: relative;
    margin: 1rem auto 0;
    inset: auto;
    justify-content: center;
  }
  .story-grid,
  .compact-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 26px, 1180px);
  }
  .topbar {
    top: 10px;
    align-items: center;
    gap: 0.55rem;
  }
  .brand-text {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .main-nav a {
    padding: 0.48rem 0.62rem;
    font-size: 0.72rem;
  }
  .hud,
  .scroll-meter {
    display: none;
  }
  .section-pad {
    padding: 5rem 0;
  }
  .hero {
    padding-top: 10.5rem;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero-line {
    font-size: 1.42rem;
  }
  .hero-text,
  .chapter-heading p:not(.eyebrow),
  .featured-copy p,
  .support-copy p {
    font-size: 1rem;
  }
  .chapter-heading h2,
  .featured-copy h2,
  .support-copy h2 {
    font-size: 3.25rem;
  }
  .helper-copy h3 {
    font-size: 1.65rem;
  }
  .story-grid,
  .compact-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
  .banner-strip div {
    padding: 0.6rem 0.4rem 0.8rem;
  }
  .code-card pre {
    font-size: 0.74rem;
  }
  .site-footer {
    flex-direction: column;
  }
}
