:root {
  --bg: #17221c;
  --deep: #101812;
  --paper: #e7dfce;
  --muted: #a9b3a5;
  --line: #c4caba38;
  --accent: #be694c;
  --serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  background: var(--bg);
  color: var(--paper);
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    scale 0.18s ease;
}
/* Tactile press feedback, works on touch where hover does not exist. */
button:active:not(:disabled) {
  scale: 0.96;
}
/* Hover colour only on real pointers, so taps don't leave "stuck" highlights on phones. */
@media (hover: hover) {
  button:hover:not(:disabled),
  a:hover {
    color: #ce906e;
  }
  .text-link:hover span {
    translate: 4px 0;
  }
}
a {
  transition: color 0.3s ease;
}
.text-link span {
  transition: translate 0.35s var(--ease);
}
input[type='range'] {
  accent-color: var(--accent);
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font:
    10px/1.6 Consolas,
    monospace;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.22;
  margin: 0;
}
h1 {
  font-size: clamp(60px, 8.2vw, 138px);
}
h2 {
  font-size: clamp(42px, 5.8vw, 92px);
}
h1 em,
h2 em {
  font-style: normal;
  color: #d4b894;
}
p {
  line-height: 1.9;
}
.intro {
  font-size: 14px;
  line-height: 2;
  color: #d6d8cbbb;
  margin: 24px 0;
}
.small-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 28px 0;
}
.text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid currentColor;
  padding: 14px 0;
  gap: 60px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.text-link span {
  font-size: 20px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  padding: 15px;
  background: var(--paper);
  color: var(--deep);
}
.skip-link:focus {
  top: 20px;
}
.no-script {
  position: fixed;
  inset: 20%;
  z-index: 100;
  background: var(--bg);
  padding: 30px;
}
.no-script a {
  text-decoration: underline;
}

/* Native range semantics, exhibition-scale visual track. */
input[type='range'] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  padding: 0;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: #8c987c66;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 1px solid #d1a582;
  border-radius: 50%;
  background: #bd8a65;
  transition: scale 0.2s ease;
}
input[type='range']:active::-webkit-slider-thumb {
  scale: 1.5;
}
input[type='range']::-moz-range-track {
  height: 2px;
  background: #8c987c66;
}
input[type='range']::-moz-range-progress {
  height: 2px;
  background: #bd8a65;
}
input[type='range']::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 1px solid #d1a582;
  border-radius: 50%;
  background: #bd8a65;
}
/* Bigger thumbs for fingers. */
@media (pointer: coarse) {
  input[type='range']::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -9px;
  }
  input[type='range']::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
}
