/* ---------------------------------------------------------------
   Izaak Walton — personal site
   Shared styles for all pages. Plain HTML + CSS, no build step.
   --------------------------------------------------------------- */

:root {
  --bg:        #fbfaf8;
  --surface:   #ffffff;
  --text:      #1c1c1e;
  --muted:     #5f6169;
  --accent:    #2a4b8d;
  --accent-sf: #eaf0fb;
  --border:    #e6e4df;
  --maxw:      46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14151a;
    --surface:   #1c1e26;
    --text:      #e9e9ec;
    --muted:     #a2a5b0;
    --accent:    #8fb0ee;
    --accent-sf: #1f2635;
    --border:    #2b2e39;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Site header / nav ---- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.nav a {
  color: var(--muted);
  margin-left: 1.3rem;
  font-size: 0.95rem;
}
.nav a:first-child { margin-left: 0; }
.nav a.active { color: var(--text); font-weight: 600; }

/* ---- Main ---- */

main { padding: 3rem 0; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.4rem; }
h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.05rem; margin: 0; }

.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 2rem; }

/* ---- Landing intro ---- */

.intro h1 { margin-bottom: 0.2rem; }
.intro .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}
.intro p { margin: 0 0 1.1rem; }

/* ---- CV ---- */

.cv-header { margin-bottom: 1rem; }
.cv-contact {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.cv-contact a { color: var(--muted); }

.entry { margin-bottom: 1.6rem; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.entry-head .role { font-weight: 600; }
.entry-head .org { color: var(--muted); font-weight: 400; }
.entry-head .dates {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.entry ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.entry li { margin-bottom: 0.35rem; }

.edu-item { margin-bottom: 0.9rem; }
.edu-item .degree { font-weight: 600; }
.edu-item .dates { display: block; color: var(--muted); font-size: 0.9rem; }

.skills-row { margin: 0 0 0.6rem; }
.skills-row .label { font-weight: 600; color: var(--accent); }

.cv-actions { margin-top: 2.2rem; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.95rem;
}
.btn:hover { background: var(--accent-sf); text-decoration: none; }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.6rem 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer a { color: var(--muted); }
