:root {
  color-scheme: light;
  --paper: #f1f0eb;
  --ink: #121212;
  --muted: #676762;
  --line: #b6b5af;
  --red: #d8392f;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(0, 0, 0, 0.025) 28px),
    var(--paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 18% 27%, transparent 0 4px, rgba(0, 0, 0, 0.035) 5px 5.5px);
  background-size: 43px 47px;
  content: "";
  opacity: 0.22;
  pointer-events: none;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

header, main, footer {
  width: min(calc(100% - 5rem), 1440px);
  margin-inline: auto;
}

header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}

.welcome-mark {
  justify-self: start;
  font-family: "Songti SC", "STSong", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
}

header p {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

header p:last-child { justify-self: end; }

main {
  position: relative;
  min-height: calc(100vh - 172px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.72fr);
  gap: 6vw;
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
}

.cover { position: relative; z-index: 2; }

.classification {
  width: 116px;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
  border: 2px solid var(--red);
  color: var(--red);
  transform: rotate(-2deg);
}

.classification span, .classification strong {
  padding: 0.42rem 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.classification strong { border-top: 1px solid var(--red); font-size: 0.76rem; }

.eyebrow {
  margin: 0 0 1.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(4rem, 7.6vw, 8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.redactions {
  display: flex;
  gap: 0.45rem;
  margin-top: 3rem;
}

.redactions span { display: block; height: 9px; background: var(--ink); }
.redactions span:nth-child(1) { width: 84px; }
.redactions span:nth-child(2) { width: 164px; }
.redactions span:nth-child(3) { width: 52px; }

.index-card {
  position: relative;
  z-index: 2;
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: 15px 15px 0 var(--ink);
}

.card-head {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 2px solid var(--ink);
}

.card-head p, .serial {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

ol { margin: 0; padding: 0; list-style: none; counter-reset: archive; }

li {
  counter-increment: archive;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.9rem;
  padding: 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

li::before { content: "0" counter(archive); color: var(--muted); }
li strong { font-size: 0.58rem; }
li:not(:first-child) strong { color: var(--red); }

.login-preview {
  width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem;
  padding: 1rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  text-align: left;
  opacity: 1;
}

.login-preview small { color: #aaa; font-size: 0.62rem; }
.serial { padding: 0 1rem 1rem; color: var(--muted); }

.stamp {
  position: absolute;
  right: -2.5rem;
  bottom: 8%;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

footer {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 2px solid var(--ink);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

footer p { margin: 0; }
footer p:nth-child(2) { color: var(--red); }
footer p:last-child { justify-self: end; }

@media (max-width: 860px) {
  header, main, footer { width: min(calc(100% - 2rem), 1440px); }
  header { min-height: 74px; grid-template-columns: 1fr 1fr; }
  header p:nth-child(2) { display: none; }
  main { min-height: auto; grid-template-columns: 1fr; gap: 4rem; padding-block: 4rem 5.5rem; }
  h1 { font-size: clamp(3.1rem, 13.2vw, 5.5rem); }
  .classification { margin-bottom: 2.3rem; }
  .index-card { box-shadow: 9px 9px 0 var(--ink); }
  .stamp { display: none; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { display: none; }
}
