/* Universal Core of Ethics — universalcore.org
   Limestone-and-ink palette with verdigris accents
   Spectral (display) + Public Sans (body) */

:root {
  --limestone: #f5f2ea;
  --limestone-dark: #eae5d8;
  --ink: #23262b;
  --ink-soft: #4a4e55;
  --verdigris: #3f8f86;
  --verdigris-deep: #2e6b64;
  --parchment: #fdfcf8;
  --rule: #d8d2c2;
  --max-width: 52rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, h4, .brand {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.3rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.6rem; margin-top: 2.5rem; border-bottom: 2px solid var(--verdigris); padding-bottom: 0.3rem; }
h3 { font-size: 1.25rem; margin-top: 1.8rem; color: var(--verdigris-deep); }
h4 { font-size: 1.05rem; margin-top: 1.4rem; }

a { color: var(--verdigris-deep); }
a:hover { color: var(--verdigris); }

/* Header & navigation */
.site-header {
  background: var(--ink);
  padding: 0.9rem 1.25rem;
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
}
.brand {
  color: var(--limestone);
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.9rem;
}
nav.primary a {
  color: #cfd3d9;
  text-decoration: none;
  padding: 0.15rem 0;
}
nav.primary a:hover, nav.primary a.current {
  color: #fff;
  border-bottom: 2px solid var(--verdigris);
}

/* Hero */
.hero {
  background: var(--limestone-dark);
  border-bottom: 1px solid var(--rule);
  padding: 2.75rem 1.25rem;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; }
.hero .tagline {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.5rem auto 0;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--verdigris-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Featured banner (front page) */
.feature-banner {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--verdigris);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2.25rem;
}
.feature-banner h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.45rem;
}
.feature-banner h2 a { text-decoration: none; }
.feature-banner p { margin: 0.5rem 0 0; }
.feature-banner .kicker { margin: 0 0 0.3rem; }
.feature-link { font-weight: 600; text-decoration: none; }

.series-nav {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.2rem 0 1.2rem;
}
.series-nav a { text-decoration: none; }

/* Cards for hub/landing pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--verdigris);
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.card a { text-decoration: none; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  background: var(--parchment);
}
th, td {
  border: 1px solid var(--rule);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--limestone-dark);
  font-family: "Spectral", Georgia, serif;
}

/* Callouts */
.note, blockquote {
  background: var(--parchment);
  border-left: 4px solid var(--verdigris);
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}
.editor-note {
  background: var(--limestone-dark);
  border-left: 4px solid var(--ink-soft);
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

/* Pager (prev/next between mandate pages etc.) */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfd3d9;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer a { color: var(--verdigris); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 40rem) {
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2rem; }
  body { font-size: 1rem; }
}
