/* =========================================================
   Joseph S.Kitamirike - personal site
   Design system: navy / paper / gold "ledger" aesthetic
   Quicksand (display) + IBM Plex Sans (body/UI)
   Source Serif 4 is kept only for the THRIVE book-cover mockup.
   ========================================================= */

:root {
  --navy: #0B1F3A;
  --navy-soft: #142A4A;
  --paper: #F7F3E8;
  --paper-alt: #EFE7D3;
  --card: #FCFAF3;
  --ink: #1B2430;
  --ink-soft: #47526B;
  --gold: #C9A227;      /* decorative use only: rules, icons, large display */
  --gold-dark: #7C601C; /* text-safe on paper: >= 4.5:1 */
  --gold-light: #E4C875;/* text-safe on navy */
  --line: rgba(11, 31, 58, 0.14);
  --line-navy: rgba(228, 200, 117, 0.28);
  --placeholder-bg: rgba(201, 162, 39, 0.12);
  --placeholder-border: rgba(124, 96, 28, 0.5);
  --maxw: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
/* Book cover mockup only: keep the serif treatment for the printed-cover look. */
.photo-frame .serif {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}

.hair { border-top: 1px solid var(--line); }
.hair-b { border-bottom: 1px solid var(--line); }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid { background: var(--navy); color: var(--paper); }
.btn-solid:hover { background: var(--gold-dark); color: var(--paper); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.external::after {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 4h6v6M12 4 5 11'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 4h6v6M12 4 5 11'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: middle;
}

/* ---------- placeholder content flag ---------- */
.ph {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: var(--radius);
  padding: 1px 6px;
  color: var(--gold-dark);
  font-style: italic;
}

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--line-navy);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--paper);
}
.brand .name { font-family: 'Quicksand', 'Segoe UI', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.brand .role { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.brand:hover { color: var(--paper); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(247, 243, 232, 0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
}
.nav-links .btn-outline {
  border-color: var(--gold-light);
  color: var(--paper);
}
.nav-links .btn-outline:hover { border-color: var(--gold); background: rgba(228,200,117,0.1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-navy);
    padding: 12px 32px 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .22s ease, opacity .18s ease;
  }
  .nav-links.is-open { max-height: 420px; opacity: 1; padding-top: 20px; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(228,200,117,0.12); }
  .nav-links .btn-outline { margin-top: 12px; }
}

/* ---------- ledger texture (decorative panels only) ---------- */
.ledger-panel {
  background-color: var(--paper-alt);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(11,31,58,0.05) 0,
    rgba(11,31,58,0.05) 1px,
    transparent 1px,
    transparent 40px
  );
}

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 88px 0 96px;
}
.hero-copy { flex: 1.15; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 52px; line-height: 1.1; }
.hero .lede { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 4px; }

.hero-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}
.photo-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, #1E3A63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
img.photo-frame {
  display: block;
  object-fit: cover;
}
.photo-frame .mono {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-size: 84px;
  color: var(--gold-light);
  font-style: italic;
}
.photo-frame .cap {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(228,200,117,0.7);
  text-align: center;
}

/* ---------- stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
}
.stat {
  padding: 28px 32px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: 'Quicksand', 'Segoe UI', sans-serif; font-size: 34px; color: var(--navy); }
.stat .label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 30px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 56px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- timeline (Experience) ---------- */
.timeline { display: flex; flex-direction: column; }
.entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.entry:first-child { border-top: none; }
.entry .dates { font-size: 14px; color: var(--gold-dark); font-weight: 600; padding-top: 4px; }
.entry h3 { font-size: 21px; margin-bottom: 4px; }
.entry .org { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.entry .desc { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 620px; }
@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- ventures ---------- */
.venture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}
.venture:not(:first-child) { border-top: 1px solid var(--line); }
.venture .mark {
  width: 56px; height: 56px;
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', 'Segoe UI', sans-serif; font-size: 22px; color: var(--gold-dark);
  margin-bottom: 20px;
}
.venture h3 { font-size: 26px; margin-bottom: 14px; }
.venture p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; }
@media (max-width: 760px) { .venture { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.field {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-bottom: 1px solid #D9CFAF;
  background: transparent;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  color: var(--ink);
}
.field:focus { outline: none; border-bottom-color: var(--gold-dark); }
.field::placeholder { color: #9A927C; }

.form-msg {
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  display: none;
}
.form-msg.is-visible { display: block; }

/* ---------- book launch (book.html) ---------- */
.launch {
  background: var(--navy);
  color: rgba(247,243,232,0.82);
  scroll-margin-top: 84px;
}
.launch-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.launch-eyebrow { color: var(--gold-light); margin-bottom: 16px; }
.launch-title { font-size: 36px; color: var(--paper); margin-bottom: 18px; }
.launch-lede { font-size: 16.5px; line-height: 1.75; max-width: 520px; margin-bottom: 36px; }
.launch-details { margin: 0; display: flex; flex-direction: column; }
.launch-details[hidden] { display: none; }
.launch-details > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-navy);
}
.launch-details > div:last-child { border-bottom: 1px solid var(--line-navy); }
.launch-details dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-light);
  padding-top: 2px;
}
.launch-details dd { margin: 0; font-size: 15.5px; color: var(--paper); }
.launch-details dd.tba { color: var(--gold-light); font-style: italic; }
.launch-notify {
  border-top: 1px solid var(--line-navy);
  padding-top: 28px;
  max-width: 520px;
}
.launch-notify h3 { font-size: 20px; color: var(--gold-light); margin-bottom: 10px; }
.launch-notify > p { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.launch-notify-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.launch-notify-form .field {
  flex: 1 1 240px;
  color: var(--paper);
  border-bottom-color: var(--line-navy);
}
.launch-notify-form .field::placeholder { color: rgba(247,243,232,0.5); }
.launch-notify-form .field:focus { border-bottom-color: var(--gold-light); }
.launch-notify-form .form-msg { flex-basis: 100%; }
.btn-outline.launch-notify-btn { border-color: var(--gold-light); color: var(--paper); }
.btn-outline.launch-notify-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.launch .ph {
  color: var(--gold-light);
  background: rgba(228,200,117,0.1);
  border-color: rgba(228,200,117,0.45);
}
.launch-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.launch-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.launch-price-amount { font-family: 'Quicksand', 'Segoe UI', sans-serif; font-size: 30px; font-weight: 600; color: var(--navy); }
.launch-price-note { font-size: 13.5px; color: var(--ink-soft); }
.launch-pay-note { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-top: 16px; }
.btn.is-disabled { background: var(--paper-alt); color: var(--ink-soft); cursor: not-allowed; }
.btn.is-disabled:hover { background: var(--paper-alt); color: var(--ink-soft); }

@media (max-width: 900px) {
  .launch-grid { grid-template-columns: 1fr; gap: 40px; }
  .launch-title { font-size: 30px; }
}
@media (max-width: 480px) {
  .launch-details > div { grid-template-columns: 1fr; gap: 4px; }
  .launch-card { padding: 24px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(247,243,232,0.7); margin-top: 96px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 40px;
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-grid .name { color: var(--paper); font-family: 'Quicksand', 'Segoe UI', sans-serif; font-size: 20px; margin-bottom: 10px; }
.footer-grid p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: rgba(247,243,232,0.75); font-size: 14px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line-navy);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero { flex-direction: column-reverse; gap: 40px; padding: 48px 0 64px; text-align: left; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 22px 0; }
  .stat:first-child { border-top: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
}
