* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu Mono', monospace;
  background: #f9f9f9;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.title-bar {
  background-color: #000;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

.site-title img {
  height: 40px;
  width: auto;
}

.title-bar nav {
  display: flex;
  gap: 16px;
}

.title-bar nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.title-bar nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-title {
    font-size: 1.4rem;
  }
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

/* Carousel */
.carousel-section {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.carousel-section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: #111;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track {
  flex: 1;
  position: relative;
  min-height: 200px;
}

.carousel-card {
  display: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.carousel-card.active {
  display: block;
}

.card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  display: block;
  margin: -28px -28px 16px;
  width: calc(100% + 56px);
}

.card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
}

.card-summary {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-link {
  display: inline-block;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.carousel-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #333;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #000;
}

/* Posts list */
.posts-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.posts-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  color: #111;
}

.year-divider {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin: 40px 0 12px;
}

.year-divider:first-of-type {
  margin-top: 0;
}

.post-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #000;
}

.post-card-main {
  flex: 1;
  min-width: 0;
}

.post-card-date {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
}

.post-card-summary {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-top: 8px;
}

.post-card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

/* About */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.about h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 32px;
}

.about h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 40px 0 12px;
}

.about p {
  margin-bottom: 20px;
}

/* Post */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.post-cover {
  margin: -60px -24px 48px;
}

.post-cover img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.post-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #111;
}

.post-stats {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.post-stats span::before {
  content: '—  ';
  color: #bbb;
}

.post-stats span:first-child::before {
  content: '';
}

/* Post body typography */
.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  font-family: 'Lora', serif;
}

.post-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: #111;
}

.post-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: #111;
}

.post-body p {
  margin-bottom: 24px;
}

.post-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0 4px;
}

.post-body em {
  font-style: italic;
}

.post-body img + em,
.post-body p:has(img) + p > em:only-child {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 32px;
}

.post-body a {
  color: #000;
  text-decoration: underline;
}

/* Strava embed */
.post-photos {
  margin-top: 24px;
}

.post-photos figure {
  margin: 0 0 16px;
}

.post-photos img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.post-photos figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* Footer */
.site-footer {
  background-color: #000;
  color: #aaa;
  text-align: center;
  padding: 32px 24px;
  margin-top: 80px;
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
}

.footer-socials a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #666;
}

.post-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.post-back a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.post-back a:hover {
  text-decoration: underline;
}

.post-strava {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}
