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

.page-tupyo {
  --head: 'Tupyo Space', 'Segoe UI', sans-serif;
  --body: 'Tupyo Inter', 'Segoe UI', sans-serif;
  --bg: #101016;
  --surface: #1c1b26;
  --raised: #272533;
  --hair: rgba(230, 224, 251, .12);
  --hair-2: rgba(230, 224, 251, .25);
  --text: #f3eff8;
  --text-2: #c6c2d0;
  --muted: #a49eb2;
  --accent: #ccaff5;
  --accent-ink: #20142c;
  --accent-soft: rgba(204, 175, 245, .12);
  --bar: rgba(16, 16, 22, .95);
  --live: #6bd4ad;
  --live-glow: rgba(107, 212, 173, .45);
}
.page-tupyo main { padding-bottom: 40px; }
.page-tupyo main .wrap { max-width: 832px; }
.page-tupyo main > .wrap:first-child { padding-top: 40px; }
.page-tupyo .crumb { margin: 0 0 24px; font-size: 14px; }
.page-tupyo .crumb a { text-decoration: none; color: var(--muted); }
.page-tupyo .crumb a:before { content: '\2190'; margin-right: 8px; }
.page-tupyo .crumb a:hover { color: var(--text); }
.page-tupyo .story-app { margin-bottom: 36px; }

.tu-intro { border-bottom: 1px solid var(--hair-2); padding-bottom: 30px; }
.tu-intro h1 { font-size: 36px; line-height: 1.08; max-width: 680px; }
.tu-intro p { max-width: 705px; margin-top: 18px; color: var(--text-2); font-size: 19px; line-height: 1.55; }
.tu-section { margin-top: 40px; }
.tu-section h2 { margin-bottom: 18px; font-size: 26px; line-height: 1.2; }
.tu-section p { margin: 0 0 18px; color: var(--text-2); }
.tu-section p:last-child { margin-bottom: 0; }
.tu-section a, .tu-end a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.tu-section a:hover, .tu-end a:not(.btn):hover { color: var(--accent); }

.tu-steps { counter-reset: slip; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.tu-steps li {
  counter-increment: slip;
  position: relative;
  padding: 17px 0 17px 44px;
  border-bottom: 1px solid var(--hair);
  color: var(--text-2);
}
.tu-steps li:before {
  content: counter(slip);
  position: absolute;
  left: 0;
  top: 19px;
  width: 27px;
  height: 27px;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  text-align: center;
  font: 600 15px/25px var(--head);
}
.tu-steps strong { color: var(--text); font-weight: 650; }
.tu-table { border-collapse: collapse; width: 100%; min-width: 0; background: var(--surface); }
.tu-table caption { padding: 0 0 10px; text-align: left; font: 600 16px/1.5 var(--head); }
.tu-table th, .tu-table td { padding: 12px 16px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.tu-table thead { color: var(--accent); background: var(--accent-soft); font-size: 14px; }
.tu-table tbody th { width: 30%; font-weight: 600; }
.tu-table td { color: var(--text-2); }

.tu-pictures { display: grid; grid-template-columns: 1fr; grid-gap: 24px; margin: 28px 0; }
.tu-pictures figure { width: 100%; max-width: 266px; min-width: 0; margin: 0 auto; }
.tu-pictures img { width: 100%; height: auto; border: 1px solid var(--hair-2); border-radius: 12px; }
.tu-pictures figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tu-limits { padding: 22px 24px; background: var(--surface); border-left: 3px solid var(--accent); }
.tu-limits h2 { font-size: 22px; }
.tu-end { margin-top: 36px; }
.tu-end .btn { margin: 0 18px 12px 0; }
.tu-end a:not(.btn) { display: inline-block; margin-bottom: 12px; vertical-align: middle; }

@media (max-width: 600px) {
  .tu-table { min-width: 0; font-size: 15px; }
  .tu-table th, .tu-table td { padding: 9px 10px; }
  .tu-table tbody th { width: 1%; white-space: nowrap; }
}
@media (min-width: 620px) {
  .tu-pictures { grid-template-columns: 266px 266px; justify-content: center; grid-gap: 32px; }
}
@media (min-width: 900px) {
  .page-tupyo main > .wrap:first-child { padding-top: 64px; }
  .tu-intro { padding-bottom: 36px; }
  .tu-intro h1 { font-size: 48px; }
  .tu-intro p { font-size: 21px; }
  .tu-section { margin-top: 56px; }
  .tu-section h2 { font-size: 30px; }
  .tu-limits h2 { font-size: 24px; }
}
