@font-face {
  font-family: Ahaio Sans;
  src: url("/regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Ahaio Sans;
  src: url("/bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --site-ink: #211332;
  --site-purple: #6127a0;
  --site-muted: #584968;
  --site-line: #e0d4eb;
  --site-background: #faf7ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--site-background);
  color: var(--site-ink);
  font: 400 1rem/1.55 "Ahaio Sans", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
a:focus-visible, summary:focus-visible { outline: 3px solid #167d70; outline-offset: 4px; }

.public-container {
  width: min(1180px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}

.public-header, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 21px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
}

.public-brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #6b31af;
  color: white;
  font-size: 1.3rem;
  line-height: 1;
}
.public-brand img { border-radius: 10px; }

.public-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(11px, 3vw, 28px); }
.public-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.public-nav > a:hover:not(.site-button), .public-nav > a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: fit-content;
  padding: 10px 22px;
  border-radius: 15px;
  background: var(--site-purple);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.site-button:hover { background: #4e1985; }
.site-button-small { min-height: 44px; padding-inline: 16px; border-radius: 12px; }

.public-hero {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  gap: clamp(16px, 3.3vw, 49px);
  overflow: hidden;
  padding: clamp(25px, 5.8vw, 76px);
  border-radius: clamp(24px, 4vw, 54px);
  background: linear-gradient(120deg, #ead9fa 17%, #f2dcfe 57%, #f3cbf0);
}

.hero-copy { position: relative; z-index: 1; }
.site-kicker, .topic-grade { color: #603a84; font-weight: 700; }
.hero-copy h1 {
  max-width: 16ch;
  margin: 9px 0 16px;
  font-size: clamp(2.65rem, 6.4vw, 6rem);
  letter-spacing: -.061em;
}
.hero-copy h1 em { color: #6325a9; font-style: normal; }
.site-lead {
  max-width: 49ch;
  color: var(--site-muted);
  font-size: clamp(1.04rem, 1.75vw, 1.2rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 23px;
}
.hero-note { margin-top: 10px; color: #53356c; font-size: .94rem; }

.hero-picture {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  aspect-ratio: .83;
}
.hero-picture img {
  width: 100%;
  height: 100%;
  border: 5px solid #fdf1ff;
  border-radius: 48% 48% 22% 22% / 38% 38% 14% 14%;
  object-fit: cover;
  object-position: 50% 37%;
  box-shadow: 0 14px 27px #5b236327;
}
.hero-character {
  position: absolute;
  right: -10px;
  bottom: 20px;
  padding: 8px 14px;
  border: 1px solid #e5badb;
  border-radius: 12px;
  background: #fff4da;
  box-shadow: 0 4px 12px #53304c21;
  font-weight: 700;
}
.hero-character span { color: #7b419c; }

.public-section { margin-block: clamp(55px, 8vw, 102px); }
.section-heading { max-width: 660px; margin-bottom: 23px; }
.section-heading p { margin-top: 10px; color: var(--site-muted); }
.public-section h2, .blog-empty h2 {
  font-size: clamp(1.95rem, 4vw, 3.7rem);
  letter-spacing: -.047em;
}
.formats-grid, .topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
}
.formats-grid { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); }
.format-card {
  min-width: 0;
  padding: clamp(19px, 3vw, 31px);
  border: 1px solid var(--format-line);
  border-radius: 25px;
  background: var(--format-background);
}
.format-game { --format-background: #f0e4fc; --format-line: #dec7f0; --format-accent: #6127a0; }
.format-video { --format-background: #ffeddf; --format-line: #f3d3bc; --format-accent: #8b3a24; }
.format-practice { --format-background: #e0f3e9; --format-line: #bcdfcf; --format-accent: #216148; }
.format-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 13px;
  background: var(--format-accent);
  color: white;
  font-weight: 700;
  font-size: 1.19rem;
}
.format-card h3, .site-topic h3 { font-size: clamp(1.25rem, 2.3vw, 1.63rem); letter-spacing: -.027em; }
.format-card p { margin-top: 9px; color: #40334a; }
.learning-example {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}
.learning-example p { margin-block: 12px; color: var(--site-muted); }
.learning-example aside {
  padding: clamp(18px, 3vw, 31px);
  border: 1px solid var(--site-line);
  border-radius: 25px;
  background: #f1e7fa;
}
.learning-example aside p:last-child { margin-bottom: 0; }
.learning-example aside a { color: #59218f; text-underline-offset: .15em; }
.research-details { margin-top: 15px; border-top: 1px solid var(--site-line); }
.research-details summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 700; }
.site-topic {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 25px;
  background: white;
}
.site-topic img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; }
.site-topic-fractions img { object-position: 50% 60%; }
.site-topic-ratios img { object-position: 50% 23%; }
.site-topic-area img { object-position: 50% 28%; }
.site-topic-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px; }
.site-topic-body p:not(.topic-grade) { color: var(--site-muted); }
.topic-grade { font-size: .9rem; }
.topic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: auto;
}
.topic-actions > a:not(.site-button) {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  color: #59218f;
  font-weight: 700;
  text-underline-offset: .15em;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
}
.access-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3.4vw, 37px);
  border: 1px solid var(--site-line);
  border-radius: 25px;
  background: white;
}
.access-card-paid { background: #f1e7fa; }
.access-card h3 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); }
.access-card p { max-width: 48ch; color: var(--site-muted); }
.access-card .access-price {
  color: var(--site-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
.access-price span {
  display: inline-block;
  margin-left: .2em;
  color: var(--site-muted);
  font-size: 1rem;
}
.access-card .access-status { font-weight: 700; }
.access-includes { margin: 0; padding-left: 21px; }
.price-examples { margin-top: 16px; padding: 0 16px; border: 1px solid var(--site-line); border-radius: 16px; }
.price-examples summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.price-examples p { margin-bottom: 12px; color: var(--site-muted); }
.rewards-showcase { display: grid; grid-template-columns: minmax(105px, .44fr) minmax(0, 1fr); align-items: center; gap: clamp(15px, 4vw, 42px); padding: clamp(18px, 4vw, 44px); border-radius: 25px; background: #eee1f8; }
.rewards-showcase > img { width: 100%; height: auto; max-width: 235px; justify-self: center; border-radius: 18px; }
.rewards-showcase p { margin-top: 12px; color: var(--site-muted); }
.reward-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; padding: 0; list-style: none; }
.reward-items li { padding: 7px 11px; border-radius: 12px; background: #fff7e5; color: #52346f; }
.reward-items strong { margin-left: 4px; white-space: nowrap; }
.social-links { padding-bottom: 16px; }

.public-faq {
  display: grid;
  align-items: start;
  gap: 23px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  padding: clamp(22px, 4.5vw, 51px);
  border-radius: 30px;
  background: #f1e7fa;
}
.faq-list details + details { border-top: 1px solid #dccaec; }
.faq-list summary { min-height: 44px; padding: 9px 4px; cursor: pointer; font-weight: 700; }
.faq-list p { padding: 0 4px 12px; color: var(--site-muted); }
.public-footer { margin-top: auto; border-top: 1px solid var(--site-line); background: #f2e8fa; }
.footer-inner > a:not(.public-brand) { text-underline-offset: .18em; }
.blog-page { min-height: 67vh; padding-block: clamp(26px, 6vw, 77px); }
.blog-page h1 { margin-bottom: 14px; font-size: clamp(2.55rem, 6vw, 5rem); letter-spacing: -.05em; }
.blog-empty { margin-top: 29px; padding: clamp(21px, 5vw, 54px); border: 1px solid var(--site-line); border-radius: 28px; background: #f0e4fc; }
.blog-empty h2 { font-size: clamp(1.55rem, 3.1vw, 2.5rem); }
.blog-empty p { margin-block: 11px 18px; }

.site-sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 9px 13px; background: white; }

@media (max-width: 760px) {
  .formats-grid, .topic-grid, .access-grid, .public-faq, .learning-example { grid-template-columns: 1fr; }
  .public-hero { padding: 27px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 8vw, 4rem); }
  .site-topic img { aspect-ratio: 2; }
}

@media (max-width: 530px) {
  .public-header { padding-block: 12px; gap: 7px; }
  .public-brand { gap: 6px; font-size: .95rem; }
  .public-brand span { width: 32px; height: 32px; }
  .public-brand img { width: 32px; height: 32px; }
  .public-nav { gap: 12px; }
  .public-nav .nav-formats { display: none; }
  .public-nav > a { font-size: .9rem; }
  .public-hero { grid-template-columns: 1fr; padding: 25px 22px; }
  .hero-picture { width: min(88%, 255px); justify-self: center; aspect-ratio: .88; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { margin-top: 16px; }
  .rewards-showcase { grid-template-columns: 1fr; }
  .rewards-showcase > img { max-width: 160px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
}
