/* ===========================================================================
   Pearce J. Barry — site styles
   ---------------------------------------------------------------------------
   Quick-change knobs live in :root below. Adjust a value and reload the page.
   Everything uses system fonts (no web-font download) for fast loading.
   =========================================================================== */

:root {
  --max-width: 760px;        /* page content width */
  --text: #1a1a1a;           /* main text color   */
  --muted: #555;             /* secondary text    */
  --link: #1155cc;           /* link color        */
  --accent: #0b5394;         /* heading accent    */
  --bg: #ffffff;             /* page background   */
  --rule: #e3e3e3;           /* divider lines     */
}

* { 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.55;
}

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

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

h1 {
  font-size: 2.2rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.5px;
}

.resume {
  margin: 0;
  color: var(--muted);
}

/* ---- Sections ---- */
section { margin: 2.25rem 0; }

h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.25rem;
  color: var(--text);
}

/* ---- Lists ---- */
ul {
  margin: 0.4rem 0;
  padding-left: 1.4rem;
}

li { margin: 0.25rem 0; }

/* nested lists a little tighter/dimmer */
ul ul { margin: 0.2rem 0; }

p { margin: 0.5rem 0; }

/* ---- Links ---- */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus { text-decoration: underline; }

/* ---- Small screens ---- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  main { padding: 1.75rem 1rem 3rem; }
}
