/* AskBirth — calm, adult knowledge-site styles */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f1f1f;
  --text-muted: #5a5a5a;
  --heading: #2c4a3e;
  --accent: #c17b5a;
  --accent-dark: #a86548;
  --border: #e6e1d9;
  --link: #2c4a3e;
  --scope-bg: #f3efe8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark:hover { color: var(--accent); }
nav a { margin-left: 1.25rem; font-size: 0.95rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--heading);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.15rem; margin: 0 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.35rem; }

.scope {
  background: var(--scope-bg);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.meta a { color: var(--heading); }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related h2 { margin-top: 0; font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 0.5rem; }

.cta {
  display: inline-block;
  background: var(--heading);
  color: #fff !important;
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
}
.cta:hover { background: var(--accent-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.98rem;
}
th, td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; }
th { background: var(--scope-bg); font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}
.site-footer a { color: var(--text-muted); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c4a3e;
  color: #fff;
  padding: 1rem 1.25rem;
  z-index: 1000;
  font-size: 0.95rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.cookie-banner .wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-banner span {
  flex: 1 1 280px;
  line-height: 1.5;
}
.cookie-banner a { color: #faf8f5; text-decoration: underline; }
.cookie-banner button {
  background: #c17b5a;
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-banner button:hover { background: #a86548; }
.cookie-banner button:focus { outline: 2px solid #fff; outline-offset: 2px; }
