/* qbank.telegram365books.stream — model-paper surface inside the house chrome.
   Dark slate + indigo chrome (as eb2026qa), ivory exam sheets on the desk.
   Fonts: Newsreader (editorial serif) for paper text, IBM Plex Mono for labels. */

:root {
  --bg: #05070f;
  --bg-soft: #0a0f1c;
  --line: #1a2132;
  --ink: #e7eaf3;
  --muted: #96a0b5;
  --indigo: #6366f1;
  --indigo-soft: #a5b4fc;
  --paper: #f6f1e7;
  --paper-ink: #201c16;
  --paper-muted: #6d6457;
  --paper-line: #ddd4c4;
  --oxblood: #8b1e2d;
  --easy: #2f6b45;
  --standard: #8a6a1f;
  --hard: #8b1e2d;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(820px 460px at 6% 4%, rgba(56, 189, 248, 0.06), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo); color: #fff; padding: 10px 14px; z-index: 100;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-head .inner {
  max-width: 1180px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand-word { font-size: 23px; font-weight: 600; letter-spacing: -0.015em; }
.brand-sub {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.page-nav { margin-left: auto; display: flex; gap: 4px; }
.page-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 3px;
  border: 1px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.page-nav a:hover { color: var(--ink); border-color: var(--line); }
.page-nav a[aria-current="page"] {
  color: #fff; border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
}
.home-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.home-link:hover { color: var(--indigo-soft); border-color: var(--indigo-soft); }

/* ------------------------------------------------------------------ main */
.wrap { max-width: 1180px; margin: 0 auto; padding: 52px 24px 84px; }
.kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--indigo-soft); margin: 0 0 14px;
}
h1.title {
  margin: 0; font-size: clamp(42px, 6.4vw, 70px); line-height: 0.98;
  font-weight: 600; letter-spacing: -0.025em;
}
h1.title .of {
  display: block; font-size: 0.34em; line-height: 1.4; letter-spacing: 0.02em;
  font-weight: 400; font-style: italic; color: var(--muted); margin-top: 12px;
}
.deck {
  margin: 20px 0 0; max-width: 62ch; color: var(--muted);
  font-size: 16.5px; line-height: 1.6;
}

/* ---------------------------------------------------------------- notice */
.notice {
  margin: 30px 0 42px; max-width: 78ch;
  border-left: 3px solid var(--indigo);
  background: rgba(99, 102, 241, 0.08);
  padding: 16px 20px 15px;
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #c3c9f4;
}
.notice .label {
  display: block; font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 7px;
}
.notice strong { color: #eef0ff; font-weight: 600; }
.notice code {
  font-family: var(--mono); font-size: 11.5px; color: #eef0ff;
  background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 2px;
}

/* ----------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 46px; align-items: start; }
.rail { position: sticky; top: 92px; font-family: var(--mono); }
.rail h2 {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; font-weight: 500;
}
.rail ul { list-style: none; margin: 0 0 26px; padding: 0; }
.rail li { border-top: 1px solid var(--line); }
.rail li:last-child { border-bottom: 1px solid var(--line); }
.rail a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 2px; text-decoration: none; font-size: 11.5px; color: var(--muted);
  transition: color 0.15s;
}
.rail a:hover { color: var(--ink); }
.rail a .n { color: var(--indigo-soft); }
.rail .vols { display: flex; flex-wrap: wrap; gap: 6px; }
.rail .vols a {
  display: inline-block; padding: 5px 8px; border: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted); text-decoration: none; border-radius: 2px;
}
.rail .vols a:hover, .rail .vols a[aria-current="page"] {
  color: #fff; border-color: rgba(99, 102, 241, 0.55); background: rgba(99, 102, 241, 0.12);
}

/* ------------------------------------------------------------------ sheet */
.sheet {
  background: var(--paper); color: var(--paper-ink);
  padding: 40px 44px 30px; margin: 0 0 34px;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 64px -28px rgba(0, 0, 0, 0.8);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  border-bottom: 2px solid var(--paper-ink); padding-bottom: 12px; margin-bottom: 14px;
}
.paper-kicker {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper-muted); margin-bottom: 4px;
}
.paper-no {
  margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
}
.paper-of {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-muted); text-align: right; white-space: nowrap;
}
.instructions {
  margin: 0 0 6px; font-style: italic; font-size: 14.5px; color: var(--paper-muted);
}

.part { margin-top: 28px; }
.part-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #4b4237;
}
.part-label::after { content: ""; flex: 1; height: 1px; background: var(--paper-line); }
.part-label .letter { color: var(--oxblood); font-weight: 600; }

/* --------------------------------------------------------------- question */
.q {
  display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 16px;
  border-top: 1px solid var(--paper-line); padding: 20px 0 6px;
}
.part .q:first-of-type { border-top: none; }
.q-no {
  font-size: 27px; line-height: 1; color: var(--oxblood);
  font-variant-numeric: lining-nums; padding-top: 2px;
}
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 2px 7px; border: 1px solid currentColor;
  border-radius: 999px; line-height: 1.5;
}
.chip.easy { color: var(--easy); }
.chip.standard { color: var(--standard); }
.chip.hard { color: var(--hard); }
.copy {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 9px; cursor: pointer;
  border: 1px solid #c8bfae; border-radius: 2px;
  background: transparent; color: #4b4237;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.copy:hover { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.copy.copied { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.q-body { font-size: 16.5px; line-height: 1.56; max-width: 70ch; }
.q-body p { margin: 0 0 0.6em; }
.q-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- landing */
.vol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vol {
  display: block; text-decoration: none; position: relative;
  border: 1px solid var(--line); border-radius: 4px; padding: 26px 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  transition: border-color 0.18s, transform 0.18s;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.vol:hover { border-color: rgba(99, 102, 241, 0.6); transform: translateY(-2px); }
.vol .idx {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--indigo-soft);
}
.vol h2 { margin: 10px 0 6px; font-size: 27px; font-weight: 600; letter-spacing: -0.015em; }
.vol p { margin: 0; color: var(--muted); font-size: 14px; }
.vol .meta {
  display: block; margin-top: 18px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.vol .arrow { position: absolute; top: 24px; right: 24px; color: var(--muted); transition: color 0.18s, transform 0.18s; }
.vol:hover .arrow { color: var(--indigo-soft); transform: translate(2px, -2px); }

/* ----------------------------------------------------------------- footer */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.site-foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot a:hover { color: var(--indigo-soft); border-color: var(--indigo-soft); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rail { position: static; order: -1; }
  .rail ul { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .rail li { border: 1px solid var(--line); border-radius: 2px; }
  .rail a { padding: 6px 9px; gap: 6px; }
  .rail h2 { margin-bottom: 8px; }
  .vol-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 34px 16px 64px; }
  .site-head .inner { padding: 12px 16px; gap: 10px; }
  .page-nav { width: 100%; margin-left: 0; justify-content: space-between; }
  .sheet { padding: 26px 20px 22px; }
  .q { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .q-no { font-size: 22px; }
  .q-body { font-size: 16px; }
  .paper-no { font-size: 25px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  body { background: #fff; color: #000; }
  .site-head, .rail, .notice, .site-foot, .copy, .skip { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .layout { display: block; }
  .sheet {
    box-shadow: none; background: #fff; color: #000; padding: 0;
    border-radius: 0; margin: 0; animation: none;
  }
  .sheet + .sheet { break-before: page; }
  .q { break-inside: avoid; }
  .paper-no, .q-no { color: #000; }
  h1.title { font-size: 30pt; }
  .vol-grid { display: none; }
}
