:root {
  --color-text: #111111;
  --color-muted: #555555;
  --color-border: #e5e5e5;
  --color-banner: #e5f23d;
  --color-footer-bg: #435363;
  --font-display: 'Alfa Slab One', Impact, 'Arial Black', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* Top banner */
.top-banner {
  background: var(--color-banner);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  text-align: center;
}

.banner-text {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.banner-link {
  color: #1a56db;
  text-decoration: underline;
}

/* Hero (exercise pages only) */
.hero {
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  padding: 3rem 2rem;
  aspect-ratio: 1140 / 473;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.hero-inner { max-width: 640px; }

.hero-title {
  font-family: var(--font-display);
  font-size: 64pt;
  line-height: 0.95;
  margin: 0;
  color: #0a0a0a;
}

.hero-subtitle {
  font-family: 'Roboto', var(--font-sans);
  font-weight: 300;
  font-size: 20pt;
  margin: 0.5rem 0 0;
  color: #0a0a0a;
}

.hero-subtitle strong {
  font-weight: 700;
}

@media (max-width: 500px) {
  .hero-title { font-size: 44.8pt; }
  .hero-subtitle { font-size: 14pt; }
}

.hero-greeting {
  font-family: 'Roboto', var(--font-sans);
  font-weight: 400;
  font-size: 11pt;
  margin: 0.75rem 0 0;
  color: #0a0a0a;
}

/* Page layout */
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .page {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
  }
}

main.exercise { min-width: 0; }

h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32pt;
  margin: 0 0 0.5rem;
}

.subtitle {
  color: var(--color-text);
  margin: 0 0 2rem;
  max-width: 60ch;
}

/* Steps */
.step { margin-bottom: 2.5rem; }

.step h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18pt;
  margin: 0 0 0.5rem;
}

.step p { margin: 0 0 1rem; max-width: 65ch; }

.step-images {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 10px;
}

.step:first-of-type .step-images {
  gap: 161px;
}

.step-images img {
  flex: 0 0 auto;
  height: auto;
  width: var(--img-w);
}

@media (max-width: 500px) {
  main.exercise h1 {
    font-size: 22.4pt;
  }

  .step-images {
    gap: 1.4rem;
  }

  .step:first-of-type .step-images {
    gap: 113px;
  }

  .step-images img {
    width: calc(var(--img-w) * 0.7);
  }
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.callout-korner {
  background: var(--color-banner);
  border-radius: 8px;
  padding: 1.4rem 1.4rem 0;
  text-align: center;
  overflow: hidden;
  width: 70%;
  align-self: center;
}

.callout-icon { width: 2.1rem; height: 2.1rem; margin: 0 auto; }

.callout-korner h3 { margin: 0.525rem 0 0.35rem; font-size: 9.8pt; }
.callout-korner p { margin: 0 0 1.05rem; font-size: 8.4pt; }

.korner-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Archive page */
.archive-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.archive-title {
  font-family: var(--font-display);
  font-size: 56pt;
  line-height: 0.95;
  margin: 0 0 3rem;
}

.exercise-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 500px) {
  .exercise-list { grid-template-columns: repeat(3, minmax(0, 300px)); }
}

.exercise-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.exercise-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eeeeee;
}

.exercise-card-body { padding: 1rem; }
.exercise-card h2 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.exercise-card .card-desc { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.exercise-card .card-time { font-weight: 700; font-size: 0.85rem; margin: 0; }

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
}
