/* robertwaltman.com — clean professional theme */

:root {
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --accent: #3d5a80;
  --accent-hover: #2c4360;
  --border: #e2e8f0;
  --timeline-dot: #3d5a80;
  --max-width: 52rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Main layout */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

section > h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Hero */

.hero {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.375rem;
  line-height: 1.2;
}

.hero .title {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero .tagline {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons & links */

.btn {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.75rem;
  border-left: 2px solid var(--border);
  margin-left: 0.375rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.4375rem;
  top: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--timeline-dot);
}

.timeline-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.125rem;
}

.timeline-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.timeline-item li {
  margin-bottom: 0.25rem;
}

.earlier-career {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.earlier-career dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
}

.earlier-career dd {
  margin: 0.125rem 0 0;
}

/* Project cards */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.project-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.project-card .btn {
  align-self: flex-start;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-group h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 0.375rem;
}

.skill-group p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Education */

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-list li {
  margin-bottom: 0.5rem;
}

.edu-list strong {
  font-weight: 600;
}

/* Contact */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.375rem;
}

/* Detail pages */

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.page-header .lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 40rem;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  border: none;
  padding: 0;
  display: block;
}

.detail-section p,
.detail-section ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.detail-section ul {
  padding-left: 1.25rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tech-tag {
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text-muted);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.city-grid li {
  font-size: 0.875rem;
  padding: 0.375rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  text-align: center;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.game-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.game-card .subtitle {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.625rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

/* Mobile nav */

@media (max-width: 40rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
  }
}

/* Focus */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
