:root {
  --sp-bg: #fdf6ec;
  --sp-bg-2: #f3ead9;
  --sp-bg-sky: #dff1fb;
  --sp-bg-grass: #e6f4d7;
  --sp-bg-night: #1f2a44;
  --sp-surface: #fffaf2;
  --sp-ink: #3b3226;
  --sp-ink-2: #7a6a55;
  --sp-ink-3: #9c8a72;
  --sp-accent: #f08a5d;
  --sp-accent-2: #5da9e9;
  --sp-ok: #6c9a3b;
  --sp-warn: #f2b134;
  --sp-focus: #ffc93c;
  --sp-ease: cubic-bezier(0.37, 0, 0.29, 1);
  --sp-dur: 520ms;
  --sp-dur-slow: 900ms;
  --sp-shadow: 0 12px 30px rgba(80, 60, 30, 0.12);
  --sp-shadow-soft: 0 4px 18px rgba(80, 60, 30, 0.08);
  --sp-font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --sp-font-en: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sp-font-serif: "LXGW WenKai", "STKaiti", "KaiTi", serif;
  --sp-font-display: "Fraunces", Georgia, serif;
  --content-width: 1180px;
  --gutter: clamp(16px, 4vw, 72px);
  --section-space: clamp(72px, 10vw, 142px);
}

@font-face {
  font-family: "LXGW WenKai";
  src: url("./fonts/lxgw-wenkai-subset.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}

@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-soft.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
  font-style: normal;
}

@font-face {
  font-family: "Nunito";
  src: url("./fonts/nunito-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 900;
}

:root[data-theme="dark"] {
  --sp-bg: #1f2a44;
  --sp-bg-2: #263454;
  --sp-bg-sky: #263d5d;
  --sp-bg-grass: #2a413f;
  --sp-surface: #293651;
  --sp-ink: #fffaf2;
  --sp-ink-2: #d2c5b4;
  --sp-ink-3: #a79b8c;
  --sp-shadow: 0 14px 34px rgba(0, 0, 0, 0.23);
  --sp-shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--sp-bg);
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--sp-ink);
  background: var(--sp-bg);
  font-family: var(--sp-font-cn);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[lang="en"] body {
  font-family: var(--sp-font-en);
}

img,
svg {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--sp-focus), 0 0 18px 4px rgba(255, 201, 60, 0.55);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  border-radius: 5px;
}

.page-grain {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.075;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .page-grain {
  opacity: 0.12;
  mix-blend-mode: screen;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 14px;
  transform: translateY(-150%);
  padding: 8px 12px;
  color: #2e241b;
  background: var(--sp-focus);
  border-radius: 5px;
  transition: transform var(--sp-dur) var(--sp-ease);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 10%, transparent);
  background: color-mix(in srgb, var(--sp-bg) 90%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100% - 2 * var(--gutter), 1340px);
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--sp-ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--sp-ok);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

.brand-leaves {
  position: absolute;
  right: -4px;
  bottom: 5px;
  display: flex;
  gap: 2px;
}

.brand-leaf {
  display: block;
  width: 4px;
  height: 7px;
  border-radius: 6px 1px 6px 1px;
  background: var(--sp-ok);
  transform: rotate(-28deg);
  transform-origin: bottom center;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--sp-font-serif);
  font-size: 17px;
  font-weight: 600;
}

.brand-name span {
  margin-top: 2px;
  color: var(--sp-ok);
  font-family: var(--sp-font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: clamp(10px, 1.5vw, 24px);
}

.desktop-nav a,
.language-switch,
.mobile-menu a {
  color: var(--sp-ink-2);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--sp-dur) var(--sp-ease);
}

.desktop-nav a:hover,
.language-switch:hover,
.mobile-menu a:hover {
  color: var(--sp-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.header-github,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 20%, transparent);
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--sp-dur) var(--sp-ease), background var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
}

.header-github {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--sp-ink);
  font-size: 12px;
}

.header-github:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--sp-ink);
}

.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button,
.menu-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  border-color: color-mix(in srgb, var(--sp-ink) 18%, transparent);
}

.theme-glyph {
  font-size: 21px;
  line-height: 1;
}

.theme-control {
  position: relative;
}

.theme-options {
  position: absolute;
  top: 44px;
  right: 0;
  display: grid;
  gap: 2px;
  min-width: 106px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 16%, transparent);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow);
}

.theme-options button {
  padding: 6px 8px;
  border: 0;
  color: var(--sp-ink-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.theme-options button:hover {
  color: var(--sp-ink);
  background: var(--sp-bg-2);
}

.menu-button {
  display: none;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2px 0;
  border-radius: 2px;
  background: var(--sp-ink);
}

.mobile-menu {
  display: none;
}

.section-band {
  position: relative;
  padding: var(--section-space) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 8%, transparent);
}

.paper-band {
  background: var(--sp-bg-2);
}

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

.narrow-content {
  max-width: 880px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow,
.subsection-label,
.small-label,
.footer-label {
  margin: 0 0 12px;
  color: var(--sp-ok);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

html[lang="zh"] .eyebrow,
html[lang="zh"] .subsection-label,
html[lang="zh"] .small-label,
html[lang="zh"] .footer-label {
  letter-spacing: 0.12em;
}

.section-title,
h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

.section-title {
  max-width: 720px;
  margin: 0;
  font-family: var(--sp-font-serif);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.balanced-title {
  text-wrap: balance;
}

.balanced-title .nobr {
  display: inline-block;
  white-space: nowrap;
}

html[lang="en"] .section-title,
html[lang="en"] h1 {
  font-family: var(--sp-font-display);
  font-weight: 600;
}

.section-lede {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--sp-ink-2);
  font-size: 16px;
}

.hero-section {
  min-height: min(820px, calc(100vh - 72px));
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: clamp(36px, 5vw, 70px);
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--sp-warn) 17%, transparent) 0 8%, transparent 29%),
    var(--sp-bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(30px, 6vw, 94px);
  width: min(100% - 2 * var(--gutter), 1340px);
  margin: 0 auto;
}

.hero-inner > *,
.hero-copy,
.hero-art-wrap {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--sp-font-serif);
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-lede {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--sp-ink-2);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button-primary {
  border-color: var(--sp-ink);
  color: #fffaf2;
  background: var(--sp-ink);
}

.button-primary:hover {
  color: #fffaf2;
  background: #544637;
}

:root[data-theme="dark"] .button-primary {
  color: #1f2a44;
  background: var(--sp-focus);
  border-color: var(--sp-focus);
}

:root[data-theme="dark"] .button-primary:hover {
  color: #1f2a44;
  background: #ffd76b;
}

.button-quiet {
  color: var(--sp-ink);
  background: transparent;
}

.hero-meta {
  margin: 20px 0 0;
  color: var(--sp-ink-3);
  font-size: 12px;
}

.hero-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.hero-stat-line span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero-stat-line strong {
  color: var(--sp-ink);
  font-family: var(--sp-font-display);
  font-size: 24px;
  font-weight: 600;
}

.hero-art-wrap {
  position: relative;
}

.hero-art-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--sp-ink-2);
  font-size: 12px;
  text-align: right;
}

.hero-art-note .dot,
.source-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-accent);
}

.hero-scene-frame {
  position: relative;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 15%, transparent);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow);
  transform: rotate(0.7deg);
}

:root[data-theme="dark"] .hero-scene-frame {
  border-color: rgba(255, 250, 242, 0.18);
  background: #263454;
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-tv-screen {
  fill: #1f2a44;
}

.hero-wall {
  transition: fill var(--sp-dur-slow) var(--sp-ease);
}

.hero-floor {
  transition: fill var(--sp-dur-slow) var(--sp-ease);
}

.hero-stars {
  display: none;
}

:root[data-theme="dark"] .hero-wall {
  fill: #263454;
}

:root[data-theme="dark"] .hero-floor {
  fill: #202b43;
}

:root[data-theme="dark"] .hero-cabinet path:first-child {
  fill: #594838;
}

:root[data-theme="dark"] .hero-cabinet path:nth-child(2) {
  fill: #76583d;
}

:root[data-theme="dark"] .hero-stars {
  display: block;
}

:root[data-theme="dark"] .hero-rug {
  fill: #304b49;
}

:root[data-theme="dark"] .hero-lamp path:nth-child(2) {
  fill: #f4c36a;
}

:root[data-theme="dark"] .hero-lamp path:nth-child(3) {
  fill: #ffdb83;
}

.screen-reflection,
.screen-off-text {
  opacity: 1;
}

.screen-off-text {
  fill: #d2c5b4;
  font-family: var(--sp-font-cn);
  font-size: 11px;
  opacity: 1;
}

.hero-glow {
  opacity: 0.25;
}

.hero-sprout {
  opacity: 1;
  transform-box: fill-box;
  transform-origin: bottom center;
}

.hero-scene.is-playing .hero-tv-screen {
  animation: tv-story 5600ms var(--sp-ease) forwards;
}

.hero-scene.is-playing .hero-glow {
  animation: glow-story 5600ms var(--sp-ease) forwards;
}

.hero-scene.is-playing .hero-sprout {
  animation: sprout-story 5600ms var(--sp-ease) forwards;
}

.hero-scene.is-playing .screen-reflection {
  animation: reflection-story 5600ms var(--sp-ease) forwards;
}

.hero-scene.is-playing .screen-off-text {
  animation: off-text-story 5600ms var(--sp-ease) forwards;
}

.hero-scene.is-playing .hero-lamp path:last-child,
.hero-scene.is-playing .hero-lamp path:nth-child(2) {
  animation: lamp-story 5600ms var(--sp-ease) forwards;
}

@keyframes tv-story {
  0%, 9% { fill: #1f2a44; }
  27%, 68% { fill: #ffd878; }
  100% { fill: #1f2a44; }
}

@keyframes glow-story {
  0%, 10% { opacity: 0; }
  26%, 64% { opacity: 0.68; }
  100% { opacity: 0.25; }
}

@keyframes sprout-story {
  0%, 20% { opacity: 0; transform: translateY(25px) scale(0.72); }
  48% { opacity: 0.85; transform: translateY(1px) scale(0.94); }
  72%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reflection-story {
  0%, 75% { opacity: 0; }
  86%, 100% { opacity: 0.22; }
}

@keyframes off-text-story {
  0%, 76% { opacity: 0; }
  88%, 100% { opacity: 0.9; }
}

@keyframes lamp-story {
  0%, 55% { opacity: 0.45; }
  74%, 100% { opacity: 1; }
}

.art-replay {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  color: var(--sp-ink-2);
  background: color-mix(in srgb, var(--sp-surface) 82%, transparent);
  font-size: 12px;
  cursor: pointer;
}

.art-replay .icon {
  width: 14px;
  height: 14px;
}

.ratio-block {
  width: min(100% - 2 * var(--gutter), 1340px);
  margin: 45px auto 0;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.ratio-labels span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratio-labels b {
  color: var(--sp-ink);
}

.ratio-labels i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.ratio-screen {
  background: var(--sp-focus);
}

.ratio-outside {
  background: var(--sp-ok);
}

.ratio-track {
  display: flex;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 13%, transparent);
  background: var(--sp-bg-2);
}

.ratio-fill-screen {
  width: var(--ratio);
  background: repeating-linear-gradient(135deg, var(--sp-focus) 0 8px, #f2b134 8px 16px);
}

.ratio-fill-outside {
  flex: 1;
  background: repeating-linear-gradient(135deg, var(--sp-ok) 0 8px, #8dbd59 8px 16px);
}

.micro-note,
.source-note {
  color: var(--sp-ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.ratio-block .micro-note {
  margin: 9px 0 0;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.seed-packet {
  min-width: 0;
}

.seed-button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 214px;
  padding: 23px 18px 17px;
  overflow: hidden;
  border: 1px solid #b88d61;
  border-radius: 3px 3px 7px 7px;
  color: #5f452f;
  background:
    linear-gradient(145deg, transparent 0 20%, rgba(255, 255, 255, 0.22) 20.3% 21%, transparent 21.3% 100%),
    linear-gradient(#d5ae7d, #be8f61);
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 4px 0 rgba(96, 62, 34, 0.12);
  transform: rotate(calc((var(--seed-index, 1) - 3) * 0.35deg));
  transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease);
}

.seed-button:nth-child(2) { --seed-index: 2; }
.seed-button:nth-child(3) { --seed-index: 3; }
.seed-button:nth-child(4) { --seed-index: 4; }
.seed-button:nth-child(5) { --seed-index: 5; }

.seed-button:hover,
.seed-button[aria-expanded="true"] {
  z-index: 1;
  box-shadow: 4px 8px 0 rgba(96, 62, 34, 0.16);
  transform: translateY(-5px) rotate(0deg);
}

.seed-fold {
  position: absolute;
  top: -1px;
  left: 20%;
  width: 60%;
  height: 32px;
  border-right: 1px solid #a6784b;
  border-bottom: 1px solid #a6784b;
  border-left: 1px solid #a6784b;
  background: #e4c18e;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
}

.seed-number {
  position: absolute;
  top: 46px;
  right: 17px;
  color: rgba(95, 69, 47, 0.48);
  font-family: var(--sp-font-display);
  font-size: 28px;
}

.seed-art {
  position: absolute;
  top: 54px;
  left: 14px;
  width: 62px;
  height: 53px;
  color: #67472f;
  opacity: 0.9;
}

.seed-label {
  font-family: var(--sp-font-serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.2;
}

.seed-plus {
  position: absolute;
  right: 15px;
  bottom: 13px;
  font-size: 20px;
  line-height: 1;
}

.seed-panel {
  margin-top: 8px;
  padding: 14px 15px 15px;
  border-left: 2px solid var(--sp-accent);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-soft);
}

.seed-panel h3 {
  margin: 0 0 7px;
  font-family: var(--sp-font-serif);
  font-size: 20px;
  line-height: 1.2;
}

.seed-panel p {
  margin: 0;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.seed-panel a {
  display: inline-block;
  margin-top: 11px;
  color: var(--sp-ok);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.source-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 26px 0 0;
}

.source-note .source-dot {
  flex: 0 0 auto;
  margin-top: 7px;
}

.stage-browser {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.stage-scale {
  position: relative;
  min-height: 770px;
  padding: 24px 0;
}

.scale-rail {
  position: absolute;
  top: 45px;
  bottom: 45px;
  left: 40px;
  width: 12px;
  border: 1px solid #9e7750;
  background:
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(255, 255, 255, 0.13) 37px 40px),
    linear-gradient(90deg, #a67146, #d8a36f 45%, #925e38 100%);
  box-shadow: inset 4px 0 rgba(255, 255, 255, 0.14), 4px 0 rgba(91, 58, 34, 0.1);
}

.scale-rail::after {
  position: absolute;
  top: 0;
  left: 14px;
  width: 86px;
  height: 100%;
  opacity: 0.42;
  background: repeating-linear-gradient(0deg, transparent 0 39px, var(--sp-ink-2) 39px 40px);
  content: "";
}

.scale-tick {
  position: absolute;
  z-index: 1;
  top: calc(45px + var(--tick-index) * (100% - 90px) / 5);
  left: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  grid-template-rows: 23px 24px;
  width: 220px;
  padding: 0;
  border: 0;
  color: var(--sp-ink-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tick-line {
  grid-row: 1 / 3;
  align-self: center;
  width: 75px;
  height: 3px;
  margin-left: 18px;
  background: #9e7750;
  transform: rotate(-1deg);
}

.scale-tick.is-current .tick-line {
  height: 5px;
  background: var(--sp-focus);
  box-shadow: 0 0 0 2px rgba(255, 201, 60, 0.25);
}

.tick-label {
  align-self: end;
  color: var(--sp-ink);
  font-family: var(--sp-font-display);
  font-size: 20px;
  line-height: 1;
}

.tick-title {
  color: var(--sp-ink-2);
  font-family: var(--sp-font-serif);
  font-size: 13px;
  line-height: 1.2;
}

.stage-marker {
  position: absolute;
  z-index: 3;
  top: calc(28px + var(--stage-progress, 0) * (100% - 56px));
  left: 103px;
  width: 88px;
  height: 49px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  transform: translateY(-50%);
}

.stage-marker:active {
  cursor: grabbing;
}

.marker-paper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 43px;
  color: #67472f;
  background: #f3d48e;
  box-shadow: 2px 4px 0 rgba(80, 50, 20, 0.12);
  clip-path: polygon(3% 6%, 97% 0, 100% 88%, 76% 82%, 54% 100%, 33% 83%, 0 93%);
  transform: rotate(-3deg);
}

.marker-paper .icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}

.stage-panels {
  min-width: 0;
}

.stage-panel {
  animation: panel-in var(--sp-dur-slow) var(--sp-ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-panel[hidden],
.dev-panel[hidden],
.theme-options[hidden],
.mobile-menu[hidden],
.demo-loading[hidden],
.time-note[hidden] {
  display: none;
}

.stage-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 13%, transparent);
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.stage-pill,
.source-chip {
  display: inline-block;
  padding: 3px 7px;
  color: #fffaf2;
  background: var(--sp-ok);
  font-family: var(--sp-font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stage-panel h3 {
  margin: 10px 0 0;
  font-family: var(--sp-font-serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.05;
}

html[lang="en"] .stage-panel h3 {
  font-family: var(--sp-font-display);
}

.stage-subtitle {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--sp-ink-2);
}

.stage-count {
  flex: 0 0 auto;
  padding-top: 4px;
  color: var(--sp-ink-2);
  text-align: right;
}

.stage-count strong {
  display: block;
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 38px;
  line-height: 1;
}

.stage-count span {
  font-size: 12px;
}

.stage-grid,
.stage-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 10%, transparent);
}

.stage-column {
  min-width: 0;
}

.screen-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.screen-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px;
  color: var(--sp-ink-3);
  font-size: 11px;
  text-align: center;
}

.screen-state.is-active {
  color: var(--sp-ink);
  background: color-mix(in srgb, var(--sp-focus) 21%, transparent);
}

.mini-tv {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 7px;
  font-family: var(--sp-font-display);
  font-size: 18px;
  line-height: 1;
}

.screen-policy {
  margin: 17px 0 0;
  color: var(--sp-ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.limit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.limit-row span {
  padding: 7px 9px;
  border-left: 3px solid var(--sp-accent-2);
  color: var(--sp-ink-2);
  background: color-mix(in srgb, var(--sp-accent-2) 10%, transparent);
  font-size: 12px;
}

.limit-row b {
  color: var(--sp-ink);
}

.audience-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 17px;
  color: var(--sp-ink-3);
  font-size: 12px;
}

.day-shape {
  padding-left: 20px;
  border-left: 1px solid color-mix(in srgb, var(--sp-ink) 12%, transparent);
}

.rhythm-wrap {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.rhythm-figure {
  width: min(100%, 220px);
  margin: 0;
}

.rhythm-ring {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rhythm-ring circle {
  fill: none;
}

.ring-track {
  stroke: color-mix(in srgb, var(--sp-ink) 7%, transparent);
  stroke-width: 18;
}

.ring-seg {
  stroke-width: 16;
}

/* 生活段用低饱和色，屏幕段用聚焦黄并加粗，让它成为环上唯一跳出来的东西 */
.ring-c0 { --ring-hue: #6c9a3b; }
.ring-c1 { --ring-hue: #5da9e9; }
.ring-c2 { --ring-hue: #f08a5d; }
.ring-c3 { --ring-hue: #9b7fd1; }
.ring-c4 { --ring-hue: #4fb3a5; }
.ring-c5 { --ring-hue: #c98a5a; }
.ring-c6 { --ring-hue: #d77fa1; }
.ring-c7 { --ring-hue: #8aa1b1; }

.ring-seg[class*="ring-c"] {
  stroke: color-mix(in srgb, var(--ring-hue) 34%, var(--sp-bg));
}

.ring-screen {
  stroke: var(--sp-focus);
  stroke-width: 30;
  filter: drop-shadow(0 0 4px rgba(255, 201, 60, 0.75));
}

.ring-leader {
  fill: none;
  stroke: var(--sp-focus);
  stroke-width: 2;
  stroke-linecap: round;
}

.ring-callout {
  fill: var(--sp-ink);
  font-size: 13px;
  font-weight: 800;
}

.ring-value {
  fill: var(--sp-ink);
  font-family: var(--sp-font-display);
  font-size: 30px;
  font-weight: 600;
}

.ring-unit {
  fill: var(--sp-ink-2);
  font-size: 11px;
}

.rhythm-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sp-ink-2);
  font-size: 11px;
}

.rhythm-legend li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.rhythm-legend i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ring-hue) 34%, var(--sp-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ring-hue) 55%, transparent);
}

.day-shape .micro-note {
  margin: 14px 0 0;
}

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

.focus-list li {
  display: flex;
  gap: 8px;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.check-mark {
  flex: 0 0 auto;
  color: var(--sp-ok);
  font-family: var(--sp-font-display);
  font-size: 20px;
  line-height: 1.1;
}

.theme-index {
  display: grid;
  gap: 4px;
}

.theme-item {
  border-bottom: 1px dashed color-mix(in srgb, var(--sp-ink) 20%, transparent);
}

.theme-item summary {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.theme-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.theme-number {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 13px;
}

.summary-caret {
  color: var(--sp-ink-3);
  font-family: var(--sp-font-display);
  font-size: 20px;
  text-align: right;
}

.theme-item[open] .summary-caret {
  transform: rotate(45deg);
}

.theme-body {
  padding: 0 0 12px 39px;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.theme-body p {
  margin: 0;
}

.theme-body ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 15px;
}

.postcard {
  position: relative;
  margin-top: 30px;
  padding: 23px 25px 19px;
  border: 1px solid #c9ae83;
  background:
    linear-gradient(105deg, transparent 0 10%, rgba(255, 255, 255, 0.32) 10.5% 11%, transparent 11.5% 100%),
    #f8e8c7;
  color: #5f452f;
  box-shadow: 3px 5px 0 rgba(114, 80, 46, 0.1);
  transform: rotate(-0.5deg);
}

:root[data-theme="dark"] .postcard {
  color: #493b2e;
}

.postcard-pin {
  position: absolute;
  top: -8px;
  left: 48%;
  width: 48px;
  height: 14px;
  background: rgba(240, 138, 93, 0.68);
  transform: rotate(-4deg);
}

.postcard-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(95, 69, 47, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.postcard-stamp {
  color: rgba(95, 69, 47, 0.62);
  font-family: var(--sp-font-display);
}

.postcard-body {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.85fr;
  gap: 20px;
  padding: 20px 0 5px;
}

.postcard h4 {
  margin: 0;
  font-family: var(--sp-font-serif);
  font-size: 28px;
  line-height: 1.15;
}

.postcard p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.postcard .english-line {
  margin-top: 4px;
  color: rgba(95, 69, 47, 0.66);
  font-family: var(--sp-font-display);
  font-size: 14px;
}

.postcard-copy {
  padding-left: 18px;
  border-left: 1px solid rgba(95, 69, 47, 0.18);
}

.postcard .small-label {
  color: #a45a3e;
}

.postcard-phrases p {
  margin-top: 5px;
}

.postcard .text-link {
  color: #6b5c39;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 13px;
  color: var(--sp-ok);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.lesson-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: center;
  margin: -22px 0 27px;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.source-chip {
  color: var(--sp-ink);
  background: color-mix(in srgb, var(--sp-accent-2) 24%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.lesson-fold {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--sp-ink) 15%, transparent);
}

.fold-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 29px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--sp-ink) 20%, transparent);
}

.fold-index {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 25px;
  line-height: 1;
}

.fold-content {
  min-width: 0;
}

.print-step .fold-content {
  overflow: hidden;
}

.under-note {
  margin-left: 6px;
  color: var(--sp-ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.large-copy {
  max-width: 780px;
  margin: 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.55;
}

html[lang="en"] .large-copy {
  font-family: var(--sp-font-display);
}

.tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.tip-row li {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}

.tiny-leaf {
  color: var(--sp-ok);
  font-size: 19px;
}

.phrase-list {
  display: grid;
  gap: 7px;
  max-width: 760px;
}

.phrase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 12%, transparent);
  background: var(--sp-surface);
}

.phrase-row strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.phrase-row div span {
  display: block;
  margin-top: 2px;
  color: var(--sp-ink-2);
  font-family: var(--sp-font-en);
  font-size: 13px;
}

.speak-button,
.print-one,
.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 17%, transparent);
  color: var(--sp-ink-2);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.speak-button:hover,
.print-one:hover,
.copy-button:hover {
  color: var(--sp-ink);
  border-color: var(--sp-ink);
}

.speak-button .icon,
.print-one .icon,
.copy-button .icon {
  width: 14px;
  height: 14px;
}

.offline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  gap: 25px;
}

.offline-grid h3,
.levels-row h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.plain-list,
.numbered-list {
  margin: 0 0 20px;
  padding-left: 19px;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.numbered-list li,
.plain-list li {
  margin: 5px 0;
  padding-left: 4px;
}

.safety-note {
  display: flex;
  gap: 10px;
  align-self: start;
  padding: 15px;
  border-left: 4px solid var(--sp-warn);
  background: color-mix(in srgb, var(--sp-warn) 13%, transparent);
}

.safety-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #9d6c0f;
  font-family: var(--sp-font-display);
  font-weight: 700;
}

.safety-note h3 {
  color: #9d6c0f;
}

.safety-note p {
  margin: 0;
  color: var(--sp-ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.levels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 2px;
}

.levels-row > div {
  padding: 11px 13px;
  border-top: 2px solid var(--sp-accent-2);
  background: color-mix(in srgb, var(--sp-accent-2) 8%, transparent);
}

.levels-row > div:last-child {
  border-top-color: var(--sp-accent);
  background: color-mix(in srgb, var(--sp-accent) 8%, transparent);
}

.levels-row span {
  color: var(--sp-ink);
  font-size: 12px;
  font-weight: 800;
}

.levels-row p {
  margin: 4px 0 0;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.question-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 17px 0 0;
  color: var(--sp-accent);
  font-family: var(--sp-font-serif);
  font-size: 18px;
}

.question-note span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #fffaf2;
  background: var(--sp-accent);
  border-radius: 50%;
  font-family: var(--sp-font-en);
  font-size: 14px;
}

.print-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  contain: paint;
}

.print-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid #c9ae83;
  background: #fffaf2;
}

.print-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.print-card strong,
.print-card span {
  display: block;
  overflow-wrap: anywhere;
}

.print-card strong {
  margin-top: 5px;
  color: #3b3226;
  font-size: 13px;
}

.print-card span {
  color: #7a6a55;
  font-family: var(--sp-font-en);
  font-size: 11px;
}

.print-one {
  align-self: flex-start;
  margin-top: 9px;
  color: #6b5c39;
  border-color: #c9ae83;
}

.why-box {
  display: flex;
  gap: 10px;
  max-width: 740px;
  padding: 18px 20px;
  border-left: 5px solid var(--sp-ok);
  background: color-mix(in srgb, var(--sp-ok) 10%, transparent);
}

.quote-mark {
  color: var(--sp-ok);
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 0.8;
}

.why-box p {
  margin: 0;
  color: var(--sp-ink-2);
}

.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.ref-chip {
  display: inline-flex;
  align-items: center;
  min-width: 31px;
  min-height: 27px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--sp-ok) 42%, transparent);
  color: var(--sp-ok);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-decoration: none;
}

.lesson-source {
  margin-top: 19px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.activity-card {
  min-width: 0;
  min-height: 211px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-soft);
  transition: transform var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
}

.activity-card:hover,
.activity-card:focus-within {
  border-color: var(--sp-accent);
  transform: translateY(-4px);
}

.activity-art {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 10%, transparent);
  background: var(--sp-bg-sky);
}

.activity-svg {
  display: block;
  width: 100%;
  height: 74px;
}

.activity-card:hover .activity-svg,
.activity-card:focus-within .activity-svg {
  animation: activity-art-in 650ms var(--sp-ease) both;
}

.activity-bubbles:hover .activity-svg circle,
.activity-bubbles:focus-within .activity-svg circle {
  animation: bubble-rise 650ms var(--sp-ease) both;
}

.activity-song:hover .activity-svg path:last-child,
.activity-song:focus-within .activity-svg path:last-child {
  animation: note-float 650ms var(--sp-ease) both;
}

.activity-calm:hover .activity-svg circle:last-child,
.activity-calm:focus-within .activity-svg circle:last-child {
  animation: calm-breathe 650ms var(--sp-ease) both;
  transform-origin: 40px 35px;
}

@keyframes activity-art-in {
  45% { transform: translateY(-3px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes bubble-rise {
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes note-float {
  50% { transform: translate(3px, -5px); }
  100% { transform: translate(0, 0); }
}

@keyframes calm-breathe {
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.activity-art span,
.activity-art i,
.activity-art b {
  position: absolute;
  display: block;
  content: "";
}

.activity-art span {
  top: 23px;
  left: 26px;
  width: 27px;
  height: 27px;
  border: 3px solid var(--sp-ok);
  border-radius: 50%;
}

.activity-art i {
  top: 20px;
  left: 75px;
  width: 41px;
  height: 31px;
  border-bottom: 4px solid var(--sp-accent);
  transform: rotate(-14deg);
}

.activity-art b {
  top: 29px;
  right: 25px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--sp-warn);
  transform: rotate(45deg);
}

.activity-card:hover .activity-art span,
.activity-card:focus-within .activity-art span {
  animation: micro-pop 650ms var(--sp-ease) both;
}

.activity-card:hover .activity-art i,
.activity-card:focus-within .activity-art i {
  animation: micro-sway 650ms var(--sp-ease) both;
}

.activity-card:hover .activity-art b,
.activity-card:focus-within .activity-art b {
  animation: micro-bloom 650ms var(--sp-ease) both;
}

@keyframes micro-pop {
  45% { transform: translateY(-8px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes micro-sway {
  35% { transform: rotate(15deg) translateY(-4px); }
  100% { transform: rotate(-14deg); }
}

@keyframes micro-bloom {
  50% { transform: rotate(135deg) scale(1.15); }
  100% { transform: rotate(45deg); }
}

.activity-contrast .activity-art { background: #2d3545; }
.activity-contrast .activity-art span { border-color: #fffaf2; box-shadow: inset 0 0 0 7px #2d3545, inset 0 0 0 10px #f08a5d; }
.activity-bubbles .activity-art { background: #dff1fb; }
.activity-bubbles .activity-art span { border-color: #5da9e9; box-shadow: 24px -6px 0 -7px #5da9e9, 52px 5px 0 -8px #98c968; }
.activity-song .activity-art { background: #f8e8c7; }
.activity-story .activity-art { background: #e6f4d7; }
.activity-calm .activity-art { background: #263454; }
.activity-calm .activity-art span { border-color: #ffc93c; }
.activity-video .activity-art { background: #2d3545; }
.activity-video .activity-art span { border-radius: 4px; border-color: #dff1fb; }
.activity-web .activity-art { background: #f3ead9; }

.activity-card-body {
  padding: 13px 14px 14px;
}

.activity-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.activity-title-row h3 {
  margin: 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  font-size: 19px;
  line-height: 1.2;
}

html[lang="en"] .activity-title-row h3 {
  font-family: var(--sp-font-display);
}

.activity-index {
  color: var(--sp-ink-3);
  font-family: var(--sp-font-display);
  font-size: 14px;
}

.activity-card-body p {
  min-height: 42px;
  margin: 8px 0 12px;
  color: var(--sp-ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--sp-ink-3);
  font-size: 10px;
}

.activity-meta code {
  color: var(--sp-ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.plugin-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
  padding: 17px 19px;
  border-top: 2px solid var(--sp-accent);
  background: color-mix(in srgb, var(--sp-accent) 7%, transparent);
}

.plugin-callout > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
}

.plugin-callout .callout-mark {
  grid-row: 1 / 3;
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 33px;
  line-height: 0.8;
}

.plugin-callout strong {
  font-size: 14px;
}

.plugin-callout p {
  grid-column: 2;
  margin: 3px 0 0;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.plugin-callout .text-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}

.home-illustration {
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-soft);
}

.home-map {
  display: block;
  width: 100%;
  height: auto;
}

.map-label {
  fill: var(--sp-ink);
  font-family: var(--sp-font-cn);
  font-size: 13px;
  font-weight: 700;
}

.map-small {
  fill: var(--sp-ink-2);
  font-family: var(--sp-font-en);
  font-size: 10px;
}

.network-line {
  fill: none;
  stroke: var(--sp-accent-2);
  stroke-width: 2;
  stroke-dasharray: 3 8;
  animation: network-flow 3200ms linear infinite;
}

.network-line-delay { animation-delay: -1000ms; }
.network-line-delay-2 { animation-delay: -2100ms; }

.network-node {
  animation: node-pulse 3200ms var(--sp-ease) infinite;
}

.network-node-delay { animation-delay: -1000ms; }
.network-node-delay-2 { animation-delay: -2100ms; }

@keyframes network-flow {
  to { stroke-dashoffset: -44; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); transform-origin: center; }
  35% { opacity: 1; transform: scale(1.1); transform-origin: center; }
}

.home-points {
  display: grid;
  gap: 13px;
}

.home-point {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px dashed color-mix(in srgb, var(--sp-ink) 18%, transparent);
}

.home-point-number {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 20px;
}

.home-point h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.home-point p {
  margin: 4px 0 0;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.home-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
}

.home-doc-links .text-link {
  margin-top: 0;
}

.try-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 201, 60, 0.11), transparent 29%),
    var(--sp-bg);
}

.try-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
}

.try-tv-wrap {
  position: relative;
}

.try-tv {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 33px 67px 36px 42px;
  border: 8px solid #67472f;
  border-radius: 23px 23px 29px 29px;
  background: linear-gradient(135deg, #b47a4c, #8a5f3b);
  box-shadow: 8px 11px 0 rgba(103, 71, 47, 0.18);
}

.try-tv-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 6px solid #3b3226;
  border-radius: 18px;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 39% 41%, transparent 42% 100%),
    #1f2a44;
}

.try-tv-screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 47%, rgba(255, 255, 255, 0.09) 49%, transparent 52%);
  content: "";
}

.off-screen-label {
  position: absolute;
  right: 15px;
  bottom: 12px;
  z-index: 1;
  color: rgba(255, 250, 242, 0.45);
  font-family: var(--sp-font-en);
  font-size: 11px;
}

.demo-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--sp-focus);
  text-align: center;
}

.demo-loading .icon {
  justify-self: center;
  width: 36px;
  height: 36px;
}

.try-tv.is-on .off-screen-label {
  display: none;
}

.try-tv iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fdf6ec;
}

.tv-speaker {
  position: absolute;
  right: 19px;
  bottom: 55px;
  display: grid;
  gap: 5px;
}

.tv-speaker i {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 3px;
  background: rgba(59, 50, 38, 0.58);
}

.power-button {
  position: absolute;
  right: 15px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 4px solid #3b3226;
  border-radius: 50%;
  color: #3b3226;
  background: #f2b134;
  box-shadow: 2px 3px 0 rgba(59, 50, 38, 0.25);
  cursor: pointer;
  transform: translateY(-50%);
}

.power-button:hover {
  background: var(--sp-focus);
  transform: translateY(-50%) scale(1.08);
}

.power-button span {
  font-size: 19px;
  line-height: 1;
}

.try-tv-stand {
  width: 40%;
  height: 15px;
  margin: 17px auto 0;
  border-radius: 50%;
  background: #67472f;
  box-shadow: 0 5px 0 rgba(103, 71, 47, 0.16);
}

.time-note {
  position: absolute;
  top: -28px;
  right: 4%;
  max-width: 260px;
  padding: 15px 16px 13px;
  border: 1px solid #c9ae83;
  color: #5f452f;
  background: #f8e8c7;
  box-shadow: 3px 5px 0 rgba(114, 80, 46, 0.1);
  transform: rotate(2deg);
}

.time-note .tape-corner {
  position: absolute;
  top: -8px;
  left: 35%;
  width: 56px;
  height: 15px;
  background: rgba(240, 138, 93, 0.68);
  transform: rotate(-4deg);
}

.time-note p {
  margin: 0;
  font-family: var(--sp-font-serif);
  font-size: 16px;
  line-height: 1.45;
}

.time-note button {
  margin-top: 8px;
  padding: 5px 7px;
  border: 1px solid #a6784b;
  color: #67472f;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.try-aside {
  align-self: center;
}

.try-tips {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.try-tips li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--sp-ink-2);
  font-size: 14px;
}

.try-tips span {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 18px;
}

.demo-availability {
  margin: 25px 0 0;
  color: var(--sp-ink-3);
  font-size: 12px;
}

.evidence-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: baseline;
  margin: -21px 0 27px;
  color: var(--sp-ink-3);
  font-size: 12px;
}

.evidence-intro strong {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 29px;
  font-weight: 600;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.library-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 17px 16px 15px;
  border: 1px solid #bca27e;
  background: var(--sp-surface);
  box-shadow: 2px 3px 0 rgba(103, 71, 47, 0.08);
}

.library-card:nth-child(3n + 2) {
  transform: rotate(0.5deg);
}

.library-card:nth-child(3n + 3) {
  transform: rotate(-0.6deg);
}

.library-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--sp-ink-3);
}

.card-number {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 18px;
}

.card-year {
  font-family: var(--sp-font-display);
  font-size: 13px;
}

.library-card h3 {
  min-height: 72px;
  margin: 16px 0 12px;
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  font-size: 17px;
  line-height: 1.35;
}

html[lang="en"] .library-card h3 {
  font-family: var(--sp-font-display);
}

.library-card p {
  margin: 0;
  color: var(--sp-ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.library-card p span {
  color: var(--sp-accent);
  font-weight: 800;
}

.library-card .text-link {
  position: static;
  margin-top: auto;
}

.dev-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.repo-map {
  min-height: 300px;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-left: 3px solid var(--sp-ok);
  color: var(--sp-ink-2);
  background: var(--sp-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.75;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.tech-badges span {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--sp-accent-2) 50%, transparent);
  color: var(--sp-ink-2);
  background: color-mix(in srgb, var(--sp-accent-2) 9%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.dev-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 16%, transparent);
}

.dev-tabs button {
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--sp-ink-3);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.dev-tabs button[aria-selected="true"] {
  border-bottom-color: var(--sp-accent);
  color: var(--sp-ink);
}

.dev-panel {
  position: relative;
  overflow: hidden;
  padding: 21px 0 0;
}

.dev-panel pre {
  margin: 0;
  padding: 19px;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 13%, transparent);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
}

.copy-button {
  position: absolute;
  z-index: 1;
  top: 30px;
  right: 10px;
  border-color: color-mix(in srgb, var(--sp-ink) 18%, transparent);
  background: var(--sp-surface);
}

.release-license-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
  margin-top: 42px;
}

.release-card,
.license-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  background: var(--sp-surface);
}

.release-card {
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--sp-accent) 17%, transparent), transparent 54%),
    var(--sp-surface);
}

.release-card h3 {
  margin: 0;
  font-family: var(--sp-font-display);
  font-size: 42px;
  line-height: 1.05;
}

.release-card p,
.license-card p {
  margin: 10px 0 0;
  color: var(--sp-ink-2);
  font-size: 13px;
}

.release-links,
.license-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 20px;
}

.release-links .text-link,
.license-links .text-link {
  margin-top: 0;
}

.license-card .micro-note {
  margin-top: 19px;
}

.faq-list {
  border-top: 1px solid color-mix(in srgb, var(--sp-ink) 16%, transparent);
}

.faq-item {
  border-bottom: 1px dashed color-mix(in srgb, var(--sp-ink) 20%, transparent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}

html[lang="en"] .faq-item summary {
  font-family: var(--sp-font-display);
}

.faq-item summary b {
  color: var(--sp-accent);
  font-family: var(--sp-font-display);
  font-size: 25px;
  font-weight: 400;
  transition: transform var(--sp-dur) var(--sp-ease);
}

.faq-item[open] summary b {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 750px;
  margin: -3px 0 17px;
  color: var(--sp-ink-2);
  font-size: 14px;
}

.site-footer {
  padding: 55px 0 24px;
  background: var(--sp-bg-2);
}

.footer-inner,
.footer-bottom {
  width: min(100% - 2 * var(--gutter), var(--content-width));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 500px;
  margin: 15px 0 0;
  color: var(--sp-ink-2);
  font-size: 12px;
}

.footer-brand .footer-focus {
  color: var(--sp-ok);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-label {
  color: var(--sp-ink);
}

.footer-links a {
  color: var(--sp-ink-2);
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sp-ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  color: var(--sp-ink-3);
  font-size: 11px;
}

.not-found-section {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 170px);
  padding: 140px var(--gutter);
  text-align: center;
}

.not-found-section h1 {
  margin: 10px 0 0;
  font-family: var(--sp-font-serif);
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1;
}

.not-found-section p:not(.eyebrow) {
  max-width: 440px;
  color: var(--sp-ink-2);
}

.not-found-art {
  position: relative;
  width: 190px;
  height: 145px;
  margin-bottom: 30px;
}

.not-found-art .soil {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 170px;
  height: 45px;
  border-radius: 50%;
  background: #8a5f3b;
}

.tiny-sprout {
  position: absolute;
  bottom: 35px;
  left: 89px;
  width: 9px;
  height: 82px;
  border-radius: 50%;
  background: var(--sp-ok);
  transform: rotate(-5deg);
  transform-origin: bottom;
  animation: tiny-wiggle 2500ms var(--sp-ease) infinite;
}

.tiny-sprout::before,
.tiny-sprout::after {
  position: absolute;
  width: 47px;
  height: 27px;
  border: 4px solid var(--sp-ok);
  border-radius: 100% 0 100% 0;
  content: "";
}

.tiny-sprout::before {
  top: 5px;
  right: 2px;
  transform: rotate(-17deg);
}

.tiny-sprout::after {
  top: 25px;
  right: -39px;
  transform: rotate(23deg) scaleX(-1);
}

@keyframes tiny-wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

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

  .hero-scene.is-playing .hero-tv-screen,
  .hero-scene.is-playing .hero-glow,
  .hero-scene.is-playing .hero-sprout,
  .hero-scene.is-playing .screen-reflection,
  .hero-scene.is-playing .screen-off-text {
    animation: none !important;
  }

  .hero-tv-screen { fill: #1f2a44; }
  .hero-sprout { opacity: 1; }
  .screen-off-text { opacity: 1; }
  .activity-svg,
  .activity-svg circle,
  .activity-svg path {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 10px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

  .activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-github {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    width: min(100% - 2 * var(--gutter), 440px);
    margin: 0 auto;
    padding: 15px 0 22px;
  }

  .mobile-menu nav {
    display: grid;
    gap: 3px;
    padding-bottom: 13px;
  }

  .mobile-menu nav a {
    padding: 8px 0;
    font-size: 17px;
  }

  .mobile-menu-footer {
    display: flex;
    gap: 18px;
    padding-top: 13px;
    border-top: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent);
  }

  .hero-inner,
  .home-layout,
  .try-layout,
  .dev-layout {
    grid-template-columns: 1fr;
  }

  .dev-layout > *,
  .dev-tabs-wrap,
  .dev-panels,
  .dev-panel,
  .repo-map,
  .dev-panel pre {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art-wrap {
    max-width: 720px;
    margin: 0 auto;
  }

  .stage-browser {
    grid-template-columns: 1fr;
  }

  .stage-scale {
    min-height: 118px;
    padding: 0;
  }

  .scale-rail {
    top: 35px;
    right: 17px;
    bottom: auto;
    left: 17px;
    width: auto;
    height: 9px;
    background:
      repeating-linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.13) 10% 10.5%),
      linear-gradient(180deg, #d8a36f, #925e38);
  }

  .scale-rail::after {
    top: 13px;
    left: 0;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(90deg, transparent 0 9.8%, var(--sp-ink-2) 9.8% 10%);
  }

  .scale-tick {
    top: 0;
    left: calc(var(--tick-index) * (100% - 76px) / 5);
    grid-template-columns: 1fr;
    grid-template-rows: 24px 20px;
    width: 76px;
    text-align: center;
  }

  .tick-line {
    grid-row: auto;
    width: 3px;
    height: 28px;
    margin: 17px auto 0;
  }

  .scale-tick.is-current .tick-line {
    width: 5px;
    height: 32px;
  }

  .tick-label {
    grid-row: 1;
    font-size: 17px;
  }

  .tick-title {
    grid-row: 2;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stage-marker {
    top: 53px;
    left: calc(31px + var(--stage-progress, 0) * (100% - 62px));
    width: 57px;
    height: 40px;
    transform: translate(-50%, -50%);
  }

  .marker-paper {
    width: 57px;
    height: 34px;
  }

  .marker-paper .icon {
    width: 13px;
    height: 13px;
  }

  .stage-grid,
  .stage-lower-grid,
  .postcard-body {
    grid-template-columns: 1fr;
  }

  .day-shape {
    padding-left: 0;
    border-left: 0;
  }

  .postcard-copy {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(95, 69, 47, 0.18);
    padding-top: 15px;
  }

  .postcard-phrases {
    padding-top: 0;
  }

  .print-card-grid {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-band {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-name strong {
    font-size: 15px;
  }

  .hero-section {
    padding-top: 55px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .balanced-title .nobr {
    max-width: 100%;
  }

  html[lang="en"] .balanced-title .nobr {
    white-space: normal;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions .button,
  .try-actions .button {
    width: 100%;
  }

  .hero-stat-line {
    gap: 12px;
  }

  .hero-stat-line strong {
    font-size: 20px;
  }

  .hero-art-note {
    display: block;
    text-align: left;
  }

  .seed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seed-button {
    min-height: 172px;
    padding: 18px 13px 14px;
  }

  .seed-label {
    font-size: 19px;
  }

  .seed-number {
    top: 39px;
    right: 12px;
    font-size: 21px;
  }

  .seed-grid .seed-packet:last-child {
    grid-column: span 2;
  }

  .stage-panel-top {
    display: block;
  }

  .stage-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 14px;
    text-align: left;
  }

  .stage-count strong {
    font-size: 29px;
  }

  .stage-count span {
    font-size: 11px;
  }

  .screen-states {
    gap: 3px;
  }

  .screen-state {
    font-size: 10px;
  }

  .rhythm-wrap {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
  }

  .rhythm-figure {
    width: 160px;
  }

  .rhythm-legend {
    grid-template-columns: 1fr;
  }

  .postcard {
    padding: 19px 15px 15px;
  }

  .postcard h4 {
    font-size: 24px;
  }

  .fold-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .fold-index {
    font-size: 21px;
  }

  .large-copy {
    font-size: 21px;
  }

  .phrase-row {
    align-items: flex-start;
  }

  .speak-button span,
  .print-one span {
    display: none;
  }

  .offline-grid,
  .levels-row,
  .release-license-grid {
    grid-template-columns: 1fr;
  }

  .print-card-grid {
    grid-template-columns: repeat(5, 100px);
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .activity-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-card {
    min-height: 225px;
  }

  .activity-card-body {
    padding: 11px;
  }

  .activity-title-row h3 {
    font-size: 17px;
  }

  .plugin-callout {
    display: block;
  }

  .plugin-callout .text-link {
    margin-top: 10px;
  }

  .try-tv {
    padding: 26px 52px 29px 25px;
  }

  .power-button {
    right: 9px;
  }

  .tv-speaker {
    right: 12px;
  }

  .time-note {
    top: -42px;
    right: 0;
    max-width: 220px;
  }

  .dev-tabs button {
    padding: 8px 7px;
    font-size: 11px;
  }

  .copy-button {
    right: 6px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links > div:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span + span {
    display: block;
    margin-top: 7px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-grain,
  .site-header,
  .site-footer,
  main > :not(#lesson),
  .lesson-meta-row,
  .section-heading,
  .lesson-fold > :not(.print-step),
  .lesson-source,
  .print-one {
    display: none !important;
  }

  .lesson-band,
  .content-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .print-step {
    display: block !important;
    padding: 0;
    border: 0;
  }

  .fold-index,
  .subsection-label {
    display: none;
  }

  .fold-content {
    width: 100%;
  }

  .print-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15mm;
    padding: 12mm;
  }

  .print-card {
    min-height: 110mm;
    break-inside: avoid;
    padding: 8mm;
    border: 1px dashed #6f5b45;
  }

  body.print-one-active .print-card:not([data-print-selected]) {
    display: none !important;
  }

  .print-card img {
    width: 60mm;
    height: 60mm;
    margin: 0 auto;
  }

  .print-card strong {
    font-size: 15pt;
  }
}
