:root {
  --navy-900: #0a1d30;
  --navy-800: #0f2942;
  --navy-700: #16344f;
  --navy-100: #e8edf3;
  --gold-500: #c9973e;
  --gold-400: #d4a24e;
  --ink: #1b2430;
  --ink-soft: #4b5768;
  --paper: #fbfaf7;
  --paper-raised: #ffffff;
  --line: #e3ddd1;
  --radius: 10px;
  --wrap: 1080px;
  --font-head: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 68ch; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--navy-900);
  border-bottom: 3px solid var(--gold-500);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--gold-400); }
.brand:hover { color: var(--gold-400); }

.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a {
  color: var(--navy-100);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-400); border-bottom-color: var(--gold-500); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1 { color: #fff; }
.hero .eyebrow {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.hero p { color: var(--navy-100); font-size: 1.1rem; max-width: 62ch; }
.hero .meta { color: var(--navy-100); opacity: 0.85; font-size: 0.95rem; margin-top: 18px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero__text { flex: 1 1 480px; }
.hero__photo {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-500);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
@media (max-width: 760px) {
  .hero__inner { flex-direction: column-reverse; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .hero p { max-width: none; }
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* Section */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head .eyebrow {
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Focus areas grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Timeline */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 34px;
  margin-bottom: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold-500);
}
.timeline-item:first-child::before { background: var(--gold-500); }
.timeline-item h3 { margin-bottom: 2px; font-size: 1.1rem; }
.timeline-item .role-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: block;
}
.timeline-item p { margin-bottom: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Blog list */
.post-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.post-card {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.post-card:last-child { border-bottom: none; }
.post-card .post-date {
  font-size: 0.85rem;
  color: var(--gold-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-card h2 { margin: 6px 0 8px; font-size: 1.4rem; }
.post-card h2 a { text-decoration: none; color: var(--navy-800); }
.post-card h2 a:hover { color: var(--gold-500); }
.post-card p { color: var(--ink-soft); }
.post-card .read-more { font-size: 0.9rem; font-weight: 600; }

/* Single post */
.post-header { padding: 56px 0 32px; background: var(--navy-900); color: #fff; }
.post-header h1 { color: #fff; }
.post-header .post-date { color: var(--gold-400); font-weight: 600; }
.post-body { padding: 48px 0; max-width: 72ch; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body ul, .post-body ol { max-width: 68ch; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-body blockquote {
  border-left: 4px solid var(--gold-500);
  margin: 1.5em 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.contact-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-item .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-item a { text-decoration: none; font-weight: 600; color: var(--navy-800); }
.contact-item a:hover { color: var(--gold-500); }

/* Search */
.search-wrap { max-width: 640px; }
#search {
  margin-top: 20px;
  --pagefind-ui-primary: var(--navy-800);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--paper);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: var(--navy-100);
  --pagefind-ui-font: var(--font-body);
  --pagefind-ui-border-radius: 8px;
}

/* Footer */
.site-footer { background: var(--navy-900); color: var(--navy-100); padding: 32px 0; margin-top: 40px; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; }
.site-footer a { color: var(--navy-100); }
.site-footer a:hover { color: var(--gold-400); }

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { flex-direction: column; }
}
