/* Matt McPeek for Bexley City Auditor — static rebuild of the Twenty Twenty-One
   WordPress site. Palette pulled from the original VoteMcPeek header artwork. */

:root {
  /* Sampled from the VoteMcPeek header artwork: blue #2858c8, green #28c838. */
  --navy: #14264a;
  --navy-deep: #0a1728;
  --blue: #2858c8;
  --green: #23a832;
  --accent: #2148a8;
  --accent-dark: #16326f;
  --wash: #f4f1ec;
  --paper: #ffffff;
  --ink: #1e2229;
  --ink-dim: #5a626e;
  --rule: #ded8cf;

  --measure: 44rem;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--wash);
}

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

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

a:hover,
a:focus {
  color: var(--accent-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--navy);
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
}

.site-branding {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.75rem;
  text-align: center;
}

.site-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  color: var(--navy);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-banner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
}

/* ---------- nav ---------- */

.site-nav {
  background: var(--navy);
  border-top: 3px solid var(--green);
}

.site-nav ul {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 0.75rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.85rem 1.15rem;
  color: #eef2f8;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

/* ---------- content ---------- */

.site-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--paper);
}

.entry-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--navy);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--green);
  margin-bottom: 1.75rem;
}

.site-main p {
  margin: 0 0 1.1rem;
}

.site-main ul {
  margin: 0 0 1.4rem 1.4rem;
}

.site-main li {
  margin-bottom: 0.6rem;
}

.site-main li ul {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-dim);
}

figure {
  margin: 0 0 2rem;
}

figure img {
  margin: 0 auto;
  border: 1px solid var(--rule);
}

.portrait img {
  max-width: 20rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: #b7c1d2;
  padding: 2.25rem 1.25rem;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.footer-inner h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-inner dl {
  margin-bottom: 1.25rem;
}

.footer-inner dt {
  font-weight: 700;
  color: #eef2f8;
  margin-top: 0.6rem;
}

.footer-inner a {
  color: #fff;
}

.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover,
.social-links a:focus {
  text-decoration: underline;
}
