/* MoreBoops — warm editorial static draft */
:root {
  --bg: #f7f3ec;
  --bg-elevated: #fffdf8;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --line: #e7e0d5;
  --accent: #b45309;
  --accent-soft: #f5e6d3;
  --accent-blue: #3b6ea5;
  --banner: #f3ebe0;
  --ok: #166534;
  --danger-soft: #fef2f2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --prose: 42rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    gap: 0.35rem;
  }
}

.clinical-banner {
  background: var(--banner);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.clinical-banner .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}
.clinical-banner strong { color: var(--ink); font-weight: 600; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
main { padding-bottom: 4rem; }

.hero {
  padding: 3rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.h1-underline {
  display: inline;
  background-image: linear-gradient(transparent 72%, var(--accent-soft) 72%);
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.page-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.page-hero p { max-width: var(--prose); color: var(--ink-soft); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #292524; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #92400e; color: #fff; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 0.5rem; }

.photo-slot {
  background: #d6d3d1;
  border-radius: var(--radius);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  border: 1px dashed #a8a29e;
}
.photo-slot strong { color: var(--ink-soft); display: block; margin-bottom: 0.35rem; }
.photo-slot span { font-size: 0.9rem; max-width: 16rem; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0;
}
@media (max-width: 700px) {
  .trust-strip { grid-template-columns: 1fr; }
}
.trust-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.trust-item strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h2, .card h3 {
  font-family: var(--serif);
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}
.card p { margin: 0; color: var(--ink-soft); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.5rem; }

.section {
  padding: 1.5rem 0;
}
.section h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.prose {
  max-width: var(--prose);
}
.prose p { margin: 0 0 1rem; }
.prose h2, .prose h3 {
  font-family: var(--serif);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.disclaimer-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.disclaimer-box strong { color: var(--ink); }

.did-here {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0 2.25rem;
}
.did-here h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-family: var(--sans);
}
.did-here p { margin: 0; color: var(--ink-soft); }
.did-here a { font-weight: 600; }

.pull-quote {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; gap: 1.5rem; }
@media (max-width: 700px) { .toc ol { columns: 1; } }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.chapter { scroll-margin-top: 5rem; }
.chapter-photo { margin: 1.25rem 0; min-height: 12rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f3efe7;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
.soft-gap {
  color: var(--muted);
  font-style: italic;
  font-size: 0.92em;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #92400e;
  white-space: nowrap;
}
.badge-b { background: #e0e7ff; color: #3730a3; }
.badge-c { background: #fef3c7; color: #92400e; }
.badge-d { background: #f5f5f4; color: #57534e; }
.badge-rej { background: #fee2e2; color: #991b1b; }

.pathway-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.pathway-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.pathway-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-family: var(--serif); }
.pathway-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
.pathway-chain span {
  background: #f3efe7;
  border-radius: 0.4rem;
  padding: 0.25rem 0.5rem;
}
.pathway-chain .arrow { background: transparent; color: var(--muted); padding: 0; }

.loop {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin: 1.5rem 0;
}
@media (max-width: 900px) {
  .loop { grid-template-columns: repeat(2, 1fr); }
}
.loop-step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.loop-step small { display: block; font-weight: 400; color: var(--muted); margin-top: 0.25rem; font-size: 0.78rem; }

.prompt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}
.prompt-card h3 { margin: 0 0 0.35rem; font-family: var(--serif); }
.prompt-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.prompt-block {
  background: #1c1917;
  color: #f5f5f4;
  border-radius: 0.6rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0.75rem 0;
}
.prompt-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.copy-feedback { font-size: 0.85rem; color: var(--ok); min-height: 1.2em; }

.teaser {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  background: #faf6ef;
}
.teaser h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.teaser p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.gate-box {
  background: var(--bg-elevated);
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  max-width: 32rem;
}
.gate-box h2 { margin-top: 0; font-family: var(--serif); }
.form-row { margin-bottom: 0.85rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
.form-row input[type="email"],
.form-row input[type="text"],
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
}
.form-success.is-visible { display: block; }
.checkbox { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox input { margin-top: 0.25rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #efe9df;
  padding: 2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.list-check { list-style: none; padding: 0; }
.list-check li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.list-check li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.photo-slot.photo-filled {
  padding: 0;
  border: none;
  background: #1c1917;
  overflow: hidden;
  min-height: 0;
  display: block;
}
.photo-slot.photo-filled img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}
.hero .photo-slot.photo-filled img {
  max-height: 32rem;
  min-height: 18rem;
}
.chapter-photo.photo-filled img {
  max-height: 22rem;
}
.photo-slot .photo-caption {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-elevated);
  text-align: left;
}
