:root {
  color-scheme: light;
  --paper: #fff9ed;
  --ink: #2e281f;
  --muted: #5e5343;
  --accent: #994529;
  --accent-dark: #76351e;
  --rule: #e7d9bd;
  --display: "Songti TC", "Noto Serif CJK TC", "Noto Serif TC", "PMingLiU", serif;
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.3;
}

h2 { font-size: clamp(1.75rem, 3.3vw, 2.75rem); }
p { color: var(--muted); }
section[id], article[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(70rem, calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { border-radius: 25%; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.8vw, 2rem);
}

nav a {
  padding-block: .7rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover, .footer-inner a:hover { color: var(--accent); }
.nav-status { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 7.2vw, 6.5rem);
}

.hero-copy { container-type: inline-size; }

.hero-kicker {
  margin-bottom: .85rem;
  color: var(--accent);
  font-size: clamp(.875rem, 1.6vw, 1rem);
  font-weight: 750;
  letter-spacing: .09em;
}

h1 {
  --hero-heading-size: clamp(2.6rem, 5.9vw, 5.375rem);
  font-size: var(--hero-heading-size);
  /* Keep the seven-character second line within the actual text column. */
  font-size: min(var(--hero-heading-size), 14.85cqi);
  letter-spacing: -.055em;
}

h1 span { color: var(--accent); }

.hero-intro {
  max-width: 27rem;
  margin-top: 1.25rem;
  font-size: clamp(1.075rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.45rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  border-radius: 100vmax;
  padding: .75rem 1.4rem;
  background: var(--accent);
  color: #fff9ed;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: var(--accent-dark); }
.text-link { color: var(--accent-dark); font-weight: 700; text-underline-offset: .25rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.1;
  width: 100%;
  max-width: 31rem;
  margin-inline: auto;
}

.hero-landscape {
  position: absolute;
  z-index: -1;
  inset: 0 5% 0;
  overflow: hidden;
  border: 1px solid #e1cda4;
  border-radius: 50% 50% 1.5rem 1.5rem;
  background: #efe0b5 url("assets/forest.jpg") center top / cover no-repeat;
  box-shadow: 0 .6rem 0 #f5ead0;
}

.hero-art img {
  position: absolute;
  inset: auto 0 3%;
  width: 100%;
}

.art-tile {
  display: grid;
  position: absolute;
  z-index: 1;
  width: clamp(2.65rem, 5vw, 4.4rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #f9f1d8;
  border-radius: 22%;
  box-shadow: 0 .2rem .5rem #6c42291f;
  color: #543620;
  font: 800 clamp(1.55rem, 3.2vw, 2.5rem) / 1 var(--display);
}

.tile-phonetic { top: 11%; left: 4%; background: #ffdf88; transform: rotate(-13deg); }
.tile-mountain { top: 4%; right: 8%; background: #fff2cb; transform: rotate(12deg); }
.tile-book { top: 38%; right: 0; background: #f8d5ba; transform: rotate(11deg); }

.learning {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  border-block: 1px solid var(--rule);
  background: #fbefd8;
}

.section-intro { margin-top: .65rem; font-size: 1.0625rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.9rem;
}

.feature {
  overflow: hidden;
  border: 1px solid #e5d6b8;
  border-radius: 1rem;
  background: #fffbf2;
}

.feature-art {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1.78;
}

.station-art {
  gap: clamp(.3rem, 1.5vw, .9rem);
  padding-top: 12%;
  background: #ecedbe url("assets/station.jpg") center 15% / cover no-repeat;
}

.station-art span {
  display: grid;
  width: 18%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #edcc81;
  border-radius: 20%;
  background: #ffedb9;
  box-shadow: 0 .25rem 0 #ca9f4e40;
  color: #573920;
  font: 800 clamp(1.2rem, 3.4vw, 2.6rem) / 1 var(--display);
}

.station-art span:first-child { transform: rotate(-9deg); }
.station-art span:last-child { transform: rotate(9deg); }

.forest-art {
  align-items: end;
  background: #e2edc5 url("assets/forest.jpg") center 34% / cover no-repeat;
}

.forest-art img { width: auto; height: 87%; }
.mission-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.feature-copy { padding: 1.15rem clamp(1rem, 2.3vw, 1.5rem) 1.5rem; }
.feature-copy h3 { margin-bottom: .45rem; font-size: clamp(1.25rem, 2vw, 1.55rem); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .52fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.story-copy p {
  max-width: 39rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.95;
}

.story-illustration {
  margin-top: .45rem;
  padding: .7rem .7rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: #fffdf6;
}

.story-illustration img { border-radius: .55rem; }
.story-illustration figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; text-align: center; }
.availability { margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }

.availability-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid #d8ddbd;
  border-radius: 1rem;
  background: #edf0dc;
}

.availability-panel img { flex: 0 0 auto; width: clamp(3rem, 6vw, 4.5rem); border-radius: 25%; }
.availability-panel h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.availability-panel p { margin-top: .25rem; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { padding-block: 1.4rem; color: var(--muted); font-size: .9rem; }
.footer-inner .english { margin-inline-start: .5rem; }
.footer-inner a { flex-shrink: 0; text-underline-offset: .2rem; }

@media (max-width: 54rem) {
  .hero { gap: 1.25rem; }
  h1 { --hero-heading-size: clamp(2.5rem, 6.2vw, 4.75rem); }
  .feature-grid { gap: .8rem; }
  .feature-copy { padding-inline: .95rem; }
}

@media (max-width: 42rem) {
  .container { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 4.3rem; }
  .brand { gap: .45rem; font-size: .9375rem; }
  .brand img { width: 2.1rem; }
  nav { gap: .7rem; }
  nav a { font-size: .875rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding-top: 2.6rem; }
  h1 { --hero-heading-size: clamp(2.65rem, 10.3vw, 4.75rem); }
  .hero-art { width: min(95%, 26rem); }
  .hero-intro { margin-top: .85rem; }
  .hero-links { margin-top: 1.3rem; }
  .feature-grid, .story { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 1rem; }
  .feature-art { aspect-ratio: 2; }
  .station-art span { font-size: clamp(1.4rem, 7vw, 2.5rem); }
  .story { gap: 1.4rem; }
  .story-illustration { width: min(100%, 23rem); }
}

@media (max-width: 23rem) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: .65rem; }
  nav { width: 100%; justify-content: space-between; }
  .footer-inner .english { display: block; margin-inline-start: 0; }
}
