/* seanmccaman.com — lightweight modern stylesheet, no framework. */

:root {
  --ink:    #1f2328;
  --muted:  #5b6470;
  --accent: #4a7c2a;
  --line:   #e3e6e2;
  --bg-soft:#f6f7f4;
  --maxw:   960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

h1, h2, h3 { line-height: 1.25; }

/* --- header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a {
  margin-left: 22px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }

/* --- sections --- */
section {
  padding: 56px 0;
  scroll-margin-top: 72px;       /* clears the sticky header on anchor jumps */
}
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
}

/* --- hero / about --- */
.hero {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.headshot {
  width: 240px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}
.hero-text h1 {
  margin: 0 0 .4rem;
  font-size: 2.1rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* --- project cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--bg-soft);
}
.card h3 { margin: 0 0 .5rem; }
.card p  { margin: 0 0 .8rem; color: var(--muted); }
.card .links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.card .links a { text-decoration: none; font-weight: 600; }
.card .links a:hover { text-decoration: underline; }
.card .links .repo { color: var(--ink); }

/* --- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 8px; }
.site-footer-nav a { color: var(--muted); text-decoration: none; }
.site-footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-copy { margin: 0; }

/* --- mobile --- */
@media (max-width: 620px) {
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .headshot { width: 200px; }
  .hero-text h1 { font-size: 1.8rem; }
}
