/* AI World Academy, design system extracted from the Lovable exploration (docs/design/lovable-design-spec-2026-07-11.md) */

:root {
  --ink: #0F1B2D;
  --ink-soft: #16233A;
  --paper: #FAF6EE;
  --white: #FFFFFF;
  --gold: #C9A227;
  --gold-deep: #A8861D;
  --body: #3B4657;
  --body-light: rgba(250, 246, 238, 0.85);
  --hairline: rgba(15, 27, 45, 0.14);
  --hairline-gold: rgba(201, 162, 39, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

.serif { font-family: "Cormorant Garamond", Georgia, serif; }

h1, h2, h3, .stat-num { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 22px;
}

.on-dark .eyebrow, .dark .eyebrow { color: var(--gold); }

.gold-italic { color: var(--gold); font-style: italic; }

.gold-rule { width: 88px; height: 2px; background: var(--gold); border: 0; margin: 30px 0; }

/* ---------- nav ---------- */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { width: 52px; height: 52px; }
.nav-brand .name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; color: var(--ink); line-height: 1.1; }
.nav-brand .sub { font-size: 10.5px; letter-spacing: 0.18em; color: var(--body); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 15px; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a.active { color: var(--gold-deep); font-weight: 600; }
.btn-nav {
  background: var(--ink); color: var(--white) !important;
  padding: 12px 20px; font-size: 12.5px !important; letter-spacing: 0.14em; font-weight: 600;
}
.btn-nav:hover { background: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D9B45C; }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--ink-soft); }
.btn-ghost-light { border-color: rgba(250,246,238,0.5); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: rgba(15,27,45,0.05); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.dark {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--body-light);
}
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.ivory { background: var(--paper); }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: 1.08; }
.hero p.lead { font-size: 19px; max-width: 560px; margin-bottom: 40px; }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img { width: 100%; max-width: 400px; height: auto; }

.lineage {
  border-top: 1px solid rgba(250,246,238,0.14);
  padding: 26px 0;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250,246,238,0.7); text-align: center;
}

/* ---------- credo ---------- */
.credo { text-align: center; }
.credo blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.35; color: var(--ink);
  max-width: 980px; margin: 0 auto;
}
.credo .attrib {
  margin-top: 34px; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--body); display: flex; align-items: center; justify-content: center; gap: 18px;
}
.credo .attrib::before, .credo .attrib::after { content: ""; width: 44px; height: 1px; background: var(--gold); }

/* ---------- headings (left-aligned, editorial) ---------- */
.section-head { text-align: left; max-width: 780px; margin: 0 0 64px; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.15; margin-bottom: 20px; }

/* ---------- editorial photo treatments ---------- */
.photo-band { position: relative; }
.photo-band img { width: 100%; height: 460px; object-fit: cover; display: block; }
.photo-cap {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--body); padding: 14px 0 0; border-top: 2px solid var(--gold);
  display: inline-block; margin-top: 0;
}
.split-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-photo img { width: 100%; height: 520px; object-fit: cover; display: block; }
.charter-fig { background: var(--white); padding: 18px; border: 1px solid var(--hairline);
               box-shadow: 0 18px 44px rgba(15,27,45,0.13); max-width: 420px; }
.charter-fig img { width: 100%; height: auto; display: block; }
.portrait { width: 100%; max-width: 360px; height: auto; display: block; }

.prose { max-width: 720px; }
.prose p { margin-bottom: 24px; font-size: 18px; line-height: 1.75; }
.prose .lede { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: 1.5; color: var(--ink); }

.quiet-contact { font-size: 15px; line-height: 2; }
.quiet-contact a { color: var(--ink); }

@media (max-width: 900px) {
  .split-photo { grid-template-columns: 1fr; gap: 40px; }
  .split-photo img { height: 340px; }
  .photo-band img { height: 300px; }
}

/* ---------- pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hairline); }
.pillar { padding: 44px 48px; border: 0.5px solid var(--hairline); }
.pillar .num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; color: var(--gold-deep); margin-right: 14px; }
.pillar h3 { display: inline; font-size: 26px; }
.pillar p { margin-top: 14px; }

/* ---------- audiences ---------- */
.serve-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.serve-grid h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.2; }
.serve-grid h2::after { content: ""; display: block; width: 88px; height: 2px; background: var(--gold); margin-top: 28px; }
.serve-item { border-left: 2px solid var(--gold); padding: 6px 0 6px 26px; margin-bottom: 34px; }
.serve-item h3 { font-size: 23px; margin-bottom: 8px; }

/* ---------- program cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hairline); }
.card { padding: 48px 52px; border: 0.5px solid var(--hairline); background: var(--white); }
.card .eyebrow { margin-bottom: 12px; }
.card h3 { font-size: 28px; margin-bottom: 14px; }
.card ul { list-style: none; margin-top: 18px; }
.card li { padding-left: 30px; position: relative; margin-bottom: 9px; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 1.5px; background: var(--gold); }

/* ---------- numbered commitments ---------- */
.commit { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 34px 0; border-bottom: 1px solid var(--hairline); }
.commit:last-child { border-bottom: 0; }
.commit .num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; color: var(--gold-deep); }
.commit h3 { font-size: 25px; margin-bottom: 8px; }

/* ---------- 3-col ---------- */
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; }
.trio .serif-block { font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; line-height: 1.45; color: var(--ink); }

/* ---------- two-col ---------- */
.duo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.duo h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; }
.duo .body p { margin-bottom: 22px; font-size: 18px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.18; max-width: 900px; margin: 0 auto 22px; }
.cta p { max-width: 620px; margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--body-light); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 56px; padding: 72px 0 56px; }
.foot-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.foot-brand img { width: 58px; height: 58px; }
.foot-brand .name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; color: var(--paper); }
.foot-brand .sub { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); }
.foot-grid p { font-size: 15px; max-width: 420px; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 20px; }
.foot-col a, .foot-col span { display: block; color: var(--body-light); text-decoration: none; margin-bottom: 12px; font-size: 15px; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom {
  border-top: 1px solid rgba(250,246,238,0.14);
  padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(250,246,238,0.6);
}
.foot-bottom .triad { letter-spacing: 0.24em; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 96px 0; }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.12; max-width: 900px; }
.page-hero p.lead { font-size: 19px; max-width: 640px; margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .serve-grid, .duo { grid-template-columns: 1fr; gap: 48px; }
  .pillar-grid, .card-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-links.always { display: flex; }
  .hero-seal img { max-width: 280px; }
}
