:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --warm: #f5efe4;
  --ink: #171411;
  --muted: #6f675e;
  --line: #d8d0c2;
  --fire: #ff5226;
  --fire-soft: #fff0ea;
  --earth: #7a633c;
  --air: #386276;
  --water: #3f6d82;
  --space: #5f587e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; width: 100%; }
a { color: inherit; }

.top-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.top-nav a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

main {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 58px) 0 clamp(42px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent, var(--fire));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
}

.practice {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.28;
}

.jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.top {
  max-width: 920px;
}

.lesson-notes {
  margin-top: 14px;
}

.lesson-notes summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.lesson-notes summary::-webkit-details-marker {
  display: none;
}

.lesson-notes summary::after {
  content: "+";
  margin-left: 10px;
  color: var(--accent, var(--fire));
}

.lesson-notes[open] summary::after {
  content: "-";
}

.lesson-notes .full-practice {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plate-image {
  margin-top: clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fff;
}

.site-hero {
  max-width: 920px;
  margin-bottom: 34px;
}

.site-hero h1 {
  font-size: clamp(48px, 8vw, 104px);
}

.element-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

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

.element-column > h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--accent, var(--fire));
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.element-list {
  display: grid;
  gap: 8px;
}

.exercise-card {
  display: block;
  position: relative;
  min-height: 0;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
}

.card-thumb {
  display: block;
  padding: 8px 8px 0;
}

.card-thumb img {
  aspect-ratio: 14 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.card-title {
  display: block;
  margin: 0;
  padding: 8px 8px 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.card-description {
  position: absolute;
  inset: 8px;
  display: block;
  padding: 12px;
  background: rgba(251, 250, 246, 0.96);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.exercise-card:hover .card-description,
.exercise-card:focus-visible .card-description {
  opacity: 1;
  transform: translateY(0);
}

.exercise-card:focus-visible {
  outline: 2px solid var(--accent, var(--fire));
  outline-offset: 2px;
}

.element-fire { --accent: var(--fire); }
.element-earth { --accent: var(--earth); }
.element-air { --accent: var(--air); }
.element-water { --accent: var(--water); }
.element-space { --accent: var(--space); }

@media (max-width: 860px) {
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .top,
  .element-index {
    grid-template-columns: 1fr;
  }
}
