/* BrentonJohnson.com.au - minimal, editorial, indigo-blue accent
   Inspired by clean personal sites: white space, serif display type, quiet chrome */

:root {
  --navy: #3b3ea8;        /* indigo-blue accent (headlines, links) */
  --navy-dark: #2c2f85;   /* hover / deep accent */
  --accent: #3b3ea8;
  --accent-light: #ecedf9;
  --ink: #22252a;
  --text: #33373d;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

/* Header - quiet, white, name left / nav right */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 26px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

nav a:hover { color: var(--navy); }
nav a.current { color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 4px; }

/* Hero - soft indigo banner, text left, headshot right */
.hero {
  background: linear-gradient(150deg, #eef0fa 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 84px 24px 64px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -160px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.35;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 640px; }

.hero .headshot {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 24px rgba(59, 62, 168, 0.18);
  flex-shrink: 0;
}

/* Compact banner for inner pages - the H1 sits in this */
.page-hero {
  background: linear-gradient(150deg, #eef0fa 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border);
  padding: 46px 24px 38px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.5;
}

.page-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 { margin: 0; }

.hero .kicker {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero p.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 18px 0 0;
  max-width: 620px;
}

/* Layout */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

main.wide { max-width: 1040px; }

h1 { color: var(--navy); font-weight: 700; font-size: 2.1rem; line-height: 1.25; }

h2 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 650;
  margin-top: 2.4em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
}

h3 { color: var(--ink); font-size: 1.12rem; font-weight: 600; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }

.lede { font-size: 1.2rem; color: var(--text); }

blockquote {
  border: none;
  margin: 2.4em 0;
  padding: 0;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Cards / columns - quiet, bordered */
.cols {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.card {
  flex: 1 1 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 26px;
}

.card h3 { margin-top: 0; }
.card p { font-size: 0.97rem; margin-bottom: 0; color: var(--text); }

/* Buttons - restrained */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 3px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  margin-top: 12px;
}

.btn:hover { background: var(--navy-dark); color: #fff; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

/* Image placeholders */
.img-placeholder {
  background: var(--bg-alt);
  border: 1px dashed #c7cad1;
  color: var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  min-height: 220px;
  margin: 24px 0;
}

/* Timeline */
.timeline { position: relative; margin: 40px 0; padding-left: 32px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.tl-item { position: relative; margin-bottom: 36px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
}

.tl-year {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.tl-item p { margin: 4px 0 0; }
.tl-item .meta { color: var(--muted); font-size: 0.85rem; }

/* Photos */
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 22px;
}

.portrait {
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  display: block;
  margin: 24px 0;
}

.photo-wide {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin: 28px 0;
}

figure { margin: 28px 0; }
figure img { width: 100%; max-width: 420px; border-radius: 6px; display: block; }
figcaption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Icons - subtle, inline SVG */
.icon {
  color: var(--navy);
  margin-bottom: 12px;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature box */
.feature .action {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
}

.feature .action:hover { text-decoration: underline; }

/* Fade-in on scroll (subtle, progressive enhancement).
   Content is visible by default; JS adds .fade-init just before observing,
   so nothing can be stuck invisible if scripts fail to run. */
.fade-init { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-init.visible { opacity: 1; transform: none; }

/* Lists on speaking page */
.talk {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.talk:last-child { border-bottom: none; }
.talk .meta { color: var(--muted); font-size: 0.88rem; }
.talk h3 { margin: 0 0 4px; font-weight: 500; }

/* Media kit */
.bio-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 20px 0;
}
.bio-block h3 { margin-top: 0; }

/* Footer - quiet */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--navy); }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  nav a { margin-left: 14px; font-size: 0.85rem; }
}
