/* Thinking Pen — marketing/signup/account site.
   Single stylesheet, no CDN, no build step, matching the rest of this
   codebase's dependency-free style (internal/api/dashboard.html,
   admin_session.go's login page). Warm, letterhead/stationery feel: cream
   paper background, ink-navy text, a serif display face from the system
   stack only (no @font-face, no external font host — architecture.md
   "No CDN, no edge"). */

:root {
  --paper: #faf6ef;
  --paper-raised: #ffffff;
  --ink: #2b2620;
  --ink-soft: #5a5044;
  --line: #e4dccb;
  --accent: #7a3b2e;      /* sealing-wax red-brown */
  --accent-soft: #f3e6dd;
  --accent-hover: #5e2c22;
  --ok: #3f6b5e;
  --warn: #a15c3e;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

nav.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}

nav.site-nav a:hover { color: var(--accent); }

main { padding: 56px 0 72px; }

h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 18px;
}

h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 40px 0 14px;
}

h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; color: var(--ink); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.btn:hover { background: var(--accent-hover); color: #fff; }

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.secondary:hover { background: var(--accent-soft); color: var(--accent-hover); }

.btn-row { margin: 28px 0; display: flex; gap: 14px; flex-wrap: wrap; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.persona-card {
  display: flex;
  gap: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}

.persona-card img { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.persona-card .tagline { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.persona-card .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.persona-card .bio { font-size: 15px; margin-bottom: 10px; }
.persona-card .interests { font-size: 13px; color: var(--ink-soft); }
.persona-card .interests span { display: inline-block; background: var(--accent-soft); color: var(--accent-hover); border-radius: 12px; padding: 2px 10px; margin: 2px 4px 2px 0; }

.pricing-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  max-width: 420px;
}

.price { font-family: var(--serif); font-size: 44px; margin: 4px 0; }
.price .period { font-size: 16px; color: var(--ink-soft); font-family: var(--sans); }
.pricing-note { color: var(--ink-soft); font-size: 14px; }
.pricing-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.pricing-features { list-style: none; padding: 0; margin: 20px 0; }
.pricing-features li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pricing-features li:first-child { border-top: none; }

form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
form.stack label { font-size: 14px; color: var(--ink-soft); display: block; margin-bottom: 4px; }
form.stack input, form.stack textarea, form.stack select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--sans);
  background: var(--paper-raised);
  color: var(--ink);
}
form.stack .checkbox-row { display: flex; align-items: flex-start; gap: 8px; }
form.stack .checkbox-row input { width: auto; margin-top: 4px; }
form.stack .checkbox-row label { margin: 0; font-size: 14px; }

.msg { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 15px; }
.msg.ok { background: #e9f1ed; color: var(--ok); border: 1px solid #c7ddd3; }
.msg.err { background: #fbeae6; color: var(--warn); border: 1px solid #f0cdc0; }

.draft-banner {
  background: #fbf3d9;
  border: 1px solid #ecd98b;
  color: #6b5713;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 28px;
}

table.account-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
table.account-table td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
table.account-table td:first-child { color: var(--ink-soft); width: 40%; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-soft);
  font-size: 14px;
}
footer.site a { color: var(--ink-soft); margin-right: 18px; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  nav.site-nav a { margin-left: 14px; font-size: 14px; }
  .persona-card { flex-direction: column; }
}
