/* chock.llc — a faithful lift of the Google Sites look: black nav, light page,
   Lato body, PT Sans Narrow display type, cream (#fce5cd) type on photos. */

:root {
  --black: #000;
  --ink: #212121;
  --ink-soft: #555;
  --page: #fff;
  --rule: #e0e0e0;
  --cream: #fce5cd;
  --body-font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --display-font: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
  --measure: 42rem;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: inherit; text-underline-offset: 0.15em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; }

/* ---------- header and navigation ---------- */

.site-header { background: var(--black); color: #fff; }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display-font);
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-brand__logo { display: block; height: 40px; width: auto; }

.site-nav,
.site-nav__sub { list-style: none; margin: 0; padding: 0; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

.site-nav > li { position: relative; }

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { border-bottom-color: #fff; }

.site-nav__sub {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 11rem;
  background: var(--black);
  padding: 0.5rem 1rem 0.75rem;
  z-index: 5;
}
.site-nav__sub a { display: block; white-space: nowrap; }
.has-children:hover .site-nav__sub,
.has-children:focus-within .site-nav__sub { display: block; }

/* ---------- home hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 4rem);
  background-color: #333;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }

.hero__inner {
  position: relative;
  max-width: 76rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.hero__title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 18em;
}

.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 34em;
  margin: 0;
}

/* ---------- page and post banners ---------- */

.banner {
  background: var(--black);
  color: var(--cream);
  background-size: cover;
  background-position: center;
  position: relative;
}
.banner--image { min-height: 22rem; display: flex; align-items: flex-end; }
.banner--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.6)); }

.banner__inner {
  position: relative;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.banner__title {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
  max-width: 22em;
}

.banner__caption {
  max-width: var(--measure);
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- body copy ---------- */

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--body-font);
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }

.prose p,
.prose ul,
.prose ol { margin: 0 0 1.1rem; }

.prose blockquote {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--black);
  font-size: 1.25rem;
  font-style: italic;
}
.prose blockquote cite { font-size: 1rem; font-style: normal; color: var(--ink-soft); }

.post-meta { color: var(--ink-soft); font-size: 0.95rem; }

.post-back { margin-top: 3rem; }

/* ---------- blog index ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list__item { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.post-list__item:first-child { border-top: 0; padding-top: 0; }

.prose .post-list__title { font-size: 1.35rem; margin: 0 0 0.25rem; }
.post-list__title a { text-decoration: none; }
.post-list__title a:hover { text-decoration: underline; }

.prose .post-list__item .post-meta { margin: 0 0 0.4rem; }
.prose .post-list__summary { margin: 0; }

/* ---------- workshop tools ---------- */

.button-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--black);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
}
.button:hover,
.button:focus-visible { background: #333; }

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

.site-footer {
  background: var(--black) url("/assets/img/footer.jpg") center left / cover no-repeat;
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.site-footer__social { display: inline-block; line-height: 0; }
.site-footer__social:hover,
.site-footer__social:focus-visible { color: var(--cream); }
