/* Honest Education Alliance — site styles */
:root {
  --navy: #0b1f3a;
  --navy-mid: #14325c;
  --navy-light: #1e4a7a;
  --gold: #c4a35a;
  --gold-soft: #e8d5a3;
  --cream: #f7f4ef;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c6570;
  --border: #d9d2c5;
  --success: #1f6b4a;
  --error: #9b2c2c;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --font-serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 650;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.95;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border-bottom: none !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  background: var(--gold-soft);
  color: var(--navy) !important;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.94), rgba(20, 50, 92, 0.88)),
    radial-gradient(circle at top right, rgba(196, 163, 90, 0.25), transparent 45%);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero .lede {
  font-size: 1.2rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Signup card */
.signup-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.signup-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.signup-card .card-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

label {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--navy);
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  border-color: var(--gold);
}

.form-message {
  min-height: 1.3em;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-intro {
  max-width: 70ch;
  margin-bottom: 1.75rem;
  color: var(--muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--gold-soft);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.35rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.04);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(196, 163, 90, 0.15);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

/* Quote / callout */
.callout {
  border-left: 4px solid var(--gold);
  background: var(--white);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}

.callout cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin: 1.25rem 0 1.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 650;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: rgba(247, 244, 239, 0.6);
}

/* Article / white paper */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.page-header .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 75ch;
}

.prose h2 {
  margin-top: 2.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose h3 {
  color: var(--navy-mid);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  text-decoration: none;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.resource-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.resource-list a {
  word-break: break-word;
}

/* Author */
.author-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.author-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.author-panel .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.author-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: #e8e4dc;
}

.author-photo-round {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.founder-blurb {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.founder-blurb p {
  margin: 0;
}

.founder-blurb strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .founder-blurb {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer */
.site-footer {
  background: #081628;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer h3 {
  color: var(--gold-soft);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.social-links a {
  font-weight: 650;
}

/* Header X / social chip */
.site-nav a.nav-social {
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(196, 163, 90, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  line-height: 1.2;
}

.site-nav a.nav-social:hover {
  background: rgba(196, 163, 90, 0.15);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Utility */
.stack-sm > * + * {
  margin-top: 0.75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.badge {
  display: inline-block;
  background: rgba(196, 163, 90, 0.18);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .stats,
  .footer-grid,
  .author-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.25rem;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .signup-card,
  .hero-actions {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prose {
    max-width: none;
  }
}
