:root {
  --paper: #f6f1e6;
  --ink: #17221f;
  --soft: #55615c;
  --teal: #2f7468;
  --coral: #e96555;
  --line: rgba(23, 34, 31, 0.16);
  --white: #fffaf0;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 22px 52px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(47, 116, 104, 0.14), transparent 25rem),
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.75;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 8px;
  letter-spacing: 0.16em;
}

nav {
  display: flex;
  gap: 16px;
}

nav a {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  padding: 60px 0;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-weight: 500;
}

h1 {
  max-width: 780px;
  margin: 18px 0 22px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.lead {
  max-width: 720px;
  color: var(--soft);
  font-size: 18px;
}

.updated {
  color: var(--soft);
  font-size: 12px;
}

section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

section p,
section li {
  color: #35413c;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

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

aside {
  margin-top: 42px;
  padding: 24px;
  background: #dcebe5;
  border-radius: 18px;
}

aside p {
  margin: 8px 0 0;
  color: #35413c;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 46px;
  }

  footer {
    flex-direction: column;
  }
}
