:root {
  color-scheme: light;
  --ink: #172a27;
  --muted: #435a55;
  --line: #cbdad5;
  --paper: #fbfdfc;
  --accent: #174c3d;
  --mint: #e2f0e7;
  --blue: #eaf0f7;
  font-family: "Instrument Sans", system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #245a9d; outline-offset: 4px; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); background: white; padding: .5rem; z-index: 2; }
.skip:focus { transform: none; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; color: var(--ink); }
.mark { width: 1.6rem; height: 1.1rem; border-radius: 2rem; background: linear-gradient(90deg, var(--accent) 50%, #a4cbad 50%); transform: rotate(-25deg); }
nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .93rem; }
nav a[aria-current] { font-weight: 750; text-decoration: underline; }
.hero { background: var(--mint); padding-block: clamp(2.8rem, 7vw, 6.6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 5.2rem); line-height: 1.15; letter-spacing: -.055em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.15rem); line-height: 1.35; letter-spacing: -.035em; }
h3 { font-size: 1.3rem; line-height: 1.4; }
.lede { font-size: clamp(1.05rem, .9rem + .55vw, 1.3rem); color: var(--muted); max-width: 33ch; margin-block-start: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-block-start: 1.8rem; }
.button { display: inline-flex; gap: .6rem; background: var(--accent); border-radius: .55rem; padding: .75rem 1rem; color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: #246651; }
.label { background: var(--paper); padding: clamp(1rem, 4vw, 2rem); border: 1px solid #a8c0b4; border-radius: 1rem; box-shadow: 0 .9rem 2.4rem #174c3d12; }
figcaption { font-weight: 750; padding-block-end: .8rem; border-bottom: 4px solid var(--ink); }
dl { margin: 0 0 1rem; }
dl div { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-block: .65rem; }
dt, dd { font-weight: 750; font-size: 1.25rem; }
dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
small, .label p, .note { color: var(--muted); font-size: .9rem; }
dt small { display: block; font-weight: 450; }
.section { padding-block: 2.75rem; }
.cards { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card, .callout { padding: clamp(1.15rem, 3vw, 2rem); border-radius: .9rem; background: var(--blue); color: var(--ink); }
.green { background: var(--mint); }
.card { display: block; text-decoration: none; border: 1px solid transparent; }
.card:hover { border-color: var(--accent); }
.card h3 { display: flex; justify-content: space-between; gap: .5rem; }
.card p, .article h2 + p, .callout ol { margin-block-start: .75rem; }
.card p, .note { color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.article { max-width: 50rem; padding-block: 2rem 4rem; }
.article h1 { margin-block-start: 1rem; }
.article .lede { max-width: 40ch; }
.callout { margin-block-start: 2rem; }
.callout p + p { margin-block-start: .75rem; }
.formula { font-weight: 750; font-size: clamp(1.05rem, .85rem + 1.1vw, 1.65rem); }
ol { margin-block-end: 0; padding-inline-start: 1.5em; }
.article .section { padding-block-end: 0; }
.table { overflow-x: auto; margin-block: 1rem; border: 1px solid var(--line); border-radius: .55rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption, td, th { text-align: start; padding: .65rem .85rem; }
caption { font-weight: 750; }
thead { background: var(--mint); }
tbody th, td { border-top: 1px solid var(--line); }
table:not(.terms) td { white-space: nowrap; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding-block: .75rem; }
details p { margin-bottom: .85rem; }
.next { display: inline-block; margin-top: 2rem; }
@media (max-width: 44rem) {
  .hero-grid, .cards { grid-template-columns: 1fr; }
  nav { column-gap: 1rem; }
  td, th { padding-inline: .5rem; }
  .terms th:first-child { width: 35%; overflow-wrap: anywhere; }
}

.story p + p { margin-block-start: .85rem; }
.story li + li { margin-block-start: .5rem; }
.story .note { margin-block-start: .85rem; }
.article h3 { margin-block-start: 1.25rem; }
sup a { margin-inline-start: .15em; }

.reading {
  max-width: 53rem;
  padding-block: 3rem 4rem;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.reading h1 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: -.035em;
}
.reading .lede {
  max-width: none;
  font-size: 1.125rem;
  line-height: 1.9;
}
.reading .updated { margin-top: 1rem; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  align-items: baseline;
}
.article-byline a { font-weight: 700; }
.article-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-block: clamp(1.25rem, 3vw, 2rem) 0;
  border-radius: .85rem;
  background: var(--mint);
}
.reading .section p { margin-top: 1rem; }
.reading h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); line-height: 1.55; }
.reading .section { padding-block: 2.25rem 0; }
.reading sup { font-size: .75em; }
.reading h2, .reading [id^="ref-"], .reading sup { scroll-margin-top: 1.5rem; }
.contents { display: block; margin-top: 2rem; padding: 1.3rem 1.6rem; background: var(--mint); border-radius: .5rem; }
.contents h2 { font-size: 1.15rem; }
.contents ol { margin-top: .5rem; }
.contents a { display: inline; font-size: 1rem; text-decoration: underline; }
.contents li { padding-block: .2rem; }
.reading blockquote { margin: 1.25rem 0; padding: 1rem 1.35rem; background: var(--blue); border-inline-start: 3px solid var(--accent); }
.reading td { white-space: normal; }
.reading th, .reading td { vertical-align: top; min-width: 5rem; }
.reading caption { font-size: 1rem; line-height: 1.6; }
.reading .table { margin-top: 1.25rem; }
.author-box {
  scroll-margin-top: 1.5rem;
  margin-block-start: 2.5rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--mint);
}
.author-role { font-size: .9rem; color: var(--muted); }
.reading .author-box h2 { font-size: 1.3rem; }
.author-story { margin-block-start: .65rem; }
.author-story p + p { margin-block-start: .75rem; }
.author-profile {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block-start: .35rem;
  font-size: .95rem;
  font-weight: 700;
}
.references { font-size: .9rem; overflow-wrap: anywhere; }
.references li { margin-top: .8rem; }
.reading .cards { margin-top: 2rem; }
@media (max-width: 44rem) {
  .reading { padding-block-start: 1.75rem; }
  .reading .lede { font-size: 1.0625rem; }
  .reading td, .reading th { padding: .65rem .6rem; }
  .reading table { font-size: .9rem; }
  .contents { padding: 1rem; }
}

.difference-article > p { margin-block-start: 1rem; }
.difference-article > h2 { margin-block-start: 2.3rem; }
.difference-article > .article-byline + p { font-size: 1.125rem; color: var(--muted); }
.difference-article .table { margin-block: 1.25rem; }
.difference-article .table th,
.difference-article .table td { min-width: 0; }
.difference-article .table th[scope="row"] { white-space: nowrap; }
.difference-article [id^="cite-"] { scroll-margin-top: 2rem; }
.difference-cover { margin-block: 1.6rem 2rem; }
.difference-cover img { display: block; width: 100%; height: auto; border-radius: .8rem; }
@media (max-width: 44rem) {
  .difference-article > .article-byline + p { font-size: 1.0625rem; }
}
