/* House style: dark blue with a warm accent. */
:root {
  --color-navy: #14284b;
  --color-navy-dark: #0d1b33;
  --color-accent: #d98c4a;
  --color-bg: #fdfaf6;
  --color-text: #1d2a44;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
.site-header {
  background: var(--color-navy);
  color: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 4px solid var(--color-accent);
}
.site-name { font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; }
main { max-width: 60rem; margin: 0 auto; padding: 2rem 1.5rem; min-height: 50vh; }
.site-footer { background: var(--color-navy-dark); color: #fff; padding: 1rem 1.5rem; text-align: center; }
a { color: var(--color-accent); }
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; padding-bottom: 1.5rem; }
.intro-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 4px solid var(--color-accent); }
.intro h1 { margin: 0; color: var(--color-navy); font-size: 2.25rem; }
.intro-title { margin: .25rem 0 0; font-size: 1.2rem; color: var(--color-accent); }
.profile h2 { color: var(--color-navy); }

.experience h2 { color: var(--color-navy); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--color-accent); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--color-navy); border: 3px solid var(--color-accent); }
.timeline-period { margin: 0; font-weight: 600; color: var(--color-accent); }
.timeline-item h3 { margin: .1rem 0; color: var(--color-navy); }
.timeline-employer { margin: 0 0 .5rem; font-style: italic; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { margin-bottom: 1.5rem; }
.entry h3, .licenses h3 { margin: .1rem 0; color: var(--color-navy); }
.button { display: inline-block; margin-top: 1rem; padding: .6rem 1.2rem; background: var(--color-accent); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; }
.button:hover, .button:focus { background: var(--color-navy); }

/* Navigation and responsive layout */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 7rem; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-nav a { color: #fff; text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus { border-bottom-color: var(--color-accent); }
img { max-width: 100%; height: auto; }
main { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  main { padding: 1.25rem 1rem; }
  .site-header { padding: .75rem 1rem; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; font-size: .95rem; white-space: nowrap; }
  section[id] { scroll-margin-top: 6rem; }
  .intro { flex-direction: column; text-align: center; gap: 1rem; }
  .intro h1 { font-size: 1.75rem; }
}
