:root {
  --paper: #f7f5f2;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --line: #ddd6cd;
  --accent: #a8402a;
  --card: #fffefb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               "Heiti TC", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 242, .93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand { text-decoration: none; color: inherit; }

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
}

.brand-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 8px;
}

nav { display: flex; gap: 22px; flex-wrap: wrap; }

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.2;
  letter-spacing: .02em;
}

.lede {
  max-width: 62ch;
  margin: 0 0 40px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts li {
  background: var(--card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.facts .k { font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }

.facts .v { font-size: 21px; font-weight: 700; }

/* ---------- sections ---------- */
.band { padding: 76px 0; border-top: 1px solid var(--line); }

.band.alt { background: #f1eee9; }

.band h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.prose p { margin: 0 0 18px; }

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

.note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.note a { color: var(--accent); }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 26px 20px;
}

.card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: .04em;
}

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

.card li {
  font-size: 15px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  line-height: 1.6;
}

.card li:first-child { border-top: 0; padding-top: 0; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
  background: rgba(168, 64, 42, .07);
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

.card.licensed { border-left: 3px solid var(--accent); }

.cond {
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(168, 64, 42, .06);
  border-radius: 3px;
  padding: 10px 12px;
  margin: 0 0 14px;
  line-height: 1.6;
}

/* ---------- registry table ---------- */
table.reg {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

table.reg th,
table.reg td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

table.reg tr:last-child th,
table.reg tr:last-child td { border-bottom: 0; }

table.reg th {
  width: 220px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, .017);
}

/* ---------- contact ---------- */
address { font-style: normal; }

.addr { font-size: 20px; line-height: 1.6; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-foot p { margin: 0 0 6px; }

.dim { font-size: 13px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .band { padding: 52px 0; }
  .two-col { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: 1fr; }
  table.reg th { width: 128px; padding-left: 14px; }
  table.reg td { padding-right: 14px; }
  .head-in { padding: 12px 0; }
  nav { gap: 14px; }
}
