:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #ece7dc;
  --ink: #17201c;
  --muted: #647069;
  --line: #ddd6ca;
  --green: #1f8a5b;
  --blue: #356db1;
  --gold: #b17817;
  --rose: #b34d5d;
  --shadow: 0 22px 70px rgba(38, 31, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 360px),
    radial-gradient(circle at 12% 8%, rgba(31, 138, 91, 0.12), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(53, 109, 177, 0.12), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: min(228px, 48vw);
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  border: 1px solid transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.page {
  padding: 34px 0 72px;
}

.hero {
  max-width: 870px;
  padding: 44px 0 38px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 830px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 820;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 760;
}

.hero p {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 11px 17px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff8ec;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-strip div {
  min-height: 118px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 1.03rem;
}

.feature-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.doc-section {
  margin-top: 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.doc-card {
  min-height: 230px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.doc-card:hover,
.doc-card:focus {
  border-color: rgba(23, 32, 28, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.doc-card span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.doc-card h3 {
  margin-bottom: 12px;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.accent-green {
  border-top: 5px solid var(--green);
}

.accent-blue {
  border-top: 5px solid var(--blue);
}

.accent-gold {
  border-top: 5px solid var(--gold);
}

.accent-rose {
  border-top: 5px solid var(--rose);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.link-list a {
  min-height: 82px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus {
  background: var(--surface);
}

.page > h1,
.page > h2,
.page > h3,
.page > p,
.page > ul,
.page > ol,
.page > table,
.page > blockquote,
.page > pre {
  max-width: 850px;
}

.page > h1 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page > h2 {
  margin-top: 46px;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.page > h3 {
  margin-top: 34px;
  margin-bottom: 8px;
}

.page > p,
.page > ul,
.page > ol {
  color: #33413b;
}

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

code {
  background: rgba(23, 32, 28, 0.08);
  padding: 0.12em 0.28em;
}

pre {
  overflow: auto;
  border: 1px solid var(--line);
  background: #151c18;
  color: #f7f2e8;
  padding: 18px;
}

pre code {
  background: transparent;
  padding: 0;
}

table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

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

.site-footer {
  padding: 0 0 42px;
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.4fr);
  gap: 42px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(23, 32, 28, 0.96), rgba(33, 47, 40, 0.94)),
    var(--ink);
  color: #fff8ec;
  padding: 34px;
  box-shadow: var(--shadow);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: -20px 0 -18px -24px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.2;
}

.footer-brand p {
  max-width: 270px;
  margin: 10px 0 0;
  color: rgba(255, 248, 236, 0.7);
  line-height: 1.45;
}

.github-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  padding: 8px 10px;
  color: #fff8ec;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}

.github-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.github-icon-link:hover,
.github-icon-link:focus {
  background: rgba(255, 248, 236, 0.1);
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: rgba(255, 248, 236, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: #fff8ec;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-bottom a:hover,
.footer-bottom a:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-strip,
  .doc-grid,
  .link-list,
  .section-heading,
  .footer-panel,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .doc-card {
    min-height: 190px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .page {
    width: min(100% - 28px, 1120px);
  }

  .page {
    padding-top: 28px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.04rem;
  }
}
