:root {
  --bg: #f7f6f3;
  --bg-elevated: #fcfbf8;
  --surface: #ffffff;
  --surface-soft: #faf7f4;
  --text: #1e1d1a;
  --text-strong: #141311;
  --muted: #66615a;
  --line: #e9e3dc;
  --line-strong: #ddd4ca;
  --accent: #ff5a47;
  --accent-strong: #ee4c38;
  --accent-soft: #fff0eb;
  --radius: 16px;
  --header-h: 72px;
  --max-w: 1280px;
  --shadow: 0 10px 30px rgba(22, 18, 14, 0.04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, pre {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
code {
  font-size: 0.92em;
  background: var(--accent-soft);
  color: #8b2d20;
  padding: 0.12rem 0.38rem;
  border: 1px solid #f4d2ca;
  border-radius: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(14px);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #f3d3cb;
  font-weight: 700;
  font-size: 0.82rem;
}
.brand-copy {
  display: grid;
  gap: 0.08rem;
}
.brand-copy strong {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-strong);
}
.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topnav a {
  position: relative;
  padding: 1.45rem 0 1.2rem;
  font-size: 0.98rem;
  color: var(--muted);
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.topnav a:hover,
.topnav a.active {
  color: var(--text-strong);
}
.topnav a.active::after,
.topnav a:hover::after {
  background: var(--accent);
}
.page-shell,
.faq-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
}
.page-shell-narrow {
  max-width: 900px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0 0.5rem;
}
.eyebrow,
.info-kicker,
.panel-kicker,
.faq-sidebar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hero-copy h1,
.compact-heading h1,
.section-heading h2 {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-strong);
  letter-spacing: -0.04em;
}
.hero-copy h1,
.compact-heading h1 {
  margin: 0.8rem 0 0.9rem;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 0.95;
}
.lead,
.section-heading p,
.feature-card p,
.info-card p,
.hero-panel p,
.steps-list li,
.markdown-surface p,
.markdown-surface li,
.hero-note,
.detail-card p {
  color: var(--muted);
  line-height: 1.78;
  font-size: 1rem;
}
.lead {
  max-width: 760px;
  font-size: 1.04rem;
}
.hero-note {
  margin: 0;
  max-width: 800px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button-primary:hover { background: var(--accent-strong); }
.button-secondary {
  background: var(--surface);
  color: var(--text-strong);
}
.text-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.surface-card,
.info-card,
.feature-card,
.gallery-card,
.hero-panel,
.faq-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel,
.info-card,
.feature-card,
.detail-card,
.faq-sidebar,
.markdown-surface {
  padding: 1.25rem;
}
.quick-grid,
.feature-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}
.quick-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-card h3,
.feature-card h3,
.hero-panel h2,
.detail-card h3,
.markdown-surface h2,
.markdown-surface h3 {
  margin: 0.7rem 0 0.45rem;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-strong);
  line-height: 1.25;
}
.info-card h3,
.feature-card h3,
.hero-panel h2,
.detail-card h3,
.markdown-surface h3 {
  font-size: 1.04rem;
}
.section-block { padding-top: 3.5rem; }
.section-heading {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.section-heading-left {
  text-align: left;
  margin-left: 0;
}
.section-heading h2 {
  margin: 0.7rem 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}
.compact-heading { margin-bottom: 1rem; }
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.steps-list li {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-card {
  overflow: hidden;
  background: var(--surface-soft);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #f1ece7;
}
.gallery-card figcaption {
  padding: 0.95rem 1rem 1rem;
  color: var(--muted);
}
.faq-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.faq-nav {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.85rem;
}
.faq-nav-link {
  display: block;
  padding: 0.78rem 0.9rem;
  color: var(--muted);
  border-radius: 12px;
}
.faq-nav-link:hover,
.faq-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.faq-content-wrap { min-width: 0; }
.markdown-surface h1,
.markdown-surface h2 {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-strong);
}
.markdown-surface h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}
.markdown-surface h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.markdown-surface p,
.markdown-surface ul,
.markdown-surface pre {
  margin: 0 0 1rem;
}
.markdown-surface ul {
  padding-left: 1.2rem;
}
.markdown-surface li + li { margin-top: 0.55rem; }
.markdown-surface a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.markdown-surface pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #1f1b19;
  color: #f7f1eb;
}
.loading { color: var(--muted); }
.privacy-copy h2:first-child { margin-top: 0; }
@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .faq-shell,
  .quick-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .faq-sidebar {
    position: static;
  }
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 0.7rem;
    padding-bottom: 0.25rem;
  }
  .topnav {
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .topnav a {
    padding-top: 0.3rem;
    padding-bottom: 0.8rem;
  }
}
@media (max-width: 640px) {
  .page-shell,
  .faq-shell {
    padding: 1.4rem 1rem 3rem;
  }
  .hero-copy h1,
  .compact-heading h1 {
    font-size: 2.5rem;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .brand-copy small { display: none; }
}
