/* ianfoster.org — one stylesheet, no frameworks, no JavaScript. */

:root {
  --text: #1c1c1c;
  --muted: #595959;
  --accent: #1a4a7a;
  --bg: #fffefb;
  --rule: #d9d4c8;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base */

body {
  margin: 0;
  font-family: Charter, Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

main, header.site, footer.site {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

nav a {
  margin-right: 1.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover, nav a.here { color: var(--accent); }

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 1.5rem 0 0.25rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.5rem;
}

p.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0;
}

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

ul.works { list-style: none; padding: 0; }
ul.works li { margin-bottom: 0.9rem; }
.where { color: var(--muted); }

footer.site {
  margin-top: 4rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
