/* Chris Joris — first-party stylesheet. System fonts, no third-party assets.
   Black header and red accent follow the old site. Headings use a system serif
   in place of Cantata One so the page does not fetch a font. */

:root {
  --ink: #161616;
  --muted: #5c5c5c;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --line: #e4e4e4;
  --header: #000000;
  --header-ink: #ffffff;
  --accent: #dd3333;
  --link: #1e73be;
  --link-hover: #dd3333;
  --focus: #dd3333;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --wrap: 68rem;
  --measure: 44rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header :focus-visible {
  outline-color: #fff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  font-weight: 650;
}

.skip:focus {
  top: 0.75rem;
}

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

.bar {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.15rem 0 0.85rem;
  text-align: center;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  height: 5.2rem;
  width: auto;
}

.tagline {
  margin: 0.55rem 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  border-top: 1px solid #2a2a2a;
  border-bottom: 4px solid var(--accent);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.15rem;
  list-style: none;
  width: min(var(--wrap), calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.2rem 0 0.35rem;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.75rem;
  color: var(--header-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 1.75rem 0 3rem;
}

main:focus {
  outline: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.home__intro {
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  color: #111;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 0.55rem;
}

h2 {
  font-size: 1.65rem;
  margin: 2rem 0 0.7rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.6rem 0 0.55rem;
}

h4 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.45rem;
}

.lede,
.byline,
.kicker {
  color: var(--muted);
}

.lede {
  font-size: 1.15rem;
  margin: 0;
}

.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.byline {
  margin: 0 0 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  min-width: 0;
}

.card__media {
  display: block;
  aspect-ratio: 15 / 8;
  overflow: hidden;
  background: var(--soft);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card h2 {
  font-size: 1.35rem;
  margin: 0;
}

.card h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.card p {
  margin: 0;
}

.article {
  max-width: 46rem;
  margin-inline: auto;
}

.hero {
  margin: 0 0 1.25rem;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: #9a9a9a;
}

.prose {
  overflow-wrap: break-word;
}

.prose::after {
  content: "";
  display: table;
  clear: both;
}

.prose h2,
.prose h3,
.prose h4 {
  clear: both;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.prose img {
  height: auto;
}

.prose img.aligncenter,
.prose img.alignnone {
  display: block;
  margin: 1.2rem auto;
}

.prose img.alignright {
  float: right;
  width: min(300px, 42%);
  margin: 0.25rem 0 1rem 1.25rem;
}

.prose img.alignleft {
  float: left;
  width: min(300px, 42%);
  margin: 0.25rem 1.25rem 1rem 0;
}

.more {
  clear: both;
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.more ul {
  padding-left: 1.15rem;
}

.more li {
  margin: 0.35rem 0;
}

.site-footer {
  background: var(--header);
  color: var(--header-ink);
  padding: 1.15rem 0 1.5rem;
}

.site-footer a {
  color: #fff;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.copy {
  margin: 0.2rem 0 0;
  color: #c8c8c8;
  font-size: 0.95rem;
}

@media (max-width: 40rem) {
  .site-logo {
    height: 4.2rem;
  }

  .prose img.alignright,
  .prose img.alignleft {
    float: none;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 1rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .skip,
  .site-header .nav,
  .site-footer nav {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .nav {
    border: 0;
  }
}
