:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #f0f4f8;
  --text: #17202a;
  --muted: #5c6672;
  --line: #d8dee8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --code-bg: #101820;
  --code-text: #e8f1f2;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

code,
pre {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-header {
  background: linear-gradient(180deg, #eaf4f2 0%, var(--bg) 100%);
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem 1.25rem;
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

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

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 4rem 1.25rem 5rem;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  max-width: 9.5em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-weight: 750;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.quick-card,
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-card {
  align-self: end;
  padding: 1.25rem;
}

.quick-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.quick-card ul,
.checklist ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 4rem 1.25rem;
}

.section.band {
  background: var(--surface-strong);
  max-width: none;
}

.section.band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.section-heading {
  margin-bottom: 1.6rem;
}

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

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

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

pre {
  background: var(--code-bg);
  border-radius: 8px;
  color: var(--code-text);
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
}

pre code {
  color: inherit;
  font-size: 0.9rem;
}

p code,
td code {
  background: #e8eef4;
  border-radius: 5px;
  color: #27313f;
  padding: 0.08rem 0.28rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
}

.snippet-list,
.checklist {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snippet-list article,
.checklist > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.snippet-list h3,
.checklist h3 {
  margin-bottom: 0.9rem;
}

.tools {
  padding-top: 2rem;
}

.tool-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-links a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 750;
  padding: 1rem;
  text-decoration: none;
}

.tool-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero,
  .guide-grid,
  .snippet-list,
  .checklist,
  .tool-links {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .quick-card {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }
}
