:root {
  --bg: #39414d;
  --text: #f0f0f0;
  --muted: #b8bec7;
  --link: #f0f0f0;
  --accent: #d1e4dd;
  --rule: #6b7280;
  --surface: #434c59;
  --measure: 44rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-style: dotted; }
:focus-visible { outline: 2px dotted var(--accent); outline-offset: 2px; }

.site-header, main, footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header { padding-top: 3rem; }

.logo { display: block; text-align: center; }
.logo img { width: 300px; max-width: 100%; height: auto; }

.branding {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 3px solid var(--rule);
}

.site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.site-title a { text-decoration: none; }
.tagline { margin: .25rem 0 0; font-size: 1rem; color: var(--muted); }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
nav a { text-decoration: none; }
nav a[aria-current="page"], nav a.active { text-decoration: underline; }

main { padding-top: 3rem; padding-bottom: 3rem; overflow-wrap: break-word; }

h1, h2, h3 { font-weight: 300; line-height: 1.2; }
main > h1 { font-size: clamp(2.25rem, 6vw, 4rem); margin: 0 0 2.5rem; }
main h1:not(:first-child) { font-size: 1.75rem; margin-top: 2.5rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }

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

iframe { max-width: 100%; border: 0; }
iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .95rem;
}
td, th { border: 1px solid var(--rule); padding: .35rem .6rem; vertical-align: top; }

blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); }

del { color: var(--muted); }

.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}
.wp-block-media-text__media { margin: 0; }
@media (max-width: 600px) {
  .wp-block-media-text { grid-template-columns: 1fr; }
  .alignleft, .alignright { float: none; margin: 1rem 0; }
}

footer {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 3px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}
