:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #262535;
  background: #fbfbfd;
  --ink: #262535;
  --accent: #525089;
  --muted: #585767;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(100% - 56px, 1000px); margin: auto; }
header, footer { display: flex; align-items: center; }
header { padding: 27px 0; justify-content: space-between; }
a { color: inherit; text-underline-offset: .25em; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand b { font: bold italic 35px/1 Georgia, serif; letter-spacing: -.085em; }
.brand span { font-size: 13px; font-weight: 650; letter-spacing: .12em; }
.project { font-size: 14px; }
.project span { font-size: 17px; }
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.2fr .8fr;
  align-items: center; padding: clamp(26px, 5.5vw, 64px);
  border-radius: 22px; background: #efeffa; overflow: hidden;
}
.hero-content { z-index: 1; }
.version { margin: 0 0 23px; color: var(--accent); font-size: 14px; font-weight: 650; }
.version span { padding: 0 .28em; }
h1 { font-size: clamp(48px, 6.5vw, 72px); letter-spacing: -.085em; line-height: 1.03; margin: 0; }
.period { color: var(--accent); }
.lead { max-width: 37ch; font-size: 16px; line-height: 1.85; margin: 23px 0 26px; }
.cat { width: min(100%, 340px); height: auto; justify-self: end; mix-blend-mode: multiply; }
.controls { max-width: 365px; }
.lead[hidden] + .controls { margin-top: 24px; }
button {
  background: var(--ink); color: white; border: 0; border-radius: 10px; padding: 15px 23px;
  font: inherit; font-weight: 700; cursor: pointer; transition: background .12s ease;
}
button span { padding-left: 12px; }
button:hover:enabled { background: #46436f; }
button:disabled { opacity: .66; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
#status { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
#status[data-error] { color: #8c2834; }
progress { width: 100%; height: .6em; margin-top: 9px; accent-color: var(--accent); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); padding: 32px 8px 28px; }
h2 { margin: 0 0 8px; font-size: 19px; }
.notes p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; }
footer { gap: 24px; border-top: 1px solid #dedee8; padding: 20px 8px 28px; color: var(--muted); font-size: 13px; }
@media (max-width: 650px) {
  .page { width: min(100% - 28px, 500px); }
  header { padding: 20px 5px; }
  .hero { display: block; padding: 27px 24px; }
  h1 { font-size: clamp(42px, 9.8vw, 61px); }
  .cat { position: absolute; right: 3%; top: 49px; width: 29%; z-index: -1; }
  .lead { margin: 24px 0 18px; }
  .notes { grid-template-columns: 1fr; gap: 19px; padding: 24px 8px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
