:root {
    --bg: hsl(0, 0%, 100%);
    --fg: #f8f5f0;
    --muted: #6b7d73;
    --page-vertical-padding: 4rem;   /* desktop vertical whitespace */
    --page-horizontal-padding: 8rem; /* horizontal gutter */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    padding-block: var(--page-vertical-padding);
    padding-inline: var(--page-horizontal-padding);
}

.alfa-slab-one-regular {
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-style: normal;
}


.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--page-horizontal-padding); /* keep consistent horizontal gutters */
}

.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 5px solid #073d06;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.brand {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

nav a {
    color: #23401eff;
    font-size: 1.2rem;
    font-family: "Playwrite DE LA", sans-serif;
    text-decoration: none;
    margin-left: 1rem;
}

nav a:hover {
    color: #4e8e43ff;
}

.wrap>h1 {
    margin-top: 1.25rem;
}

/* Base header styling */
.site-header {
  padding: 1rem 2rem;
  margin-bottom: 50px;

}
.header-container {
  display: flex;
  flex-direction: column;     /* stack logo and nav vertically */
  align-items: center;        /* center both logo + nav */
}

.site-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 0.75rem;     /* space between logo and nav */
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  justify-content: center;    /* center nav links under logo */
}

/* Mobile: row with hamburger */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between; /* logo left, burger right */
    align-items: center;
  }

  .site-logo {
    max-width: 150px;
    margin-bottom: 0; /* no gap in row layout */
  }

  .site-nav {
    display: none; /* hidden until toggled */
    width: 100%;
    margin-top: 0.75rem;
  }

  .site-header[data-menu-open="true"] .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;  /* left-align mobile menu */
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Bike image centered */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.hero-image img {
  max-width: 55%;
  height: auto;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop: 3 per row */
  gap: 16px;
}

.image-grid figure {
  margin: 0;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-grid figcaption {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-family: sans-serif;
  font-style: normal;
  font-weight: 600;
  color: rgb(2, 32, 2);
  text-align: Left;
}

/* Tablet */
@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer with centered emblem */
.site-footer {
  margin-top: 6rem;
  padding: 5rem 0;
  text-align: center;
  background-color: #c0debe;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.footer-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Responsive scaling of page whitespace */
@media (max-width: 1024px) {
  :root {
    --page-vertical-padding: 3rem;
    --page-horizontal-padding: 0.9rem;
  }
}

@media (max-width: 600px) {
  :root {
    --page-vertical-padding: 1.25rem;
    --page-horizontal-padding: 0.75rem;
  }
}
