/* Benjamin Draves — site styles */

:root {
  --blue: #1155cc;
  --blue-dark: #0b3d91;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --rule: #202124;
  --maxw: 1000px;
  --colw: 300px;
  --gap: 44px;
  --font: "Google Sans", "Google Sans Text", Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

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

/* ---------- Top bar ---------- */

.topbar { background: var(--blue); }

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.brand {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  padding: 12px 0;
}
.brand:hover { color: #fff; text-decoration: none; }

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: var(--colw) 1fr;
  gap: var(--gap);
  align-items: start;
  padding: 32px 0;
}

.portrait { display: block; width: 100%; }

/* ---------- Headings & text ---------- */

h2 {
  margin: 26px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
}
h2:first-child { margin-top: 0; }

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

.section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

/* ---------- Lists ---------- */

ul.bullets {
  margin: 0 0 10px;
  padding-left: 18px;
  list-style: square;
}
ul.bullets li { margin: 1px 0; }
ul.bullets li::marker { color: var(--muted); font-size: 0.85em; }

ul.bullets.spaced li { margin: 0 0 9px; }
ul.bullets.spaced li:last-child { margin-bottom: 0; }

.when { font-weight: 700; }

/* ---------- Rules ---------- */

hr.heavy {
  height: 0;
  margin: 4px 0 0;
  border: 0;
  border-top: 3px solid var(--rule);
}

/* ---------- Interior pages ---------- */

.page-head { padding: 26px 0 4px; }
.page-head h1 {
  margin: 0 0 2px;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}
.page-head p { margin: 0; color: var(--muted); }

main { padding-bottom: 8px; }

section.block { padding: 22px 0; }

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

footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding: 16px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  :root { --colw: 240px; --gap: 32px; }
  .wrap, .topbar-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 640px) {
  .split {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0;
  }
  .portrait { max-width: 260px; }
  .section-title { font-size: 24px; }
  .topbar-inner { padding-top: 8px; }
  .brand { padding: 6px 0; }
}
