:root { font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif; }
.atlas-home, .history-page {
  --surface: #fff;
  --border: #e4e8e6;
  --ink: #172420;
  --muted: #53635c;
  --accent: #176249;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}
.atlas-home *, .history-page * { box-sizing: border-box; }
.atlas-home a, .history-page a { color: inherit; text-underline-offset: 4px; }
.atlas-header { border-bottom: 1px solid var(--border); background: #fff; }
.atlas-header-inner, .atlas-main { width: min(1170px, calc(100% - 40px)); margin-inline: auto; }
.atlas-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 65px; }
.atlas-header a { text-decoration: none; }
.atlas-header nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.atlas-header nav a { font-size: 14px; color: var(--muted); }
.atlas-header nav a:hover, .atlas-header nav a[aria-current] { color: var(--accent); }
.atlas-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 17px; font-weight: 750; }
.atlas-brand img { width: 30px; height: 30px; }
.atlas-main { padding-bottom: 46px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.home-intro { display: grid; grid-template-columns: 1fr minmax(300px, 36%); align-items: center; gap: 34px; padding: 62px 0 42px; }
.home-intro h1 { margin: 6px 0 10px; font-size: clamp(35px, 5vw, 63px); line-height: 1.12; letter-spacing: -.045em; }
.home-intro p:not(.eyebrow) { margin: 0; color: var(--muted); }
.map-entry {
  display: block; padding: 22px; border: 1px solid var(--border);
  border-radius: 12px; background: #f5f8f6; text-decoration: none;
}
.map-entry strong { display: block; margin: 2px 0 5px; font-size: 21px; }
.map-entry span:last-child { color: var(--muted); }
.home-section { margin-top: 30px; scroll-margin-top: 16px; }
.home-section h2 { margin: 0 0 12px; font-size: 22px; }
.subject-grid, .today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.subject-card, .today-grid label { border: 1px solid var(--border); border-radius: 12px; padding: 17px; }
.subject-card { display: flex; flex-direction: column; align-items: start; }
.subject-card h3 { margin: 0; font-size: 18px; }
.subject-card p { margin: 6px 0 16px; color: var(--muted); }
.subject-card a { margin-top: auto; color: var(--accent); font-weight: 700; }
.today-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.today-heading span { font-size: 13px; color: var(--muted); }
.today-grid label { display: flex; align-items: start; gap: 8px; cursor: pointer; }
.today-grid input { accent-color: var(--accent); margin-top: 6px; }
.today-grid label:has(:checked) { background: #f5f8f6; }
@media (max-width: 850px) {
  .subject-grid, .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .atlas-header-inner, .atlas-main { width: calc(100% - 28px); }
  .atlas-header-inner { padding: 10px 0; }
  .atlas-header nav { justify-content: end; gap: 3px 10px; }
  .home-intro { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 4px; }
}
