:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #14273b;
  --muted: #475c70;
  --line: #d9e0e3;
  --blue: #145972;
  --deep: #0c3c51;
  --white: #ffffff;
  --pale: #e8f3f3;
  font: 400 17px/1.65 Heebo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-block-start: 18px; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--blue); text-underline-offset: .22em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #127e9a;
  outline-offset: 3px;
}
.skip { position: absolute; inset-block-start: -100px; background: white; z-index: 5; padding: 12px; }
.skip:focus { inset-block-start: 4px; }
.shell { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top nav { min-height: 67px; display: flex; align-items: center; gap: 22px; }
.top nav > form { margin-inline-start: auto; }
.brand { font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.hero {
  border-radius: 18px;
  margin: 30px 0 22px;
  padding: clamp(24px, 6vw, 64px);
  background: var(--deep);
  color: var(--white);
}
.hero h1 { font-size: clamp(2.15rem, 5vw, 4rem); line-height: 1.12; margin: 0 0 .32em; letter-spacing: -.055em; }
.hero p { max-width: 48ch; margin: 0 0 14px; }
.hero .category { color: #bde3e6; font-weight: 700; }
.hero a { color: inherit; }
.hero .button { background: var(--white); color: var(--deep); }
.hero .button:hover { background: var(--pale); }
.hero .quiet { background: transparent; color: white; border-color: #9fc2c8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.button, .quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button { background: var(--blue); color: white; }
.button:hover { background: var(--deep); }
.quiet { background: var(--pale); color: var(--deep); }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 4vw, 32px);
  margin-block: 15px;
}
h2, h3 { margin: 0 0 8px; line-height: 1.3; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
p { margin: 0 0 12px; }
p:last-child { margin-block-end: 0; }
li + li { margin-block-start: 8px; }
.entry { margin-top: 15px; display: grid; gap: 8px; max-width: 480px; }
.entry label { font-weight: 700; }
.entry input { min-height: 46px; border: 1px solid #7c909d; border-radius: 6px; padding: 7px 12px; width: 100%; }
.entry button { justify-self: start; }
.resend { margin-top: 15px; }
.resend summary { cursor: pointer; color: var(--blue); }
.syllabus { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; padding-inline-start: 26px; }
.syllabus li { padding: 14px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.syllabus li::marker { color: var(--blue); font-weight: 800; }
.syllabus p { margin-block-end: 3px; color: var(--muted); }
.completed { margin-inline-start: 10px; color: #166243; font-weight: 700; }
.lesson-layout { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 2.7fr); gap: 17px; align-items: start; }
.contents { position: sticky; top: 16px; }
.contents a { display: block; padding-block: 4px; }
.contents h2 { font-size: 1.15rem; }
.feedback { padding: 11px 14px; border-inline-start: 4px solid var(--blue); background: var(--pale); border-radius: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; padding: 10px 15px 14px; min-inline-size: 0; }
fieldset legend { padding-inline: 6px; color: var(--ink); font-weight: 700; }
fieldset label { display: block; padding: 7px 0; cursor: pointer; }
input[type="radio"] { accent-color: var(--blue); }
.next { justify-content: space-between; margin-inline: 5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 25px 0 35px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 24px); }
  .top nav { gap: 12px; flex-wrap: wrap; }
  .hero { margin-block-start: 15px; }
  .lesson-layout, .syllabus { display: block; }
  .contents { position: static; }
  .contents a { display: inline-block; margin-inline-end: 14px; }
}


.theory-topic + .theory-topic { border-block-start: 1px solid var(--line); margin-block-start: 20px; padding-block-start: 18px; }
.theory-topic h3, .lesson-video h3 { font-size: 1.12rem; }
.course-figure { margin: 18px 0 0; padding: clamp(12px, 3vw, 20px); border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.course-figure figcaption { margin-block-end: 12px; color: var(--deep); font-size: 1.08rem; font-weight: 800; }
.figure-note { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.course-table { overflow-x: auto; }
.course-table table { width: 100%; border-spacing: 0; font-size: .95rem; text-align: start; }
.course-table caption { text-align: start; color: var(--muted); font-weight: 700; padding-block: 6px; }
.course-table th, .course-table td { text-align: start; padding: 9px 8px; border-block-end: 1px solid var(--line); vertical-align: top; }
.course-table thead th { background: var(--pale); color: var(--deep); }
.course-table tbody th { font-weight: 700; }
.lesson-steps { padding-inline-start: 25px; margin: 0; }
.lesson-steps li { padding: 8px 12px; background: var(--pale); border-radius: 7px; }
.lesson-steps li::marker { font-weight: 800; color: var(--deep); }
.lesson-bars, .plot-key { list-style: none; padding: 0; margin: 0; }
.lesson-bars li + li { margin-block-start: 13px; }
.bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 15px; flex-wrap: wrap; }
.bar-label strong { color: var(--deep); }
.bar-track { height: 10px; background: #e3ebeb; margin-block-start: 5px; border-radius: 8px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--blue); border-radius: 8px; }
.lesson-plot { display: block; width: 100%; height: auto; max-width: 650px; overflow: visible; }
.lesson-plot text { fill: var(--muted); font-family: inherit; font-size: 14px; }
.plot-axis, .plot-guide, .plot-level, .plot-line { fill: none; vector-effect: non-scaling-stroke; }
.plot-axis { stroke: #688093; stroke-width: 1; }
.plot-guide { stroke: var(--line); stroke-width: 1; }
.plot-level { stroke: #697a83; stroke-dasharray: 5 4; stroke-width: 1; }
.plot-line { stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.plot-line-1 { stroke: #9a4909; stroke-dasharray: 7 4; }
.plot-key { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .93rem; }
.plot-key li { margin: 0; }
.plot-swatch { display: inline-block; inline-size: 23px; border-block-start: 3px solid var(--blue); vertical-align: middle; margin-inline-end: 3px; }
.plot-swatch-1 { border-color: #9a4909; border-block-start-style: dashed; }
.plot-swatch-level { border-color: #697a83; border-block-start: 2px dashed #697a83; }
.reading-details { margin-block-start: 14px; }
.reading-details summary { cursor: pointer; color: var(--deep); font-weight: 700; }
.reading-details[open] > p { margin: 8px 0 0; }
.lesson-video { margin-block-start: 15px; }
.lesson-video + .lesson-video { margin-block-start: 24px; }
.lesson-video iframe { display: block; border: 0; border-radius: 9px; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #edf2f2; margin-block: 10px; }
@media (max-width: 480px) {
  .course-table th, .course-table td { padding: 7px 5px; }
  .lesson-plot text { font-size: 17px; }
}
