@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --ink-900: #0E0E0D;
  --ink-800: #1A1A18;
  --ink-700: #2A2A26;
  --paper-0: #FFFFFF;
  --paper-50: #FAF8F1;
  --paper-100: #F4F1E6;
  --paper-200: #E9E4D2;
  --paper-300: #D9D3BD;
  --hairline: #E5E0CC;
  --hairline-strong: #C9C2A8;
  --hairline-dark: rgba(255, 255, 255, 0.10);
  --text-1: #0E0E0D;
  --text-2: #4A4738;
  --text-3: #7A7560;
  --text-on-ink-1: #FAF8F1;
  --text-on-ink-2: #B8B3A0;
  --text-on-ink-3: rgba(255, 255, 255, 0.42);
  --gold-50: #FFF8DC;
  --gold-100: #FCEDA6;
  --gold-300: #F4D261;
  --gold-500: #E8B923;
  --gold-600: #C99A12;
  --gold-700: #8C6A0A;
  --live-50: #E5EFE2;
  --live-500: #5A8F4E;
  --live-700: #2D5E25;
  --warn-50: #F8EBD2;
  --warn-500: #B47A2A;
  --danger-50: #F2DCD9;
  --danger-500: #A33A2E;
  --danger-700: #6B201A;
  --info-50: #DEE6EE;
  --info-500: #3E5D7E;
  --type-lesson-bg: #DEE6EE;
  --type-lesson-fg: #3E5D7E;
  --type-test-bg: #E5EFE2;
  --type-test-fg: #2D5E25;
  --type-exam-bg: #F8EBD2;
  --type-exam-fg: #8C5A12;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "IBM Plex Serif", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 38px;
  --text-4xl: 56px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --shadow-1: 0 1px 0 rgba(20, 18, 8, 0.04);
  --shadow-2: 0 2px 8px rgba(20, 18, 8, 0.05);
  --shadow-3: 0 12px 28px rgba(20, 18, 8, 0.08), 0 2px 6px rgba(20, 18, 8, 0.04);
  --shadow-inset: inset 0 0 0 1px var(--hairline);
  --shadow-focus: 0 0 0 3px rgba(232, 185, 35, 0.28);
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 64px;
  --content-max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-300) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
  background-color: var(--paper-300);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--hairline-strong);
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper-50);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.t-label {
  font-family: var(--font-sans);
  color: var(--text-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.t-mute {
  font-family: var(--font-sans);
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.45;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.t-display {
  color: var(--text-1);
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.t-h1 {
  color: var(--text-1);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.t-h2 {
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.t-h3 {
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

.t-body {
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
}

.t-body-strong {
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
}

.t-mono {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.3;
}

.ornament-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hairline-strong);
}

.ornament-rule::before,
.ornament-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.ornament-rule .dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold-500);
}
