:root {
  color-scheme: light;
  --paper: #fcfaf4;
  --white: #fff;
  --ink: #102c32;
  --body: #315057;
  --teal: #00675b;
  --aqua: #83e0d2;
  --mist: #e6f2ee;
  --line: #c7d9d4;
  --dark: #09252c;
  --hero-ink: #f9f0db;
  --content: 71rem;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.75 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
ul, ol { margin: 0; }
h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; }
h3 { font-size: 1.45rem; letter-spacing: -.025em; }
[id] { scroll-margin-top: 6.5rem; }
:focus-visible { outline: 3px solid #a74a1a; outline-offset: 5px; }
.hero :focus-visible, .enrollment :focus-visible { outline-color: var(--aqua); }
.wrap { width: min(calc(100% - 4rem), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7vw, 6.25rem); }
.nowrap { white-space: nowrap; }
.sr-only, .hero-copy, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: white; padding: .75rem 1rem; }

.site-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #e6edea;
}
.header-row, .footer-row {
  display: flex; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.header-row { min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .95rem; text-decoration: none; font-weight: 750; }
.brand img { width: 3.25rem; }
.brand span { padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2.4rem); }
nav a, .site-footer a {
  font-size: .925rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.wide-nav:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-cta { border: 1px solid #98b7af; padding-inline: .95rem; border-radius: .25rem; color: var(--teal); }
.nav-cta:hover { background: var(--mist); }

.hero { background: var(--dark); color: var(--hero-ink); }
.hero-art { max-width: 100rem; margin-inline: auto; }
.hero-art img { width: 100%; }
.hero-bottom {
  min-height: 6.1rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.3rem; padding-block: 1.1rem 1.45rem;
}
.hero-bottom p { color: #ecf2ea; font-size: clamp(1rem, 1.8vw, 1.17rem); }
.button {
  display: inline-flex; justify-content: center; align-items: center; padding: .66rem 1.15rem;
  min-height: 2.85rem; border-radius: .23rem; text-decoration: none; font-weight: 750; white-space: nowrap;
}
.button-primary { background: var(--aqua); color: #0a312e; }
.button-primary:hover { background: #a9efe3; }

.key-facts { background: var(--mist); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr 1.34fr; }
.fact-grid > div { padding-block: 1.65rem; }
.fact-grid > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(1.1rem, 3vw, 2rem); }
.fact-grid dt { color: var(--teal); font-size: .9rem; font-weight: 750; }
.fact-grid dd { font-weight: 700; line-height: 1.55; margin-top: .3rem; }
.fact-grid .address { font-weight: 500; color: var(--body); margin-top: .1rem; }
.map-link { color: var(--teal); font-size: .875rem; text-underline-offset: .24em; margin-inline-start: .55rem; white-space: nowrap; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.35rem; margin-bottom: 1.65rem; }
.section-heading p { color: var(--body); }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.course {
  padding: clamp(1.3rem, 3.2vw, 2.15rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid #3a8b7e;
  display: grid;
  align-content: start;
}
.course-advanced { border-top-color: #ad582f; }
.course-stage { color: var(--teal); font-weight: 750; font-size: .9rem; letter-spacing: .035em; margin-bottom: .9rem; }
.course h3 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); }
.course-focus { font-weight: 750; margin-top: .75rem; }
.course-focus + p { color: var(--body); margin-top: .35rem; min-height: 3.5em; }
.dates { display: flex; list-style: none; padding: 0; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.dates li { background: var(--mist); min-width: 4.1rem; padding: .32rem .65rem; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.course-rule { color: #794320; margin-top: 1rem; font-size: .9375rem; font-weight: 700; }

.learning { background: #edf4f1; }
.learning-grid, .fit-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.learning-intro { color: var(--body); margin-top: 1rem; max-width: 26rem; }
.method { padding: 1.15rem; margin-top: 2rem; border: 1px solid var(--line); max-width: 25.5rem; }
.method p { color: var(--teal); font-weight: 750; letter-spacing: .025em; }
.method ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; gap: .65rem; margin-top: .7rem; }
.method li { line-height: 1.45; }
.method li + li { border-inline-start: 1px solid var(--line); padding-inline-start: .65rem; }
.method strong, .method span { display: block; }
.method strong { font-size: 1.25rem; }
.method span { margin-top: .3rem; color: var(--body); font-size: .875rem; }
.outcomes div { border-bottom: 1px solid var(--line); padding-block: .85rem; }
.outcomes div:first-child { border-top: 1px solid var(--line); }
.outcomes dt, .requirements dt { font-weight: 750; }
.outcomes dd, .requirements dd { color: var(--body); margin-top: .18rem; }
.audience { padding-inline-start: 1.2rem; margin-top: 1rem; color: var(--body); }
.audience li { margin-block: .33rem; }
.audience li::marker { color: var(--teal); }
.requirements > div { padding: .85rem 0 1.05rem; border-block-start: 1px solid var(--line); }

.enrollment { background: var(--dark); color: #f8fbf7; }
.enrollment .section-heading p { color: #cae4de; }
.price-grid, .offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.price-grid article { background: #143940; border: 1px solid #356269; padding: clamp(1.2rem, 3vw, 2.15rem); }
.price { margin-top: .4rem; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.22; font-weight: 750; letter-spacing: -.065em; color: var(--aqua); font-variant-numeric: tabular-nums; }
.price span { font-size: .45em; letter-spacing: -.035em; padding-inline-end: .18em; }
.price + p { color: #c9e0dd; margin-top: .36rem; }
.offers { padding-block: .8rem; margin-top: 1.05rem; }
.offers dt { display: flex; gap: .65rem; flex-wrap: wrap; font-weight: 700; }
.offers strong { color: var(--aqua); }
.offers dd { color: #d3e8e4; margin-top: .2rem; }
.signup { padding-block: 1.6rem 0; border-block-start: 1px solid #4d7074; margin-top: 1rem; }
.signup h3 { font-size: 1.2rem; }
.signup p { margin-top: .35rem; color: #c9e0dd; }

.site-footer { background: white; }
.footer-row { padding-block: 1.1rem; }
.site-footer a { min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--teal); }

@media (max-width: 50rem) {
  .wrap { width: min(calc(100% - 2.5rem), var(--content)); }
  .section-heading { display: block; }
  .section-heading p { margin-top: .55rem; }
  .course-focus + p { min-height: auto; }
}

@media (max-width: 42rem) {
  [id] { scroll-margin-top: 5.1rem; }
  .header-row { min-height: 4.25rem; gap: .5rem; }
  .wide-nav { display: none; }
  .brand { gap: .5rem; }
  .brand img { width: 2.45rem; }
  .brand span { font-size: .85rem; padding-left: .5rem; line-height: 1.35; }
  .nav-cta { font-size: .85rem; padding-inline: .65rem; min-height: 2.45rem; }
  .hero { display: flex; flex-direction: column; }
  .hero-copy {
    position: static; width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto;
    height: auto; padding: 2rem 0 1.2rem; clip: auto; clip-path: none; white-space: normal; overflow: visible;
  }
  .hero-organizer { font-family: var(--serif); font-weight: 750; font-size: 1.22rem; }
  .hero h1 { color: var(--hero-ink); font-family: var(--serif); font-size: clamp(1.9rem, 7.1vw, 3.05rem); line-height: 1.22; letter-spacing: -.04em; white-space: nowrap; margin-block: .37rem .55rem; }
  .hero h1 span { color: var(--aqua); }
  .hero-subtitle { font-size: 1.08rem; color: var(--hero-ink); font-weight: 700; }
  .hero-art { position: relative; margin: 0; height: clamp(10.75rem, 52vw, 14rem); overflow: hidden; }
  .hero-art img { width: 264%; max-width: none; position: absolute; right: 0; top: 49%; transform: translateY(-50%); }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: .85rem; padding-block: 1.15rem 1.55rem; }
  .fact-grid, .course-grid, .learning-grid, .fit-grid { grid-template-columns: 1fr; }
  .fact-grid { padding-block: .35rem; }
  .fact-grid > div { padding-block: .8rem; }
  .fact-grid > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--line); }
  .offers { grid-template-columns: 1fr; gap: 1rem; }
  .price-grid h3 { font-size: 1.12rem; }
  .price { font-size: clamp(1.8rem, 7.5vw, 3rem); }
}

@media (max-width: 23rem) {
  .wrap, .hero-copy { width: calc(100% - 2rem); }
  .brand span { font-size: .81rem; }
  .nav-cta { padding-inline: .45rem; }
  .hero h1 { font-size: clamp(1.6rem, 7.1vw, 1.9rem); }
  .price-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
