/* Jermaine Bethune — personal site
   Hybrid: light/serif body (DHH) + minimal top nav (Hali).
   One file, no build step, easy to edit from anywhere. */

:root {
  --bg: #f6f1e7;            /* warm cream, à la DHH */
  --ink: #1a1a1a;           /* near-black body text */
  --muted: #5a5a5a;         /* secondary text */
  --rule: #d9d2c2;          /* hairline dividers */
  --link: #8a2a2a;          /* deep red link, classic editorial */
  --link-hover: #b13030;
  --max: 720px;             /* reading column */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--link-hover); }

/* Top nav -- minimal, single hairline rule */
.topnav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.topnav nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topnav nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.topnav nav a:hover { color: var(--link); text-decoration: underline; }

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

section { margin-bottom: 48px; }

h1 {
  font-family: "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 14px; }

/* Intro block -- portrait inline with text, à la DHH */
.intro {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}
.portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.intro-text h1 { margin-top: -4px; }

/* Project list */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.project-list li:last-child { border-bottom: none; }

/* Footer */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer .copy { margin-top: 6px; font-size: 13px; }

/* Mobile */
@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .intro { grid-template-columns: 1fr; text-align: left; }
  .portrait { width: 110px; height: 110px; }
}
