/* Futzs — design tokens and components.
   Values lifted from the design comps; change them here, not per page. */

:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --panel: #f8f4f4;
  --text: #201f1d;
  --muted: rgba(32, 31, 29, 0.7);
  --faint: rgba(32, 31, 29, 0.55);
  --divider: rgba(32, 31, 29, 0.16);
  --accent: #b68235;
  --accent-strong: #a06f24;
  --accent-deep: #7d5411;
  --accent-tint: rgba(182, 130, 53, 0.12);

  --font-heading: 'Familjen Grotesk', system-ui, sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --radius: 4px;
  --radius-pill: 999px;
  --page: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: pretty;
}

h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 26px; }

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(182, 130, 53, 0.22); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lede { font-size: 17.5px; line-height: 1.75; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.meta { font-size: 13.5px; color: var(--faint); }
.back { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong); }

/* ── nav ─────────────────────────────────────────────── */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-drop-panel a.is-current { background: var(--accent-tint); }
.nav-shell.has-sub { border-radius: 26px; }

.nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  gap: 22px;
  padding: 8px 10px 8px 18px;
}

.nav-brand img { height: 25px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 2px; }

.nav-link {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: rgba(32, 31, 29, 0.66);
  white-space: nowrap;
}
.nav-link:hover { background: var(--accent-tint); color: var(--text); }
.nav-link.is-current { color: var(--accent); }
.caret { font-size: 9px; opacity: 0.65; }

.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: -8px;
  width: 272px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(32, 31, 29, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
}
/* Bridge the 12px gap between the trigger and the panel, so moving the pointer
   down into the panel does not drop out of .nav-drop:hover and close it. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop-panel a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--text); }
.nav-drop-panel a:hover { background: rgba(182, 130, 53, 0.1); }
.nav-drop-panel strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.nav-drop-panel span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.nav-drop-panel hr { border: 0; border-top: 1px solid var(--divider); margin: 5px 3px; }
.nav-drop-all { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* Hamburger: hidden until the links stop fitting on one row. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  background: var(--panel);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .15s ease;
}
.nav-shell.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-shell.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-shell.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Two classes, so this beats the later `.btn { display: inline-block }` —
   otherwise the panel CTA also shows on desktop and Contact appears twice. */
.nav-links .nav-cta-inline { display: none; }

.nav-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 2px 14px 9px;
  margin-top: -2px;
}
.nav-subrow-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  padding-right: 12px;
  margin-right: 8px;
  border-right: 1px solid var(--divider);
  white-space: nowrap;
}
.nav-sublink {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--faint);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-sublink:hover, .nav-sublink.is-active { color: var(--accent); }

/* ── buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}
.btn-primary { border-color: var(--accent-strong); color: var(--accent); }
.btn-primary:hover { background: rgba(182, 130, 53, 0.14); color: var(--accent); }
.btn-secondary { border-color: rgba(32, 31, 29, 0.24); }
.btn-secondary:hover { background: rgba(32, 31, 29, 0.06); }
.btn-pill { padding: 8px 18px; font-size: 14px; border-radius: var(--radius-pill); border-color: var(--accent-strong); color: var(--accent); }
.btn-pill:hover { background: rgba(182, 130, 53, 0.14); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

/* ── layout blocks ───────────────────────────────────── */

.page-head {
  max-width: var(--page);
  margin: 0 auto;
  padding: 70px var(--gutter) 46px;
  border-bottom: 1px solid var(--divider);
}
.page-head h1 { margin-top: 14px; }
.page-head .lede { margin-top: 18px; }

.app-head {
  max-width: var(--page);
  margin: 0 auto;
  padding: 66px var(--gutter) 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}
.app-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.plate {
  border: 6px solid var(--surface);
  outline: 1px solid var(--divider);
  width: 100%;
}

.cols-3 {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
  border-top: 1px solid var(--divider);
}
.cols-3 > div { padding: 40px 32px 40px 0; }
.cols-3 > div + div { border-left: 1px solid var(--divider); padding-left: 32px; }
.cols-3 h3 { margin-bottom: 10px; font-size: 25px; }
.cols-3 p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }

.card-grid, .post-grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  color: var(--text);
}
.card:hover { border-color: rgba(182, 130, 53, 0.55); background: rgba(182, 130, 53, 0.04); color: var(--text); }
.card p { flex: 1; font-size: 15.5px; color: var(--muted); }

.cta-band {
  max-width: var(--page);
  margin: 0 auto;
  padding: 76px var(--gutter) 96px;
}
.cta-band > div, .cta-band > a { }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

/* ── prose ───────────────────────────────────────────── */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px var(--gutter) 96px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(32, 31, 29, 0.78);
}
.prose h2 { margin: 46px 0 16px; font-size: 28px; }
.prose h3 { margin: 34px 0 12px; font-size: 22px; }
.prose p { margin-bottom: 18px; }
.prose ol, .prose ul { padding-left: 22px; line-height: 1.9; }
.prose blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(182, 130, 53, 0.06);
  font-style: normal;
}
/* `!!! note "Title"` blocks from the markdown admonition extension */
.admonition {
  margin: 30px 0;
  padding: 20px 24px;
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(182, 130, 53, 0.06);
}
.admonition > :last-child { margin-bottom: 0; }
.admonition-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.admonition.warning { border-left-color: #b4451f; background: rgba(180, 69, 31, 0.06); }
.admonition.warning .admonition-title { color: #b4451f; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border: 1px solid rgba(32, 31, 29, 0.14);
  border-radius: 3px;
  background: rgba(32, 31, 29, 0.04);
}
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 15px; }
.prose td, .prose th { padding: 12px 18px; border-bottom: 1px solid rgba(32, 31, 29, 0.12); text-align: left; }

.post { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 0; }
.post .prose { padding-left: 0; padding-right: 0; max-width: none; }

/* ── docs ────────────────────────────────────────────── */

.docs-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 208px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 63px;
  max-height: calc(100vh - 63px);
  overflow-y: auto;
  padding: 34px 24px 60px clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--divider);
}
.docs-group { margin-bottom: 28px; }
.docs-group-title {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(32, 31, 29, 0.45);
  margin-bottom: 10px;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: rgba(32, 31, 29, 0.66);
}
.docs-nav a:hover { background: rgba(32, 31, 29, 0.04); color: var(--text); }
.docs-nav a.is-active { color: var(--accent); background: rgba(182, 130, 53, 0.1); font-weight: 500; }
.docs-nav-foot { padding-top: 18px; border-top: 1px solid rgba(32, 31, 29, 0.14); }
/* Sizing lives with the other .docs-main.prose rules further down. */
.docs-toc { position: sticky; top: 63px; padding: 46px clamp(20px, 3vw, 32px) 60px 0; }
.docs-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--divider);
  font-size: 13.5px;
  color: rgba(32, 31, 29, 0.6);
}
.docs-toc a.is-active { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }

@media (max-width: 980px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-nav {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--divider);
    padding: 24px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 0 36px;
  }
  .docs-nav-foot { flex: 0 0 100%; border-top: 0; padding-top: 0; margin-top: 4px; white-space: nowrap; }
  .docs-toc { display: none; }
}

/* ── footer ──────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 72px var(--gutter) 40px;
}
.footer-grid {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 56px;
}
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 30ch; font-size: 14.5px; color: var(--muted); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(32, 31, 29, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-social a:hover { border-color: var(--accent-strong); color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14.5px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-base {
  max-width: var(--page);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(32, 31, 29, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}


/* ── home ────────────────────────────────────────────── */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 76px var(--gutter) 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-copy h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.06; }
.hero-copy h1 em { color: var(--accent); font-style: italic; }
.hero-art { width: 100%; max-width: 520px; justify-self: center; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 480px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  font-size: 13.5px;
  color: var(--muted);
}
.stars { color: var(--accent); letter-spacing: 0.1em; }

.marquee-band { padding: 64px 0 8px; }
.marquee-label {
  margin-bottom: 26px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(32, 31, 29, 0.5);
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track img { height: 34px; width: auto; margin-right: 64px; opacity: 0.72; filter: grayscale(0.25); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.section-head {
  max-width: var(--page);
  margin: 0 auto;
  padding: 96px var(--gutter) 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--divider);
}
.section-head h2 { margin-top: 10px; }
.section-more, .more { font-family: var(--font-heading); font-weight: 500; font-size: 14px; color: var(--accent); }

.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card-grid { padding-top: 44px; }
.app-card-head { display: flex; align-items: flex-start; gap: 16px; }
.app-mark {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--accent-strong);
}
.app-card h3 { font-size: 28px; }
.app-card-meta { margin-top: 5px; font-size: 12.5px; color: var(--faint); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }

.quote-band {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
  padding: 84px var(--gutter);
  text-align: center;
}
.quote-band blockquote {
  margin: 24px auto 0;
  max-width: 30ch;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.25;
}
.quote-band .meta { margin-top: 24px; }

.split-band {
  max-width: var(--page);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}

.feature-band {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 90px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px;
  align-items: center;
  max-width: none;
}
.feature-band > div { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
/* open-source library band (GAPPS): copy left, plate right */
.library-band { border-bottom: 1px solid var(--divider); }
.library-band .plate { border-color: var(--panel); background: var(--panel); }
.library-band .lede { max-width: 52ch; }

.feature-band.as-link { background: transparent; border-top: 0; max-width: var(--page); margin: 0 auto; padding-top: 56px; border-bottom: 1px solid var(--divider); }
.feature-band h2 a { color: var(--text); }
.feature-band h2 a:hover { color: var(--accent); }

.related-list { display: flex; flex-direction: column; gap: 2px; }
.related-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.related-item:hover { border-color: var(--accent); background: var(--accent-tint); }
.related-item strong { display: block; font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.related-item span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--faint); }

/* ── faq ─────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--divider); }
.faq-item { border-top: 1px solid var(--divider); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-sign::after { content: "+"; font-size: 18px; color: var(--accent-strong); }
.faq-item[open] .faq-sign::after { content: "\2013"; }
.faq-item p { padding: 0 2px 24px; max-width: 68ch; font-size: 15.5px; color: var(--muted); }

.faq-band { max-width: var(--page); margin: 0 auto; padding: 76px var(--gutter) 0; }
.faq-band.narrow { max-width: 900px; }
.faq-band h2 { margin-bottom: 20px; }

/* ── app page ────────────────────────────────────────── */

.anchor { scroll-margin-top: 150px; }
.badge {
  padding: 4px 12px;
  border: 1px solid rgba(182, 130, 53, 0.5);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(32, 31, 29, 0.05) 0 12px, transparent 12px 24px);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(32, 31, 29, 0.45);
}
.steps-band { max-width: var(--page); margin: 0 auto; padding: 76px var(--gutter) 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--divider);
}
.step { padding: 28px 28px 28px 0; }
.step-n { font-family: var(--font-heading); font-size: 15px; color: var(--accent-strong); font-feature-settings: "tnum"; margin-bottom: 10px; }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }

.cta-wrap { max-width: var(--page); margin: 0 auto; padding: 76px var(--gutter) 96px; }
.cta-band {
  padding: 44px;
  border: 1px solid rgba(182, 130, 53, 0.42);
  border-radius: var(--radius);
}
.cta-band.inline { margin-top: 56px; padding: 34px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 38px); }
.cta-band .muted { margin-top: 10px; }

/* ── about, contact, blog ────────────────────────────── */

h1.tight { max-width: 20ch; }
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--divider); }
.fact-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.fact-value { font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--text); }
a.fact-value:hover { color: var(--accent); }

.contact-grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 70px var(--gutter) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 80px;
  align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--divider); }
.contact-email { font-family: var(--font-heading); font-weight: 600; font-size: 22px; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 22px;
  padding: 40px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide, .contact-form .btn { grid-column: 1 / -1; }
.contact-form .btn { justify-self: start; }
.field span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.input {
  min-height: 42px;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(32, 31, 29, 0.22);
  border-radius: var(--radius);
}
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea.input { resize: vertical; line-height: 1.6; }

.post-meta { display: flex; gap: 12px; margin-top: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: var(--faint); }
.prose.flush { max-width: none; margin: 0; padding: 34px 0 0; }
.plate-link { display: block; }

/* ── docs ────────────────────────────────────────────── */

.docs-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  border-bottom: 1px solid var(--divider);
  background: rgba(248, 244, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.docs-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px clamp(20px, 3vw, 32px);
}
.docs-bar-title { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.docs-search { position: relative; }
.docs-search .input { min-width: 220px; min-height: 34px; border-radius: var(--radius-pill); }
.docs-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  max-width: 80vw;
  padding: 6px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-md, 0 14px 34px rgba(32, 31, 29, 0.14));
  z-index: 60;
}
.docs-results a { display: block; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; color: var(--text); }
.docs-results a:hover { background: rgba(182, 130, 53, 0.1); }
.docs-noresult { padding: 9px 12px; font-size: 14px; color: var(--faint); }

.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--faint); }
.crumbs .here { color: rgba(32, 31, 29, 0.75); }
/* The docs column is a reading column: cap the measure and give the page
   title real room below it, rather than letting text run the full width. */
/* The element is `.docs-main.prose.flush`, and `.prose.flush` above resets
   max-width/margin/padding. Match its specificity or the reading measure is
   never applied and the text runs the full width of the window. */
.docs-main.prose {
  max-width: 760px;
  margin: 0;
  padding: 40px clamp(24px, 4vw, 56px) 96px;
  font-size: 16.5px;
  line-height: 1.75;
}
.docs-main h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 30px; }
.docs-main h2 { font-size: 24px; margin: 52px 0 14px; }
.docs-main h3 { font-size: 19px; margin: 34px 0 10px; }
.docs-main h2, .docs-main h3 { scroll-margin-top: 120px; }
.docs-main .admonition { margin: 26px 0; }
.docs-main p { margin-bottom: 16px; }
.docs-toc a.sub { padding-left: 26px; font-size: 13px; }
.docs-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.docs-foot-link {
  flex: 1;
  min-width: 220px;
  padding: 20px 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
}
.docs-foot-link.right { text-align: right; }
.docs-foot-link:hover { border-color: rgba(182, 130, 53, 0.55); }
.docs-foot-link span { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.docs-foot-link strong { display: block; margin-top: 6px; font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--text); }

/* ── mobile ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-wrap { padding: 10px 12px; }
  .nav-shell {
    position: relative;
    width: 100%;
    border-radius: var(--radius-pill);
    border: 1px solid var(--divider);
    background: rgba(248, 244, 244, 0.94);
  }
  .nav-shell.has-sub { border-radius: 22px; }
  .nav-row { flex-wrap: nowrap; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-inline { display: block; margin-top: 8px; text-align: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--divider);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 18px 40px rgba(32, 31, 29, 0.16);
  }
  .nav-shell.is-open .nav-links { display: flex; }
  .nav-link { font-size: 15.5px; padding: 11px 13px; }

  /* Hover dropdowns do not work on touch: show the apps inline instead. */
  .nav-drop { position: static; }
  .nav-drop-panel {
    position: static;
    width: auto;
    margin: 2px 0 6px 10px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 1px solid var(--divider);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-drop-panel::before { display: none; }
  .nav-drop-panel span { display: none; }
  .nav-drop-panel hr { display: none; }

  .nav-subrow { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 2px 14px 8px; -webkit-overflow-scrolling: touch; }
  .nav-subrow::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
  .hero { padding-top: 34px; gap: 34px; }
  .hero-proof { font-size: 13px; }
  .app-head, .split-band, .feature-band { gap: 34px; }
  .app-head { padding-top: 40px; padding-bottom: 36px; }
  .page-head { padding-top: 44px; padding-bottom: 32px; }
  .card-grid, .post-grid { padding-top: 32px; padding-bottom: 56px; gap: 18px; }
  .split-band, .steps-band { padding-top: 56px; padding-bottom: 0; }
  .feature-band { padding-top: 56px; padding-bottom: 56px; }
  .quote-band { padding: 56px var(--gutter); }

  /* Vertical rules between columns only read as columns side by side. */
  .cols-3 > div { padding: 26px 0; }
  .cols-3 > div + div { border-left: 0; border-top: 1px solid var(--divider); padding-left: 0; }

  .btn { padding: 12px 20px; font-size: 15px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }

  .prose { padding-bottom: 56px; font-size: 16px; }
  /* Wide tables scroll inside themselves rather than widening the page. */
  .prose table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

  .docs-bar-in { gap: 10px; padding: 10px var(--gutter); }
  .docs-search { flex: 1 1 100%; }
  .docs-search .input { width: 100%; min-width: 0; }
  .docs-main.prose { padding: 30px var(--gutter) 64px; }
  .docs-foot { flex-direction: column; }
  .docs-foot-link, .docs-foot-link.right { text-align: left; min-width: 0; }

  .footer-grid { gap: 30px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 460px) {
  .nav-brand img { height: 22px; }
  h3 { font-size: 22px; }
  .cols-3 h3 { font-size: 21px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ── about: manifesto card ───────────────────────────── */

.manifesto-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}

.manifesto {
  position: relative;
  padding: clamp(30px, 5vw, 64px);
  background: #e7e3da;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(32, 31, 29, 0.16);
  transform: rotate(-0.35deg);
  /* The clip leaves the bottom-right corner empty for the fold. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 78px), calc(100% - 78px) 100%, 0 100%);
}
/* The turned-up corner sitting in that gap. */
.manifesto::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78px;
  height: 78px;
  background: linear-gradient(315deg, var(--bg) 0 50%, #d5d0c5 50% 100%);
  box-shadow: -3px -3px 8px rgba(32, 31, 29, 0.14);
}

.manifesto-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #f6f3ee;
  box-shadow: 0 4px 14px rgba(32, 31, 29, 0.16);
  object-fit: cover;
}
.manifesto-avatar.is-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fdfaf5;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.manifesto h1 {
  margin: 34px 0 30px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.manifesto-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(32, 31, 29, 0.82);
}
.manifesto-body p { margin-bottom: 26px; }
.manifesto-body p:last-child { margin-bottom: 0; }
.manifesto-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(182, 130, 53, 0.6); }
.manifesto-body a:hover { color: var(--accent-deep); }
/* The closing paragraph is the thesis: set it apart in the accent colour. */
.manifesto-body .manifesto-thesis { color: var(--accent-strong); }
.manifesto-body .manifesto-thesis a { color: inherit; text-decoration-color: currentColor; }

.manifesto-sign { margin-top: 52px; }
.signature {
  display: block;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text);
}
.manifesto-sign .role {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--faint);
}

/* Flex, not a grid: with only a couple of facts an auto-fit grid stretches
   them across the full width. */
.manifesto-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 56px;
  margin: 64px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--divider);
}
.manifesto-facts dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.manifesto-facts dd {
  margin: 7px 0 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 700px) {
  .manifesto-wrap { padding-top: 30px; padding-bottom: 64px; }
  .manifesto { transform: none; }
  .manifesto-body { font-size: 14.5px; line-height: 1.85; }
  .manifesto-sign { margin-top: 40px; }
}
