@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Noto Serif TC", "Songti SC", "Source Han Serif TC", serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "Noto Serif TC", "Songti SC", serif; line-height: 1.28; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button, input { font: inherit; }
figure { margin: 0; }

div[id] { scroll-margin-top: 104px; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: #fff;
  border-bottom: 2px solid #000;
}

.brand {
  display: inline-block;
  padding: 12px 0;
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-decoration: none;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  border: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  letter-spacing: .16em;
  cursor: pointer;
}

.nav-dock nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dock nav > ul > li > a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-dock nav > ul > li > a:hover,
.nav-dock nav > ul > li > a:focus-visible {
  border-bottom-color: #000;
}

.has-sub { position: relative; }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  vertical-align: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.has-sub .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 90;
  min-width: 184px;
  padding: 6px 0;
  background: #000;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub { display: block; }

.has-sub .sub a {
  display: block;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.has-sub .sub a:hover,
.has-sub .sub a:focus-visible { background: #fff; color: #000; }

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 40px);
  min-height: 45vh;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 40px);
  border-bottom: 2px solid #000;
}

.hero-mark { flex: 0 0 auto; width: 64px; color: #000; }
.hero-mark svg { display: block; width: 64px; height: 64px; }
.hero-mark--img { width: 96px; }
.hero-mark--img img { display: block; width: 96px; border-radius: 4px; }

.hero-copy {
  flex: 1 1 auto;
  max-width: 720px;
  text-align: right;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 42ch;
  margin: 16px 0 0 auto;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

.slash {
  height: 22px;
  margin: -4px 0 0;
  background: #000;
  transform: skewY(-2deg);
  transform-origin: right center;
}

/* ---------- layout ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px);
}

.col-main { min-width: 0; }

.prose { max-width: 70ch; font-size: 17px; }

.prose > div + div {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid #000;
}

.prose h2 {
  margin: 0 0 .35em;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.005em;
}

.prose h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 14px;
  background: #000;
}

.prose p.subtitle {
  margin: 0 0 1.4em;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  letter-spacing: .02em;
}

.prose h3 {
  margin: 1.8em 0 .5em;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose p { margin: 0 0 1.4em; }
.prose strong { font-weight: 700; }

.prose > div:first-child > p:first-of-type::first-letter {
  float: left;
  padding: .06em .12em 0 0;
  font-size: 3.4em;
  line-height: .82;
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }

.prose blockquote {
  margin: 2em 0;
  padding: .2em 0 .2em 1.2em;
  border-left: 5px solid #000;
  font-size: 1.14em;
  font-weight: 500;
  line-height: 1.7;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose figure { margin: 2em 0; }
.prose img { display: block; width: 100%; border-radius: 4px; }
.prose figcaption {
  margin-top: .6em;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  color: #555;
}

/* ---------- rail ---------- */
.rail {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding-top: 14px;
  border-top: 4px solid #000;
}

.rail-title {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3em;
}

.rail p.subtitle {
  margin: .25em 0 1em;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  color: #555;
}

.rail nav ul li { border-bottom: 1px dotted #b5b5b5; }

.rail nav ul li a {
  display: block;
  padding: 11px 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.rail nav ul li a:hover,
.rail nav ul li a:focus-visible {
  padding-left: 8px;
  background: #000;
  color: #fff;
}

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(40px, 7vw, 80px);
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px) 24px;
  background: #000;
  color: #fff;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.foot-logo {
  margin: 0 0 10px;
  font-family: "Noto Serif TC", serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.foot address {
  font-style: normal;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #c9c9c9;
  word-break: break-all;
}

.foot-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.foot-links a {
  display: block;
  padding: 10px 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid #2c2c2c;
}

.foot-links a:hover,
.foot-links a:focus-visible { color: #000; background: #fff; padding-left: 6px; }

.foot-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.foot-form label {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  letter-spacing: .08em;
}

.foot-form input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
}

.foot-form input:focus { outline: 1px solid #fff; }

.foot-form button {
  min-height: 44px;
  padding: 0 26px;
  background: #fff;
  color: #000;
  border: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  letter-spacing: .16em;
  cursor: pointer;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.copy {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  color: #b8b8b8;
}

.foot-mini { display: flex; gap: 20px; }

.foot-mini a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  color: #fff;
}

.foot-mini a:hover,
.foot-mini a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }

  .js .reveal,
  .js .prose > div {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
  }

  .js .reveal.in,
  .js .prose > div.in { opacity: 1; transform: none; }

  .js .hero-copy { animation: rise .7s ease both; }

  .js .masthead nav > ul > li { animation: rise .45s ease both; }
  .js .masthead nav > ul > li:nth-child(2) { animation-delay: .05s; }
  .js .masthead nav > ul > li:nth-child(3) { animation-delay: .1s; }
  .js .masthead nav > ul > li:nth-child(4) { animation-delay: .15s; }
}

/* ---------- responsive ---------- */
@media (max-width: 959px) {
  .menu-btn { display: block; }

  .nav-dock {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 74vh;
    overflow: auto;
    padding: 8px 16px 18px;
    background: #000;
    border-bottom: 2px solid #000;
  }

  .nav-dock.open { display: block; }

  .nav-dock nav > ul { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-dock nav > ul > li > a {
    padding: 12px 0;
    color: #fff;
    border-bottom: 1px solid #262626;
    white-space: normal;
  }

  .nav-dock nav > ul > li > a:hover { border-bottom-color: #262626; }

  .has-sub .sub {
    display: block;
    position: static;
    min-width: 0;
    margin: 4px 0 10px;
    padding: 0 0 0 14px;
    background: transparent;
    border-left: 2px solid #444;
  }

  .has-sub .sub a { padding: 11px 0; border-bottom: 1px solid #1f1f1f; }

  .hero {
    flex-direction: column;
    align-items: flex-end;
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy { max-width: 100%; text-align: right; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero .lede { margin-left: auto; }

  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; order: 2; margin-top: 8px; }
  .foot-top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .prose { font-size: 16px; }
  .foot-links ul { grid-template-columns: 1fr; }
  .hero-mark, .hero-mark svg { width: 48px; height: 48px; }
  .hero-mark--img, .hero-mark--img img { width: 72px; }
}

@media (min-width: 960px) and (max-width: 1120px) {
  .nav-dock nav > ul > li > a { padding: 10px 8px; font-size: 16px; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
