/* CowboyAI Scribe Factory — bareio.com
   Mobile-first, system fonts, no frameworks */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --surface:   #f5f5f3;
  --border:    #e0ddd8;
  --text:      #1a1a18;
  --muted:     #6b6860;
  --accent:    #b85c00;        /* warm amber — one accent, used sparingly */
  --accent-dk: #8f4600;
  --max-w:     860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Layout wrapper ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

header .container {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.wordmark span {
  color: var(--accent);
}

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  margin-left: auto;
}

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 1.25rem;
}
nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-body {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.hero-body p + p {
  margin-top: 0.75rem;
}

/* ── Form section ────────────────────────────────────────── */
.form-section {
  padding: 2.5rem 0 3rem;
  flex: 1;
}

.form-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.form-wrap {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.form-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--accent);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  nav {
    margin-left: 0;
    width: 100%;
  }

  nav a:first-child {
    margin-left: 0;
  }
}
