:root {
  --ink: #182033;
  --muted: #53616d;
  --forest: #0f766e;
  --forest-dark: #075f58;
  --leaf: #16a34a;
  --mint: #d9f99d;
  --soft-mint: #ecfdf5;
  --sky: #e0f2fe;
  --paper: #fffaf0;
  --cream: #fff7ed;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --gold: #facc15;
  --blue: #2563eb;
  --line: rgba(24, 32, 51, 0.14);
  --shadow: 0 18px 42px rgba(15, 118, 110, 0.16);
  --radius: 8px;
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffaf0;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(15, 118, 110, 0.08) 2px, transparent 3px),
    radial-gradient(circle at 58px 58px, rgba(250, 204, 21, 0.12) 2px, transparent 3px);
  background-size: 84px 84px;
  opacity: 0.65;
}

a {
  color: inherit;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

rt {
  color: var(--forest-dark);
  font-size: 0.5em;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(15, 118, 110, 0.25);
  border-radius: 50%;
  background: var(--soft-mint);
}

.brand__mark svg {
  width: 24px;
}

.brand__mark path:first-child {
  fill: var(--forest);
}

.brand__mark path:last-child {
  fill: none;
  stroke: white;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__mark svg .hakase-face {
  fill: #fff7ed;
  stroke: rgba(15, 118, 110, 0.45);
  stroke-width: 2;
}

.brand__mark svg .hakase-hair {
  fill: #ccfbf1;
  stroke: var(--forest-dark);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.brand__mark svg .hakase-hat {
  fill: var(--forest);
  stroke: var(--forest-dark);
  stroke-width: 2;
  stroke-linejoin: round;
}

.brand__mark svg .hakase-hat-band,
.brand__mark svg .hakase-glasses,
.brand__mark svg .hakase-smile {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__mark svg .hakase-hat-band {
  stroke: var(--forest-dark);
  stroke-width: 1.9;
}

.brand__mark svg .hakase-eye {
  fill: #111827;
}

.brand__mark svg .hakase-glasses,
.brand__mark svg .hakase-smile {
  stroke: #111827;
  stroke-width: 1.9;
}

.brand__mark svg .hakase-dot {
  fill: var(--gold);
  stroke: var(--forest-dark);
  stroke-width: 1.5;
}

.brand__text {
  font-size: 17px;
  white-space: nowrap;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
}

.nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav__home {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  justify-content: center;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--forest);
  color: white;
}

.nav__home svg {
  width: 20px;
  height: 20px;
}

.nav__home path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__about {
  margin-left: auto;
}

.nav a[aria-current="page"],
.nav a:hover,
.nav a:focus-visible {
  outline: none;
  background: #dff8f2;
  color: var(--forest-dark);
}

.nav__home[aria-current="page"],
.nav__home:hover,
.nav__home:focus-visible {
  background: var(--forest-dark) !important;
  color: white !important;
}

main {
  position: relative;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.hero,
.page-hero,
.section {
  position: relative;
  padding: 64px 0;
}

.hero {
  min-height: calc(100vh - 54px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__grid,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest-dark);
  font-size: 15px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 21px;
}

.home-intro {
  max-width: 760px;
}

.learn-box {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-left: 6px solid var(--forest);
  border-radius: var(--radius);
  background: white;
}

.learn-box p {
  margin-bottom: 8px;
  font-weight: 900;
}

.learn-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.learn-box li + li {
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--forest-dark);
  outline: none;
}

.button--light {
  border-color: rgba(15, 118, 110, 0.25);
  background: white;
  color: var(--forest-dark);
}

.button--danger {
  background: var(--danger);
  color: white;
}

.button--x {
  background: #111827;
  color: white;
}

.button--x:hover,
.button--x:focus-visible {
  background: #000;
  outline: none;
}

.button__mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.button svg {
  width: 22px;
  height: 22px;
}

.button svg path,
.button svg circle,
.button svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.home-card-grid,
.article-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-card,
.article-card,
.topic-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.12);
}

.home-card strong,
.article-card strong,
.topic-card strong {
  font-size: 22px;
  line-height: 1.35;
}

.home-card span,
.article-card span,
.topic-card span {
  color: var(--muted);
}

.card-tag,
.status {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dff8f2;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 900;
}

.status--soon {
  background: #f1f5f9;
  color: #475569;
}

.section--mint {
  background: var(--soft-mint);
}

.section--cream {
  background: var(--cream);
}

.section-head {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto 28px;
  text-align: center;
}

.section-head p:last-child {
  color: var(--muted);
}

.content-dropdowns {
  display: grid;
  gap: 14px;
}

.content-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: white;
}

.content-dropdown summary {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.content-dropdown summary::-webkit-details-marker {
  display: none;
}

.content-dropdown summary::after {
  content: "開く";
  min-width: 62px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--forest-dark);
  font-size: 14px;
  text-align: center;
}

.content-dropdown[open] summary::after {
  content: "閉じる";
}

.content-dropdown summary span {
  color: var(--forest-dark);
  font-size: 15px;
}

.content-dropdown summary strong {
  grid-column: 1;
  font-size: 21px;
  line-height: 1.4;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 20px 20px;
}

.content-row h3 {
  margin-top: 8px;
}

.content-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.planned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.planned-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
}

.kid-list {
  display: grid;
  gap: 18px;
}

.story-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.story-card--text {
  grid-template-columns: 1fr;
}

.story-card__thumb {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e0f2fe;
}

.story-card__body {
  display: grid;
  gap: 8px;
}

.story-card__learn {
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
  color: var(--forest-dark) !important;
  font-weight: 900;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-page {
  background: #f8fbff;
}

.story-layout {
  display: grid;
  gap: 26px;
  padding-bottom: 64px;
}

.story-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.story-visual figcaption {
  padding: 14px 18px 18px;
  color: var(--forest-dark);
  font-weight: 900;
}

.warning-scenario {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 2px solid rgba(220, 38, 38, 0.32);
  border-radius: var(--radius);
  background: #fff7ed;
  box-shadow: var(--shadow);
}

.warning-scenario h2 {
  margin-bottom: 0;
  color: #991b1b;
}

.fake-screen-text {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 3px solid #334155;
  border-radius: var(--radius);
  background: white;
}

.fake-screen-text p {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.fake-screen-text__title {
  border-color: rgba(250, 204, 21, 0.65) !important;
  background: #fef3c7 !important;
  color: #92400e;
  text-align: center;
}

.fake-screen-text__button {
  border-color: #991b1b !important;
  background: var(--danger) !important;
  color: white;
  text-align: center;
}

.danger-callout {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 22px;
  font-weight: 900;
}

.danger-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.danger-points li {
  padding: 14px;
  border: 2px solid rgba(220, 38, 38, 0.26);
  border-radius: var(--radius);
  background: #fff5f5;
  color: #7f1d1d;
  font-weight: 900;
}

.dialogue {
  display: grid;
  gap: 14px;
}

.chat {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
}

.chat__avatar {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #dff8f2;
  font-weight: 900;
}

.chat__bubble {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 24px rgba(24, 32, 51, 0.08);
}

.chat__name {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-dark);
  font-size: 16px;
  font-weight: 900;
}

.chat--teacher .chat__avatar {
  background: #fef3c7;
}

.chat--teacher .chat__bubble {
  border-color: rgba(250, 204, 21, 0.45);
}

.lesson-box,
.parent-box,
.quiz-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.lesson-box {
  border-left: 8px solid var(--forest);
}

.talk-box {
  border-left-color: #d97706;
}

.talk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.talk-list li {
  padding-left: 2px;
}

.parent-box {
  border-left: 8px solid var(--blue);
}

.quiz-box {
  display: grid;
  gap: 14px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  min-height: 56px;
  padding: 12px 15px;
  border: 2px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--forest);
  outline: none;
}

.quiz-option.is-correct {
  border-color: var(--leaf);
  background: #dcfce7;
}

.quiz-option.is-wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.quiz-result {
  min-height: 44px;
  color: var(--forest-dark);
  font-weight: 900;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 94px;
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--forest-dark);
  font-weight: 900;
  text-decoration: none;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-section {
  padding: 26px;
}

.article-section ul,
.article-section ol {
  padding-left: 1.2em;
}

.article-section li + li {
  margin-top: 8px;
}

.contact-section {
  border-left: 8px solid #111827;
}

.contact-section .button {
  margin-top: 4px;
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 12px 12px 12px 42px;
  border-radius: var(--radius);
  background: #f0fdfa;
  font-weight: 800;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 14px;
  height: 7px;
  border-left: 4px solid var(--leaf);
  border-bottom: 4px solid var(--leaf);
  transform: rotate(-45deg);
}

.site-footer {
  position: relative;
  padding: 30px 16px 36px;
  background: var(--forest-dark);
  color: white;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.site-footer rt {
  color: #ccfbf1;
}

/* Educational SVGs */
.edu-svg {
  width: 100%;
  background: #f8fbff;
}

.edu-svg text {
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.edu-bg {
  fill: #dff8ff;
}

.device {
  fill: #334155;
}

.screen {
  fill: #f8fafc;
}

.game-land {
  fill: #86efac;
}

.diamond {
  fill: #38bdf8;
  stroke: #0369a1;
  stroke-width: 5;
}

.fake-popup {
  fill: #fffaf0;
  stroke: #0f766e;
  stroke-width: 7;
}

.fake-title {
  fill: #fef3c7;
  stroke: #f59e0b;
  stroke-width: 4;
}

.input-box {
  fill: white;
  stroke: #94a3b8;
  stroke-width: 4;
}

.bad-cta {
  fill: var(--danger);
  stroke: #991b1b;
  stroke-width: 5;
}

.danger-ring {
  fill: rgba(254, 226, 226, 0.18);
  stroke: var(--danger);
  stroke-width: 11;
}

.danger-cross {
  fill: none;
  stroke: var(--danger);
  stroke-width: 13;
  stroke-linecap: round;
}

.label-danger {
  fill: #fff1f2;
  stroke: var(--danger);
  stroke-width: 5;
}

.label-text-danger {
  fill: #991b1b;
  font-size: 21px;
}

.label-safe {
  fill: #ecfdf5;
  stroke: var(--forest);
  stroke-width: 5;
}

.label-text-safe {
  fill: var(--forest-dark);
  font-size: 21px;
}

.character-skin {
  fill: #f8c8a2;
}

.character-hair {
  fill: #243044;
}

.character-shirt {
  fill: #facc15;
}

.character-pants {
  fill: #2563eb;
}

.doctor-body {
  fill: #f8fafc;
  stroke: var(--forest);
  stroke-width: 7;
}

.doctor-wing {
  fill: #0f766e;
}

.doctor-face {
  fill: #0f172a;
}

.doctor-beak {
  fill: #f59e0b;
}

.speech-card {
  fill: white;
  stroke: #94a3b8;
  stroke-width: 4;
}

.warning-board {
  fill: #fff1f2;
  stroke: var(--danger);
  stroke-width: 6;
}

.check-mark {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .site-header__inner {
    min-height: auto;
    padding: 6px 0;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__text {
    white-space: normal;
    font-size: 15px;
  }

  .nav {
    flex: 1 0 100%;
    width: 100%;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 5px;
  }

  .nav a {
    flex: 0 1 auto;
  }

  .nav__about {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid,
  .two-col,
  .article-layout,
  .story-card {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .lead {
    font-size: 19px;
  }

  .danger-points,
  .topic-grid,
  .content-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .shell,
  .narrow,
  .section-head {
    width: min(100% - 20px, 1120px);
  }

  .hero,
  .page-hero,
  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

  .actions,
  .home-card-grid,
  .article-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 5px;
  }

  .nav a {
    flex: 0 1 auto;
    justify-content: center;
    min-height: 30px;
    padding-inline: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav__home {
    width: 34px;
    height: 34px;
    min-height: 34px !important;
    flex: 0 0 34px !important;
  }

  .nav__home svg {
    width: 19px;
    height: 19px;
  }

  .nav__about {
    margin-left: auto;
  }

  .home-card,
  .article-card,
  .topic-card,
  .learn-box,
  .lesson-box,
  .parent-box,
  .quiz-box,
  .article-section {
    padding: 18px;
  }

  .story-card {
    padding: 16px;
  }

  .content-dropdown summary {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .content-dropdown summary::after {
    width: fit-content;
  }

  .content-row,
  .planned-list {
    padding: 0 16px 16px;
  }

  .chat {
    grid-template-columns: 64px 1fr;
  }

  .chat__avatar {
    min-height: 62px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Readability pass: keep the story page quiet and print-like. */
body {
  background: #fffdf8;
}

body::before {
  display: none;
}

.site-header {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: none;
}

.button--primary {
  box-shadow: none;
}

.story-page .page-hero {
  padding: 38px 0 18px;
  background: #fffdf8;
}

.story-page {
  background: #fffdf8;
}

.story-page .narrow,
.story-page .story-layout {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.story-page h1 {
  margin-bottom: 12px;
  font-size: 40px;
}

.story-page .lead {
  max-width: 34rem;
  color: #4b5563;
  font-size: 19px;
}

.story-layout {
  gap: 22px;
  padding-bottom: 54px;
}

.warning-scenario {
  gap: 16px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-left: 8px solid var(--danger);
  background: white;
  box-shadow: none;
}

.warning-scenario h2 {
  color: #111827;
  font-size: 28px;
}

.fake-screen-text {
  gap: 10px;
  padding: 16px;
  border: 2px solid #374151;
  background: #f9fafb;
}

.fake-screen-text p {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 20px;
}

.fake-screen-text__title {
  border-color: #facc15 !important;
  background: #fef3c7 !important;
}

.fake-screen-text__button {
  border-color: #991b1b !important;
  background: #dc2626 !important;
}

.danger-callout {
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-size: 19px;
}

.danger-box {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: white;
}

.danger-box h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.danger-box .danger-points {
  grid-template-columns: 1fr;
  gap: 8px;
}

.danger-box .danger-points li {
  padding: 10px 12px;
  border: 0;
  border-left: 5px solid var(--danger);
  background: #fff7ed;
  color: #1f2937;
  font-weight: 800;
}

.story-page .dialogue {
  gap: 12px;
}

.story-page .chat {
  display: block;
}

.story-page .chat__avatar {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--forest-dark);
  font-size: 15px;
  line-height: 1.3;
}

.story-page .chat--teacher .chat__avatar {
  background: #fef3c7;
  color: #92400e;
}

.story-page .chat__bubble {
  margin-top: 7px;
  padding: 15px 16px;
  border: 1px solid #e5e7eb;
  border-left: 5px solid var(--forest);
  background: white;
  box-shadow: none;
}

.story-page .chat--teacher .chat__bubble {
  border-color: #e5e7eb;
  border-left-color: #d97706;
}

.story-page .chat__name {
  margin-bottom: 4px;
  color: #111827;
}

.lesson-box,
.parent-box,
.quiz-box {
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: none;
}

.lesson-box {
  border-left: 8px solid var(--forest);
}

.parent-box {
  border-left: 8px solid var(--blue);
}

.quiz-option {
  background: #fff;
  box-shadow: none;
}

@media (max-width: 620px) {
  .story-page .narrow,
  .story-page .story-layout {
    width: min(100% - 20px, 760px);
  }

  .story-page h1 {
    font-size: 30px;
  }

  .story-page .lead,
  .danger-callout {
    font-size: 17px;
  }

  .warning-scenario,
  .danger-box,
  .lesson-box,
  .parent-box,
  .quiz-box {
    padding: 16px;
  }

  .fake-screen-text p {
    font-size: 18px;
  }
}

/* Global readability tuning. */
:root {
  --ink: #111827;
  --muted: #374151;
  --line: rgba(17, 24, 39, 0.18);
}

body {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
}

p,
li,
span {
  color: inherit;
}

h1 {
  font-size: 44px;
  line-height: 1.18;
}

h2 {
  font-size: 30px;
  line-height: 1.32;
}

h3 {
  font-size: 22px;
}

.lead {
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

.eyebrow {
  color: var(--forest-dark);
}

.home-card span,
.article-card span,
.topic-card span,
.content-row p,
.section-head p:last-child,
.article-section p,
.article-section li,
.story-card__body span:not(.card-tag),
.site-footer p + p {
  color: #1f2937;
}

.article-section,
.home-card,
.article-card,
.topic-card,
.content-dropdown,
.learn-box {
  background: #fff;
}

.article-section p,
.article-section li {
  font-size: 18px;
  font-weight: 500;
}

.brand__text,
.nav,
.button,
.article-card strong,
.story-card strong {
  font-weight: 900;
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 18px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 23px;
  }

  body {
    font-size: 17px;
  }
}
