/* ===========================================================
   Chris Whittington — personal site
   Plain CSS. Brand colors live in :root so they're easy to
   change later (e.g. when this becomes Oxford Softworks).
   =========================================================== */

:root {
  --bg:        #0f1115;
  --bg-soft:   #161a21;
  --text:      #e6e8ec;
  --text-dim:  #9aa3b2;
  --accent:    #4f8cff;
  --accent-2:  #7c5cff;
  --border:    #232936;
  --radius:    12px;
  --max-width: 980px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 24px 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  display: block;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---------- Sections ---------- */
.section { padding: 64px 24px; }
.section h2 {
  font-size: 1.8rem;
  margin: 0 0 28px;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.skills {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-h {
  font-size: 1.05rem;
  margin: 28px 0 8px;
  color: var(--text);
}
.about-h:first-child { margin-top: 0; }
.about-years {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 8px;
  white-space: nowrap;
}

.about-body { max-width: 760px; }

/* Uniform photo row for the France & nomad chapter */
.france-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}
.france-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
}
@media (max-width: 560px) {
  .france-photos { gap: 10px; }
}
.skills li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card h3 { margin: 0 0 10px; }
.card p { color: var(--text-dim); margin: 0 0 16px; }
.card-link { font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 36px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-year {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-body h3 { margin: 0 0 8px; }
.timeline-body p { color: var(--text-dim); margin: 0 0 12px; }

/* Highlight the modern revival */
.timeline-item--feature .timeline-body {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.timeline-item--feature::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.site-footer p { color: var(--text-dim); margin: 0; font-size: 0.9rem; }

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 240px; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display: block; padding: 14px 0; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
  }
  .hero-photo { max-width: 360px; margin: 0 auto; }
}
