:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f7f4f1;
  --text: #1f252b;
  --muted: #5f6871;
  --accent: #9a6537;
  --accent-soft: #eadfd5;
  --border: #dfd7cf;
  --code-bg: #f0ece8;
  --max: 72ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

code {
  border-radius: 4px;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero {
  padding: 48px 0 44px;
}

.brand-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.brand-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 6px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-byline {
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-byline a {
  color: var(--muted);
  text-decoration-thickness: 0.06em;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.24;
}

h1 {
  margin: 0 0 28px;
  font-size: 3.25rem;
  letter-spacing: 0;
}

h2 {
  margin: 56px 0 18px;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 8px;
  font-size: 1.65rem;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

p,
ul,
ol {
  margin: 0 0 1.15rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

.intro {
  color: var(--muted);
  font-size: 1.04rem;
}

.toc {
  margin: 40px 0 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.toc h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.toc-sections {
  margin-bottom: 0;
}

.screenshot {
  margin: 24px 0;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.screenshot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.section-illustration {
  margin: 20px 0 28px;
}

.section-illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.check-item {
  position: relative;
  margin: 0 0 22px;
  border-left: 3px solid var(--accent-soft);
  padding-left: 34px;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  transform: translateX(-10px);
  background: var(--bg);
}

.check-item::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.38rem;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.check-item h3 {
  scroll-margin-top: 18px;
}

.form-placeholder {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
}

.form-placeholder iframe {
  display: block;
  border: 0;
  max-width: 100%;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 24px 0;
}

.site-footer p {
  margin: 0;
}

.cta-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 14px 22px;
}

.cta-float:hover {
  background: #7f5229;
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding: 32px 0 32px;
  }

  .brand-bar-inner {
    padding: 10px 0;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .cta-float {
    right: 16px;
    bottom: 16px;
    font-size: 0.82rem;
    padding: 11px 16px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .toc {
    padding: 16px;
  }

  .check-item {
    padding-left: 26px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --surface: #1a1e22;
    --text: #edf0f2;
    --muted: #b5bdc5;
    --accent: #d6a16d;
    --accent-soft: #4a3524;
    --border: #303840;
    --code-bg: #262c32;
  }

  .cta-float {
    color: #241a10;
  }
}
