:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --card: #ffffff;
  --ink: #202523;
  --muted: #626c67;
  --line: #dfe4df;
  --accent: #27644b;
  --soft: #edf3ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: auto;
  padding: 28px 24px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
#status {
  font-size: 12px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
nav a {
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
nav a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}
main {
  max-width: 1052px;
  margin: auto;
  padding: 32px 24px 64px;
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.3px;
  font-weight: 650;
  margin: 0 0 20px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 32px 0 16px;
}
p {
  max-width: 68ch;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--card);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: inline-block;
  text-decoration: none;
}
button.secondary {
  background: var(--soft);
  color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  margin: 8px 0 20px;
}
label {
  font-weight: 600;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
a.card:hover {
  border-color: var(--accent);
  background: var(--soft);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
.card span {
  font-size: 14px;
}
.card h2 {
  margin-top: 0;
}
.muted,
small {
  color: var(--muted);
}
.hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.hero small {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero p {
  max-width: 50ch;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero .row {
  margin-bottom: 0;
}
.hero .text-link {
  margin-left: 16px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.reader {
  max-width: 820px;
  background: var(--card);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.reader img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.reader pre {
  overflow: auto;
  background: var(--soft);
  padding: 16px;
}
.reader code {
  font-size: 0.9em;
}
.reader table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.reader td,
.reader th {
  border: 1px solid var(--line);
  padding: 8px;
}
.reader .custom-container {
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  margin: 16px 0;
}
.reader .danger {
  border-color: #bd3d3d;
}
.reader .warning {
  border-color: #bc8426;
}
.reader .tab-container input[type="radio"] {
  width: auto;
  margin: 10px;
}
.reader .tab-container label {
  margin-right: 12px;
}
footer {
  max-width: 1004px;
  margin: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 22px 24px;
}
.notice {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151917;
    --card: #1d2320;
    --ink: #edf0ec;
    --muted: #a5b0a8;
    --line: #343d37;
    --soft: #24362b;
    --accent: #9ccbb0;
  }
}
@media (max-width: 550px) {
  header {
    padding: 20px 16px 14px;
    align-items: flex-start;
  }
  #status {
    max-width: 110px;
    text-align: right;
    line-height: 1.4;
  }
  main {
    padding: 20px 16px 48px;
  }
  nav {
    padding: 0 16px;
    gap: 22px;
  }
  .hero {
    padding: 24px 0 28px;
  }
  .reader {
    padding: 18px;
  }
  .brand {
    font-size: 18px;
  }
}
