:root {
  /* Nordic/Matte Palette */
  --bg: #E6E1D4;
  /* Jono Smart inspired warm stone */
  --text: #2C2C2C;
  /* Soft matte black */
  --subtext: #595959;
  --accent: #8C8C8C;
  /* Muted grey for hover */
  --border: #d4cfc2;
  --card-bg: #F4F1E8;
  /* Slightly lighter tone for cards */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  /* Airy reading experience */
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
}

.page-content {
  max-width: 1400px;
  /* Wider canvas for gallery feel */
  margin: 0 auto;
  padding: 0 4vw;
}

/* Header - Centered Layout */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 30px 40px;
  background-color: var(--bg);
  /* Solid background to hide scroll */
  z-index: 100;
  transition: padding 0.3s ease;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 32px;
}

.nav-right {
  justify-content: flex-end;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  justify-self: center;
}

.logo {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.site-header a:hover {
  opacity: 0.6;
}

/* Hero / About Split */
.about-section-split {
  display: flex;
  flex-direction: column-reverse;
  /* Text below image on mobile, reversed on desktop */
  align-items: center;
  gap: 60px;
  padding: 120px 0;
}

@media (min-width: 768px) {
  .about-section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 80px;
  }
}

.about-text {
  max-width: 500px;
}

.about-text h2 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 32px;
}

.about-text p {
  font-size: 18px;
  /* Slightly larger, thinner body text */
  margin-bottom: 24px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(10%) contrast(90%);
  /* Subtle matte film look */
}

/* Training Section - "Quirky" Grid */
.training-section {
  padding: 100px 0;
}

.training-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 60px;
  text-align: center;
  color: var(--subtext);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

/* Staggered grid effect for "Quirky" feel */
@media (min-width: 900px) {
  .training-card:nth-child(even) {
    margin-top: 60px;
  }
}

.training-card img {
  width: 100%;
  aspect-ratio: 3/4;
  /* Consistent portrait ratio */
  object-fit: cover;
  margin-bottom: 20px;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.training-card:hover img {
  filter: grayscale(0%);
}

.training-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

.training-card p {
  font-size: 15px;
  color: var(--subtext);
  line-height: 1.6;
}

/* Contact & Footer */
.contact-section {
  padding: 100px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: 24px;
  margin-bottom: 32px;
}

.contact-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--subtext);
  border-top: 1px solid var(--border);
}

/* Gallery / Work - Clean Masonry Layout */
.gallery-section {
  padding: 100px 0;
  text-align: center;
}

.gallery-section h2 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: 60px;
  letter-spacing: 0.12em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  text-align: left;
}

/* Subtle staggering for quirky effect - on larger screens only */
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:nth-child(3n+2) {
    margin-top: 40px;
  }
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item img {
  width: 100%;
  height: 450px;
  /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: grayscale(15%) sepia(8%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%) sepia(0%);
  transform: scale(1.02);
}

/* Shop Grid - More structured */
.shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
}

@media (min-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shop-item {
  text-align: left;
  transition: transform 0.3s ease;
}

.shop-item:hover {
  transform: translateY(-5px);
}

.shop-item img {
  width: 100%;
  height: 380px;
  /* Slightly shorter for shop items */
  object-fit: cover;
  margin-bottom: 20px;
  filter: grayscale(10%);
  transition: filter 0.3s ease;
}

.shop-item:hover img {
  filter: grayscale(0%);
}

.shop-item h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.shop-item p {
  font-size: 15px;
  color: var(--subtext);
  font-weight: 500;
}

@media (max-width: 600px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 20px;
  }

  .nav-left,
  .nav-right {
    gap: 20px;
  }

  .gallery-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img,
  .shop-item img {
    height: 350px;
    /* Smaller on mobile */
  }
}