:root {
  --bg: #f8fbff;
  --ink: #101828;
  --muted: #526176;
  --line: #d7e0ed;
  --panel: #ffffff;
  --teal: #0c8f87;
  --blue: #246bfe;
  --coral: #ff6b4a;
  --yellow: #ffc84a;
  --green: #27a66b;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(36, 107, 254, 0.08), transparent 38%),
    linear-gradient(205deg, rgba(255, 107, 74, 0.09), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

section[id] {
  scroll-margin-top: 96px;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 224, 237, 0.72);
  backdrop-filter: blur(18px);
}

.access-tools {
  display: flex;
  gap: 8px;
}

.access-tools button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
}

.access-tools button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--yellow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 rgba(255, 200, 74, 0.45);
}

nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 5vw;
  align-items: center;
  min-height: 760px;
  padding: 52px 5vw 44px;
}

.hero-copy {
  min-width: 0;
  max-width: 690px;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: clamp(2.8rem, 4.2vw, 4.55rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 850;
}

.hero-copy > p:not(.hero-subtitle) {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.hero-stage {
  position: relative;
  min-width: 0;
  min-height: 580px;
  border: 1px solid rgba(16, 24, 40, 0.13);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 242, 255, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(255, 200, 74, 0.35), transparent 32%);
  box-shadow: var(--shadow);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 38px;
  background-image:
    linear-gradient(rgba(36, 107, 254, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 107, 254, 0.13) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 0 58%, transparent 78%);
}

.constellation span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(36, 107, 254, 0.18);
}

.mascot {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(520px, 78%);
  margin: 0;
  transform: translate(-50%, -50%);
}

.mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 32px rgba(16, 24, 40, 0.18));
}

.voice-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(380px, calc(100% - 56px));
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}

.voice-label {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mascot-name {
  margin: 0 0 4px;
  font-size: 2rem;
  line-height: 1;
}

.mascot-definition {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.mascot-definition strong {
  color: var(--coral);
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.quote-strip article {
  min-height: 180px;
  padding: 28px;
  background: #fff;
}

.quote-strip span {
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 900;
}

.quote-strip p {
  margin: 14px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.18;
}

.preamble-section,
.articles-section,
.case-map,
.method {
  padding: 94px 5vw 0;
}

.preamble-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.62fr);
  gap: 36px;
  align-items: stretch;
}

.preamble-copy {
  padding: 38px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(93, 224, 197, 0.14), rgba(255, 214, 107, 0.18)),
    #fff;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preamble-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.preamble-copy blockquote {
  margin: 28px 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--coral);
  color: var(--ink);
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
}

.preamble-copy > p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.preamble-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.preamble-actions audio {
  display: none;
}

.preamble-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preamble-themes article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.preamble-themes span {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.preamble-themes p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 720;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.96;
}

.section-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.tools {
  display: grid;
  gap: 7px;
  min-width: min(360px, 100%);
}

.tools label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.tools input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.tab.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 26px;
  align-items: start;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.article-card:hover,
.article-card:focus-visible,
.article-card.active {
  border-color: var(--blue);
  box-shadow: 0 14px 36px rgba(36, 107, 254, 0.13);
  transform: translateY(-2px);
}

.article-number {
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 950;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  line-height: 1.16;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.article-card.pilot {
  border-color: rgba(255, 107, 74, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 244, 0.9));
}

.pilot-mark {
  align-self: end;
  width: fit-content;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 107, 74, 0.35);
  border-radius: var(--radius);
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-detail {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.article-detail .article-number {
  color: var(--yellow);
}

.detail-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.detail-titlebar > div:first-child {
  min-width: 0;
}

.article-detail h3 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1;
}

.article-detail blockquote {
  margin: 0 0 22px;
  padding-left: 18px;
  border-left: 4px solid var(--yellow);
  color: #f7fbff;
  font-size: 1.38rem;
  font-weight: 850;
  line-height: 1.22;
}

.article-detail p {
  color: #cad7ea;
}

.title-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.title-actions audio {
  display: none;
}

.audio-button,
.lis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 214, 107, 0.48);
  border-radius: 999px;
  background: rgba(255, 214, 107, 0.1);
  color: var(--yellow);
  cursor: pointer;
  text-decoration: none;
}

.audio-button:hover,
.audio-button:focus-visible,
.audio-button.playing,
.lis-button:hover,
.lis-button:focus-visible {
  background: var(--yellow);
  color: #111827;
}

.lis-button {
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
}

.audio-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.audio-button.playing .audio-icon {
  width: 8px;
  height: 10px;
  border: 0;
  background:
    linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px);
}

.audio-button span:not(.audio-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.detail-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.detail-block h4 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-block p {
  margin: 0;
  color: #eef5ff;
  font-size: 0.98rem;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-links button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 200, 74, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 200, 74, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.case-links button:hover,
.case-links button:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.life-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.place-button {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.place-button.active {
  border-color: var(--teal);
  box-shadow: 0 18px 42px rgba(12, 143, 135, 0.16);
}

.place-button span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.place-button strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.place-button p {
  margin: 8px 0 0;
  color: var(--muted);
}

.case-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--teal), #0b6460);
  color: #fff;
  box-shadow: var(--shadow);
}

.case-panel h3 {
  margin-bottom: 10px;
  font-size: 2.1rem;
  line-height: 1;
}

.case-panel p {
  color: #e5fffb;
}

.case-question {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.18;
}

.scenario-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
}

.scenario-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
}

.scenario-card span,
.case-panel h4 {
  display: block;
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scenario-card p {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
}

.case-panel h4 {
  margin: 0 0 10px;
}

.case-panel ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.case-panel li {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.case-panel li button {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 850;
}

.case-panel li button:hover,
.case-panel li button:focus-visible {
  color: var(--yellow);
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  gap: 60px;
  padding-bottom: 86px;
}

.method h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.method p {
  color: var(--muted);
  font-size: 1.08rem;
}

.course-note {
  margin-top: 16px;
}

.method ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 850;
}

.method li span {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
}

footer {
  padding: 28px 5vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--blue);
  font-weight: 850;
}

.footer-credit {
  margin-top: 8px;
  font-size: 0.78rem;
  opacity: 0.72;
}

body.large-text {
  font-size: 112%;
}

body.high-contrast {
  --bg: #ffffff;
  --ink: #05070d;
  --muted: #253044;
  --line: #677084;
  --blue: #003cff;
  --teal: #006b65;
  --coral: #d73518;
  background: #fff;
}

body.high-contrast .site-header,
body.high-contrast .article-card,
body.high-contrast .quote-strip article,
body.high-contrast .preamble-copy,
body.high-contrast .preamble-themes article,
body.high-contrast .place-button,
body.high-contrast .method li {
  background: #fff;
}

@media (max-width: 980px) {
  .hero,
  .preamble-section,
  .article-layout,
  .map-shell,
  .method {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .article-detail {
    position: static;
  }

  .detail-titlebar {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .access-tools {
    position: static;
    width: auto;
  }

  .hero {
    padding-top: 46px;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 10vw);
  }

  h1 {
    font-size: clamp(2.45rem, 10.8vw, 3.4rem);
  }

  .hero-subtitle,
  .hero-copy > p:not(.hero-subtitle) {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1.22rem;
  }

  .quote-strip,
  .life-places,
  .preamble-themes {
    grid-template-columns: 1fr;
  }

  .quote-strip {
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .preamble-section {
    padding-top: 64px;
  }

  .preamble-copy {
    padding: 26px;
  }

  .hero-stage {
    min-height: 440px;
  }

  .voice-card {
    right: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .detail-titlebar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .mascot {
    top: 38%;
    width: min(420px, 115%);
    transform: translate(-50%, -50%);
  }
}
