/* The Gerontechnology Foundation — holding page
   Tokens mirror the demo site (parent brand: The Gerontechnology Group). */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/playfair-display-normal-400.woff') format('woff'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/playfair-display-normal-600.woff') format('woff'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/playfair-display-italic-400.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/source-sans-3-normal-400.woff') format('woff'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/source-sans-3-normal-600.woff') format('woff'); }

:root {
  --deep: #103f40;
  --teal: #1a7a7a;
  --gold: #c9a84c;
  --ink: #203d3b;
  --muted: #526460;
  --line: #d7dfd9;
  --paper: #f4f4f2;
  --white: #fff;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;          /* 19px base: the audience skews older */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }

a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--width), calc(100% - 48px)); margin: 0 auto; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--deep); color: var(--white);
  padding: 10px 16px; border-radius: 3px; z-index: 100;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header { background: rgba(250, 250, 247, 0.98); border-bottom: 1px solid #e3e7e0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--deep); text-decoration: none; }
.brand-mark { width: 56px; height: 56px; border-radius: 6px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.brand-the, .brand-foundation { font-weight: 400; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 3px;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
  text-decoration: none; text-align: center; white-space: normal;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 46px; padding: 10px 20px; }
.button-teal { background: var(--teal); color: var(--white); }
.button-teal:hover { background: var(--deep); color: var(--white); }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover { background: #dfc36f; color: var(--deep); }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow.dark { color: var(--teal); }
.eyebrow-line { display: inline-block; width: 36px; height: 2px; background: var(--gold); }

/* Hero */
.hero { background: var(--deep); color: var(--white); }
.hero-inner { padding: clamp(64px, 9vw, 120px) 0; max-width: 820px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); margin: 22px 0 24px; }
.hero h1 em { font-style: italic; font-weight: 400; color: #e1c573; }
.hero-description { font-size: 1.3125rem; max-width: 640px; color: rgba(255, 255, 255, 0.9); }
.hero-affiliation { margin-top: 36px; font-size: 1rem; color: rgba(255, 255, 255, 0.78); }
.hero-affiliation a { color: var(--white); }

/* Mission */
.mission-inner { padding: clamp(56px, 8vw, 96px) 0; max-width: 780px; }
.mission h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 18px 0 22px; color: var(--deep); }
.mission p { color: var(--ink); }
.pillars { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.pillars li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--deep); }
.pillars li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* Contact */
.contact { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-inner { padding: clamp(48px, 7vw, 80px) 0; max-width: 780px; }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); color: var(--deep); margin-bottom: 14px; }
.contact p { color: var(--muted); margin-bottom: 26px; }
.contact-address { margin: 18px 0 0; font-size: 1.15rem; font-weight: 600; }
.contact-address a { color: var(--deep); word-break: break-all; }

/* Footer */
.site-footer { background: #f9faf6; }
.footer-inner { padding: 40px 0 28px; display: grid; gap: 10px; }
.footer-line { font-family: var(--serif); font-size: 1.15rem; color: var(--deep); }
.footer-meta { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .brand-name { font-size: 1.2rem; }
  .button { width: 100%; }
}

@media print {
  .site-header .button, .skip-link { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero h1 em { color: var(--ink); }
}
