:root {
  --ink: #0A0A0A;
  --paper: #FAFAF7;
  --accent: #B85C38;
  --muted: #6B6B66;
  --rule: #E5E3DC;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Nav ----- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 40px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.nav__brand {
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  flex-wrap: wrap;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  color: var(--accent);
}

.nav__links a[aria-current="page"] {
  color: var(--muted);
}

/* ----- Display headings (English serif fallback to CJK system) ----- */

.display {
  font-family: 'Newsreader', Georgia, "Songti TC", "PingFang TC", "Noto Serif CJK TC", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* ----- Hero ----- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  width: 100%;
}

.hero h1 {
  font-family: 'Newsreader', Georgia, "Songti TC", "PingFang TC", "Noto Serif CJK TC", serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 580px;
}

.hero__meta {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ----- Section blocks ----- */

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 600px;
}

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

/* ----- Pillars ----- */

.pillars {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 40px;
  width: 100%;
  border-top: 1px solid var(--rule);
}

.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  margin-bottom: 56px;
  align-items: start;
}

.pillar:last-child {
  margin-bottom: 0;
}

.pillar__num {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 8px;
}

.pillar h3 {
  font-family: 'Newsreader', Georgia, "Songti TC", "PingFang TC", "Noto Serif CJK TC", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.25;
}

.pillar p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 540px;
}

/* ----- Inner page ("about", "contact", "notes") ----- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  width: 100%;
}

.page h1 {
  font-family: 'Newsreader', Georgia, "Songti TC", "PingFang TC", "Noto Serif CJK TC", serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.015em;
  margin: 0 0 48px;
  line-height: 1.2;
}

.page p {
  margin: 0 0 24px;
}

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

.page a {
  color: var(--ink);
}

/* ----- Status line ----- */

.status {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  width: 100%;
}

/* ----- Footer ----- */

footer {
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 48px 40px 60px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  width: 100%;
}

footer .brand {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ----- Mobile ----- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav {
    padding: 24px 24px;
    gap: 12px 24px;
  }

  .nav__links {
    gap: 20px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 24px 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero__lede {
    font-size: 17px;
    line-height: 1.6;
  }

  .section,
  .pillars,
  .page,
  .status {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .pillars {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .pillar {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    margin-bottom: 44px;
  }

  .pillar__num {
    font-size: 13px;
    padding-top: 6px;
  }

  .pillar h3 {
    font-size: 22px;
  }

  .page {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .page h1 {
    font-size: 30px;
    margin-bottom: 36px;
  }

  footer {
    padding: 40px 24px 48px;
    margin-top: 48px;
  }
}
