/* ============================================================
   真人百家家乐 · 共享样式 /assets/site.css
   档案式导航手册：墨绿分区 / 纸白阅读 / 暖金批注 / 切角与斜线
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #0A2A23;
  --ink-800: #12362D;
  --ink-700: #1E4A3C;
  --ink-600: #2F6B57;
  --paper: #F4EFE2;
  --paper-2: #FBF8F0;
  --gold: #C8A046;
  --gold-soft: #E6CB86;
  --cinnabar: #B23A2C;
  --moss: #7C8C84;
  --ink-black: #12100C;

  --line-soft: rgba(47, 107, 87, .30);
  --line-strong: rgba(47, 107, 87, .52);
  --line-gold: rgba(200, 160, 70, .55);
  --on-dark: rgba(244, 239, 226, .82);
  --on-dark-dim: rgba(244, 239, 226, .56);

  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --cut: 12px;
  --dur: 160ms;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video { max-width: 100%; }

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

main { display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

a:hover { color: var(--ink-700); }

ul, ol { margin: 0; padding: 0; }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.32;
  color: var(--ink-900);
  margin: 0 0 .55em;
}

h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2.1vw, 28px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--ink-900); }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .04em;
}

::selection {
  background-color: var(--gold);
  color: var(--ink-900);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.site-footer :focus-visible,
.ink-zone :focus-visible {
  outline-color: var(--gold-soft);
}

#main-content:focus,
#main-content:focus-visible { outline: none; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--ink-900);
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--line-gold);
  transition: top var(--dur) ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: var(--gold-soft);
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(64px, 15vw, 200px);
  height: 2px;
  background-color: var(--gold);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  min-width: 0;
}

.brand:hover { color: var(--ink-900); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background-color: var(--ink-900);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.revision-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 9px;
  background-color: rgba(200, 160, 70, .09);
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.5;
  white-space: nowrap;
}

.revision-badge__label { color: var(--moss); }
.revision-badge__code { color: var(--ink-700); font-weight: 600; }

.header-end {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  min-width: 0;
}

.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) ease-out;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) ease-out;
}

.nav-list a:hover,
.nav-list a:focus-visible { color: var(--ink-700); }

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

.nav-list a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink-900);
}

.header-utility {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color var(--dur) ease-out, border-color var(--dur) ease-out;
}

.header-utility:hover,
.header-utility:focus-visible {
  color: var(--ink-900);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-900);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color var(--dur) ease-out, background-color var(--dur) ease-out;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gold);
  background-color: rgba(200, 160, 70, .12);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--dur) ease-out, opacity var(--dur) ease-out;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink-900);
  color: var(--on-dark);
  padding-top: clamp(40px, 6vw, 76px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--gold) 0%, rgba(200, 160, 70, .35) 28%, rgba(200, 160, 70, 0) 68%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.1fr);
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.footer-brand .brand { color: var(--paper); }

.footer-brand .brand-mark {
  background-color: transparent;
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
}

.footer-brand .brand:hover { color: var(--gold-soft); }

.footer-tagline {
  max-width: 24em;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

.footer-revision {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-content: start;
}

.footer-col h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--paper);
  border-bottom: 1px solid rgba(47, 107, 87, .58);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.footer-col a {
  font-size: 14px;
  color: rgba(244, 239, 226, .78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease-out, border-color var(--dur) ease-out;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.footer-col li span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.7;
  color: rgba(244, 239, 226, .62);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(47, 107, 87, .58);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(244, 239, 226, .55);
}

.footer-note {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.7;
  color: rgba(244, 239, 226, .46);
}

/* ---------- 7. 容器与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section--dark {
  background-color: var(--ink-900);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--paper);
}

.section--dark strong { color: var(--gold-soft); }

.section--dark a { color: var(--gold-soft); }
.section--dark a:hover { color: var(--paper); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: clamp(24px, 3.2vw, 40px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section--dark .section-head { border-bottom-color: rgba(47, 107, 87, .7); }

.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.section-head__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}

.section-head__note {
  margin-left: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--moss);
}

.section--dark .section-head__note { color: var(--on-dark-dim); }

/* ---------- 8. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

.grid--split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

.grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.grid--stagger { align-items: start; }

@media (min-width: 861px) {
  .grid--stagger > :nth-child(even) {
    margin-top: clamp(20px, 3vw, 44px);
  }
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out, border-color var(--dur) ease-out, transform var(--dur) ease-out;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--gold);
  color: var(--ink-900);
  font-weight: 600;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--gold-soft);
  color: var(--ink-900);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--ink-900);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold);
  background-color: rgba(200, 160, 70, .12);
  color: var(--ink-900);
}

.btn--onDark {
  background-color: transparent;
  border-color: rgba(230, 203, 134, .55);
  color: var(--paper);
}

.btn--onDark:hover,
.btn--onDark:focus-visible {
  border-color: var(--gold-soft);
  background-color: rgba(230, 203, 134, .12);
  color: var(--gold-soft);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--moss);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumbs li { display: flex; align-items: center; }

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 .6em;
  color: rgba(47, 107, 87, .55);
}

.breadcrumbs a {
  color: var(--ink-600);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--ink-900); }

.breadcrumbs [aria-current="page"] { color: var(--ink-black); }

/* ---------- 11. 正文容器 ---------- */
.prose { max-width: 68ch; }

.prose p,
.prose li {
  font-size: 16.5px;
  line-height: 1.8;
}

.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }

.prose ul,
.prose ol { padding-left: 1.3em; margin-bottom: 1em; }

.prose li { margin-bottom: .45em; }

.prose a {
  color: var(--ink-700);
  border-bottom: 1px solid var(--gold);
  text-decoration: none;
}

.prose a:hover { color: var(--ink-900); }

.section--dark .prose a {
  color: var(--gold-soft);
  border-bottom-color: rgba(230, 203, 134, .6);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media { margin: 0; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--media-ratio, 4 / 3);
  background-color: var(--ink-800);
  background-image: repeating-linear-gradient(135deg, rgba(230, 203, 134, .07) 0, rgba(230, 203, 134, .07) 1px, transparent 1px, transparent 9px);
  border: 1px solid var(--ink-600);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-frame > img,
.media-frame > picture > img { object-fit: cover; }

.media-frame--paper {
  background-color: var(--paper-2);
  border-color: var(--line-soft);
  background-image: repeating-linear-gradient(135deg, rgba(47, 107, 87, .07) 0, rgba(47, 107, 87, .07) 1px, transparent 1px, transparent 9px);
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--moss);
}

.section--dark .media__caption { color: var(--on-dark-dim); }

/* ---------- 13. 档案零件 ---------- */
.rev-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background-color: rgba(200, 160, 70, .1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--ink-700);
}

.rev-strip__code {
  color: var(--ink-900);
  font-weight: 600;
}

.section--dark .rev-strip {
  background-color: rgba(230, 203, 134, .1);
  color: var(--on-dark);
}

.section--dark .rev-strip__code { color: var(--gold-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  background-color: rgba(200, 160, 70, .1);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--ink-700);
  white-space: nowrap;
}

.tag--change {
  border-color: rgba(178, 58, 44, .45);
  background-color: rgba(178, 58, 44, .1);
  color: var(--cinnabar);
}

.section--dark .tag {
  border-color: rgba(230, 203, 134, .4);
  background-color: rgba(230, 203, 134, .1);
  color: var(--gold-soft);
}

.disclosure {
  border: 1px solid var(--line-soft);
  background-color: var(--paper-2);
}

.section--dark .disclosure {
  border-color: rgba(47, 107, 87, .6);
  background-color: var(--ink-800);
}

.disclosure + .disclosure { margin-top: 12px; }

.disclosure summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.section--dark .disclosure summary { color: var(--paper); }

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::marker { content: ""; }

.disclosure summary::before {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
}

.disclosure[open] summary::before { content: "−"; }

.disclosure__body {
  padding: 0 18px 18px 44px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-black);
}

.section--dark .disclosure__body { color: var(--on-dark); }

/* ---------- 14. 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background-color: rgba(200, 160, 70, .12);
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 0;
  background-image: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

/* ---------- 15. 渐进显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 12px;
  }

  .header-brand { grid-column: 1; grid-row: 1; }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .header-end {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 4px;
  }

  .js .site-nav {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 180ms ease-out, visibility 0s linear 180ms;
  }

  .js .site-nav[data-open="true"] {
    max-height: 560px;
    visibility: visible;
    transition: max-height 180ms ease-out, visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list li + li { border-top: 1px solid rgba(47, 107, 87, .22); }

  .nav-list a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    white-space: normal;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"]::before {
    content: "·";
    margin-right: .55em;
    color: var(--gold);
  }

  .header-utility { align-self: flex-start; }

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

@media (max-width: 700px) {
  .revision-badge { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .brand-name { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }

  .footer-legal { gap: 6px 18px; }

  .disclosure__body { padding-left: 18px; }

  .scroll-progress { width: 2px; }
}

/* ---------- 17. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .btn:hover { transform: none; }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
