/* Norelyn homepage — command/system art direction.
   Terminal language is used as information architecture, not decoration. */

.home-page {
  --bg: #f4f5f3;
  --surface: #ecefeb;
  --ink: #171b1f;
  --muted: #59636c;
  --quiet: #7a858e;
  --line: #c9d0d4;
  --line-strong: #86939d;
  --accent: #4f637a;
  --accent-soft: rgba(79, 99, 122, .10);
  --terminal: #171b1f;
  --terminal-ink: #e8edf2;
  --terminal-muted: #9aa7b3;
  --max: 1240px;
  background: var(--bg) !important;
  color: var(--ink);
}

/* Homepage typography: CJK stays editorial, monospace stays functional. */
.home-page {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: var(--font-ui);
}

html:lang(zh-Hant) .home-page,
html:lang(zh-Hans) .home-page {
  font-family: var(--font-ui);
}

.home-page .hero h1,
.home-page .home-section-heading h2,
.home-page .continuity-copy h2,
.home-page .principles-intro h2,
.home-page .service-strip h2,
.home-page .product-row strong,
.home-page .system-row h3 {
  font-family: var(--font-display);
  font-synthesis: none;
}

:root[data-theme="dark"] .home-page {
  --bg: #0b0d10;
  --surface: #11151a;
  --ink: #c3d2e0;
  --muted: #c3d2e0;
  --quiet: #c3d2e0;
  --line: #242b32;
  --line-strong: #52606c;
  --accent: #a8b3bf;
  --accent-soft: rgba(168, 179, 191, .08);
  --terminal: #0b0d10;
  --terminal-ink: #c3d2e0;
  --terminal-muted: #c3d2e0;
}

.home-page .shell {
  width: min(calc(100% - 64px), var(--max));
}

.home-page .site-header {
  min-height: 58px;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: 0 max(32px, calc((100vw - var(--max)) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  box-shadow: none;
}

.home-page .brand {
  gap: 8px;
}

.home-page .brand-mark {
  width: 19px;
  height: 19px;
}

.home-page .brand-wordmark {
  height: 18px;
}

:root[data-theme="dark"] .home-page .brand-wordmark,
:root[data-theme="dark"] .home-page .footer-brand-wordmark {
  filter: invert(1) grayscale(1) brightness(1.45);
}

.home-page .nav {
  gap: clamp(16px, 1.8vw, 26px);
  font-family: var(--font-ui);
  font-size: 12px;
}

.home-page .nav > a {
  color: var(--muted);
  letter-spacing: .01em;
}

.home-page .nav > a:hover {
  color: var(--ink);
}

.home-page .nav > a::after {
  display: none;
}

.home-site-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.language-control,
.theme-toggle {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.language-select {
  width: 78px;
  padding: 0 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 10px;
}

.theme-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
}

.theme-toggle:hover,
.language-select:hover {
  color: var(--ink);
}

.theme-toggle-icon {
  display: inline-flex;
}

:root[data-theme="dark"] .icon-moon,
:root[data-theme="light"] .icon-sun {
  display: none;
}

/* Hero / shell session */
body.home-page .hero {
  min-height: auto;
  padding: 22px 0 78px;
  display: block;
}

.terminal-session {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.session-head {
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: lowercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, .64fr);
  min-width: 0;
}

.home-page .hero-copy {
  max-width: none;
  min-width: 0;
  padding: clamp(60px, 7vw, 96px) clamp(34px, 5vw, 72px) clamp(56px, 7vw, 88px) 12px;
}

.command-path {
  margin: 0 0 22px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
}

.command-path span,
.command-prompt {
  color: var(--accent);
}

.home-page .hero .eyebrow {
  margin: 0 0 12px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.5;
}

.home-page .hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 500;
  text-wrap: balance;
}

html:lang(zh-Hant) .home-page .hero h1,
html:lang(zh-Hans) .home-page .hero h1 {
  line-height: 1.18;
  letter-spacing: 0;
}

.home-page .hero-description {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.82;
}

.home-page .hero-actions {
  margin-top: 28px;
}

.home-page .button {
  min-height: auto;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 600;
  gap: 9px;
}

.home-page .button:hover {
  color: var(--accent) !important;
  transform: none !important;
}

.terminal-status {
  min-width: 0;
  padding: clamp(44px, 5vw, 68px) 12px clamp(44px, 5vw, 68px) clamp(28px, 4vw, 52px);
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.terminal-status .command-path {
  margin-bottom: 14px;
}

.terminal-status > a {
  display: grid;
  grid-template-columns: 38px minmax(76px, .62fr) minmax(110px, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
}

.terminal-status > a:last-of-type {
  border-bottom: 1px solid var(--line);
}

.terminal-mode,
.terminal-status small,
.terminal-status em {
  color: var(--quiet);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.terminal-status strong {
  font-size: 12px;
  font-weight: 600;
}

.terminal-status em {
  justify-self: end;
}

.terminal-status > a:hover strong,
.terminal-status > a:hover em {
  color: var(--accent);
}

.command-path.secondary {
  margin-top: 34px;
}

.shared-state {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
}

.shared-state > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.shared-state dt {
  color: var(--quiet);
}

.shared-state dd {
  margin: 0;
  color: var(--muted);
}

.command-dock {
  padding: 14px 12px 16px;
  border-top: 1px solid var(--line);
}

.command-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.command-line label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.command-line input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  font-size: 11px;
}

.command-line input::placeholder {
  color: var(--quiet);
  opacity: .8;
}

.command-line button {
  padding: 5px 0 5px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: lowercase;
}

.command-line button:hover {
  color: var(--ink);
}

.command-output {
  min-height: 0;
  margin-top: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.65;
}

.command-output:not(:empty) {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.command-output a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .hero-note {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.5;
}

/* Section frame */
.home-section {
  padding-bottom: 0;
}

.products {
  padding-top: 40px;
  padding-bottom: 128px;
}

.continuity-section {
  padding-bottom: 102px;
}

.system-section {
  padding-top: 10px;
  padding-bottom: 134px;
}

.principles-section {
  padding-bottom: 112px;
}

.services-section {
  padding-bottom: 72px;
}

.home-section .section-kicker {
  margin: 0;
  padding: 11px 0 12px;
  border-top: 1px solid var(--line-strong);
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: lowercase;
}

.home-section .section-kicker span:first-child {
  color: var(--accent);
  font-weight: 500;
}

.home-section-heading {
  max-width: none;
  padding: 32px 0 44px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, .68fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: end;
}

.home-section-heading h2,
.continuity-copy h2,
.principles-intro h2,
.service-strip h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(29px, 3.4vw, 45px);
  line-height: 1.14;
  letter-spacing: -.026em;
  font-weight: 500;
  text-wrap: balance;
}

html:lang(zh-Hant) .home-section-heading h2,
html:lang(zh-Hans) .home-section-heading h2,
html:lang(zh-Hant) .continuity-copy h2,
html:lang(zh-Hans) .continuity-copy h2,
html:lang(zh-Hant) .principles-intro h2,
html:lang(zh-Hans) .principles-intro h2,
html:lang(zh-Hant) .service-strip h2,
html:lang(zh-Hans) .service-strip h2 {
  line-height: 1.24;
  letter-spacing: 0;
}

.home-section-heading p,
.continuity-copy p,
.principles-intro > p,
.service-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Products as executable entries */
.product-list {
  border-top: 1px solid var(--line-strong);
}

.product-row {
  min-height: 124px;
  padding: 21px 0;
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(320px, 1fr) 96px 22px;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.product-row > div:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
}

.product-index {
  grid-row: 1 / span 2;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 10px;
}

.product-index::before {
  content: "[";
}

.product-index::after {
  content: "]";
}

.product-row strong {
  display: block;
  color: var(--ink);
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 520;
}

.product-row small {
  display: block;
  margin-top: 7px;
  color: var(--quiet);
  font-size: 10px;
}

.product-row > p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.product-row .status {
  justify-self: start;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .02em;
}

.product-row .status::before {
  content: "[";
}

.product-row .status::after {
  content: "]";
}

.product-row .status.available {
  color: var(--accent);
}

.product-row .row-arrow {
  justify-self: end;
  color: var(--quiet);
  font-size: 14px;
}

@media (hover: hover) {
  .product-row:hover {
    background: var(--accent-soft);
  }

  .product-row:hover strong,
  .product-row:hover .row-arrow {
    color: var(--accent);
  }
}

/* Continuity as a pipeline */
.continuity-layout {
  padding-top: clamp(42px, 6vw, 70px);
}

.continuity-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, .68fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.continuity-flow {
  margin-top: clamp(54px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  gap: 16px;
  align-items: stretch;
}

.flow-node {
  min-height: 150px;
  padding: 15px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.flow-node span {
  margin-bottom: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.flow-node strong {
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -.015em;
  font-weight: 520;
}

.flow-node small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.flow-arrow {
  align-self: center;
  justify-self: center;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 11px;
}

.continuity-note {
  max-width: 600px;
  margin: 22px 0 0 auto;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  text-align: right;
}

/* Shared architecture as inspect output */
.system-index {
  display: block;
  border-top: 1px solid var(--line-strong);
}

.system-row,
.system-row-home {
  min-height: 0;
  padding: 22px 0 23px;
  display: grid;
  grid-template-columns: 145px minmax(220px, .72fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: baseline;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.system-key {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .03em;
}

.system-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.28;
  letter-spacing: -.015em;
  font-weight: 500;
}

.system-row > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.78;
}

/* Config */
.principles-layout {
  padding-top: clamp(44px, 6vw, 74px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(370px, .64fr);
  gap: clamp(58px, 10vw, 128px);
  align-items: start;
}

.principles-intro > p {
  max-width: 590px;
  margin-top: 24px;
}

.principle-list {
  border-top: 1px solid var(--line-strong);
}

.principle-list article {
  padding: 15px 0 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.principle-list article > span {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
}

.principle-list strong {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
}

.principle-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* Services */
.service-strip {
  padding: clamp(36px, 5vw, 56px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: end;
  border: 0;
}

.service-strip > div {
  max-width: 780px;
}

.service-strip h2 {
  font-size: clamp(26px, 2.9vw, 39px);
}

.service-strip p {
  max-width: 650px;
  margin-top: 17px;
}

/* Footer */
.home-page .site-footer {
  margin-top: 0;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line-strong);
}

.home-page .footer-main {
  grid-template-columns: minmax(250px, .8fr) minmax(470px, 1.2fr);
  gap: 68px;
}

.home-page .footer-identity .muted {
  max-width: 360px;
  margin-top: 13px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

.home-page .footer-columns {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 30px;
}

.home-page .footer-columns p {
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.home-page .footer-columns a {
  color: var(--muted);
  font-size: 11px;
}

.home-page .footer-columns a:hover {
  color: var(--ink);
}

.home-page .copyright {
  margin-top: 54px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 9px;
}

@media (max-width: 980px) {
  .home-page .shell {
    width: min(calc(100% - 44px), var(--max));
  }

  .home-page .site-header {
    padding: 0 22px;
  }

  .home-page .nav {
    top: 100%;
    padding: 8px 22px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .home-page .nav > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .home-site-tools {
    margin: 10px 0 0;
    padding: 11px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-grid,
  .split-heading,
  .continuity-copy,
  .principles-layout,
  .service-strip,
  .home-page .footer-main {
    grid-template-columns: 1fr;
  }

  .terminal-status {
    padding: 34px 12px 42px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .split-heading,
  .continuity-copy,
  .principles-layout,
  .service-strip {
    gap: 28px;
  }

  .product-row {
    grid-template-columns: minmax(210px, .7fr) minmax(280px, 1fr) auto;
  }

  .product-row .row-arrow {
    display: none;
  }

  .system-row,
  .system-row-home {
    grid-template-columns: 120px minmax(210px, .7fr) minmax(260px, 1fr);
    gap: 24px;
  }

  .home-page .footer-main {
    gap: 42px;
  }
}

@media (max-width: 720px) {
  .home-page .shell {
    width: min(calc(100% - 34px), var(--max));
  }

  .home-page .site-header {
    min-height: 56px;
    padding: 0 17px;
  }

  body.home-page .hero {
    width: auto;
    padding: 16px 0 58px;
  }

  .terminal-session,
  .hero-grid,
  .home-page .hero-copy {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .session-head {
    min-height: 34px;
    padding: 8px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .hero-copy {
    padding: 46px 0 48px;
  }

  .home-page .hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(34px, 9.6vw, 46px);
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: pretty;
  }

  .home-page .hero-description {
    margin-top: 23px;
    font-size: 15px;
    line-height: 1.76;
  }

  .terminal-status {
    padding: 28px 0 34px;
  }

  .terminal-status > a {
    grid-template-columns: 34px minmax(78px, 1fr) auto;
  }

  .terminal-status small {
    grid-column: 2;
  }

  .terminal-status em {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .shared-state > div {
    grid-template-columns: 82px 1fr;
  }

  .command-dock {
    padding: 13px 0 14px;
  }

  .command-line {
    gap: 10px;
  }

  .command-line label {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .command-line input {
    padding: 7px 0 6px;
  }

  .products {
    padding-top: 32px;
    padding-bottom: 92px;
  }

  .continuity-section {
    padding-bottom: 78px;
  }

  .system-section {
    padding-bottom: 92px;
  }

  .principles-section {
    padding-bottom: 84px;
  }

  .services-section {
    padding-bottom: 56px;
  }

  .home-section-heading {
    padding: 27px 0 33px;
  }

  .home-section-heading h2,
  .continuity-copy h2,
  .principles-intro h2 {
    font-size: clamp(27px, 8.4vw, 37px);
  }

  .product-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 13px 16px;
    padding: 21px 0;
  }

  .product-row > div:first-child {
    grid-column: 1;
  }

  .product-row > p {
    grid-column: 1 / -1;
    padding-left: 42px;
  }

  .product-row .status {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 3px;
  }

  .continuity-flow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 46px;
  }

  .flow-node {
    min-height: 118px;
    padding-bottom: 16px;
  }

  .flow-arrow {
    display: none;
  }

  .continuity-note {
    margin-left: 0;
    text-align: left;
  }

  .system-row,
  .system-row-home {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 19px 0 20px;
  }

  .system-row h3 {
    font-size: 19px;
  }

  .system-row > p:last-child {
    margin-top: 2px;
  }

  .principles-layout {
    gap: 46px;
  }

  .service-strip {
    gap: 24px;
  }

  .service-strip .button {
    justify-self: start;
  }

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

@media (max-width: 460px) {
  .home-page .shell {
    width: calc(100% - 28px);
  }

  .home-page .site-header {
    padding-inline: 14px;
  }

  .home-page .brand-wordmark {
    height: 16px;
  }

  .home-page .hero h1 {
    font-size: 34px;
  }

  .home-page .hero-description {
    font-size: 14px;
  }

  .home-section .section-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-row > div:first-child {
    grid-template-columns: 36px 1fr;
  }

  .product-row > p {
    padding-left: 36px;
  }

  .product-row strong {
    font-size: 24px;
  }

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

  .home-page .copyright {
    margin-top: 40px;
  }
}

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

/* Dark mode: use the requested foreground for all visible homepage copy. */
:root[data-theme="dark"] .home-page :is(
  h1, h2, h3, h4, h5, h6, p, a, span, small, strong, b, em, label,
  button, input, textarea, select, li, time, summary, code, pre, blockquote
),
:root[data-theme="dark"] .home-page .button:hover {
  color: #c3d2e0 !important;
}
