/* Bhud landing page (draft). Plain CSS, no build step. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F6F5F0;
  --ink: #1C1A16;
  --muted: #5B574E;      /* ~6.6:1 on bg */
  --rule: #D9D6CB;
  --card: #FBFAF6;
  --accent: #1F5D50;     /* the one accent: buttons and links only */
  --accent-dark: #174A40;

  --head: "Space Grotesk", "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }
@media (min-width: 48em) { .wrap { width: min(100% - 8vw, 68rem); } }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }

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

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 10; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { padding: 1.5rem 0; }
.wordmark {
  font-family: var(--head); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: -0.025em; margin: 0; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 8vw, 5.5rem); max-width: 14ch; }
h2 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1.1em; }

.label {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem;
}

/* Hero */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem); }
.hero h1 { margin-bottom: 1.75rem; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; max-width: 34rem; margin-bottom: 2.25rem; }

/* Button: the only one */
.button {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--body); font-weight: 600; font-size: 1.0625rem; line-height: 1;
  padding: 1.05rem 1.9rem; border: 0; border-radius: 3px;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 1.75rem; }
.prose { max-width: 40rem; }
.prose p { margin-bottom: 1em; }

/* What we take off your plate */
.plate { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: 44rem; }
.plate li { padding: 1.5rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.35rem; }
.plate li:last-child { border-bottom: 1px solid var(--rule); }
.plate p { margin: 0; color: var(--muted); }
@media (min-width: 48em) {
  .plate li { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; }
}

/* Example cards */
.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 52em) { .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.card { background: var(--card); border: 1px solid var(--ink); border-radius: 4px; padding: 1.75rem; }
.card h3 { margin-bottom: 1.25rem; font-size: 1.5rem; }
.tag {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.75rem;
}
.card dl { margin: 0; }
.card dl > div { padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.card dt {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 0.2rem;
}
.card dd { margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; max-width: 44rem; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps h3::before {
  content: counter(step) ". "; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 1rem;
}
.steps p { margin: 0; max-width: 34rem; }
@media (min-width: 48em) {
  .steps li { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; }
}

/* FAQ */
.faq { margin-top: 2.5rem; max-width: 44rem; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.4rem; max-width: 38rem; color: var(--ink); }

/* Form */
.form { margin-top: 2.5rem; max-width: 36rem; }
.field { margin-bottom: 1.4rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.98rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8C877A; border-radius: 3px; padding: 0.8rem 0.9rem; min-height: 3rem;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #9B2C1A; border-width: 2px; }
.error { color: #8A2616; font-weight: 600; margin: 0 0 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { margin-top: 2.5rem; max-width: 36rem; padding: 1.75rem; border: 1px solid var(--ink); background: var(--card); border-radius: 4px; }
.success h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.success p { margin: 0; }
.success:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.note { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; }
.site-footer p { margin: 0 0 0.3rem; }
.small { color: var(--muted); font-size: 0.9rem; }
.placeholder { color: var(--muted); font-style: italic; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
