/* Bookflow marketing site — minimal, mobile-first */

:root {
  --bg: #faf7f2;
  --ink: #1a1814;
  --muted: #6b665e;
  --accent: #b8643a;
  --rule: #e8e2d6;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

header {
  border-bottom: 1px solid var(--rule);
  padding: 20px 24px;
}
header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  border-bottom: none;
}
header nav a {
  margin-left: 18px;
  color: var(--muted);
  font-size: 15px;
  border-bottom: none;
}
header nav a:hover { color: var(--ink); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  background: rgba(184, 100, 58, 0.06);
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer .wrap {
  max-width: var(--max);
  margin: 0 auto;
}
footer a { color: var(--muted); }

/* Landing page */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p { color: var(--muted); font-size: 19px; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.links a {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
}
.links a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* In-doc anchor target highlight (for #delete-account etc) */
:target {
  scroll-margin-top: 24px;
}
:target h2, :target h3 {
  background: rgba(184, 100, 58, 0.08);
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  main { padding: 32px 20px 64px; }
  h1 { font-size: 26px; }
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: 34px; }
  header nav a { margin-left: 12px; font-size: 14px; }
}
