/* PM 轉職 AI FDE — cute, lively, still readable. */
:root {
  --paper: #fff6ee;
  --paper-2: #ffe8d6;
  --inset: #fffdfb;
  --ink: #3a2a33;
  --ink-soft: #5c4552;
  --muted: #8a6d78;
  --rule: #f3c9c0;
  --rule-strong: #e8a89a;
  --pop: #ff6b6b;
  --pop-deep: #e24b6a;
  --berry: #7c5cbf;
  --mint: #2f9e8f;
  --mint-soft: #e5f8f3;
  --sun: #ffb703;
  --mark: #ffe08a;
  --shadow: 0 8px 0 rgba(226, 75, 106, 0.12);
  --sans: "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Noto Sans TC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 42rem;
  --wide: 68rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(420px 280px at 8% 0%, #ffe1f0 0%, transparent 70%),
    radial-gradient(380px 260px at 100% 8%, #d9f6ef 0%, transparent 68%),
    radial-gradient(320px 220px at 70% 100%, #fff1c9 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
}
a { color: var(--pop-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--berry); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip {
  position: absolute; left: 0.75rem; top: -4rem;
  background: var(--ink); color: white; padding: 0.4rem 0.7rem; border-radius: 999px; z-index: 10;
}
.skip:focus { top: 0.75rem; }
.wrap { width: min(var(--wide), calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(var(--measure), calc(100% - 2rem)); margin-inline: auto; }
.mast {
  border-bottom: 3px solid #ffd0c8;
  background: rgba(255, 250, 246, 0.92);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(8px);
}
.mast-inner { width: min(var(--wide), calc(100% - 2rem)); margin-inline: auto; padding: 0.85rem 0 0.7rem; }
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; text-decoration: none; color: var(--ink); }
.brand strong { font-weight: 800; font-size: 1.15rem; }
.brand strong::before { content: "✦ "; color: var(--pop); }
.brand span { font-size: 0.78rem; color: var(--berry); background: #f3e8ff; border-radius: 999px; padding: 0.15rem 0.6rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.site-nav a {
  font-size: 0.86rem; color: var(--ink-soft); text-decoration: none;
  background: white; border: 2px solid #ffd5cc; border-radius: 999px; padding: 0.15rem 0.7rem;
}
.site-nav a:hover { border-color: var(--pop); color: var(--pop-deep); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: var(--pop); color: white; border-color: var(--pop-deep); }
.hero { padding: 2.2rem 0 1.2rem; }
.kicker {
  display: inline-block; font-size: 0.82rem; color: #9a4d12;
  background: #ffe8a3; border-radius: 999px; padding: 0.2rem 0.7rem; margin: 0 0 0.8rem;
}
h1, h2, h3 { font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 0.8rem; letter-spacing: -0.02em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; margin: 0; }
.rule { border: 0; border-top: 3px dashed #f3c9c0; margin: 1.6rem 0; }
.section { padding: 1.1rem 0 1.8rem; }
.section h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 0 0 0.8rem; }
.section h2::before { content: "✿ "; color: var(--pop); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel {
  background: white; border: 3px solid #ffd0c8; border-radius: 1.4rem;
  padding: 1rem 1.15rem 0.4rem; box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--pop-deep); }
.ability { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
@media (min-width: 800px) { .ability { grid-template-columns: 1fr 1fr; } }
.ability li {
  background: white; border: 3px solid #ffe1a8; border-radius: 1.2rem; padding: 0.9rem 1rem;
}
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; color: white;
  background: var(--berry); border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.35rem;
}
.catalog { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .catalog { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: white; border: 3px solid #ffc9bf; border-radius: 1.4rem;
  padding: 1rem 1.05rem 1.05rem; text-decoration: none; color: inherit; min-height: 100%;
  box-shadow: 0 6px 0 #ffd9d2;
}
.card:hover { transform: translateY(-3px); border-color: var(--pop); box-shadow: 0 10px 0 #ffc2d4; }
.card .meta { font-size: 0.78rem; color: var(--mint); font-weight: 700; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .go { margin-top: auto; padding-top: 0.6rem; color: var(--pop-deep); font-weight: 800; font-size: 0.9rem; }
.faq details { background: white; border: 3px solid #e7d6ff; border-radius: 1rem; padding: 0.7rem 0.9rem; margin: 0.5rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 0.45rem 0 0.2rem; color: var(--ink-soft); }
.crumb { font-size: 0.88rem; color: var(--muted); margin: 1.2rem 0 0.4rem; }
.crumb a { color: var(--berry); }
article.lesson, .track-intro { padding-bottom: 1rem; }
article.lesson h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
article.lesson h2 { font-size: 1.3rem; margin: 1.6rem 0 0.5rem; color: var(--berry); }
article.lesson p { margin: 0.7rem 0; }
.example, .practice, .done {
  margin: 1.3rem 0; padding: 0.9rem 1rem 0.3rem; background: white;
  border: 3px solid #ffd0c8; border-radius: 1.2rem;
}
.example { border-color: #ffb4c8; background: #fff5f8; }
.practice { border-color: #ffd27a; background: #fff9ec; }
.done { border-color: #9ad9cc; background: var(--mint-soft); }
.example h2, .practice h2, .done h2 { margin-top: 0; font-size: 1.05rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 2rem; }
.pager a { text-decoration: none; background: white; border: 2px solid var(--pop); border-radius: 999px; padding: 0.25rem 0.8rem; font-weight: 700; }
.lesson-index { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.lesson-index li { margin: 0.45rem 0; }
.lesson-index a {
  display: grid; grid-template-columns: 3rem 1fr; gap: 0.6rem;
  padding: 0.75rem 0.8rem; text-decoration: none; color: inherit;
  background: white; border: 3px solid #ffe1d6; border-radius: 1.1rem;
}
.lesson-index a:hover { border-color: var(--pop); }
.lesson-index .num { font-size: 1.25rem; font-weight: 800; color: var(--pop-deep); }
.lesson-index strong { display: block; font-size: 1.05rem; }
.lesson-index em { display: block; font-style: normal; color: var(--muted); font-size: 0.92rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 0.7rem 0 0.7rem 2.6rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.7rem;
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  background: var(--sun); color: #6a3b00; font-weight: 800; font-size: 0.85rem;
  display: grid; place-items: center;
}
.note { font-size: 0.92rem; color: var(--muted); }
.exercise fieldset { border: 3px solid #ffd0c8; border-radius: 1rem; margin: 0 0 0.8rem; padding: 0.8rem 0.9rem 0.9rem; background: white; }
.exercise legend { font-weight: 800; padding: 0 0.3rem; }
.exercise textarea {
  width: 100%; min-height: 5.5rem; font: inherit; color: var(--ink);
  background: #fffdf8; border: 2px solid #ffd0c8; border-radius: 0.8rem; padding: 0.55rem 0.65rem;
}
.exercise summary { cursor: pointer; color: var(--pop-deep); font-weight: 700; }
footer.site { margin-top: 1rem; padding: 1.4rem 0 2.4rem; color: var(--muted); font-size: 0.9rem; }
footer.site p { margin: 0.3rem 0; }
mark { background: var(--mark); color: inherit; border-radius: 0.3em; padding: 0 0.2em; }
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .hero { padding-top: 1.4rem; }
  .lesson-index a { grid-template-columns: 2.4rem 1fr; }
}
