:root {
  --ink: #1a2333;
  --accent: #14507a;
  --accent-light: #eaf2f8;
  --muted: #5b6572;
  --line: #e3e6ea;
  --bg: #ffffff;
  --green: #1e6e42;
  --green-bg: #cdead6;
  --amber: #8a5a00;
  --amber-bg: #fbe4bf;
  --blue: #14507a;
  --blue-bg: #d4e5f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.3; }
h1 { font-size: 1.9rem; margin: 1.2rem 0 0.8rem; }
h2 { font-size: 1.4rem; margin-top: 2.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
h3 { font-size: 1.12rem; margin-top: 1.6rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-top: 1.5rem; padding-bottom: 0; }
.site-name { display: inline-block; color: var(--ink); line-height: 1.12; }
.site-name, .site-name:hover { text-decoration: none; }
.site-name-main { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; display: block; color: var(--ink); }
.site-name:hover .site-name-main { color: var(--accent); }
.site-role { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); font-weight: 700; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; display: block; margin-top: 5px; }
.site-nav { display: flex; justify-content: space-between; width: 100%; }
.site-nav a { flex: 0 0 auto; position: relative; white-space: nowrap; color: var(--muted); font-size: 1rem; padding: 0.2rem 0 0.85rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--accent); font-weight: 600; }
.site-nav a.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 1.5em; height: 2px; background: var(--accent); border-radius: 1px; }
/* On the home page, hide the header wordmark (the hero below already shows the name) */
body.home .site-name { display: none; }

/* Hero */
.hero { padding: 2.8rem 0 1.4rem; text-align: center; }
.hero-body { display: flex; align-items: flex-start; gap: 2rem; }
.hero-body .lede { flex: 1 1 auto; margin: 0; }
.hero .portrait { display: block; margin: 0 auto 1.1rem; width: 190px; height: auto; border-radius: 12px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 0.4rem; }
.hero .tagline { font-size: 1.2rem; color: var(--accent); font-family: Georgia, serif; margin: 0 0 0.35rem; }
.hero .tagline .sep { color: var(--muted); margin: 0 0.45rem; font-weight: 400; }
.hero .credential { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6rem; }
.hero .proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.55rem; margin: 0 0 1.1rem; padding: 0; }
.hero .proof-row span { font-size: 0.82rem; font-weight: 600; color: var(--accent); background: #eef3f8; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; }
.hero .lede { font-size: 1.05rem; color: var(--ink); max-width: 46em; margin-left: auto; margin-right: auto; text-align: left; }

/* Governance capability chips */
.caps { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; margin: 0.6rem 0 1.4rem; padding: 0; list-style: none; }
.caps li { font-size: 0.82rem; font-weight: 600; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; padding: 0.25rem 0.7rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; background: #fbfcfd; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0 0 0.6rem; font-size: 0.93rem; color: var(--muted); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.3rem;
}
.badge-project { color: var(--green); background: var(--green-bg); }
.badge-scenario { color: var(--amber); background: var(--amber-bg); }
.badge-published { color: var(--blue); background: var(--blue-bg); }

/* Case list */
.case-list { list-style: none; padding: 0; }
.case-list li { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.case-list .case-title { font-weight: 600; font-size: 1.02rem; }
.case-list p { margin: 0.25rem 0 0; font-size: 0.93rem; color: var(--muted); }

/* Notes list */
.note-list { list-style: none; padding: 0; }
.note-list li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.note-list .note-date { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-list .note-title { font-weight: 600; font-size: 1.08rem; margin: 0.1rem 0 0.3rem; }
.note-list p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.note .note-date { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.4rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; }
th, td { border: 1px solid var(--line); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--accent-light); font-weight: 600; }

/* Case page */
.case .decision-state { background: var(--accent-light); border-left: 3px solid var(--accent); padding: 0.5rem 0.8rem; font-size: 0.95rem; }
.backlink { margin-top: 2.5rem; font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 1.4rem 0 2rem; color: var(--muted); font-size: 0.85rem; }
.footer-note { max-width: 46em; }

/* Subscribe */
.subscribe { border: 1px solid var(--line); background: #fbfcfd; border-radius: 8px; padding: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.subscribe-lead { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 0.25rem; }
.subscribe-note { max-width: 40em; margin: 0 0 0.8rem; color: var(--muted); }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subscribe-form input[type="email"] { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.7rem; font-size: 0.95rem; color: var(--ink); background: var(--bg); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.subscribe-form button { flex: 0 0 auto; border: none; border-radius: 6px; padding: 0.5rem 1.1rem; font-size: 0.95rem; font-weight: 600; color: #fff; background: var(--accent); cursor: pointer; }
.subscribe-form button:hover { background: #0f3d5e; }

/* Utility */
.muted { color: var(--muted); }
.section-intro { color: var(--muted); }

@media (max-width: 600px) {
  .site-nav { flex-wrap: wrap; }
  .site-nav a { flex: 0 0 auto; text-align: left; margin-right: 1.3rem; padding-bottom: 0.5rem; font-size: 0.95rem; }
  .site-nav a.active::after { left: 0; transform: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero-body { flex-direction: column; }
  .hero .portrait { flex-basis: auto; width: 150px; }
}
