/* Shared styles for every page */

:root {
  --navy: #15294a;
  --navy-2: #1f3a66;
  --navy-3: #0f1f39;
  --gold: #f0b23e;
  --gold-soft: #fdf1d9;
  --text: #1d2433;
  --soft: #5e6676;
  --bg-2: #f5f7fa;
  --line: #e2e6ec;
  color-scheme: light;
}

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

body {
  font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.site-nav { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-nav .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 800; font-size: 19px; color: var(--navy); }
.brand span { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav ul a { font-weight: 500; font-size: 15px; color: var(--soft); padding: 4px 0; }
.site-nav ul a:hover { color: var(--navy); }
.site-nav ul a.current { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav ul a.cta { background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; box-shadow: none; }
.site-nav ul a.cta:hover { background: var(--navy-2); }

/* ---------- Buttons ---------- */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.line { border: 2px solid var(--line); color: var(--navy); }
.btn.line:hover { border-color: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #f5c360; }

/* ---------- Home hero ---------- */

.hero { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 560px; }
.hero-text { padding: 72px 56px 72px max(24px, calc((100vw - 1100px) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--gold-soft); padding: 4px 12px; border-radius: 999px; width: fit-content; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.05; color: var(--navy); margin-top: 16px; }
.hero p { color: var(--soft); font-size: 1.15rem; margin-top: 16px; max-width: 480px; }
.hero-panel { background: var(--navy); display: grid; place-items: center; padding: 48px; position: relative; }
.hero-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--gold); }

.photo {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  font-size: 60px;
  font-weight: 800;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .wrap > div { padding: 26px 0; }
.strip b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.strip span { color: var(--soft); font-size: 15px; }

/* ---------- Inner page header ---------- */

.page-hero { background: var(--navy); color: #fff; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; margin-top: 4px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; margin-top: 12px; max-width: 620px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section.alt { background: var(--bg-2); }
.head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.link { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); }
.link:hover { color: var(--navy-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col p { color: var(--soft); }
.two-col p + p { margin-top: 14px; }

/* ---------- Timeline ---------- */

.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.t { position: relative; padding: 0 0 36px 32px; display: grid; grid-template-columns: 180px 1fr; gap: 4px 24px; }
.t:last-child { padding-bottom: 0; }
.t::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.t.now::before { background: var(--gold); border-color: var(--gold); }
.t .date { color: var(--soft); font-size: 15px; font-weight: 500; padding-top: 2px; }
.t h3 { font-size: 1.15rem; color: var(--navy); }
.t .org { font-weight: 700; color: var(--soft); font-size: 15px; }
.t p { color: var(--soft); margin-top: 4px; }
.t ul { color: var(--soft); padding-left: 18px; margin-top: 8px; }
.t li { margin-top: 5px; }
.t li::marker { color: var(--gold); }
.alt .t::before { background: var(--bg-2); }
.alt .t.now::before { background: var(--gold); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
a.card { display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--navy); }
.icon { width: fit-content; min-width: 44px; padding: 0 10px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.card .status { display: block; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.card h3 { font-size: 1.2rem; color: var(--navy); }
.card p { color: var(--soft); margin-top: 6px; font-size: 16px; }
.card ul { color: var(--soft); font-size: 16px; padding-left: 18px; margin-top: 10px; }
.card li { margin-top: 5px; }
.card li::marker { color: var(--gold); }
.card.wide { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--navy); }
.alt .tag { background: #fff; border: 1px solid var(--line); }

/* ---------- Stats + facts ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; border-top: 4px solid var(--gold); }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat span { color: var(--soft); font-size: 15px; }

.facts { list-style: none; background: var(--bg-2); border-radius: 14px; padding: 8px 26px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: none; }
.facts span { color: var(--soft); }
.facts b { color: var(--navy); text-align: right; }

.about-photo { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about-photo .photo { width: 300px; box-shadow: 0 18px 40px rgba(21, 41, 74, 0.18); }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skills h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 12px; }

/* ---------- Life page photos ---------- */

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}
.shot.tall { aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.empty { cursor: default; border: 2px dashed var(--line); display: grid; place-items: center; }
.shot.empty::after { content: "Photo coming soon"; color: var(--soft); font-size: 14px; font-weight: 500; }
.alt .shot.empty { background: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature p { color: var(--soft); margin-top: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair:has(> .shot:only-child) { grid-template-columns: minmax(0, 340px); justify-content: center; }
.card.hobby .shot { margin-bottom: 18px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 18, 32, 0.9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

/* ---------- Contact band + footer ---------- */

.contact { background: var(--navy); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, 0.75); margin-top: 12px; }
.contact .btn { justify-self: end; font-size: 17px; padding: 16px 28px; }

.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, 0.6); font-size: 14px; padding: 22px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a:hover { color: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px 24px; }
  .hero-panel { padding: 36px 24px; }
  .hero-panel::before { right: 0; width: auto; height: 8px; bottom: auto; }
  .hero-panel .photo { width: 200px; font-size: 44px; }
  .strip .wrap { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .strip .wrap > div { padding: 18px 0; }
  .two-col, .cards, .cards.two, .stats, .skills, .contact .wrap, .about-photo, .feature { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { gap: 28px; }
  .two-col { gap: 20px; }
  .about-photo { gap: 32px; }
  .about-photo .photo { width: 220px; }
  .t { grid-template-columns: 1fr; padding-left: 24px; }
  .contact .btn { justify-self: start; }
  section { padding: 60px 0; }
  .page-hero .wrap { padding-top: 44px; padding-bottom: 44px; }
}
