/* profile — Justin R. Lotito. Light only, mobile-first adjustments at the bottom. */
:root {
  --navy: #13294b;
  --navy-soft: #1f3a66;
  --accent: #b8862b;
  --ink: #1c2330;
  --muted: #5b6475;
  --line: #e3e6ec;
  --paper: #ffffff;
  --tint: #f5f7fa;
  --serif: var(--gh-font-heading, "Source Serif 4"), Georgia, serif;
  --sans: var(--gh-font-body, "Inter"), system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--navy-soft); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.bar .name { font: 700 18px var(--serif); color: var(--navy); text-decoration: none; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 22px; }
.bar nav a:hover { color: var(--navy); }

/* hero */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr 220px; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font: 700 clamp(40px, 6vw, 60px)/1.05 var(--serif); margin: 0 0 14px; letter-spacing: -.5px; }
.hero .lede { font-size: 19px; color: #c9d3e4; margin: 0 0 30px; max-width: 36ch; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--navy); }
.btn.ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.portrait { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.15); background: #0d1f3a; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* home body: the page content, styled into profile sections */
.body { padding: 24px 0 40px; }
.gh-content > * + * { margin-top: 0; }
.gh-content p { margin: 0 0 18px; max-width: 66ch; }
.gh-content h2 { font: 700 30px var(--serif); color: var(--navy); margin: 56px 0 28px; }
.gh-content h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 12px; }
.gh-content > h2:first-child { margin-top: 48px; }
/* Experience / Education entries: a Heading 3, then an organisation line, then a description */
.gh-content h3 { font: 600 19px/1.35 var(--sans); color: var(--ink); margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.gh-content h2 + h3 { border-top: 0; padding-top: 0; }
.gh-content h3 + p { color: var(--navy-soft); font-size: 15px; margin: 2px 0 6px; }
.gh-content h3 + p + p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.gh-content ul, .gh-content ol { padding-left: 1.2em; margin: 0 0 18px; }
.gh-content blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.gh-content figure { margin: 0 0 24px; }
.gh-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

/* news */
.news-home { background: var(--tint); padding: 64px 0; border-top: 1px solid var(--line); }
.news-home h2 { font: 700 30px var(--serif); color: var(--navy); margin: 0 0 28px; }
.news-home h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 12px; }
.news { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c3cad6; box-shadow: 0 6px 20px rgba(19,41,75,.07); }
.meta { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.card h3 { font: 600 21px/1.3 var(--serif); color: var(--navy); margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.more { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15px; text-decoration: none; }

/* listing + single */
.listing, .single { padding: 56px 0 72px; }
.page-title { font: 700 clamp(30px, 4.5vw, 42px)/1.15 var(--serif); color: var(--navy); margin: 0 0 28px; }
.single .page-title { margin-bottom: 16px; }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; text-decoration: none; color: var(--muted); }
.lede-dark { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.single .gh-content h2 { font-size: 24px; margin-top: 36px; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: var(--muted); font-size: 14px; }
.pagination a { text-decoration: none; font-weight: 600; }

/* footer */
.foot { background: var(--navy); color: #c9d3e4; padding: 56px 0; }
.foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot .fname { font: 700 22px var(--serif); color: #fff; margin: 0 0 6px; }
.foot a { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot small { display: block; margin-top: 8px; color: #8fa0bd; }

/* Ghost editor card widths (required by Ghost) */
.kg-width-wide { position: relative; width: min(1040px, 100vw - 48px); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar nav a { margin-left: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 52px; }
  .portrait { order: -1; width: 128px; height: 128px; }
  .gh-content h2, .news-home h2 { font-size: 26px; }
  .news-home { padding: 48px 0; }
}
