:root {
  --bg: #141414;
  --bg-deep: #101010;
  --header: #0e0e0e;
  --text: #f7f7f7;
  --muted: #d0d0d0;
  --soft: #a3a3a3;
  --gold: #e7b15a;
  --gold-deep: #c9923a;
  --link: #4aa3ff;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1120px;
  --header-h: 88px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#list {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

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

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

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--gold);
  color: #1a1a1a;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 14, 14, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  letter-spacing: 0.04em;
}

.logo-top {
  font-family: Oswald, "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.logo-bot {
  font-family: Yellowtail, cursive;
  color: var(--gold);
  font-size: 34px;
  margin-top: -2px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 26px;
}

.nav a {
  color: #ececec;
  font-size: 15px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: white;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
  padding-bottom: 4px;
}

.nav .btn[aria-current="page"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0c27a, var(--gold) 45%, var(--gold-deep));
  color: #2a2112;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn:hover {
  filter: brightness(1.05);
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 70%),
    url("/assets/hero.jpg") center 40% / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero h1,
.page-hero h1,
.center-head h2,
.about-block h2 {
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(40px, 5vw, 64px);
}

.lede {
  max-width: 40em;
  margin: 0;
  color: #f3f3f3;
  font-size: 20px;
}

.page-hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.62)),
    url("/assets/courses-hero.jpg") center 30% / cover no-repeat;
}

.page-hero .hero-inner {
  width: min(820px, calc(100% - 48px));
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero .lede {
  margin: 0 auto 28px;
}

.section {
  padding: 88px 0;
}

.about-block,
.center-head {
  text-align: center;
}

.about-block h2,
.center-head h2,
.section h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 700;
}

.quote-row {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}

.quote-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(231, 177, 90, 0.18);
}

.quote-copy {
  position: relative;
  padding-top: 8px;
}

.mark {
  position: absolute;
  top: -28px;
  left: -8px;
  font-family: Georgia, serif;
  font-size: 92px;
  line-height: 1;
  color: white;
}

.quote-copy p {
  margin: 0 0 12px;
  font-size: 18px;
}

.name {
  margin-top: 18px !important;
  color: var(--gold);
  font-size: 28px !important;
  font-weight: 800;
}

.role {
  color: var(--soft) !important;
  font-size: 14px !important;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.card,
.course,
.panel {
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 28px 24px 22px;
  text-align: left;
}

.card h3,
.course h3,
.panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card p,
.course p,
.panel p,
.prose p {
  margin: 0 0 12px;
  color: var(--muted);
}

.card span,
.badge {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.course {
  overflow: hidden;
}

.course-cover {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.cover-a {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
    url("/assets/about.jpg");
}

.cover-b {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
    url("/assets/courses-hero.jpg");
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.8);
}

.course-body,
.panel {
  padding: 22px 22px 8px;
}

.panel {
  padding: 28px;
  text-align: left;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.prose {
  max-width: 800px;
}

.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.2;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 26px;
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--muted);
}

.note {
  margin-top: 42px;
  padding: 28px;
  border-radius: 12px;
  background: #1c1c1c;
  border: 1px solid rgba(231, 177, 90, 0.25);
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 72px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
}

.site-footer p,
.site-footer li {
  color: #cfcfcf;
  font-size: 15px;
}

.site-footer h2 {
  margin: 6px 0 16px;
  font-size: 22px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--link);
}

.site-footer a:hover {
  text-decoration: underline;
}

.copy {
  margin-top: 28px;
  color: #9a9a9a !important;
}

.notice {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  background: #161616;
  border-top: 3px solid var(--gold);
}

.notice p {
  margin: 0;
  font-size: 14px;
}

.notice a {
  color: var(--link);
  text-decoration: underline;
}

.notice[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: #111;
    border-bottom: 1px solid var(--line);
  }

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

  .nav a,
  .nav .btn {
    margin: 4px 18px;
    padding: 12px 8px;
  }

  .nav a[aria-current="page"] {
    box-shadow: none;
    color: var(--gold);
  }

  .quote-row,
  .grid-3,
  .grid-2,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    min-height: 460px;
  }

  .notice {
    flex-direction: column;
    align-items: stretch;
  }
}
