@font-face {
  font-family: 'kj-Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'kj-Space';
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

.page-korjata {
  --head: 'kj-Space', 'Segoe UI', Arial, sans-serif;
  --body: 'kj-Inter', 'Segoe UI', Arial, sans-serif;
  --accent: #f0aac9;
  --accent-ink: #351627;
  --accent-soft: rgba(240, 170, 201, .12);
}

@media (prefers-color-scheme: light) {
  .page-korjata {
    --bg: #0a0d14;
    --surface: #121726;
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .15);
    --text: #eef1f7;
    --text-2: #b1b8c8;
    --muted: #9aa3b7;
    --bar: rgba(10, 13, 20, .94);
    --live: #34d399;
  }
}

.page-korjata main .wrap { max-width: 832px; }
.page-korjata main > .wrap:first-child { padding-top: 40px; }
.page-korjata .crumb { margin-bottom: 24px; font-size: 14px; }
.page-korjata .crumb a { color: var(--muted); text-decoration: none; }
.page-korjata .crumb a:hover { color: var(--accent); }
.page-korjata .story-app { margin-bottom: 36px; }
.kj-hero h1 { max-width: 16em; font-size: 36px; line-height: 1.1; letter-spacing: -.035em; }
.kj-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.kj-section { margin-top: 40px; }
.kj-section h2 { font-size: 25px; line-height: 1.2; }
.kj-section p { margin: 18px 0 0; color: var(--text-2); }
.kj-section a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.kj-section a:not(.btn):hover { color: var(--accent); }

.kj-specimen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border: 1px solid var(--hair-2);
  border-radius: 8px;
  background: var(--surface);
}
.kj-specimen div { min-width: 0; padding: 18px 20px 22px; }
.kj-specimen div + div { border-left: 1px solid var(--hair-2); }
.kj-specimen span { display: block; color: var(--text-2); font-size: 14px; }
.kj-specimen code { display: block; margin-top: 10px; font: 400 38px/1.25 Georgia, serif; letter-spacing: .02em; }
.kj-specimen mark { background: var(--accent-soft); color: var(--accent); border-bottom: 2px solid var(--accent); }

.kj-tablebox { margin-top: 18px; border: 1px solid var(--hair-2); border-radius: 8px; overflow: hidden; }
.kj-table { width: 100%; min-width: 0; border-collapse: collapse; text-align: left; font-size: 16px; line-height: 1.5; }
.kj-table th, .kj-table td { padding: 14px 18px; vertical-align: top; }
.kj-table thead th { background: var(--surface); color: var(--accent); font-weight: 600; }
.kj-table tbody th { white-space: nowrap; font-weight: 600; color: var(--text); }
.kj-table tbody th, .kj-table td { border-top: 1px solid var(--hair); }
.kj-table td { color: var(--text-2); }

.kj-shots { margin: 24px auto 0; }
.kj-shot { max-width: 280px; margin: 0 auto; }
.kj-shot + .kj-shot { margin-top: 24px; }
.kj-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--hair-2); }
.kj-shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.kj-checks { padding: 20px 24px; background: var(--surface); border-top: 2px solid var(--accent); border-radius: 0 0 8px 8px; }
.kj-checks ul { padding: 0; margin: 18px 0 0; list-style: none; }
.kj-checks li { position: relative; padding-left: 18px; color: var(--text-2); }
.kj-checks li + li { margin-top: 8px; }
.kj-checks li:before { content: ''; width: 6px; height: 2px; background: var(--accent); position: absolute; left: 0; top: .8em; }
.kj-section .kj-end { margin: 36px 0 42px; }
.kj-end .btn { margin: 0 20px 12px 0; vertical-align: middle; }
.kj-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .kj-table { min-width: 0; font-size: 14px; }
  .kj-table th, .kj-table td { padding: 11px 9px; }
  .kj-table th:first-child { white-space: nowrap; }
  .kj-specimen div { padding: 14px 12px 18px; }
  .kj-specimen code { font-size: 32px; }
  .kj-checks { padding: 18px; }
}

@media (min-width: 650px) {
  .kj-shots { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 28px; max-width: 588px; }
  .kj-shot + .kj-shot { margin-top: 0; }
}

@media (min-width: 900px) {
  .page-korjata main > .wrap:first-child { padding-top: 64px; }
  .kj-hero h1 { font-size: 48px; }
  .kj-lead { font-size: 20px; }
  .kj-section { margin-top: 56px; }
  .kj-section h2 { font-size: 30px; }
}
