/* FITRADIO blog -- static edition.
   One stylesheet, no JavaScript, no external fonts or CDNs.

   The max-width rule below is load-bearing: the original site served every
   in-content image through Jetpack Photon, which resized it via ?fit= query
   parameters. The static site serves the full-size original from
   /wp-content/uploads/, so without this constraint every image would render at
   its native resolution and blow the layout apart. */

:root {
  --ink: #1b1d21;
  --muted: #5c6068;
  --accent: #e8552d;
  --rule: #e4e6ea;
  --bg: #ffffff;
  --header-bg: #2c2c2c;
  --maxw: 44rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

figure { margin: 1.75rem 0; }
figure img { display: block; }
figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .875rem;
}

a { color: var(--accent); }
a:hover, a:focus { color: #b93c1a; }

.container {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: #fff;
  padding: .5rem .75rem;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--header-bg);
  padding: .75rem 0;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.brand img { display: block; max-height: 37px; width: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a.current {
  color: var(--accent);
  text-decoration: underline;
}

/* Main ------------------------------------------------------------------ */

main { padding: 2.5rem 1.25rem 3.5rem; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: #000;
  margin: 2rem 0 .75rem;
}

.archive-header { margin-bottom: 2rem; }
.archive-header h1 { margin-top: 0; font-size: 2rem; }
.archive-description { color: var(--muted); margin: 0; }

.entry-meta {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}
.entry-meta a { color: var(--muted); }

/* Single post/page ------------------------------------------------------ */

.entry-single { max-width: var(--maxw); margin: 0 auto; }
.entry-single .entry-title { margin-top: 0; font-size: 2.125rem; }
.entry-featured { margin: 1.75rem 0; }
.entry-content { overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.entry-content blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.entry-content pre {
  overflow-x: auto;
  background: #f5f6f8;
  padding: 1rem;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.entry-content td, .entry-content th {
  border: 1px solid var(--rule);
  padding: .5rem;
}
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; }
.entry-empty { color: var(--muted); font-style: italic; }
.wp-block-image, .wp-caption { max-width: 100%; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Card list ------------------------------------------------------------- */

.card-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-thumb { display: block; }
.card-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-body { padding: 1.25rem; }
.card .entry-title { margin: 0; font-size: 1.25rem; }
.card .entry-title a { text-decoration: none; color: #000; }
.card .entry-title a:hover, .card .entry-title a:focus { color: var(--accent); }
.card-excerpt { color: var(--muted); }
.card-more { margin: 0; font-weight: 600; }

.empty { color: var(--muted); }

/* Pagination ------------------------------------------------------------ */

.pagination { margin-top: 3rem; }
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination .current, .pagination .gap {
  display: block;
  padding: .4rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .gap { border-color: transparent; color: var(--muted); }

/* 404 ------------------------------------------------------------------- */

.error404 main { text-align: center; }
.error404 h1 { font-size: 3rem; margin-bottom: .5rem; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--header-bg);
  color: #cfd2d6;
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-brand { font-weight: 600; color: #fff; margin: 0 0 .75rem; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.site-footer a { color: #cfd2d6; font-size: .9375rem; }
.footer-note { margin: 0; font-size: .8125rem; color: #9aa0a6; }
