:root {
  --font-copy: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
  --font-display: "Copperplate Gothic Light", "Bahnschrift SemiCondensed", "Agency FB", Georgia, serif;
  --text: #102836;
  --muted: #526c7d;
  --line: rgba(36, 78, 102, 0.2);
  --accent: #d9431a;
  --accent-dark: #a93012;
  --panel: #fbfdfe;
  --page: #dfeaf0;
  --shadow: 0 20px 54px rgba(44, 70, 86, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-copy);
  background: var(--page);
}

button,
a {
  font: inherit;
}

button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #eef5f8;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: linear-gradient(180deg, #ef5a2d, #c93b15);
}

.tutorial-page {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px;
}

.tutorial-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.tutorial-topbar p {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.tutorial-topbar a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.tutorial-topbar a:hover {
  text-decoration: underline;
}

.tutorial-frame {
  min-height: 520px;
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.frame-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  height: 7px;
  margin: 18px 0 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e4eb;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.tutorial-frame h2 {
  max-width: 780px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.frame-body {
  display: grid;
  gap: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.frame-body p {
  margin: 0;
}

.frame-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 42px;
}

@media (max-width: 680px) {
  .tutorial-page {
    padding: 18px 12px;
  }

  .tutorial-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tutorial-frame {
    min-height: 0;
  }

  .frame-meta,
  .frame-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .frame-actions button {
    width: 100%;
  }
}
