:root {
  color-scheme: dark;
  --dark: #0b171a;
  --cream: #f3eee3;
  --ink: #19272a;
  --line: #405353;
  --gold: #dfbf8e;
  --white: #fff9ed;
  --mist: #c2ceca;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: var(--dark);
  color: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; height: auto; max-width: 100%; }
p, li { line-height: 1.88; }
figure { margin: 0; min-width: 0; }
.wrap { width: min(100% - 100px, 1250px); margin-inline: auto; }
.skip {
  position: fixed; z-index: 5; left: 1rem; top: 1rem; transform: translateY(-200%);
  padding: .7rem 1rem; background: var(--cream); color: var(--ink);
}
.skip:focus { transform: none; }
.top { background: #0e1c21; border-bottom: 1px solid #344447; }
.bar, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.bar { min-height: 62px; }
.brand { color: var(--gold); font-weight: 750; letter-spacing: .15em; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: clamp(.85rem, 2.6vw, 2rem); flex-wrap: wrap; }
nav a { font-size: .87rem; color: var(--mist); text-decoration: none; }
nav a:hover { color: var(--gold); text-decoration: underline; }

.cover { position: relative; overflow: hidden; min-height: clamp(575px, 70svh, 760px); display: grid; align-items: end; background: #142224; isolation: isolate; }
.cover-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.cover::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg,#081518f7 0%,#081518df 32%,#08151865 55%,transparent 83%),
              linear-gradient(0deg,#091719eb,transparent 51%);
}
.cover-content { padding-block: clamp(3.25rem,7vw,7rem); }
.cover-content > * { max-width: 505px; }
.dateline { display: flex; align-items: center; flex-wrap: wrap; gap: .76rem; margin: 0 0 1.15rem; color: var(--gold); font-size: .92rem; letter-spacing: .12em; }
time { font-family: Consolas, monospace; }
.dateline span { border-left: 1px solid #a58c66; padding-left: .8rem; }
h1, h2 { font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif; margin: 0; letter-spacing: -.054em; }
h1 { font-size: clamp(4rem, 8.2vw, 8rem); line-height: 1.06; text-shadow: 0 6px 25px #08151880; }
h2 { font-size: clamp(2.35rem, 4.9vw, 4.65rem); line-height: 1.14; }
h3 { margin: 0; font-size: clamp(1.15rem,1.8vw,1.55rem); line-height: 1.4; }
.subtitle { margin: 1.3rem 0 .9rem; font-size: clamp(1.1rem, 2.15vw, 1.7rem); font-weight: 650; }
.summary { max-width: 410px; margin: 0; color: var(--mist); }
.jump { margin-top: 1.55rem; display: inline-flex; align-items: center; gap: 1.65rem; padding: .78rem 1.14rem; border-radius: 2px; background: var(--gold); color: #172326; font-weight: 700; text-decoration: none; }
.jump:hover { background: #f4d4a4; }

.paper { background: var(--cream); color: var(--ink); color-scheme: light; }
.paper p { color: #495654; }
.feature { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.23fr); gap: clamp(2rem,5vw,5.8rem); align-items: center; padding-block: clamp(3.25rem,7.5vw,7.4rem); }
.eyebrow { margin: 0 0 .85rem; font-size: .81rem; font-weight: 750; letter-spacing: .21em; color: var(--gold); }
.paper .eyebrow { color: #745531; }
.feature-text > p:not(.eyebrow) { margin: 1rem 0; }
.feature-text p strong { color: inherit; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: .6rem; font-weight: 700; }
.photo img, .science-art img { width: 100%; }
.photo > a { display: block; }
.photo > a:hover img { outline: 2px solid #926f44; outline-offset: 3px; }
figcaption { padding-top: .68rem; font-size: .78rem; line-height: 1.7; color: var(--mist); }
.paper figcaption { color: #53615b; }

.dark { background: var(--dark); }
.dark p:not(.eyebrow):not(.formula) { color: var(--mist); }
.science { padding-block: clamp(3.1rem,7vw,6.6rem); }
.science-intro { display: grid; grid-template-columns: minmax(0,.76fr) minmax(0,1.2fr); align-items: center; gap: clamp(1.75rem,5vw,6rem); margin-bottom: 2.5rem; }
.science-intro h2 + p { max-width: 31rem; }
.science-art img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 54%; border: 1px solid var(--line); }
.formula-block { display: grid; grid-template-columns: minmax(235px,.69fr) minmax(0,1.28fr); align-items: start; gap: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 2.4rem; }
.formula { color: var(--gold); margin: 0; font-family: Georgia, serif; font-size: clamp(2rem,4.2vw,4.1rem); white-space: nowrap; line-height: 1.12; }
.formula-block h3 + p { margin: .6rem 0 0; }

.properties { padding-block: clamp(3rem,6vw,6rem); }
.section-heading { margin-bottom: 2rem; }
.section-heading p { margin-bottom: 0; }
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.25rem,2.5vw,2.6rem); }
.property-grid article p { margin: .6rem 0 0; }
.property-art { position: relative; overflow: hidden; height: clamp(88px,10vw,132px); margin-bottom: 1.1rem; border: 1px solid #3f5255; background: radial-gradient(ellipse at 62% 48%,#173437,#0c2024 67%); }
.spectrum i { position: absolute; inset: 42% 10% auto; height: 16%; border-radius: 3px; background: linear-gradient(90deg,#554594,#4168c3,#61a9ab,#8abe71,#d6ba6b,#bc725a); opacity: .75; }
.spectrum::after { content: ""; position: absolute; top: 24%; bottom: 24%; left: 62%; width: 4px; background: #fff6b8; box-shadow: 0 0 9px #fff6b8; }
.phase i { position: absolute; top: 33%; left: 15%; right: 12%; height: 16%; border-bottom: 1px solid #53bcb8; background: repeating-linear-gradient(90deg,#73d3ce 0 3px,transparent 3px 19%); }
.phase i:nth-child(2) { top: 60%; left: calc(15% + 3.5%); right: 8.5%; border-color: #c99f5e; background: repeating-linear-gradient(90deg,#e5be86 0 3px,transparent 3px 19%); }
.phase b { position: absolute; top: 50%; left: 15%; width: 3.5%; height: 6px; border-inline: 1px solid #d6e7df; border-bottom: 1px solid #d6e7df; }
.beam i { position: absolute; left: 13%; top: 50%; width: 75%; border-bottom: 2px solid #6cc8c3; transform-origin: left; box-shadow: 0 0 12px #518a85; }
.beam i:nth-child(1) { transform: rotate(-3deg); }
.beam i:nth-child(3) { transform: rotate(3deg); }

.fog-grid { grid-template-columns: minmax(0,1.14fr) minmax(0,.88fr); }
.fog-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 65%; border: 1px solid var(--line); }
.viewpoint { min-width: 0; border: 0; padding: 0; margin: 1.3rem 0 0; }
.viewpoint legend { font-size: .89rem; color: var(--gold); margin-bottom: .65rem; }
.viewpoint input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.viewpoint label { display: inline-block; border: 1px solid #687878; padding: .48rem .68rem; margin: 0 .35rem .35rem 0; border-radius: 2px; font-size: .88rem; cursor: pointer; }
.viewpoint input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.viewpoint input:focus-visible + label { outline: 2px solid var(--white); outline-offset: 3px; }
.view-result { margin: .6rem 0 0; padding: .5rem 1.05rem; background: #17292c; border-left: 2px solid var(--gold); min-height: 126px; }
.view-result p { margin: .48rem 0; }
.view-result strong { color: var(--white); }
#from-side:checked ~ .view-result .from-front, #from-front:checked ~ .view-result .from-side { display: none; }

.review { display: grid; grid-template-columns: minmax(0,.79fr) minmax(0,1fr); gap: clamp(2rem,6vw,6rem); padding-block: clamp(3rem,7vw,6rem); }
.review-visual .photo { margin-top: 1.2rem; }
.review-visual .photo img { aspect-ratio: 2.1 / 1; object-fit: cover; object-position: center 58%; }
.review-body ol { margin: 0 0 1.1rem; padding-left: 1.55rem; }
.review-body li { margin: .5rem 0; }
details { border-top: 1px solid #bbbdb1; padding: .8rem 0; }
details:last-child { border-bottom: 1px solid #bbbdb1; }
summary { cursor: pointer; font-weight: 650; line-height: 1.6; }
details p { margin: .6rem 0 0; }
.bottom { border-top: 1px solid var(--line); }
.foot { padding-block: 1.7rem; align-items: flex-start; }
.foot p { color: var(--mist); font-size: .9rem; margin: 0; white-space: nowrap; }
.foot nav { gap: .65rem 1.25rem; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 58px); }
  .cover { min-height: 600px; }
  .feature, .science-intro, .review { grid-template-columns: 1fr; }
  .science-intro h2 br { display: none; }
  .science-intro { margin-bottom: 1.45rem; }
  .fog-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 40px); }
  .bar { align-items: flex-start; flex-direction: column; justify-content: center; gap: .4rem; padding: .78rem 0; }
  nav a { font-size: .76rem; }
  .cover { min-height: 615px; }
  .cover-art { height: 73%; object-position: 49% 47%; }
  .cover::after { background: linear-gradient(0deg,#0b171a 27%,#0b171af0 46%,#0b171a16 85%); }
  .cover-content { padding-block: 1.9rem; }
  h1 { font-size: clamp(3.35rem,13.8vw,4.9rem); }
  .summary { font-size: .93rem; }
  .subtitle { margin: .8rem 0 .6rem; }
  .dateline { margin-bottom: .65rem; }
  .property-grid { grid-template-columns: 1fr; gap: 1.65rem; }
  .property-grid article { border-bottom: 1px solid #bbbdb1; padding-bottom: 1.05rem; }
  .formula-block { grid-template-columns: 1fr; gap: .7rem; }
  .foot { flex-direction: column; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
