/* Longevity Research Initiative — unified scholarly stylesheet
   Used by:
     /index.html            (hub)
     /contact.html          (shared contact form)
     /retirement/index.html (MC retirement landing)
     /investing/index.html  (investing research landing)
     /404.html
*/
:root {
  --paper: #faf6ec;          /* cream */
  --paper-light: #f6efd8;    /* lighter cream for cards */
  --paper-darker: #f3eddc;   /* darker cream for table headers */
  --ink: #1a1410;            /* deep brown-black */
  --ink-muted: #5c4f3a;      /* muted brown for secondary text */
  --gold: #8b6914;           /* gold accent */
  --gold-light: #b08938;     /* lighter gold for hover */
  --forest: #2c4a2c;         /* deep forest for H2 */
  --rust: #8b3a2b;           /* rust for emphasis */
  --line: #d9cfb3;           /* cream-line for borders */
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--gold); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* Header */
header.site {
  border-bottom: 0.5px solid var(--gold);
  padding: 18px 0 16px;
  background: var(--paper);
}
header.site .wrap {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
}
header.site .brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase;
}
header.site .brand a { color: var(--gold); border-bottom: none; }
header.site nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-muted); margin-left: 22px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: none;
}
header.site nav a:hover { color: var(--forest); }
header.site nav a.active { color: var(--ink); }

/* Hero */
.hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
}
.hero .kicker {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10.5px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 4px;
}
.hero .kicker::after {
  content: ''; display: block; width: 60px; height: 0.7px;
  background: var(--gold); margin: 8px 0 16px;
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px; font-weight: 700; line-height: 1.15;
  margin: 0 0 14px; letter-spacing: -0.015em;
  color: var(--ink); max-width: 800px;
}
.hero p.lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 17px; color: var(--ink-muted); max-width: 720px;
  margin: 0 0 28px; line-height: 1.55;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn-primary:hover { background: var(--forest); border-color: var(--forest); }
.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover { background: var(--paper-darker); }
.btn-accent {
  background: var(--gold); color: var(--paper); border-color: var(--gold);
}
.btn-accent:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Sections */
section.block {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}
section.block .kicker {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10.5px; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 4px;
}
section.block .kicker::after {
  content: ''; display: block; width: 40px; height: 0.7px;
  background: var(--gold); margin: 8px 0 14px;
}
section.block h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px; font-weight: 700;
  margin: 0 0 12px; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.2;
}
section.block h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px; font-weight: 700;
  margin: 22px 0 8px; color: var(--forest);
}
section.block p {
  color: var(--ink); max-width: 780px;
  margin: 0 0 14px;
}
section.block ul {
  max-width: 780px; padding-left: 22px;
}
section.block ul li {
  margin-bottom: 9px; line-height: 1.55;
}
section.block strong { color: var(--ink); }
section.block em { color: var(--ink-muted); }

/* Project cards (hub page) */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.project-card {
  background: var(--paper-light);
  border: 0.5px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px 30px 30px;
  display: flex; flex-direction: column;
}
.project-card .card-kicker {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10.5px; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.project-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 700; line-height: 1.2;
  color: var(--ink); margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.project-card p {
  font-size: 15px; color: var(--ink); line-height: 1.55;
  margin: 0 0 16px; max-width: none;
  flex-grow: 1;
}
.project-card .card-meta {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 16px 0 18px;
  padding: 10px 0; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.project-card .card-meta span strong { color: var(--ink); font-weight: 700; }
.project-card .card-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: auto;
}
.project-card .card-cta .btn { padding: 9px 16px; font-size: 11.5px; }

/* Findings cards (used on investing landing) */
.findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.finding {
  background: var(--paper-light);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
}
.finding h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14.5px; font-weight: 700; color: var(--forest);
  margin: 0 0 8px;
}
.finding p {
  font-size: 14px; color: var(--ink);
  margin: 0; line-height: 1.55;
}
.finding .stat {
  display: block; font-size: 24px; font-weight: 700;
  color: var(--rust); margin-top: 4px; margin-bottom: 6px;
  font-family: Georgia, 'Times New Roman', serif;
}

/* Feature cards (used on retirement landing) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.feature {
  background: var(--paper-light);
  border-left: 3px solid var(--forest);
  padding: 20px 24px;
}
.feature h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px; font-weight: 700; color: var(--forest);
  margin: 0 0 8px;
}
.feature p {
  font-size: 14px; color: var(--ink); margin: 0; line-height: 1.55;
}

/* Tables */
table.data {
  width: 100%; max-width: 780px;
  border-collapse: collapse; margin: 18px 0 24px;
  font-size: 14.5px;
  font-family: Georgia, 'Times New Roman', serif;
}
table.data th, table.data td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  background: var(--paper-darker); color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}
table.data td.num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px; text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
table.data td.rank {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700; color: var(--gold); text-align: center;
}
table.data tr.highlight { background: var(--paper-light); }
table.data tr.highlight td {
  color: var(--rust); font-weight: 600;
}

/* Quote block */
blockquote.pull {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-muted);
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 26px;
  margin: 24px 0;
  max-width: 720px;
  line-height: 1.5;
}
blockquote.pull cite {
  display: block; font-size: 13px;
  color: var(--ink-muted);
  font-style: normal;
  margin-top: 10px;
}

/* Pull-out callout */
.callout {
  background: var(--paper-light);
  border-left: 3px solid var(--rust);
  padding: 16px 22px;
  margin: 22px 0;
  max-width: 780px;
}
.callout strong { color: var(--rust); }

/* Pills (used on retirement landing) */
.pill {
  display: inline-block;
  padding: 3px 10px; border-radius: 1px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10.5px; font-weight: 700;
  background: var(--paper-darker); color: var(--ink-muted);
  margin-right: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pill.gold { background: rgba(139, 105, 20, 0.12); color: var(--gold); }
.pill.forest { background: rgba(44, 74, 44, 0.12); color: var(--forest); }
.pill.rust { background: rgba(139, 58, 43, 0.12); color: var(--rust); }

/* Form */
.form-card {
  background: var(--paper-light);
  border: 0.5px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 32px;
  margin: 24px 0;
}
.form-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 700; margin: 0 0 6px;
  color: var(--ink);
}
.form-card p.consent {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-size: 14px;
  color: var(--ink-muted); margin: 0 0 22px;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px;
  border: 0.5px solid var(--line);
  border-radius: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  background: var(--paper); color: var(--ink);
}
.field select {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b6914' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 26px; border-radius: 2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; transition: background 0.15s ease;
}
.btn-submit:hover:not(:disabled) { background: var(--forest); border-color: var(--forest); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
input.hp {
  position: absolute; left: -10000px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
.form-status {
  margin-top: 16px; padding: 11px 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  display: none;
  border-left: 3px solid;
}
.form-status.success {
  display: block; background: var(--paper-light);
  color: var(--forest); border-color: var(--forest);
}
.form-status.error {
  display: block; background: var(--paper-light);
  color: var(--rust); border-color: var(--rust);
}

/* Footer */
footer.site {
  padding: 32px 0 28px;
  background: var(--paper);
  border-top: 0.5px solid var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13.5px; font-style: italic;
  color: var(--ink-muted);
}
footer.site .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
footer.site a { color: var(--ink-muted); }

/* Decorative gold rule */
.gold-rule {
  width: 90px; height: 0.7px;
  background: var(--gold);
  margin: 20px 0;
  border: none;
}
.gold-rule.centred {
  margin-left: auto; margin-right: auto;
}

/* Utility */
.muted { color: var(--ink-muted); }
.center { text-align: center; }

/* ============================================================
   AUTHOR STRIP — cross-site rotating banner
   ============================================================
   Used by: /index.html, /contact.html, /404.html,
            /investing/index.html, /retirement/index.html
   (retirement/simulator.html has its own inline dark variant.)

   Sits above the site header. Editorial dark slate on cream
   paper. Adblock-safe class names (no "promo" / "ad" / "banner").
   ============================================================ */
.author-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--gold);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  position: relative;
  z-index: 5;
}
.author-strip.is-hidden { display: none; }

.author-strip .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.author-strip .author-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light, #b08938);
  white-space: nowrap;
  padding-right: 18px;
  border-right: 1px solid rgba(217, 207, 179, 0.2);
  flex-shrink: 0;
}

.author-strip .author-msg {
  flex: 1;
  min-width: 0;
  color: var(--paper);
  border-bottom: none;
  transition: opacity 0.38s ease, color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-strip .author-msg:hover { color: #fff; border-bottom: none; }
.author-strip .author-msg.is-fading { opacity: 0; }

.author-strip .author-msg em {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  color: var(--gold-light, #b08938);
  margin-left: 6px;
  letter-spacing: -0.005em;
}
.author-strip .author-msg:hover em { color: #d4a647; }

.author-strip .author-dismiss {
  background: transparent;
  border: none;
  color: rgba(250, 246, 236, 0.5);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px 4px;
  margin-left: 6px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  font-family: Georgia, serif;
  flex-shrink: 0;
}
.author-strip .author-dismiss:hover {
  color: var(--paper);
  background: rgba(250, 246, 236, 0.06);
}
.author-strip .author-dismiss:focus-visible {
  outline: 1px solid var(--gold-light, #b08938);
  outline-offset: 2px;
}

/* Mobile: hide the small-caps eyebrow to free up space */
@media (max-width: 640px) {
  .author-strip .author-tag { display: none; }
  .author-strip { font-size: 13px; }
}
