:root { color-scheme: light; font-family: system-ui, sans-serif; color: #1d1c1a; background: #f6f5f2; --ink: #211e19; --muted: #59554d; --line: #e2ded6; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }
.top { background: #0e1013; color: #f9f8f5; border-bottom: 1px solid #493819; }
.top .quiet { color: #f9f8f5; }
.top .secondary { background: #ebbc66; color: #221a0f; border-color: #ebbc66; }
.top-inner, #account { display: flex; align-items: center; gap: 12px; }
.top-inner { min-height: 70px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; letter-spacing: .22em; font-weight: 750; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 50%; }
main { padding: 44px 0 70px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.045em; line-height: 1.08; }
h2 { font-size: 1.22rem; }
p { color: var(--muted); line-height: 1.6; }
.heading { margin-bottom: 26px; }
.heading p, .login-intro p { margin-top: 10px; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: 9px; background: #e9b958; color: #221a0e; font: inherit; font-weight: 650; padding: 10px 15px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.91); }
button:disabled { opacity: .6; cursor: wait; }
.secondary { background: #f5ecdc; color: #4a351a; border-color: #e3d3b5; }
.quiet { background: transparent; color: var(--ink); }
.back { margin: 0 0 14px -15px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); gap: 16px; }
.card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card { display: flex; flex-direction: column; }
.cover { display: grid; place-items: center; min-height: 115px; color: #805c24; background: #f3ead7; font-size: 2rem; }
.cover span { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid currentColor; border-radius: 14px; }
.tone-1 { background: #efede7; color: #534c40; }
.tone-2 { background: #f4e7d8; color: #624326; }
.tone-3 { background: #f2e7cd; color: #735821; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-body p { flex: 1; overflow-wrap: anywhere; }
.unavailable { font-size: .9rem; color: var(--muted); }
.panel { padding: clamp(16px, 4vw, 25px); max-width: 760px; margin-bottom: 18px; }
.panel > h2 { margin-bottom: 12px; }
.login { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; max-width: 820px; margin: 7vh auto 0; }
.login-intro { padding: 16px 0; }
.form { display: grid; gap: 16px; }
.form > h2 { margin-bottom: 0; }
.field { display: grid; gap: 7px; margin-bottom: 4px; font-weight: 650; }
input:not([type=checkbox]), textarea { width: 100%; background: #fdfcf9; border: 1px solid #cec5b7; border-radius: 8px; padding: 10px; color: inherit; font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 8px; }
.hint, .save-status { font-size: .9rem; }
.lesson-link { display: block; width: 100%; background: #f6f0e5; color: var(--ink); text-align: left; margin-top: 8px; }
.formatted { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 14px; }
.student { border-top: 1px solid var(--line); padding: 12px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.panel > .toolbar { margin: 12px 0 0; }
.alert { position: fixed; bottom: 16px; right: 16px; max-width: min(420px, calc(100% - 32px)); color: #fff; background: #7b2d35; padding: 13px 16px; border-radius: 10px; box-shadow: 0 4px 18px #0002; }
:focus-visible { outline: 3px solid #926210; outline-offset: 3px; }
@media (max-width: 630px) { .login { grid-template-columns: 1fr; gap: 12px; margin-top: 0; } .username { display: none; } main { padding-top: 26px; } }

.offers { margin-top: 32px; }
.offers > h2 { margin-bottom: 14px; }
.offers h3 { margin: 0; font-size: 1.1rem; }

.price { color: var(--ink); font-size: 1.3rem; font-weight: 750; margin-bottom: 12px; }
.card h2, h1 { overflow-wrap: anywhere; }

.course-hero { overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; min-height: 320px; border-radius: 24px; background: #0e1013; color: #fff; margin-bottom: 24px; }
.course-copy { align-self: center; padding: clamp(26px, 6vw, 64px); padding-right: clamp(22px, 4vw, 44px); }
.course-copy p { color: #eeece8; margin: 16px 0 0; }
.course-copy .course-category { color: #ebbd65; font-weight: 700; margin: 0 0 12px; }
.course-art {
  display: grid;
  place-items: center;
  min-height: 200px;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 20%, #9e6a25 20.2%, transparent 20.8%),
    linear-gradient(315deg, transparent 16%, #c98f38 16.2%, transparent 16.8%),
    repeating-radial-gradient(ellipse at 81% 100%, #111317 0 16px, #614019 17px 18px, #111317 19px 32px);
}
.course-art img {
  width: clamp(126px, 17vw, 210px);
  height: auto;
  border: 1px solid #68563a;
  border-radius: 50%;
  box-shadow: 0 18px 48px #0009;
}
.course-information { display: grid; grid-template-columns: 1.55fr 1fr; align-items: start; gap: 18px; }
.course-information .panel { width: 100%; }
.course-outline ol { margin: 0; padding: 0 0 0 24px; }
.course-outline li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.course-outline li:last-child { border-bottom: 0; }
.course-purchase button { width: 100%; }
.catalog-hero + .grid .card { border-top: 4px solid #b9812d; }
@media (max-width: 650px) {
  .course-hero, .course-information { grid-template-columns: 1fr; }
  .course-purchase { grid-row: 1; }
}
