/* Klingler for Council — static rebuild of the Twenty Seventeen WordPress site.
   Palette pulled from the original header artwork (navy / red / cream). */

:root {
  --navy: #14213d;
  --navy-deep: #0c1628;
  --red: #b31b28;
  --red-dark: #8d1420;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #22262e;
  --ink-dim: #5c6470;
  --rule: #dcd6cb;

  --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(--cream);
}

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

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

a:hover,
a:focus {
  color: var(--red-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(--navy);
  color: var(--cream);
}

.site-banner {
  background: #fff;
}

/* The source header art is 2000x1200 on a white field — uncapped it swallows
   the viewport. Contain it so the logo is never cropped. */
.site-banner img {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
}

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

.site-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.site-title a {
  color: var(--cream);
  text-decoration: none;
}

.site-description {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: #b9c3d6;
}

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

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

.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 1rem;
  color: var(--cream);
  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(--red);
  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(--red);
  margin-bottom: 1.75rem;
}

.site-main h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.25rem 0 0.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.5rem;
}

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

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

figure {
  margin: 2rem 0;
}

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

/* The 649x1449 headshot has a pure-white band across its top 32.8% (the photo
   itself starts at y=475). Twenty Seventeen hid that by rendering the image as a
   cover-cropped CSS background panel; this does the same with object-fit, anchored
   to the bottom so the crop lands exactly on the photo. The aspect-ratio is the
   photo region, 649x974. Also caps the height — uncropped it ran ~710px tall. */
.portrait img {
  max-width: 20rem;
  aspect-ratio: 649 / 974;
  object-fit: cover;
  object-position: bottom;
}

.testimonial {
  margin: 0 0 1.25rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 4px solid var(--rule);
  font-style: italic;
  color: var(--ink-dim);
}

.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.signoff {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
}

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

.site-footer {
  background: var(--navy);
  color: #b9c3d6;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

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

.archive-note {
  max-width: var(--measure);
  margin: 0 auto;
  color: #8e9ab2;
  font-size: 0.85rem;
  line-height: 1.5;
}
