:root {
  --bg: #211a17;
  --ink: #ffead2;
  --accent: #c69163;
  --panel: #35251d;
  --muted: #cfbcb0;
  --line: #c6916350;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 32px;
}
.nav {
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 150px;
  font-weight: 700;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  background: none;
  color: inherit;
}
.primary {
  background: var(--accent);
  color: var(--bg);
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: bold;
}
.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 24px 0;
}
.lead {
  font-size: 18px;
  line-height: 1.95;
  color: var(--muted);
}
.visual {
  position: relative;
  background: var(--panel);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.visual img {
  height: 450px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(12px 20px 18px #0005);
}
.visual:before {
  content: "01 / READ THE TABLE";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
}
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: 32px;
  line-height: 1.4;
}
.section p,
.tile p {
  line-height: 1.95;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}
.tile h3 {
  font-size: 20px;
}
.number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
}
.feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.feature h2 {
  margin-top: 0;
}
.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}
.screens figure {
  margin: 0;
}
.screens img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.screens figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.toc {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}
.toc a {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  padding: 8px 0;
  color: var(--muted);
}
.article {
  max-width: 780px;
  min-width: 0;
}
.article h1 {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.3;
  margin: 20px 0;
}
.article h2 {
  font-size: 25px;
  margin: 42px 0 14px;
}
.article p {
  font-size: 17px;
  line-height: 2;
  color: var(--muted);
}
.crumb {
  font-size: 12px;
  color: var(--accent);
}
.related {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: 40px;
  line-height: 2;
  color: var(--muted);
  font-size: 12px;
}
.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer p {
  margin: 10px 0;
}
dialog {
  width: min(520px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--accent);
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
dialog p {
  line-height: 1.9;
}
.close {
  float: right;
}
.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  margin: 14px 0;
}
.copy button {
  background: var(--accent);
  color: var(--bg);
  border: 0;
  padding: 9px;
}
.status {
  min-height: 24px;
}
.copper .hero {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 25px;
  min-height: 0;
}
.copper .hero > div:first-child {
  max-width: 840px;
}
.copper .hero .visual {
  width: 100%;
  height: 310px;
  border-left: 0;
  border-right: 0;
  overflow: hidden;
}
.copper .visual img {
  height: 470px;
  transform: rotate(-8deg);
  margin-top: 120px;
}
.copper .feature {
  grid-template-columns: 1fr 2fr;
}
.copper .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.copper .article-shell {
  display: block;
  max-width: 900px;
}
.copper .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.copper .article {
  max-width: none;
}
.blueprint .hero {
  grid-template-columns: 0.9fr 1.1fr;
}
.blueprint .hero > div:first-child {
  order: 2;
}
.blueprint .visual {
  border-radius: 160px 160px 0 0;
}
.blueprint .grid {
  grid-template-columns: 1fr;
}
.blueprint .tile {
  display: grid;
  grid-template-columns: 60px 240px 1fr;
  gap: 15px;
  align-items: center;
}
.blueprint .tile h3 {
  margin: 0;
}
.blueprint .feature {
  grid-template-columns: 1fr 1fr;
}
.blueprint .section:nth-child(even) {
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}
.night .hero {
  grid-template-columns: 1fr 0.7fr;
  min-height: 690px;
}
.night .visual {
  border-radius: 40px;
  background: linear-gradient(160deg, var(--panel), var(--bg));
}
.night .hero h1 {
  font-size: clamp(44px, 6vw, 82px);
}
.night .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.night .tile {
  border-radius: 24px;
  border-top: 3px solid var(--accent);
}
.night .feature {
  display: block;
  max-width: 850px;
  margin: auto;
}
.night .article-shell {
  grid-template-columns: minmax(0, 1fr) 180px;
}
.night .toc {
  order: 2;
}
.night .article section {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 24px 14px;
  margin-top: 24px;
}
.paper {
  font-family: Georgia, "Microsoft YaHei", serif;
}
.paper .hero {
  grid-template-columns: 1fr 270px;
  min-height: 570px;
}
.paper .hero h1 {
  font-weight: 500;
}
.paper .visual {
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 15px;
}
.paper .visual img {
  height: 380px;
  filter: none;
}
.paper .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.paper .tile {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 24px 22px 24px 0;
}
.paper .feature {
  grid-template-columns: 120px 1fr;
  max-width: 900px;
}
.paper .article-shell {
  grid-template-columns: 160px minmax(0, 1fr);
  max-width: 1000px;
}
.paper .article section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
@media (max-width: 800px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .links {
    gap: 14px;
    font-size: 12px;
  }
  .hero,
  .blueprint .hero,
  .night .hero,
  .paper .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero h1,
  .night .hero h1 {
    font-size: 46px;
  }
  .blueprint .hero > div:first-child {
    order: 0;
  }
  .visual img {
    height: 360px;
  }
  .grid,
  .copper .grid,
  .night .grid,
  .paper .grid {
    grid-template-columns: 1fr;
  }
  .blueprint .tile {
    display: block;
  }
  .feature,
  .copper .feature,
  .blueprint .feature,
  .paper .feature {
    display: block;
  }
  .screens {
    gap: 16px;
  }
  .screens figcaption {
    font-size: 12px;
  }
  .section {
    padding: 45px 0;
  }
  .section h2 {
    font-size: 27px;
  }
  .article-shell,
  .night .article-shell,
  .paper .article-shell {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 32px;
  }
  .toc,
  .night .toc {
    order: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
  }
  .toc a {
    padding: 3px 0;
  }
  .article h1 {
    font-size: 36px;
  }
  .article p {
    font-size: 16px;
  }
  .copy {
    flex-wrap: wrap;
  }
  .copper .hero .visual {
    height: 270px;
  }
  .paper .visual {
    border: 0;
  }
  .screens img {
    max-height: 360px;
  }
  .blueprint .section:nth-child(even) {
    padding-left: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero h1 {
  font-size: clamp(36px, 4.3vw, 61px);
}
.night .hero h1 {
  font-size: clamp(36px, 4.3vw, 61px);
}
@media (max-width: 1100px) and (min-width: 801px) {
  .hero h1,
  .night .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 800px) {
  .hero h1,
  .night .hero h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }
}
