@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Playfair+Display:wght@700&family=Inter:wght@400;500&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: #f7f4ee;
  color: #1c1a17;
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Site Header ─── */
.site-header {
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid #d9d4c9;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.site-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1c1a17;
}

.site-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #8a7f6e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Home: Ride List ─── */
.ride-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

.ride-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 5rem;
  border-bottom: 1px solid #d9d4c9;
  padding-bottom: 5rem;
}

.ride-entry:last-child {
  border-bottom: none;
}

.ride-entry a.entry-link {
  display: block;
}

.ride-entry a.entry-link:hover .entry-title {
  color: #b85c2a;
}

.entry-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.entry-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7f6e;
  margin-bottom: 0.6rem;
}

.entry-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  transition: color 0.15s ease;
}

.entry-excerpt {
  font-size: 0.95rem;
  color: #4a4539;
  line-height: 1.8;
  max-width: 68ch;
}

/* ─── Ride Entry Page ─── */
.entry-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.entry-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.entry-body .entry-meta {
  margin-bottom: 0.75rem;
}

.entry-body .entry-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.entry-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #1c1a17;
}

.entry-text p:first-child::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: #b85c2a;
}

/* ─── Inline Photos ─── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-full {
  margin: 2.5rem -2rem;
}

.photo-full img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ─── Back link ─── */
.back-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7f6e;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #d9d4c9;
  padding-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #b85c2a;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid #d9d4c9;
  padding: 2rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #8a7f6e;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-header {
    flex-direction: column;
    gap: 0.4rem;
  }

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

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-full {
    margin: 2rem -1.5rem;
  }
}
