:root {
  --paper: #fffaf0;
  --paper-deep: #f8f0d4;
  --ink: #10100f;
  --muted: #625f58;
  --yellow: #f8e43f;
  --red: #f2533d;
  --green: #18a66a;
  --pink: #f5c9c1;
  --rose: #f1ccd6;
  --mint: #cde4d5;
  --blue: #cbdde9;
  --apricot: #f5cb99;
  --lavender: #dfd2e6;
  --line: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shell: min(1180px, calc(100% - 40px));
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Archivo", "Noto Sans SC", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid #315cff;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--yellow);
  border-bottom: var(--line);
}

.header-inner,
.footer-inner {
  width: var(--shell);
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand-mark {
  width: 16px;
  height: 16px;
  background: var(--red);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand small {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
  background: var(--ink);
}

.menu-button {
  display: none;
  min-width: 64px;
  min-height: 44px;
  color: white;
  background: var(--ink);
  border: 0;
  font-weight: 800;
}

.section-anchor {
  scroll-margin-top: 76px;
}

.hero {
  background: var(--yellow);
  border-bottom: var(--line);
}

.hero-inner {
  width: var(--shell);
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 72px;
  padding: 72px 0 62px;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow.inverse {
  display: inline-block;
  padding: 5px 9px;
  color: white;
  background: var(--ink);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 900;
  line-height: 1.04;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 34px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  border: var(--line);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-dark {
  color: white;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}

.button-dark:hover {
  box-shadow: 6px 6px 0 var(--red);
}

.button-yellow {
  color: var(--ink);
  background: var(--yellow);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
}

.hero-board {
  position: relative;
  min-height: 445px;
}

.hero-photo {
  width: calc(100% - 34px);
  height: 390px;
  margin: 0 0 0 auto;
  overflow: hidden;
  background: var(--blue);
  border: var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.4deg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.learning-ticket {
  position: absolute;
  left: -18px;
  bottom: -6px;
  width: min(330px, 78%);
  padding: 24px;
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.ticket-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.learning-ticket p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.learning-ticket strong {
  display: block;
  font-size: 21px;
  line-height: 1.45;
}

.ticket-progress {
  margin-top: 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: #ddd7c5;
  border: 1px solid var(--ink);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 240ms ease;
}

.today-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line);
}

.today-strip > div {
  min-width: 0;
  padding: 22px max(24px, calc((100vw - 1180px) / 6));
  background: var(--paper);
  border-right: var(--line);
}

.today-strip > div:nth-child(2) {
  background: var(--pink);
}

.today-strip > div:last-child {
  background: var(--mint);
  border-right: 0;
}

.today-strip span,
.today-strip strong {
  display: block;
}

.today-strip span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.today-strip strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 96px 0;
}

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

.section-heading h2,
.closing-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.14;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.split-heading > p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.course-section {
  background: var(--paper);
}

.course-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: var(--line);
  box-shadow: 7px 7px 0 var(--ink);
}

.week-tabs {
  background: var(--ink);
}

.week-tab {
  width: 100%;
  min-height: 110px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: white;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4b4a46;
  cursor: pointer;
}

.week-tab:hover {
  background: #292925;
}

.week-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--yellow);
}

.week-tab b {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
}

.week-tab span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.week-tab small {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.7;
}

.lesson-panel {
  padding: 36px 40px 26px;
  background: white;
}

.lesson-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: var(--line);
}

.lesson-panel-head h3 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 900;
}

.lesson-panel-head p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.week-stat {
  align-self: start;
  padding: 12px;
  text-align: center;
  background: var(--mint);
  border: var(--line);
}

.week-stat span,
.week-stat small {
  display: block;
}

.week-stat span {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
}

.week-stat small {
  font-size: 10px;
}

.lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--ink);
}

.lesson-number {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
}

.lesson-main strong,
.lesson-main small {
  display: block;
}

.lesson-main strong {
  font-size: 15px;
}

.lesson-main small {
  color: var(--muted);
  font-size: 12px;
}

.complete-button {
  min-width: 82px;
  min-height: 40px;
  padding: 0 10px;
  background: white;
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.complete-button:hover,
.complete-button.done {
  background: var(--green);
  color: white;
}

.daily-section {
  background: var(--paper-deep);
  border-block: var(--line);
}

.filter-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-block: 10px;
  border-block: 1px solid var(--ink);
}

.segmented {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.filter-button {
  min-height: 40px;
  padding: 0 15px;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  background: var(--yellow);
  border-color: var(--ink);
}

.result-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.daily-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 24px;
}

.daily-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: white;
  border: var(--line);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.daily-card:first-child {
  min-height: 450px;
  grid-row: span 2;
  background: var(--pink);
  box-shadow: var(--shadow);
}

.daily-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.daily-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.daily-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.daily-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}

.daily-card:first-child h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.daily-card p {
  color: var(--muted);
  font-size: 13px;
}

.daily-card .read-link {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.scene-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  gap: 64px;
}

.scene-search span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.scene-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: var(--line);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
}

.scene-search input::placeholder {
  color: #7d786f;
}

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

.scene-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--scene-color, white);
  border: var(--line);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.scene-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.scene-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
}

.scene-card h3 {
  margin-bottom: 9px;
  font-size: 24px;
  font-weight: 900;
}

.scene-card > p {
  margin-bottom: 20px;
  color: #3f3d39;
  font-size: 13px;
}

.skill-preview {
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.skill-preview li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
}

.skill-preview li::before {
  position: absolute;
  left: 0;
  content: "↳";
}

.scene-action {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  background: white;
  border: var(--line);
}

.empty-state strong {
  font-size: 24px;
}

.empty-state p {
  color: var(--muted);
}

.closing-section {
  color: white;
  background: var(--ink);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-block: 82px;
}

.closing-inner .eyebrow {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: -14px;
  color: var(--ink);
  background: var(--yellow);
}

.closing-section h2 {
  max-width: 780px;
}

.site-footer {
  color: white;
  background: var(--ink);
  border-top: 1px solid #4b4a46;
}

.footer-inner {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 0;
}

.footer-inner strong {
  color: var(--yellow);
  font-size: 20px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: #c5c1b8;
  font-size: 13px;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.footer-inner a:hover {
  color: var(--yellow);
}

.footer-inner small {
  grid-column: 1 / -1;
  padding-top: 16px;
  color: #858178;
  border-top: 1px solid #3f3d39;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.detail-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  box-shadow: 9px 9px 0 var(--ink);
}

.detail-dialog::backdrop {
  background: rgb(16 16 15 / 72%);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 16px;
  left: calc(100% - 56px);
  width: 40px;
  height: 40px;
  color: white;
  background: var(--ink);
  border: 0;
  font-size: 26px;
  cursor: pointer;
}

#dialog-content {
  padding: 8px 42px 44px;
}

.dialog-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
}

#dialog-content h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
}

#dialog-content .dialog-lead {
  color: var(--muted);
  font-size: 16px;
}

.dialog-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: var(--line);
}

.dialog-section h3 {
  font-size: 18px;
}

.dialog-skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog-skill-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}

.dialog-skill-list strong,
.dialog-skill-list span {
  display: block;
}

.dialog-skill-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 38px;
  }

  .course-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .daily-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 30px, 620px);
  }

  html {
    scroll-padding-top: 66px;
  }

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

  .brand strong {
    font-size: 18px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 15px 16px;
    background: var(--yellow);
    border-bottom: var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 58px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-board {
    min-height: 365px;
  }

  .hero-photo {
    width: calc(100% - 12px);
    height: 320px;
  }

  .learning-ticket {
    left: 2px;
    bottom: -8px;
    width: min(300px, 88%);
  }

  .today-strip {
    grid-template-columns: 1fr;
  }

  .today-strip > div {
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .today-strip > div:last-child {
    border-bottom: 0;
  }

  .section-shell {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .closing-section h2 {
    font-size: 38px;
  }

  .split-heading,
  .scene-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .course-workbench {
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .week-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
  }

  .week-tab {
    min-width: 92px;
    min-height: 78px;
    display: block;
    padding: 10px;
    text-align: center;
    border-right: 1px solid #4b4a46;
    border-bottom: 0;
  }

  .week-tab b {
    display: block;
    font-size: 20px;
  }

  .week-tab span {
    font-size: 12px;
  }

  .week-tab small {
    display: none;
  }

  .lesson-panel {
    padding: 26px 18px 16px;
  }

  .lesson-panel-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .week-stat {
    justify-self: start;
  }

  .lesson-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .complete-button {
    grid-column: 2;
    justify-self: start;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .segmented {
    width: 100%;
  }

  .daily-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .daily-card,
  .daily-card:first-child {
    min-height: 300px;
  }

  .scene-card {
    min-height: 240px;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .footer-inner nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner small {
    grid-column: auto;
  }

  #dialog-content {
    padding: 8px 24px 34px;
  }
}

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