:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang HK",
    "Noto Sans TC", sans-serif;
  font-synthesis: none;
  line-height: 1.68;
  --ink: #17342d;
  --muted: #597068;
  --paper: #f7f3e8;
  --surface: #fffdf7;
  --line: #d9cfb7;
  --gold: #94661f;
  --green: #173f34;
  --soft: #e9e1ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.header-inner,
main,
.site-footer {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--green);
  text-decoration: none;
  font-family: ui-serif, "New York", "Songti TC", serif;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

main {
  padding: 64px 0 88px;
}

article {
  max-width: 780px;
}

.hero {
  padding: 28px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero h1,
article > h1 {
  max-width: 780px;
  margin: 0;
  font-family: ui-serif, "New York", "Songti TC", serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--green);
}

article > h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.hero .lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 12px;
  color: var(--paper);
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--green);
  background: transparent;
  border-color: var(--line);
}

.section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section h2,
article h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-family: ui-serif, "New York", "Songti TC", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
}

article h2 {
  margin-top: 42px;
}

article h3 {
  margin: 28px 0 8px;
  color: var(--green);
  font-size: 1.06rem;
}

p,
li {
  max-width: 76ch;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.45rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.feature-list li {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  color: var(--green);
  margin-bottom: 3px;
}

.meta,
.note,
.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  margin: 12px 0 34px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--soft) 66%, transparent);
}

.notice p {
  margin: 0;
}

.legal-links {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-footer {
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 4px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
  }

  nav {
    gap: 10px 16px;
  }

  main {
    padding-top: 44px;
  }

  .columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf3ee;
    --muted: #b7c8c0;
    --paper: #10231e;
    --surface: #17332b;
    --line: #405b50;
    --gold: #e3bc77;
    --green: #f4ead3;
    --soft: #203b33;
  }

  .button {
    color: #10231e;
    background: #e3bc77;
    border-color: #e3bc77;
  }

  .button.secondary {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
  }
}
