:root {
  color-scheme: light;
  --ink: #18283b;
  --muted: #4f6275;
  --navy: #14253b;
  --navy-deep: #101e31;
  --quiet-blue: #b8d0e7;
  --paper: #f3f6f9;
  --line: #d7e0e8;
  --white: #fff;
  --gutter: clamp(17px, 5.5vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
:where(h1, h2, h3) { line-height: 1.2; }
:focus-visible { outline: 3px solid #2d76b9; outline-offset: 4px; }
[id] { scroll-margin-top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 3;
  top: max(.5rem, env(safe-area-inset-top));
  left: .7rem;
  padding: .65rem .9rem;
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip:focus { transform: none; }
.site-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.site-header-dark {
  color: #e7eef6;
  background: var(--navy-deep);
  border-color: #304055;
}
.site-header-dark :focus-visible, .hero :focus-visible { outline-color: #c6e3ff; }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; gap: .75rem; }
.brand, .top-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.brand { gap: .55rem; font-weight: 700; font-size: .93rem; }
.brand-mark {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 5px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px 4px 4px 5px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skewY(-30deg);
}
.top-nav { display: flex; gap: clamp(.65rem, 4vw, 1.55rem); }
.top-nav a { color: var(--muted); font-size: .85rem; }
.site-header-dark .top-nav a { color: #c8d6e5; }

.hero {
  color: #f6f9fd;
  background: radial-gradient(ellipse at 74% 68%, #263d57 0%, transparent 67%), var(--navy-deep);
}
.hero-layout {
  display: grid;
  align-items: center;
  gap: 1.3rem;
  padding-block: clamp(1.55rem, 5.8vw, 5.4rem) clamp(1.25rem, 4.5vw, 3.8rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #3f5d7d;
  font-size: .82rem;
  font-weight: 650;
}
.eyebrow > span { flex: 0 0 1.05rem; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--quiet-blue); }
.hero h1 {
  margin-top: .56rem;
  font-size: clamp(2.48rem, 10.2vw, 5.25rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.hero-product { margin-top: .8rem; color: #f0f5fb; font-weight: 650; }
.hero-lede { margin-top: .3rem; max-width: 24rem; color: #ccd9e7; font-size: .89rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.08rem;
  min-height: 46px;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  transition: background-color 160ms, transform 160ms;
}
.button-light { margin-top: .9rem; background: #e6eff8; color: var(--navy); }
.button-dark { background: #203d5d; color: var(--white); }
.button:active, .work-nav a:active { transform: translateY(1px); }
.hero-figure { min-width: 0; animation: reveal 460ms ease-out both; }
@keyframes reveal {
  from { opacity: .8; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
figcaption { margin-top: .35rem; color: var(--muted); text-align: right; font-size: .76rem; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: .5rem; color: #c3d3e4; }
.hero-figure figcaption span:first-child { text-align: left; }

.debate-stage {
  container-type: inline-size;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(17px, 5vw, 56px) clamp(12px, 3.8vw, 42px);
  border: 1px solid #687e99;
  border-radius: 13px;
  background:
    linear-gradient(138deg, #a6bcd3aa, #617e9d00 56%),
    repeating-linear-gradient(90deg, transparent 0 47px, #c1d5ee1a 47px 48px),
    linear-gradient(156deg, #5a7290, #182d47 88%);
  box-shadow: inset 0 1px 0 #bdcce544, 0 12px 36px #07132030;
}
.debate-ui {
  width: 100%;
  font-size: 11px;
  font-size: clamp(9px, 3.5cqw, 15px);
  line-height: 1.35;
  color: #1f334b;
  border: 1px solid #ffffffb0;
  border-radius: 8px;
  background: #f4f7fb;
  box-shadow: 0 14px 25px #07162755;
  padding: 1.1em;
}
.ui-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55em;
  padding-bottom: .63em;
  border-bottom: 1px solid #d8e2ee;
  font-size: .95em;
}
.ui-bar strong { display: flex; align-items: center; gap: .5em; }
.ui-bar i { width: .64em; height: .64em; border-radius: 50%; background: #4e7098; }
.ui-bar > span { color: #445e7a; }
.ui-question { margin: .7em 0 .55em; font-size: 1.42em; font-weight: 750; }
.ui-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48em; }
.ui-post { padding: .65em .68em; border-radius: .45em; background: #e2ebf6; }
.ui-post-alt { background: #f0ece2; }
.ui-post strong { display: block; margin-bottom: .3em; color: #344e6b; font-size: .92em; }
.ui-next {
  display: flex;
  align-items: flex-start;
  gap: .55em;
  margin-top: .55em;
  padding: .55em .65em;
  border-radius: .45em;
  background: #223b57;
  color: #f5f8fc;
}
.ui-next span { color: #c1d6ec; white-space: nowrap; }
.ui-next strong { min-width: 0; }

.work-nav { background: #e8eef5; border-bottom: 1px solid #d1dce7; }
.work-nav-inner { display: flex; align-items: stretch; }
.work-nav a {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: .32rem;
  min-height: 3.25rem;
  padding: .3rem .15rem;
  color: #263e5b;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 650;
}
.work-nav a + a { border-left: 1px solid #d1dce7; }
.work-nav a span { color: #4b6683; }
.home-content { display: grid; gap: clamp(1.8rem, 5vw, 3.7rem); padding-block: clamp(1.6rem, 5vw, 3.6rem) 3.9rem; }
.collection h2, .detail-section h2 { font-size: clamp(1.33rem, 4.9vw, 1.8rem); letter-spacing: -.02em; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .72rem; margin-top: .8rem; }
.tool-card, .course-card, .project-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  background: #fdfefe;
}
.tool-card, .project-card { display: flex; align-items: flex-start; gap: .8rem; padding: .95rem; }
.tool-copy { display: block; flex: 1; min-width: 0; }
.tool-copy h3, .course-card h3, .project-card h3 { font-size: 1rem; font-weight: 720; line-height: 1.35; }
.tool-copy :is(p, small), .course-card p, .project-card p { display: block; margin-top: .27rem; color: var(--muted); font-size: .82rem; }
.tool-copy small, .card-status { color: #416082; font-size: .76rem; }
.card-arrow { flex: none; margin-left: auto; color: #3d5f81; line-height: 1.35; font-size: 1.17rem; }

.tool-glyph {
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 7px;
  background: #e6edf5;
  color: #527498;
}
.tool-glyph::before, .tool-glyph::after { content: ""; position: absolute; border: 1px solid currentColor; }
.debate-glyph::before { inset: 11px 14px 17px 9px; border-radius: 4px; }
.debate-glyph::after { inset: 17px 9px 10px 15px; border-radius: 4px; background: #e6edf5; }
.rubric-glyph::before { inset: 9px 13px; border-radius: 3px; }
.rubric-glyph::after { inset: 17px 17px; border-inline: 0; }

.course-card { display: block; overflow: hidden; }
.course-cover {
  display: grid;
  place-items: center;
  position: relative;
  min-height: clamp(6.2rem, 19vw, 10rem);
  overflow: hidden;
  color: #eee5ce;
  border-bottom: 1px solid var(--line);
}
.tiefo-cover { background: radial-gradient(ellipse at 25% 30%, #7e756b, #453d37 75%); }
.wellbeing-cover {
  color: #e3ece2;
  background: radial-gradient(ellipse at 25% 30%, #72938c, #355551 75%);
}
.cover-slide {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 8%;
  width: clamp(88px, 27%, 149px);
  aspect-ratio: 1.75;
  padding: 4%;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  box-shadow: 0 8px 16px #0004;
  transform: translate(16%, -11%) rotate(7deg);
}
.cover-slide-front {
  background: #e4dacc;
  color: #786453;
  transform: translate(-17%, 9%) rotate(-6deg);
}
.wellbeing-cover .cover-slide-front { background: #d6e9e2; color: #527f76; }
.cover-slide > div { width: 63%; height: 2px; background: currentColor; }
.cover-slide > div:first-child { height: 6px; width: 47%; margin-bottom: 4%; }
.cover-slide > div:last-child { width: 54%; }
.course-card-copy { display: flex; justify-content: space-between; gap: .65rem; padding: .85rem .95rem 1rem; }
.project-card { background: #eaf0f6; }
.card-status { display: block; margin-top: .52rem; }

.site-footer { padding-block: 1.45rem; border-top: 1px solid var(--line); background: #ebf0f5; }
.footer-layout { display: flex; column-gap: 1.2rem; row-gap: .7rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.site-footer h2 { margin-bottom: .28rem; font-size: 1rem; }
.site-footer p { font-size: .85rem; }
.site-footer .footer-meta { color: var(--muted); font-size: .77rem; }
.footer-meta span { display: inline-block; margin-left: .65rem; }
.filing-links { display: flex; flex-wrap: wrap; flex-basis: 100%; column-gap: 20px; }
.filing-links a { padding-block: 10px; font-size: .8rem; overflow-wrap: anywhere; text-decoration: underline; }

.detail { padding-block: .55rem clamp(2rem, 6vw, 4.5rem); }
.back, .bottom-link {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 44px;
  color: #345674;
  font-size: .86rem;
  font-weight: 650;
}
.detail-layout { display: grid; align-items: start; gap: 1.05rem; margin-top: .55rem; }
.detail-copy h1, .project-intro h1 {
  margin-top: .35rem;
  font-size: clamp(2rem, 8.6vw, 3.65rem);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.lede { margin-top: .57rem; max-width: 33rem; color: var(--muted); font-size: clamp(.91rem, 3vw, 1.07rem); }
.detail-copy .button { margin-top: .72rem; }
.availability {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: .74rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--line);
}
.availability > div { padding: .4rem .6rem; background: #eaf0f6; }
.availability dt { color: var(--muted); font-size: .75rem; }
.availability dd { color: #243f5d; font-size: .83rem; font-weight: 700; }
.detail-figure { min-width: 0; }
.detail-figure .debate-stage { box-shadow: none; }
.lesson-stage {
  container-type: inline-size;
  padding: clamp(21px, 5.2vw, 59px) clamp(11px, 3.5vw, 41px);
  border: 1px solid #847469;
  border-radius: 13px;
  background: radial-gradient(ellipse at 16% 20%, #a08f7b, transparent 75%), linear-gradient(155deg, #785f52, #3f3430);
}
.lesson-ui {
  padding: 1em;
  border: 1px solid #f3ecdd;
  border-radius: 8px;
  background: #f5eee5;
  box-shadow: 0 12px 24px #27211d55;
  color: #463831;
  font-size: 12px;
  font-size: clamp(10px, 4.4cqw, 18px);
}
.lesson-bar { display: flex; align-items: center; gap: .5em; margin-bottom: .7em; }
.lesson-bar > span { width: .58em; height: .58em; border-radius: 50%; background: #836e5f; }
.lesson-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: .7em; }
.lesson-media {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 7.2em;
  border-radius: .35em;
  text-align: center;
  background: repeating-linear-gradient(135deg, #e0d5c8 0 6px, #e6ddd0 6px 12px);
}
.lesson-media span { padding: .22em .4em; border-radius: .3em; font-weight: 650; background: #f5eee5; }
.lesson-outline { display: grid; align-content: center; gap: .5em; padding: .45em; border: 1px solid #d4c5b8; border-radius: .35em; }
.lesson-outline > span { width: 75%; height: 2px; margin-bottom: .25em; background: #b19e90; }

.detail-section { margin-top: clamp(1.55rem, 5vw, 3.6rem); }
.steps {
  display: grid;
  gap: .58rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  align-content: start;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .67rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 1.58rem;
  height: 1.58rem;
  color: #244560;
  background: #e8eff6;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}
.steps h3 { font-size: .98rem; line-height: 1.55; }
.steps p, .detail-note p, .facts { color: var(--muted); font-size: .89rem; }
.steps p { margin-top: .19rem; }
.detail-note p { max-width: 35rem; margin-top: .55rem; }
.facts { margin-top: .8rem; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  gap: .16rem;
  padding: .7rem .08rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--ink); font-weight: 650; }
.bottom-link { margin-top: 1.15rem; }
.project-intro {
  margin-top: .55rem;
  padding: clamp(1rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: radial-gradient(ellipse at 100% 0, #dbe6f2, transparent 80%), #edf2f8;
}
.project-meta { margin-top: 1rem; color: #345674; font-size: .82rem; font-weight: 600; }

@media (min-width: 610px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: minmax(11rem, .6fr) 1fr; gap: 1rem; }
}
@media (min-width: 790px) {
  .navbar { min-height: 4rem; }
  .hero-layout { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero-product { margin-top: 1.25rem; font-size: 1.18rem; }
  .hero-lede { font-size: 1rem; }
  .button-light { margin-top: 1.3rem; }
  .work-nav a { min-height: 3.6rem; font-size: .95rem; }
  .detail-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; margin-top: .9rem; align-items: center; }
  .availability { max-width: 23rem; margin-top: 1rem; }
  .detail-copy .button { margin-top: 1rem; }
  .home-content .card-grid { margin-top: 1rem; }
  .tool-card, .project-card { padding: 1.2rem; }
}
@media (hover: hover) and (pointer: fine) {
  :is(.top-nav a, .back, .bottom-link):hover { text-decoration: underline; text-underline-offset: .2em; }
  .button-light:hover { background: var(--white); }
  .button-dark:hover { background: #2d5379; }
  .work-nav a:hover { background: #dde7f2; }
  a:is(.tool-card, .project-card, .course-card):hover { border-color: #6582a1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
