/* Raising Agents — shared styles */

:root {
  --ink: #1b1b1a;
  --ink-soft: #4a4845;
  --ink-faint: #77726a;
  --paper: #f6f1e7;
  --paper-deep: #ece5d4;
  --paper-deeper: #ddd2b8;
  --rule: #c9bda1;
  --accent: #7a5a34;
  --accent-soft: #b19775;
  --verdict-work: #2f5a3a;
  --verdict-borderline: #8a6a1e;
  --verdict-over: #8a3f1e;
  --verdict-crisis: #6e1a1a;
}

* { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, serif;
  line-height: 1.7;
  font-feature-settings: "onum", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.75rem 6rem;
}

/* ── type ── */

.label {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}

h2 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

p { margin: 0 0 1.2rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

/* ── nav ── */

nav.site {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav.site .brand {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
}

nav.site .brand:hover { color: var(--ink); }

nav.site ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

nav.site a:hover,
nav.site a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ── hero ── */

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

h1.title {
  font-size: 3.4rem;
  margin: 0 0 1.8rem;
  font-style: italic;
}

h1.title-sm {
  font-size: 2.6rem;
  margin: 0 0 1.2rem;
  font-style: italic;
}

.tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.meta-contract,
.page-intro {
  font-size: 1rem;
  color: var(--ink);
  max-width: 32rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule);
}

/* ── sections ── */

section { margin: 3.5rem 0; }

/* ── panels / cards ── */

.panel {
  background: var(--paper-deep);
  border-radius: 3px;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}

.panel.cream {
  background: #fffaf0;
  border: 1px solid var(--rule);
}

.panel.dark {
  background: var(--ink);
  color: var(--paper);
}

.panel.dark h2 {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.panel.dark p {
  color: var(--paper);
}

/* ── the walk — cross-URL narrative sequence ── */

.walk-next {
  text-align: center;
  margin: 4rem 0 0;
  padding: 2rem 0;
  border-top: 1px dashed var(--rule);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Courier New", monospace;
  font-size: 0.95rem;
}

.walk-next-label {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.walk-next a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.walk-next a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.walk-next small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-style: italic;
  font-family: "Iowan Old Style", Georgia, serif;
}

/* ── subscribe (used on every page that wants a footer CTA) ── */

.subscribe {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2.2rem;
  border-radius: 3px;
  margin: 5rem 0 3rem;
  text-align: center;
}

.subscribe h2 {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.subscribe p {
  color: var(--paper);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.subscribe-form input[type="email"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8em 1em;
  border: 1px solid var(--accent-soft);
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  min-width: 18rem;
  flex: 1;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.subscribe-form button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8em 1.5em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  border-radius: 3px;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.subscribe-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1.2rem;
  font-style: italic;
}

/* ── footer ── */

footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer p { margin: 0.4rem 0; }

footer a {
  color: var(--ink-soft);
  text-decoration: underline dotted;
}

/* ── responsive ── */

@media (max-width: 640px) {
  html { font-size: 16px; }
  main { padding: 2rem 1.2rem 3rem; }
  h1.title { font-size: 2.4rem; }
  h1.title-sm { font-size: 2rem; }
  .panel, .subscribe { padding: 1.4rem 1.3rem; }
  nav.site { padding: 1rem 1.2rem 0; font-size: 0.72rem; }
  nav.site ul { gap: 0.9rem; }
  .subscribe-form input[type="email"] { min-width: 0; width: 100%; }
}
