/* AchoForge: one small stylesheet, system fonts only (no external requests). */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #5e5850;
  --line: #e4ded4;
  --accent: #c2410c;
  --accent-soft: #fbe9df;
  --ink: #23201c;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1c1a17;
    --text: #efeae2;
    --muted: #aaa298;
    --line: #2f2b26;
    --accent: #fb923c;
    --accent-soft: #2c1d13;
    --ink: #0d0c0a;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 72px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 16ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #1a0f08; } }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { padding-left: 28px; position: relative; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.points strong { color: var(--text); font-weight: 600; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.note p { margin: 0 0 10px; }
.note p:last-child { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Long text (privacy policy) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.05rem; margin: 26px 0 6px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.94rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--accent-soft); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

/* Marks text the owner must complete before publishing (see README). */
.pending { background: #fde68a; color: #3b2a00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 14px; padding-bottom: 14px; gap: 8px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  section { padding: 48px 0; }
}
