:root {
  --bg: #f7f3ea;
  --surface: #efe8da;
  --ink: #1c2430;
  --muted: #626c77;
  --line: #d6cdbd;
  --accent: #1f5f76;
  --accent-strong: #173f53;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a,
button {
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(31, 95, 118, 0.38);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(214, 205, 189, 0.95);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(12px);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav,
.header-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav {
  row-gap: 0.45rem;
}

.site-nav a,
.header-links a,
.footer-links a {
  text-decoration: none;
}

.site-nav a,
.subtle-link,
.footer-links a {
  color: var(--muted);
}

.site-nav a:hover,
.subtle-link:hover,
.footer-links a:hover,
.resource-link:hover,
.download-link a:hover {
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.button-small {
  padding: 0.65rem 1rem;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.hero {
  padding: 7rem 0 4.5rem;
}

.hero-wrap {
  max-width: 1040px;
}

.eyebrow,
.section-index,
.label,
.placeholder-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
ul,
pre {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.lead {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-install {
  margin: 2.2rem 0 1rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 232, 218, 0.82), rgba(247, 243, 234, 0.95));
  box-shadow: 0 14px 30px rgba(28, 36, 48, 0.05);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: 2.8rem 0;
}

.section-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.compact-section .section-body {
  max-width: 820px;
}

.section-heading {
  position: relative;
  min-width: 0;
}

.section-heading h2 {
  overflow-wrap: anywhere;
}

.section-body {
  min-width: 0;
}

.narrow-copy {
  max-width: 760px;
}

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

.install-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.install-heading .label {
  margin-bottom: 0;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(28, 36, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--accent-strong);
  border-color: rgba(23, 63, 83, 0.28);
}

.copy-button.is-copied {
  color: var(--accent-strong);
  border-color: rgba(23, 63, 83, 0.28);
  background: rgba(31, 95, 118, 0.08);
}

.copy-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.copy-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.7rem;
}

pre {
  overflow-x: auto;
  margin-bottom: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(28, 36, 48, 0.12);
  border-radius: 12px;
  background: rgba(28, 36, 48, 0.06);
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.download-link {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.download-link a {
  color: var(--accent-strong);
}

.statement-list p {
  margin-bottom: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}

.statement-list p:first-child {
  padding-top: 0;
}

.statement-list p:last-child {
  border-bottom: 0;
}

.resource-list {
  display: grid;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.resource-name {
  font-weight: 600;
}

.resource-link {
  text-decoration: none;
}

.resource-copy {
  color: var(--muted);
}

.contact-line {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1.1rem;
}

.contact-line p {
  margin-bottom: 0;
}

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

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .section-wrap,
  .feature-columns,
  .install-layout,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .header-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .footer-links {
    gap: 0.65rem 1rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 11vw, 4.8rem);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 4.5rem 0 3rem;
  }

  .hero-install {
    padding: 1.2rem;
  }

  .install-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-meta,
  .contact-line {
    gap: 0.8rem 1.2rem;
  }

  .section {
    padding: 2.2rem 0;
  }
}
