@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #f7f9f5;
  --ink: #10231a;
  --muted: #3f5449;
  --line: #dcede3;
  --deep: #10231a;
  --forest: #286c50;
  --display: "Inter", "Segoe UI", sans-serif;
  --sans: "Inter", "PingFang HK", "Noto Sans TC", "Segoe UI", sans-serif;
  --wrap: 880px;
  --pad: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 3px; }

a, .button { transition: background-color 160ms ease, color 160ms ease; }

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

::selection { background: #e4eee9; color: var(--ink); }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.034em;
  line-height: 1.05;
}

h1 { font-size: clamp(44px, 8vw, 68px); max-width: 18ch; }

.entry h1 {
  font-size: 34px;
  max-width: 100%;
  text-wrap: pretty;
}

.entry h1 .rest { display: inline; }

p { max-width: 38rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 72px;
  padding: 12px 0;
}

.wordmark {
  display: block;
  flex: none;
  text-decoration: none;
}

.wordmark img { width: 104px; height: auto; }

.sitenav {
  display: flex;
  flex: 1 1 12rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  min-width: 0;
}

.sitenav a {
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.sitenav a:hover { text-decoration: underline; }

.entry {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 28px 0 48px;
}

.entry.follow {
  min-height: 0;
  align-items: flex-start;
  padding-top: 12vh;
}

.kicker {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
}

.chapter { padding: 72px 0; }

.chapter h2 { font-size: clamp(32px, 5vw, 44px); max-width: 16ch; }

.standfirst, .plain { margin-top: 18px; color: var(--muted); }

.plain {
  margin-bottom: 0;
  padding-left: 1.1em;
  max-width: 38rem;
}

.plain li + li { margin-top: 8px; }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 2px;
}

.button.solid { background: var(--ink); color: var(--paper); }
.button.solid:hover { background: var(--deep); }
.button.line { box-shadow: inset 0 0 0 1px var(--ink); }
.button.line:hover { background: rgba(23, 37, 33, 0.05); }
.button.quiet { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.steps svg { width: 22px; height: 22px; color: var(--forest); }

.steps h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.steps p { margin-top: 6px; color: var(--muted); }

.mail { margin-top: 16px; }
.mail a { color: var(--deep); }

.contact a { color: var(--deep); }

.colophon {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--line);
}

.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: baseline;
}

.colophon p { max-width: none; }

.legalnav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.legalnav a { color: var(--muted); }

.doc { padding: 48px 0 80px; }

.doc h1 { max-width: 14ch; }

.doc h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  max-width: none;
}

.doc p + p { margin-top: 12px; }

.doc a { color: var(--deep); }

.version {
  margin-bottom: 18px;
  color: var(--forest);
  font-size: 14px;
  letter-spacing: 0.01em;
}

@media (max-width: 430px) {
  .entry h1 .rest { display: block; }
  .entry { align-items: flex-start; padding-top: 28px; min-height: 0; }
}

@media (min-width: 360px) and (max-width: 719px) {
  .entry h1 { font-size: 36px; }
}

@media (min-width: 375px) and (max-width: 719px) {
  .entry h1 { font-size: 38px; }
}

@media (min-width: 390px) and (max-width: 719px) {
  .entry h1 { font-size: 40px; }
}

@media (min-width: 430px) and (max-width: 719px) {
  .entry h1 { font-size: 42px; }
}

@media (max-width: 719px) {
  .mast { display: block; }
  .sitenav { margin-top: 10px; justify-content: flex-start; }
}

@media (min-width: 720px) {
  :root { --pad: 32px; }
  .wordmark img { width: 118px; }
  .chapter { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .entry { align-items: center; min-height: calc(100svh - 72px); padding: 32px 0 72px; }
  .entry h1 { font-size: clamp(52px, 5.2vw, 64px); }
  .entry h1 .rest { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .button { transition: none; }
}

@media print {
  .site-header, .colophon { position: static; }
  body { background: #fff; }
}
