:root {
  color-scheme: light;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
    var(--bg);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

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

.site-header {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 17px;
  font-weight: 750;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--text); }

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 6vw, 86px);
  padding: 40px 0 44px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
  font-weight: 820;
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.8;
}

.hero-media {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--media-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.notes {
  min-height: 30vh;
  padding: 24px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border-top: 1px solid var(--border);
}

.note-line {
  max-width: 760px;
  font-size: clamp(21px, 3vw, 36px);
  line-height: 1.4;
  font-weight: 720;
}

.notes ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  min-width: 170px;
}

.notes li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

footer a:hover { color: var(--text); }

.theme-study {
  --bg: #f6f8f2;
  --text: #183126;
  --muted: #59685e;
  --accent: #2f6d4f;
  --border: rgba(24, 49, 38, 0.16);
  --shadow: 0 32px 80px rgba(31, 73, 51, 0.20);
  --media-radius: 6px;
}

.theme-apollo {
  --bg: #f8f9fb;
  --text: #090b12;
  --muted: #4d5564;
  --accent: #1457d9;
  --border: rgba(9, 11, 18, 0.13);
  --shadow: 0 34px 90px rgba(13, 36, 91, 0.24);
  --media-radius: 2px;
}

.theme-apollo .hero { grid-template-columns: minmax(330px, 1.1fr) minmax(0, 0.9fr); }
.theme-apollo .hero-media { order: -1; }

.theme-vehicle {
  --bg: #f0f2f3;
  --text: #171b1f;
  --muted: #59616a;
  --accent: #d43931;
  --border: rgba(23, 27, 31, 0.18);
  --shadow: 0 26px 70px rgba(24, 32, 38, 0.20);
  --media-radius: 0;
}

.theme-food {
  --bg: #fff7ed;
  --text: #29211c;
  --muted: #715f54;
  --accent: #cc3d2e;
  --border: rgba(41, 33, 28, 0.16);
  --shadow: 0 32px 72px rgba(112, 61, 34, 0.20);
  --media-radius: 8px;
}

.theme-code {
  --bg: #f7fbfa;
  --text: #101719;
  --muted: #526163;
  --accent: #069481;
  --border: rgba(16, 23, 25, 0.14);
  --shadow: 0 30px 84px rgba(6, 112, 100, 0.20);
  --media-radius: 6px;
}

.theme-code .hero-copy h1 {
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", var(--font-sans);
}

.theme-archive {
  --bg: #f3fbf7;
  --text: #17201f;
  --muted: #596361;
  --accent: #8b79d6;
  --border: rgba(23, 32, 31, 0.15);
  --shadow: 0 30px 78px rgba(87, 79, 126, 0.18);
  --media-radius: 8px;
}

.theme-micro {
  --bg: #fbfbfc;
  --text: #111216;
  --muted: #5f626c;
  --accent: #f06b57;
  --border: rgba(17, 18, 22, 0.14);
  --shadow: 0 30px 80px rgba(30, 49, 116, 0.18);
  --media-radius: 4px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 20px;
  }

  nav { gap: 16px; flex-wrap: wrap; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .theme-apollo .hero-media { order: 0; }

  .hero-copy h1 {
    font-size: 42px;
    max-width: 8em;
  }

  .hero-copy p {
    font-size: 17px;
  }

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

  footer {
    flex-direction: column;
  }
}
