/* AltForge public website. No external fonts or assets: system fonts only. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #4a5663;
  --border: #d5dbe1;
  --accent: #1f4e79;
  --accent-hover: #173b5c;
  --accent-ink: #ffffff;
  --focus: #b35c00;
  --error: #a4262c;
  --error-bg: #fdf1f1;
  --success: #1e6b3a;
  --success-bg: #eef7f0;
  --radius: 8px;
  --max: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --bg-alt: #171e26;
    --surface: #1b232c;
    --text: #e8edf2;
    --muted: #aab5c0;
    --border: #33404d;
    --accent: #8ec1ef;
    --accent-hover: #b3d6f5;
    --accent-ink: #0d1824;
    --focus: #ffb366;
    --error: #ff9b9b;
    --error-bg: #2c1a1c;
    --success: #8fd6a5;
    --success-bg: #16271c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; max-width: 22ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

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

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .container { padding: 0 1.5rem; } }
.narrow { max-width: 42rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.875rem; padding-bottom: 0.875rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
.wordmark-mark { color: var(--accent); flex: none; }
.wordmark-mark path { stroke: var(--bg); }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.button) { color: var(--muted); text-decoration: none; }
.nav-list a:not(.button):hover { color: var(--text); text-decoration: underline; }
@media (max-width: 40rem) { .nav-list li:not(:last-child) { display: none; } }

/* Buttons */
.button {
  display: inline-block; padding: 0.7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
}
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button-primary[disabled] { opacity: 0.65; cursor: progress; }
.button-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.button-secondary:hover { background: var(--bg-alt); }
.button-quiet { padding: 0.45rem 0.9rem; border-color: var(--border); color: var(--text); }
.button-quiet:hover { background: var(--bg-alt); color: var(--text); }

/* Sections */
.hero { padding: 4rem 0 3.5rem; }
@media (min-width: 48rem) { .hero { padding: 6rem 0 5rem; } }
.eyebrow { color: var(--muted); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.fine-print { font-size: 0.9rem; color: var(--muted); }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cards, .steps { display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
@media (min-width: 48rem) { .cards, .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card, .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.card p, .step p { color: var(--muted); }

.steps { counter-reset: step; }
.step { counter-increment: step; }
.step h3::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; margin-right: 0.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 0.95rem;
}

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .checks { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; } }
.checks li { padding-left: 1.75rem; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.55rem; height: 0.9rem; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.checks strong { color: var(--text); }

/* Form */
.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.optional, .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.hint { margin: 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 0.65rem 0.75rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--muted); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 6rem; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.checkbox { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.checkbox label { font-weight: 400; }
.form .button { justify-self: start; }
.form ~ .fine-print { margin-top: 1.5rem; }

/* Visually removed for people, still present for bots. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius); color: var(--error); background: var(--error-bg); border: 1px solid var(--error); }
.notice { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.notice-success { color: var(--success); background: var(--success-bg); border-color: var(--success); }
.notice p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { padding: 2.5rem 0; font-size: 0.92rem; color: var(--muted); }
.footer-inner p { margin: 0 0 0.5rem; }
.footer-inner p:last-child { margin: 0; }

/* Privacy notice */
.prose { padding: 3rem 0 4rem; }
.prose h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); max-width: none; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.draft-banner { padding: 0.75rem 1rem; border: 2px dashed var(--focus); border-radius: var(--radius); font-weight: 600; }
