/* Encinos Community Center - one shared stylesheet.
   Colors and fonts are defined once in :root; change them here. */
:root {
  --ink: #1b2b45;
  --cobalt: #2557a7;
  --marigold: #f0a81c;
  --paper: #fbfbf8;
  --sky: #e8eff8;
  --stone: #55606e;
  --line: #d5dce6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.6 var(--sans);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 40rem; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--marigold); color: var(--ink); padding: .5rem 1rem;
}
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.5rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand { font: 700 1.25rem/1.2 var(--serif); color: #fff; text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a {
  color: #fff; text-decoration: none; padding: .25rem 0;
  border-bottom: 3px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { border-bottom-color: var(--marigold); }

/* Headings */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.15; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* Layout blocks */
.hero { padding: 3rem 0 1.5rem; }
.lede { font-size: 1.3rem; max-width: 36rem; }
.section { padding: 1.75rem 0; }

.panel { background: var(--sky); padding: 1.5rem; border-radius: .5rem; }
.panel > :last-child { margin-bottom: 0; }

.button {
  display: inline-block; background: var(--marigold); color: var(--ink);
  font-weight: 700; text-decoration: none; padding: .8rem 1.4rem;
  border-radius: .4rem;
}
.button:hover { background: #ffc04a; }
.button:focus-visible { outline-color: var(--ink); }

/* What the center offers */
.offer { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 1rem; }
.offer li { padding-left: 1rem; border-left: 4px solid var(--sky); }
.offer strong { font-family: var(--serif); font-size: 1.2rem; }

/* Timeline: a true sequence, so the markers mean something */
.timeline {
  list-style: none; margin: 1.5rem 0; padding: 0 0 0 1.75rem;
  border-left: 4px solid var(--marigold);
}
.timeline li { position: relative; padding: 0 0 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; top: .35rem;
  left: calc(-1.75rem - 2px - .5rem); width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--paper);
}
.timeline strong { display: block; font-family: var(--serif); font-size: 1.25rem; }

/* Give steps */
.steps { padding-left: 1.5rem; }
.steps li { margin-bottom: .75rem; }

/* Update lists */
.post-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.post-list li {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.post-list time { color: var(--stone); min-width: 9.5rem; }

/* Individual posts */
.post { padding: 2.5rem 0 1rem; }
.meta { color: var(--stone); }
figure { margin: 1.5rem 0; }
figcaption { color: var(--stone); font-size: .95rem; margin-top: .4rem; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video { width: 100%; display: block; margin: 1.5rem 0; background: #000; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0;
  color: var(--stone); font-size: .95rem;
}
.site-footer p { margin-bottom: .4rem; }
