:root {
  color-scheme: light dark;
  --brand: #f5b800;
  --brand-pressed: #d99d00;
  --brand-soft: #fff4cc;
  --graphite: #202329;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #656970;
  --border: #dddfdb;
  --focus: #b98200;
  --danger: #c63e3e;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --shadow: 0 10px 30px rgb(27 29 33 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ffc62e;
    --brand-pressed: #e5ab00;
    --brand-soft: #3a3015;
    --graphite: #f4f5f3;
    --background: #111315;
    --surface: #1a1d20;
    --text: #f4f5f3;
    --muted: #aeb3b8;
    --border: #34393f;
    --focus: #ffc62e;
    --danger: #f07777;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  background: #202329;
  color: #ffffff;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-link img {
  display: block;
  width: 126px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

.page {
  padding-block: 56px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  max-width: 720px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 40px;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

p,
ul,
ol {
  max-width: 760px;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  border-radius: var(--radius-medium);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.card {
  display: block;
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.card h2 {
  margin: 0;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-medium);
  background: var(--brand);
  color: #171717;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-pressed);
}

.danger-link {
  color: var(--danger);
  font-weight: 600;
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 28px 0 36px;
  padding: 16px 0;
  border-block: 1px solid var(--border);
  font-size: 0.925rem;
}

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  width: 30%;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .page {
    padding-block: 38px 56px;
  }

  .hero {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

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

  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
