:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --border: #d7dee8;
  --accent: #b98a00;
  --accent-2: #2f9f78;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

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

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a,
.content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.nav .back-link,
.page-back {
  color: var(--accent-2);
}

.page-back {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 800;
}

.nav a:hover,
.content a:hover {
  text-decoration: underline;
}

.content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 30px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
}

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

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.notice {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 880px);
    padding-top: 20px;
  }

  .content {
    padding: 22px 18px;
    border-radius: 10px;
  }
}
