:root {
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #273d33;
  --muted: #687269;
  --line: #dedfd5;
  --green: #315641;
  --sage: #e7ecdf;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b66d34;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
}
section {
  scroll-margin-top: 28px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 9;
  padding: 12px 24px;
  background: var(--green);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  border-right: 1px solid var(--line);
  padding: 38px 25px 30px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  margin-top: 6px;
  font-weight: 500;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  gap: 4px;
}
.brand-mark i {
  width: 11px;
  height: 11px;
  background: var(--green);
  border-radius: 2px;
}
.brand-mark i:nth-child(2) {
  border-radius: 50%;
}
.brand-mark i:nth-child(4) {
  opacity: 0.35;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 62px 10px 16px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 5px;
  margin: 3px 0;
  font-size: 12px;
  font-weight: 600;
}
.nav-link:hover,
.nav-link:first-child {
  background: #e8ecdf;
}
.nav-link > span:first-child {
  font-size: 19px;
  font-weight: 400;
  width: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 11px 0;
}
.tiny-flower {
  display: block;
  font-size: 40px;
  color: #748d68;
  line-height: 1;
  margin-bottom: 20px;
}
.sidebar-bottom p {
  font: 17px/1.9 var(--serif);
}
.sidebar-bottom small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 14px;
}
main {
  max-width: 1680px;
  margin-left: 234px;
  padding: 0 52px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.topbar-label {
  font: 9px/1.4 var(--sans);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot,
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68835b;
  display: inline-block;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  align-items: center;
  padding: 67px 0 61px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  font: clamp(30px, 3vw, 48px) / 1.65 var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 20px 0 22px;
}
h1 em {
  font-style: normal;
}
.hero-intro {
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
}
.primary-link {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  background: var(--green);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  padding: 12px 20px;
  margin-top: 29px;
  transition: background 0.2s;
}
.primary-link:hover {
  background: #1e3c2c;
}
.primary-link span {
  font-size: 19px;
  line-height: 1;
}
.hero-footnote {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 13px;
}
.hero-art {
  position: relative;
  min-height: 348px;
  display: grid;
  place-items: center;
  background: radial-gradient(#cdd3c3 0.7px, transparent 0.8px);
  background-size: 14px 14px;
  border-radius: 50%;
}
.art-label {
  position: absolute;
  top: 1px;
  left: 10%;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.art-card {
  position: relative;
  width: 226px;
  background: #fffffc;
  padding: 24px;
  border: 1px solid #dcded0;
  box-shadow: 8px 16px 35px #34442a0d;
  transform: rotate(-5deg);
  z-index: 1;
}
.art-card small {
  font: 7px/1.5 var(--sans);
  letter-spacing: 0.15em;
  display: block;
  margin: 12px 0 10px;
}
.art-card strong {
  font: 28px/1.45 var(--serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.art-card p {
  font-size: 9px;
  line-height: 1.9;
  margin-top: 8px;
}
.art-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d6dfb8;
  box-shadow: inset -4px -4px 6px #a8b78d33;
}
.art-bottom {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
.art-bottom span:last-child {
  font-size: 15px;
}
.measure-top {
  position: absolute;
  top: 6px;
  right: 25%;
  font-size: 10px;
  color: #718d5b;
  transform: rotate(-5deg);
  z-index: 2;
}
.measure-top b {
  font-weight: 400;
  font-size: 8px;
}
.measure-gap {
  height: 8px;
  background: #d8e4c5;
  position: relative;
  margin-top: 2px;
}
.measure-gap span {
  position: absolute;
  left: 100%;
  margin-left: 5px;
  top: -5px;
  font-size: 7px;
  color: #718d5b;
}
.art-note {
  position: absolute;
  right: 0;
  bottom: 0;
  font: 13px/1.8 var(--serif);
  transform: rotate(5deg);
}
.art-cross {
  position: absolute;
  left: 3%;
  bottom: 8%;
  color: #859b70;
  font-size: 26px;
}
.playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #eeeee5;
}
.lab-copy {
  padding: 32px 36px;
}
.lab-copy h2 {
  font: 25px/1.6 var(--serif);
  margin: 13px 0 15px;
}
.lab-copy > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}
.range-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 25px;
  align-items: center;
}
.range-label output {
  font: 12px/1.5 monospace;
  background: #fff;
  padding: 3px 9px;
  border-radius: 4px;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin: 13px 0 5px;
  height: 18px;
  cursor: pointer;
}
.text-button {
  background: none;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin-top: 23px;
}
.text-button span {
  margin-left: 12px;
}
.lab-stage {
  background: #e4e8da;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  padding: 42px 24px 30px;
  min-height: 370px;
}
.stage-caption {
  position: absolute;
  top: 17px;
  left: 23px;
  right: 23px;
  font-size: 7px;
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4c634e;
}
.stage-caption > span:last-child {
  margin-left: auto;
  letter-spacing: 0;
  font-size: 8px;
}
.sample-card {
  --space: 24px;
  max-width: 100%;
  width: 260px;
  padding: var(--space);
  background: #fffffc;
  border: 1px solid #d2d8c8;
  border-radius: 6px;
  box-shadow: 0 8px 22px #3a4b2c08;
  transition: padding 0.15s;
}
.sample-tag {
  font-size: 8px;
  color: #5d7251;
  border: 1px solid #d6dfc9;
  padding: 3px 7px;
  border-radius: 3px;
}
.sample-card h3 {
  font-size: 15px;
  line-height: 1.6;
  margin: calc(var(--space) * 0.6) 0 calc(var(--space) / 3);
}
.sample-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
}
.sample-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--space) * 0.6);
  margin-top: var(--space);
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.sample-footer > span:last-child {
  font-size: 16px;
}
.stage-note {
  font-size: 8px;
  color: #52654c;
  margin-top: 18px;
  text-align: center;
}
.library {
  padding-top: 60px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
}
.section-heading h2 {
  font: 24px/1.6 var(--serif);
  margin-top: 10px;
}
.lesson-count {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 26px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 7px;
}
.filters button {
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 10px;
  background: transparent;
  color: var(--muted);
  min-height: 34px;
}
.filters button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.filters button:hover {
  box-shadow: inset 0 0 0 1px #869c80;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 4px;
  background: #fafaf6;
}
.search > span {
  font-size: 21px;
  line-height: 1;
  color: var(--muted);
}
.search input {
  background: none;
  border: 0;
  max-width: 160px;
  width: 100%;
  font-size: 10px;
  color: var(--ink);
  outline-offset: 7px;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px 20px;
}
.lesson-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fdfdf9;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 18px #35442a08;
}
.lesson-open {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  height: 100%;
}
.card-copy {
  padding: 18px 18px 14px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.category-tag {
  font-size: 8px;
  padding: 1px 7px;
  background: #ecefe5;
  border-radius: 3px;
  color: #4e684f;
}
.card-copy h3 {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: -0.02em;
  margin: 11px 0 9px;
}
.card-copy > p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  min-height: 3.8em;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 11px;
  border-top: 1px solid #e9eadf;
  font-size: 8px;
  color: var(--muted);
}
.card-footer > span:last-child {
  font-size: 16px;
}
.thumbnail {
  height: 152px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.thumb-spacing {
  background: #e7ebdf;
}
.mini-card {
  width: 74px;
  background: #fcfcf8;
  padding: 10px;
  border-radius: 3px;
  box-shadow: 0 5px 10px #243c2a0a;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mini-card i {
  height: 4px;
  background: #d1d8c4;
  border-radius: 1px;
  width: 100%;
}
.mini-card i:first-child {
  width: 65%;
  background: #849875;
}
.mini-card.air {
  padding: 17px 12px;
  gap: 10px;
}
.thumb-arrow {
  font-size: 13px;
  color: #768a6c;
}
.thumb-hierarchy {
  background: #f0e8db;
  gap: 27px;
}
.type-flat {
  font-size: 16px;
  color: #9b8d73;
  line-height: 1.9;
}
.type-strong {
  font-family: var(--serif);
  line-height: 1.2;
}
.type-strong b {
  font-size: 37px;
  font-weight: 500;
}
.type-strong span {
  font-size: 13px;
  display: block;
  margin-top: 8px;
}
.thumb-contrast {
  background: #e5e9ea;
}
.color-square {
  width: 68px;
  height: 68px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font: 34px/1 var(--serif);
  background: #fcfcfa;
}
.color-square.faint {
  color: #c4c9c3;
}
.color-square.dark {
  background: #315341;
  color: #f8f8f0;
}
.thumb-motion {
  background: #ebe9f1;
  flex-direction: column;
  gap: 21px;
  padding: 0 37px;
}
.motion-line {
  width: 100%;
  height: 1px;
  background: #c7bfd7;
  position: relative;
}
.motion-line i {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #9183a6;
  border-radius: 50%;
  top: -8px;
  left: 24%;
}
.motion-line:last-child i {
  left: 75%;
  background: #5c506e;
}
.thumb-align {
  background: #e9e9e0;
  gap: 32px;
}
.align-lines {
  width: 60px;
  border-left: 1px dashed #8a9776;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 6px;
}
.align-lines i {
  display: block;
  height: 5px;
  width: 52px;
  background: #acb79a;
}
.align-lines i:nth-child(2) {
  width: 39px;
}
.align-lines i:nth-child(3) {
  width: 45px;
}
.align-lines.scattered i:first-child {
  margin-left: 7px;
}
.align-lines.scattered i:nth-child(2) {
  margin-left: 14px;
}
.thumb-materials {
  background: #efe5d5;
}
.thumb-materials img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-label {
  position: absolute;
  bottom: 9px;
  right: 10px;
  background: #fffff9df;
  border: 1px solid #e3dacb;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 7px;
  color: #726858;
}
.empty-state,
.load-error {
  padding: 35px 0;
  text-align: center;
  color: var(--muted);
}
.library-note {
  font-size: 9px;
  color: var(--muted);
  margin: 20px 0 0;
}
.workflow {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding: 38px 0 0;
}
.workflow-heading h2 {
  font: 25px/1.6 var(--serif);
  margin: 9px 0 8px;
}
.workflow-heading > p:last-child {
  font-size: 11px;
  color: var(--muted);
}
.workflow ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0;
  margin: 29px 0;
}
.workflow li {
  border-left: 1px solid #cbd4bf;
  padding-left: 18px;
}
.workflow li > span {
  color: #6c805b;
  font-size: 9px;
}
.workflow li h3 {
  font-size: 12px;
  margin: 9px 0;
}
.workflow li p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.workflow-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 10px;
  color: var(--muted);
}
.workflow-bottom > span {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.footer {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  align-items: center;
  padding: 25px 0 35px;
  font-size: 9px;
  color: var(--muted);
}
.footer-brand {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
}
.footer a {
  margin-left: auto;
}
dialog {
  max-width: 800px;
  width: calc(100% - 40px);
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px #16271b40;
}
dialog::backdrop {
  background: #1c302976;
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.close-button {
  background: #e5e9de;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font: 24px/1 var(--sans);
}
#dialog-body {
  padding: 26px 32px 34px;
}
.lesson-title {
  font: 28px/1.6 var(--serif);
  margin-bottom: 14px;
}
.lesson-lead {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.lesson-demo {
  background: #e7ebdf;
  padding: 24px;
  border: 1px solid #d8dfce;
  border-radius: 7px;
  margin-bottom: 26px;
}
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
}
.demo-controls button,
.copy-button {
  border: 1px solid #b6c5ab;
  border-radius: 4px;
  background: #fbfcf5;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 12px;
}
.demo-controls button[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.demo-content {
  display: grid;
  place-items: center;
  min-height: 170px;
}
.demo-content .sample-card {
  width: 285px;
}
.demo-caption {
  font-size: 11px;
  color: #4e614b;
  text-align: center;
  margin-top: 15px;
}
.demo-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #4e614b;
  margin-bottom: 14px;
}
.lesson-text {
  margin: 22px 0;
  font-size: 13px;
}
.lesson-text h3 {
  font-size: 12px;
  margin-bottom: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.lesson-text h3::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #7b956a;
  border-radius: 50%;
}
.lesson-text p {
  color: #566252;
  line-height: 2;
}
.instruction-box {
  padding: 22px;
  border: 1px solid #d6ddcc;
  background: #eff2e8;
  border-radius: 5px;
  margin: 25px 0;
}
.instruction-box h3 {
  font-size: 11px;
  color: #58704d;
  margin-bottom: 10px;
}
.instruction-box p {
  font-size: 13px;
  line-height: 2;
}
.copy-button {
  margin-top: 14px;
  font-size: 10px;
  background: transparent;
}
.copy-status {
  font-size: 10px;
  margin-left: 12px;
}
.question-box {
  border-left: 3px solid #a4b795;
  padding-left: 17px;
  margin: 25px 0;
}
.question-box h3 {
  font-size: 11px;
  margin-bottom: 7px;
}
.question-box p {
  font: 17px/1.9 var(--serif);
}
.sources {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 26px;
  font-size: 10px;
  color: var(--muted);
}
.sources h3 {
  font-size: 11px;
  margin-bottom: 7px;
}
.sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sources ul {
  padding-left: 18px;
}
.source-date {
  margin-top: 12px;
  font-size: 9px;
}
.hierarchy-demo {
  background: #fff;
  padding: 24px;
  max-width: 100%;
  width: 350px;
  border-radius: 5px;
}
.hierarchy-demo > * {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  margin: 0 0 12px;
}
.hierarchy-demo.has-hierarchy h3 {
  font-size: 28px;
  font-weight: 700;
}
.hierarchy-demo.has-hierarchy small {
  font-size: 14px;
  color: #64715f;
}
.contrast-sample {
  background: #ffffff;
  color: #767676;
  padding: 25px;
  font-size: 16px;
  line-height: 1.9;
  border-radius: 5px;
  width: 100%;
}
.contrast-sample strong {
  font-weight: 400;
}
.contrast-result {
  font: 28px/1.4 var(--serif);
  text-align: center;
  margin: 17px 0 0;
}
.contrast-status {
  text-align: center;
  font-size: 11px;
  color: #4f6148;
  margin-top: 5px;
}
.demo-controls input[type="color"] {
  width: 48px;
  height: 36px;
  border: 1px solid #bdcbb1;
  border-radius: 3px;
  background: white;
  cursor: pointer;
}
.motion-tracks {
  width: 100%;
  padding: 0 10px;
}
.track-label {
  font-size: 11px;
  margin-bottom: 9px;
}
.track {
  width: 100%;
  height: 42px;
  border-bottom: 1px solid #c5d0b9;
  position: relative;
  margin-bottom: 24px;
}
.track-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #698555;
  position: absolute;
  left: 0;
  top: 0;
}
.track-dot.ease {
  background: #b38b61;
}
.alignment-demo {
  background: white;
  padding: 22px 28px;
  width: 290px;
  max-width: 100%;
  border-radius: 5px;
}
.alignment-inner {
  border-left: 1px dashed #90a079;
  padding-left: 10px;
}
.alignment-inner p {
  font-size: 14px;
  margin: 15px 0;
}
.alignment-demo.is-scattered p:first-child {
  margin-left: 14px;
}
.alignment-demo.is-scattered p:nth-child(2) {
  margin-left: 36px;
}
.alignment-demo.is-scattered p:nth-child(3) {
  margin-left: 7px;
}
.material-figure {
  margin: 0;
}
.material-figure img {
  border-radius: 5px;
}
.material-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 12px;
  padding-top: 12px;
}
.material-caption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
@media (min-width: 1500px) {
  main {
    padding: 0 75px;
  }
  .hero {
    gap: 70px;
  }
  .hero-art {
    min-height: 390px;
  }
  .art-card {
    width: 250px;
    padding: 30px;
  }
  .art-card strong {
    font-size: 32px;
  }
  .thumbnail {
    height: 175px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 194px;
    padding: 30px 17px;
  }
  .brand {
    font-size: 16px;
    gap: 9px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px;
  }
  .nav-caption {
    font-size: 8px;
  }
  main {
    margin-left: 194px;
    padding: 0 32px;
  }
  .hero {
    gap: 15px;
  }
  .hero-art {
    min-height: 320px;
  }
  .art-card {
    width: 198px;
    padding: 20px;
  }
  .art-card strong {
    font-size: 24px;
  }
  .art-note {
    font-size: 10px;
  }
  .hero-intro {
    font-size: 11px;
  }
  .lab-copy {
    padding: 27px;
  }
  .lab-copy h2 {
    font-size: 23px;
  }
  .lesson-grid {
    gap: 20px 14px;
  }
  .card-copy {
    padding: 14px;
  }
  .card-copy h3 {
    font-size: 12px;
  }
  .thumbnail {
    height: 132px;
    gap: 11px;
  }
  .topbar-label {
    font-size: 7px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
  }
  .nav-link {
    font-size: 10px;
  }
  .nav-link > span:first-child,
  .nav-count,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .nav-link:first-child {
    background: transparent;
  }
  .brand {
    white-space: nowrap;
  }
  .brand small {
    font-size: 7px;
  }
  main {
    margin-left: 0;
    padding: 0 30px;
  }
  .hero {
    padding: 44px 0 45px;
    grid-template-columns: 1.15fr 1fr;
  }
  .hero h1 {
    font-size: 35px;
  }
  .topbar {
    padding: 19px 0;
  }
  .hero-art {
    min-height: 320px;
  }
  .lab-copy {
    padding: 25px;
  }
  .lab-stage {
    padding: 42px 20px 25px;
  }
  .sample-card {
    width: 245px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .card-copy h3 {
    font-size: 12px;
  }
  .lesson-grid {
    gap: 18px;
  }
  .thumbnail {
    height: 144px;
  }
  .hero-intro {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    padding: 17px 20px;
    gap: 8px;
  }
  .brand {
    font-size: 15px;
    gap: 10px;
  }
  .brand small {
    font-size: 6px;
  }
  .brand-mark {
    grid-template-columns: repeat(2, 9px);
    gap: 3px;
  }
  .brand-mark i {
    width: 9px;
    height: 9px;
  }
  .sidebar nav {
    gap: 0;
  }
  .nav-link {
    padding: 7px 6px;
    font-size: 9px;
  }
  .nav-link:last-child {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .topbar {
    font-size: 9px;
  }
  .topbar-label {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 0 37px;
    gap: 30px;
  }
  .hero h1 {
    font-size: clamp(27px, 7.8vw, 38px);
    margin: 15px 0 18px;
  }
  .hero-intro {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .hero-art {
    min-height: 280px;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }
  .art-card {
    width: 205px;
    padding: 20px;
  }
  .art-card strong {
    font-size: 25px;
  }
  .art-card small {
    margin: 8px 0;
  }
  .art-orb {
    width: 27px;
    height: 27px;
  }
  .art-bottom {
    margin-top: 14px;
  }
  .art-note {
    font-size: 12px;
    right: 2px;
  }
  .measure-top {
    top: -5px;
  }
  .hero-footnote {
    font-size: 9px;
  }
  .playground {
    grid-template-columns: 1fr;
  }
  .lab-copy {
    padding: 27px;
  }
  .lab-copy h2 br {
    display: none;
  }
  .lab-copy h2 {
    font-size: 23px;
    line-height: 1.7;
  }
  .lab-copy > p {
    font-size: 11px;
  }
  .range-label {
    margin-top: 20px;
  }
  .lab-stage {
    min-height: 335px;
    padding: 49px 24px 28px;
  }
  .sample-card {
    width: 265px;
  }
  .text-button {
    margin-top: 20px;
  }
  .library {
    padding-top: 40px;
  }
  .section-heading {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 21px;
    letter-spacing: -0.03em;
  }
  .lesson-count {
    font-size: 9px;
  }
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin: 20px 0;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    padding: 7px 16px;
    font-size: 11px;
  }
  .search {
    padding: 9px 12px;
  }
  .search input {
    max-width: none;
    font-size: 12px;
  }
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
  }
  .thumbnail {
    height: 117px;
    gap: 10px;
  }
  .mini-card {
    width: 50px;
    padding: 7px;
    gap: 4px;
  }
  .mini-card.air {
    padding: 14px 8px;
    gap: 9px;
  }
  .mini-card i {
    height: 3px;
  }
  .thumb-arrow {
    font-size: 10px;
  }
  .type-strong b {
    font-size: 29px;
  }
  .type-flat {
    font-size: 13px;
  }
  .type-strong span {
    font-size: 10px;
  }
  .color-square {
    width: 49px;
    height: 53px;
    font-size: 27px;
  }
  .thumb-motion {
    padding: 0 21px;
    gap: 21px;
  }
  .align-lines {
    width: 41px;
    gap: 8px;
    padding-left: 4px;
  }
  .align-lines i {
    height: 4px;
    width: 34px;
  }
  .align-lines i:nth-child(2) {
    width: 28px;
  }
  .align-lines i:nth-child(3) {
    width: 31px;
  }
  .thumb-align {
    gap: 21px;
  }
  .card-copy {
    padding: 12px;
  }
  .card-meta {
    font-size: 7px;
  }
  .category-tag {
    font-size: 7px;
    padding: 1px 5px;
  }
  .card-copy h3 {
    font-size: 11px;
    margin: 9px 0 7px;
  }
  .card-copy > p {
    font-size: 9px;
    min-height: 5.7em;
  }
  .card-footer {
    margin-top: 12px;
    font-size: 7px;
  }
  .image-label {
    font-size: 6px;
    bottom: 5px;
    right: 5px;
  }
  .library-note {
    font-size: 9px;
    line-height: 1.9;
  }
  .workflow {
    margin-top: 36px;
    padding-top: 28px;
  }
  .workflow-heading h2 {
    font-size: 23px;
  }
  .workflow ol {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 25px 0;
  }
  .workflow li {
    padding-left: 17px;
  }
  .workflow li p br {
    display: none;
  }
  .workflow li h3 {
    font-size: 13px;
  }
  .workflow li p {
    font-size: 11px;
  }
  .workflow-bottom {
    font-size: 10px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 22px 0;
  }
  .footer p {
    font-size: 8px;
  }
  .footer a {
    font-size: 8px;
  }
  dialog {
    width: calc(100% - 20px);
    max-height: 94dvh;
    border-radius: 9px;
  }
  .dialog-top {
    padding: 10px 18px;
  }
  #dialog-body {
    padding: 23px 20px;
  }
  .lesson-title {
    font-size: 24px;
  }
  .lesson-lead {
    font-size: 12px;
  }
  .lesson-demo {
    padding: 18px 15px;
  }
  .lesson-text {
    font-size: 12px;
  }
  .instruction-box {
    padding: 17px;
  }
  .instruction-box p {
    font-size: 12px;
  }
  .question-box p {
    font-size: 16px;
  }
  .demo-controls {
    gap: 8px;
  }
  .demo-controls button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .hierarchy-demo {
    padding: 20px;
  }
  .hierarchy-demo.has-hierarchy h3 {
    font-size: 26px;
  }
  .material-labels {
    font-size: 10px;
  }
  .material-caption {
    font-size: 9px;
  }
}
/* Preserve generated image proportions in narrow lesson dialogs. */
.material-figure img {
  width: 100%;
  height: auto;
}
/* Keep instructional text readable independently of the small specimen labels. */
.hero-intro {
  font-size: 14px;
}
.hero-footnote {
  font-size: 11px;
}
.lab-copy > p {
  font-size: 13px;
}
.range-label,
.text-button {
  font-size: 12px;
}
.range-ends,
.stage-note {
  font-size: 10px;
}
.card-copy h3 {
  font-size: 15px;
}
.card-copy > p {
  font-size: 12px;
}
.card-meta,
.category-tag,
.card-footer {
  font-size: 10px;
}
.filters button,
.search input {
  font-size: 12px;
}
.library-note,
.workflow-bottom {
  font-size: 12px;
}
.workflow li h3 {
  font-size: 14px;
}
.workflow li p {
  font-size: 12px;
}
.workflow li > span {
  font-size: 11px;
}
.art-card strong {
  letter-spacing: 0;
}
.sidebar-bottom p {
  font-size: 15px;
}
.demo-controls select {
  font: inherit;
  padding: 7px;
  background: #fff;
  border: 1px solid #b6c5ab;
  border-radius: 4px;
  color: var(--ink);
}
@media (min-width: 1500px) {
  .art-card {
    width: 266px;
  }
  .art-card strong {
    font-size: 30px;
  }
}
@media (max-width: 650px) {
  .hero-intro {
    font-size: 12px;
  }
  .hero-footnote {
    font-size: 10px;
  }
  .lab-copy > p {
    font-size: 12px;
  }
  .card-copy h3 {
    font-size: 13px;
  }
  .card-copy > p {
    font-size: 11px;
  }
  .card-meta,
  .category-tag,
  .card-footer {
    font-size: 9px;
  }
  .card-footer {
    align-items: center;
    gap: 5px;
  }
  .library-note {
    font-size: 11px;
  }
  .workflow-bottom {
    font-size: 11px;
  }
  .art-card strong {
    font-size: 24px;
  }
  .lesson-grid {
    gap: 18px 12px;
  }
}
@media (max-width: 370px) {
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .thumbnail {
    height: 155px;
  }
  .card-copy > p {
    min-height: 0;
  }
  .card-copy h3 {
    font-size: 15px;
  }
  .card-copy > p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
