:root {
  --ink: #262044;
  --muted: #675f82;
  --paper: #f3efff;
  --paper-2: #e7e0fb;
  --card: #ffffff;
  --cinnabar: #806af0;
  --cinnabar-deep: #5b46c7;
  --gold: #806af0;
  --pine: #5b46c7;
  --night: #0d1548;
  --line: rgba(85, 66, 144, 0.16);
  --violet: #a58df5;
  --serif: Manrope, "Noto Sans SC", sans-serif;
  --sans: Manrope, "Noto Sans SC", sans-serif;
  --display: Manrope, "Noto Sans SC", sans-serif;
  --shadow: 0 24px 60px rgba(68, 48, 140, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(165, 141, 245, 0.35), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(128, 106, 240, 0.16), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(243, 239, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark rect { fill: #5b46c7; }
.brand-mark path { fill: #efeaff; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.nav a.on, .nav a:hover { background: rgba(128, 106, 240, 0.12); color: var(--cinnabar-deep); }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}
.lang button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-weight: 700;
}
.lang button.on { background: var(--cinnabar-deep); color: #fff; }
.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  font-size: 13px;
  font-weight: 700;
}
.btn.solid { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.btn.solid:hover { background: var(--cinnabar-deep); }
.btn.ghost { background: #fff; }
.who { font-size: 13px; color: var(--muted); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 12px;
}
.kicker {
  margin: 0 0 14px;
  color: var(--cinnabar-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 10px;
  background: var(--cinnabar);
  vertical-align: middle;
}
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 520;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  color: var(--ink);
}
.display span {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Noto Sans SC", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: -0.04em;
  color: #806af0;
}
.lede { font-size: 16px; max-width: 36em; color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stage { display: grid; gap: 10px; }
.hero-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-poster {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: left center;
  border-radius: 28px;
}
.hero-cap { margin: 0; color: var(--muted); font-size: 13px; }

.stats {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 8px 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  padding: 18px 8px 8px;
  border-top: 1px solid rgba(128, 106, 240, 0.35);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}
.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 10px 28px 72px; }
.band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 28px 0 16px;
}
.band h2, .page-head h1, .sheet h1, .modal h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.band h2 { font-size: clamp(36px, 4.6vw, 60px); }
.band a { color: var(--cinnabar-deep); font-weight: 700; font-size: 14px; }

.strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.strip a:first-child { grid-row: 1 / span 2; }
.strip a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
}
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(13, 21, 72, 0.72);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.row img { width: 220px; height: 140px; object-fit: cover; border-radius: 16px; }
.row h3 { margin: 0 0 6px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.25; }
.row p { margin: 0; color: var(--muted); }
.meta { color: var(--cinnabar-deep); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; }
.row .go { color: var(--cinnabar-deep); font-size: 14px; font-weight: 700; }

.quote-band {
  margin: 28px 0 0;
  padding: 36px 32px;
  background: var(--night);
  color: #fff;
  border-radius: 28px;
}
.quote-band p { margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 520; letter-spacing: -0.045em; line-height: 1.25; }
.quote-band small { display: block; margin-top: 14px; color: #c8c6ff; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; font-size: 11px; }

.page-head { padding: 42px 0 10px; max-width: 760px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(42px, 6vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .search {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
}
.chips button.on { background: var(--cinnabar-deep); color: #fff; border-color: var(--cinnabar-deep); }
.search { min-width: min(100%, 240px); font-weight: 500; }

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  padding-bottom: 48px;
}
.sheet-kicker { margin-top: 28px; }
.sheet h1 { margin: 0 0 10px; font-size: clamp(40px, 5vw, 64px); }
.sheet .excerpt { font-size: 20px; margin-top: 0; color: var(--muted); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; }
.sheet-cover { margin: 16px 0 8px; }
.sheet-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 28px; }
.sheet-cover figcaption, .prose figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.sheet-actions { display: flex; gap: 8px; margin: 8px 0 18px; }
.prose { font-size: 17px; }
.prose h2, .prose h3 { font-family: var(--display); line-height: 1.25; margin: 1.4em 0 0.4em; letter-spacing: -0.04em; }
.prose h2 { font-size: 30px; font-weight: 600; }
.prose h3 { font-size: 22px; font-weight: 600; }
.prose p { margin: 0.75em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 16px;
  border-left: 3px solid var(--cinnabar);
  color: var(--cinnabar-deep);
  font-family: Georgia, "Noto Sans SC", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
}
.prose img { border-radius: 20px; margin: 12px 0; }
.prose a { color: var(--cinnabar-deep); }
.note {
  background: #e6defc;
  border-radius: 16px;
  padding: 12px 14px;
  color: #3d3270;
  font-size: 14px;
}

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.side-photo { width: 100%; height: 360px; object-fit: cover; border-radius: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline b { font-family: var(--display); font-size: 20px; letter-spacing: -0.04em; color: var(--cinnabar-deep); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value { background: #fff; border-radius: 24px; padding: 18px 20px; border: 1px solid var(--line); }
.value strong { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.04em; display: block; color: var(--cinnabar-deep); }
.system {
  margin-top: 22px;
  padding: 22px;
  border-radius: 28px;
  background: var(--night);
  color: #fff;
}
.system a { color: #c8c6ff; }

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
}
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; font-weight: 700; letter-spacing: 0.04em; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaff;
  border-radius: 14px;
  padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; }
.form-error { color: #8d3adf; font-size: 14px; }
.ok { color: var(--cinnabar-deep); }

.composer { max-width: 860px; margin: 0 auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 68px;
  z-index: 5;
}
.toolbar button {
  border: 1px solid var(--line);
  background: #fbfaff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.tabs { display: flex; gap: 6px; margin-top: 8px; }
.editor {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: #fff;
  padding: 14px 16px 28px;
  font-size: 17px;
}
.editor:empty:before { content: attr(data-placeholder); color: #9a90b8; }
.cover-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: 20px; margin-top: 8px; }
.composer-actions { display: flex; gap: 8px; margin: 16px 0 28px; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 21, 72, 0.46);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(440px, 100%);
  background: var(--paper);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal h2 { font-size: 32px; margin: 0 0 8px; }
.hint { font-size: 13px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--cinnabar-deep); text-decoration: underline; }

.footer {
  padding: 48px 28px 32px;
  background: #071352;
  color: #fff;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a, .footer button.linkish { color: #c8c6ff; }
.footer p { margin: 6px 0; color: rgba(255, 255, 255, 0.62); font-size: 14px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .brand small { display: none; }
  .brand strong { font-size: 16px; }
  .topbar { gap: 8px; padding: 12px 14px; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero, .stats, .split, .contact, .pair, .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 160px 160px; }
  .strip a:first-child { grid-row: auto; grid-column: 1 / span 2; height: 180px; }
  .row { grid-template-columns: 1fr; }
  .row img { width: 100%; height: 180px; }
  .hero-main { height: 260px; }
  .who { display: none; }
  .wrap, .hero, .stats { padding-left: 14px; padding-right: 14px; }
  .toolbar { top: 60px; }
  .display { font-size: 52px; }
}
