:root {
  color-scheme: light;
  --bg: #fffaf1;
  --surface: #ffffff;
  --text: #24332d;
  --muted: #65736d;
  --brand: #24745a;
  --brand-dark: #185541;
  --accent: #f3b63f;
  --line: #e5e9e6;
  --shadow: 0 18px 50px rgba(38, 64, 52, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(243, 182, 63, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.site-header {
  border-bottom: 1px solid rgba(36, 116, 90, 0.12);
  background: rgba(255, 250, 241, 0.9);
}

.nav {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 11px;
  background: var(--brand);
  color: white;
}

.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }

.page {
  width: min(820px, calc(100% - 32px));
  margin: 40px auto;
}

.document,
.hero {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(36, 116, 90, 0.1);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero { text-align: center; padding-block: clamp(56px, 9vw, 92px); }
.hero .mascot { font-size: 64px; line-height: 1; }

h1, h2 { line-height: 1.35; color: #18352b; }
h1 { margin: 16px 0 8px; font-size: clamp(30px, 6vw, 44px); }
h2 { margin: 38px 0 10px; font-size: 21px; }
p { margin: 10px 0; }

.subtitle { color: var(--muted); font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; }

.version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.version-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(36, 116, 90, 0.1);
  color: var(--brand-dark);
  font-weight: 650;
}

.history-list {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff8e8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.card:hover { border-color: rgba(36, 116, 90, 0.45); }
.card strong { display: block; color: var(--brand-dark); }
.card span { color: var(--muted); font-size: 14px; }

.form-stack { display: grid; gap: 14px; margin-top: 22px; }
.form-stack label { display: grid; gap: 6px; font-weight: 650; }
.form-stack input:not([type="checkbox"]) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: white;
  font: inherit;
}
.form-stack input[type="checkbox"] { width: auto; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
button {
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.danger { background: #c43d3d; }
button:disabled { cursor: wait; opacity: 0.6; }
.form-message { min-height: 1.8em; color: var(--muted); }
.form-message.error { color: #a72f2f; }
.form-message.success { color: var(--brand-dark); }

ol, ul { padding-left: 1.4em; }
li + li { margin-top: 8px; }

.site-footer {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 680px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 8px; }
  .nav-links { gap: 12px; }
  .page { margin-top: 24px; }
  .document, .hero { border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
}
