/* =============================================================
   Braden Nicholson — Personal Site
   style.css  ·  Shared stylesheet for every page
   -------------------------------------------------------------
   Edit the variables in :root to re-theme the whole site at once.
   ============================================================= */

:root {
  --color-bg:        #ffffff;
  --color-surface:   #f4f6f8;
  --color-text:      #1c2430;
  --color-muted:     #5b6776;
  --color-accent:    #1f6feb;   /* primary brand colour */
  --color-accent-dk: #14488f;
  --color-border:    #e2e6ea;

  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", Roboto, sans-serif;

  --maxw: 960px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.nav__brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}
.nav__brand:hover { text-decoration: none; }

.nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--color-muted);
  font-size: 0.95rem;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-surface);
  padding: 4rem 0;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
.hero .tagline { font-size: 1.2rem; color: var(--color-muted); margin: 0 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--color-accent);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--color-accent-dk); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--color-accent);
}
.btn--ghost:hover { background: var(--color-accent); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 1.25rem; }
.section--alt { background: var(--color-surface); }

.lead { font-size: 1.1rem; color: var(--color-muted); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }
.card__meta { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Timeline (experience / education) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  border-left: 2px solid var(--color-border);
  padding: 0 0 1.75rem 1.25rem;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__date { font-size: 0.85rem; color: var(--color-muted); }
.timeline__title { margin: 0.15rem 0; font-size: 1.1rem; }
.timeline__org { color: var(--color-muted); font-style: italic; }

/* ---------- About / profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.profile__photo {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-border);
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 0.5rem; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { margin: 0 auto; }
  .hero h1 { font-size: 1.9rem; }
}
