.style-guide-page {
  background: var(--ivory-white);
}

.style-guide-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.style-guide-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.style-guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 62, 47, 0.88) 0%,
    rgba(44, 62, 47, 0.45) 42%,
    rgba(44, 62, 47, 0.2) 100%
  );
}

.style-guide-hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 3rem;
  text-align: center;
  color: var(--ivory-white);
}

.style-guide-hero-content .brand-mark {
  width: min(260px, 70vw);
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.style-guide-hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.25rem);
  max-width: 18ch;
  margin-inline: auto;
  color: var(--ivory-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.style-guide-hero-content .lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.94;
}

.style-guide-hero-content .accent-label {
  color: var(--pebble-grey);
  opacity: 0.9;
}

.style-guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.style-guide-nav a {
  color: var(--pebble-grey);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.style-guide-nav a:hover {
  color: var(--ivory-white);
  border-bottom-color: rgba(247, 247, 247, 0.4);
}

.guide-intro {
  width: min(920px, 92vw);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}

.guide-intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: var(--franklin-green);
  margin-bottom: 0.75rem;
}

.guide-intro p {
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 42rem;
  margin-inline: auto;
}

.guide-section {
  width: min(1440px, 96vw);
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.style-guide-page .guide-section .gallery-grid {
  width: 100%;
  margin-top: 1.5rem;
}

.guide-section-header {
  margin-bottom: 1.5rem;
}

.guide-section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--franklin-green);
}

.guide-section-header p {
  margin-top: 0.65rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.72;
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.style-card {
  background: #fff;
  border: 1px solid rgba(44, 62, 47, 0.1);
  overflow: hidden;
}

.style-card img {
  display: block;
  width: 100%;
  height: min(16vw, 220px);
  object-fit: cover;
}

.style-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.style-card-body h3 {
  font-size: 1.25rem;
  color: var(--franklin-green);
  margin-bottom: 0.5rem;
}

.style-card-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.style-card-body ul {
  list-style: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-brown);
  opacity: 0.85;
}

.style-card-body li + li {
  margin-top: 0.35rem;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.material-panel {
  background: #fff;
  border: 1px solid rgba(44, 62, 47, 0.1);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.material-panel h3 {
  font-size: 1.35rem;
  color: var(--franklin-green);
  margin-bottom: 0.85rem;
}

.material-list {
  list-style: none;
}

.material-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(79, 66, 58, 0.1);
  font-size: 0.94rem;
  line-height: 1.6;
}

.material-list li:last-child {
  border-bottom: none;
}

.material-list strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--franklin-green);
  margin-bottom: 0.15rem;
}

.material-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1rem;
}

.material-feature img {
  width: 100%;
  min-height: min(28vw, 360px);
  object-fit: cover;
  border: 1px solid rgba(44, 62, 47, 0.1);
}

.material-feature-copy {
  background: var(--pebble-grey);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-feature-copy h3 {
  font-size: 1.5rem;
  color: var(--franklin-green);
  margin-bottom: 0.65rem;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.palette-swatch {
  text-align: center;
}

.palette-swatch span {
  display: block;
  height: 4.5rem;
  border: 1px solid rgba(44, 62, 47, 0.12);
}

.palette-swatch figcaption {
  margin-top: 0.5rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-brown);
  line-height: 1.4;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle-card {
  background: var(--franklin-green);
  color: var(--ivory-white);
  padding: 1.5rem 1.35rem 1.65rem;
}

.principle-card .accent-label {
  color: var(--pebble-grey);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.principle-card h3 {
  font-size: 1.2rem;
  color: var(--ivory-white);
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.92;
}

.style-guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.style-guide-cta-row a {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--franklin-green);
  color: var(--franklin-green);
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.style-guide-cta-row a:hover {
  background: var(--franklin-green);
  color: var(--ivory-white);
}

.style-guide-cta-row a.primary {
  background: var(--franklin-green);
  color: var(--ivory-white);
}

.style-guide-cta-row a.primary:hover {
  background: #243528;
}

@media (max-width: 900px) {
  .style-guide-hero-bg {
    object-position: center 30%;
  }

  .style-cards,
  .principles-grid {
    grid-template-columns: 1fr;
  }

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

  .material-feature {
    grid-template-columns: 1fr;
  }

  .palette-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .style-card img {
    height: 48vw;
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .palette-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
