/* The static blog, matching the app's look without loading the app. */
@font-face {
  font-family: 'Hedvig Letters Sans';
  src: url('/assets/fonts/hedvig-letters-sans-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #2A2623;
  --muted: rgba(42, 38, 35, 0.66);
  --line: rgba(42, 38, 35, 0.12);
  --accent: #C2410C;
  --strava: #FC4C02;
  --tint: #F7F7F7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.7 'Hedvig Letters Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
/* The poster images have a thin blue keyline baked into their edge. */
.poster img, .cards img { clip-path: inset(0.3%); }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1024px;
  height: 56px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.connect {
  background: var(--strava);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 46px); }

.article, .listing { margin: 0 auto; padding: 32px 20px 64px; }
.article { max-width: 680px; }
.listing { max-width: 1024px; }

.crumbs { margin-bottom: 16px; font-size: 14px; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a::before { content: '← '; }
.meta, .lede { color: var(--muted); }
.meta { margin: 0 0 28px; font-size: 14px; }
.lede { max-width: 560px; margin: 0 0 36px; }

.poster { margin: 0 0 32px; padding: 32px; background: var(--tint); }
.poster img { width: min(100%, 320px); margin: 0 auto; }

.article h2 { margin: 40px 0 12px; font-size: 28px; }
.article h3 { margin: 28px 0 8px; font-size: 21px; }
.article li { margin-bottom: 8px; }
.article ul, .article ol { padding-left: 22px; }

table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.note { padding: 14px 16px; background: var(--tint); font-size: 15px; }

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 24px;
  background: var(--strava);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.related { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 24px; font-size: 22px; }
.related ul { padding: 0; list-style: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cards a { display: block; height: 100%; padding: 20px; background: var(--tint); color: var(--ink); text-decoration: none; }
.cards img { width: 62%; margin: 0 auto 20px; }
.cards h2 { margin: 0 0 8px; font-size: 22px; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.cta { padding: 64px 20px; background: var(--strava); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 42px); }
.cta p { max-width: 460px; margin: 0 auto 24px; }
.cta a { display: inline-block; padding: 14px 28px; background: #fff; color: var(--accent); font-weight: 600; text-decoration: none; }

footer.site { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 28px 20px; font-size: 13px; }
footer.site a { color: var(--muted); text-decoration: none; }
