
:root {
  --ink: #25231f;
  --muted: #68675e;
  --paper: #f8f4eb;
  --card: #fffdf8;
  --clay: #b96f4f;
  --sage: #697865;
  --gold: #c9a46b;
  --line: rgba(37, 35, 31, 0.14);
  --shadow: 0 22px 70px rgba(49, 36, 22, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #e6ded0;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(248, 244, 235, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 9px 14px;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 110px) clamp(20px, 4vw, 56px);
  min-height: 82vh;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
}

.hero-actions, .footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-image img {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: clamp(44px, 7vw, 92px) clamp(20px, 4vw, 56px);
}

.intro-grid, .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article, .cards article, .contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 12px 40px rgba(49, 36, 22, 0.06);
}

.number {
  color: var(--clay);
  font-weight: 800;
  font-size: 0.82rem;
}

.intro-grid h2, .cards h2 { font-size: 2rem; }

.intro-grid p, .cards p, .split p, .gallery-band p, .contact-card p {
  color: var(--muted);
}

.intro-grid a {
  display: inline-block;
  margin-top: 12px;
  color: var(--sage);
  font-weight: 700;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.split.reverse img { order: 2; }

.split img {
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(54px, 9vw, 132px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 52px);
  max-width: 980px;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.check-list {
  padding: 0;
  list-style: none;
  margin: 26px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.gallery-band {
  background: #ede5d8;
}

.gallery-band h2, .gallery-band p {
  max-width: 760px;
}

.gallery {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.gallery.three { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
.gallery.four { grid-template-columns: repeat(4, 1fr); }

.gallery img {
  min-height: 260px;
  border-radius: 24px;
}

.quote-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  background: var(--sage);
  color: var(--paper);
}

.quote-panel blockquote {
  margin: 0;
  max-width: 900px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.02;
  text-align: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
}

.site-footer p { color: rgba(248,244,235,0.72); max-width: 620px; }
.site-footer .button.secondary { color: var(--paper); border-color: rgba(248,244,235,0.28); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }

  .hero, .split, .split.reverse, .contact-card, .site-footer {
    grid-template-columns: 1fr;
  }
  .split.reverse img { order: 0; }
  .intro-grid, .cards, .gallery.three, .gallery.four {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.sequence-section {
  background: var(--card);
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sequence-grid figure {
  margin: 0;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.sequence-grid img {
  aspect-ratio: 4 / 5;
}

.sequence-grid figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.gallery.masonry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery.masonry img {
  aspect-ratio: 4 / 5;
}

.gallery-band.light {
  background: var(--paper);
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  .sequence-grid,
  .gallery.masonry {
    grid-template-columns: 1fr 1fr;
  }
}

/* Refinements after photo review */
.page-hero.with-image {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.page-hero.with-image img {
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-hero.centered,
.text-only.centered {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-only.centered > div {
  max-width: 820px;
  margin: 0 auto;
}

.centered-list {
  display: inline-block;
  text-align: left;
}

.image-contain {
  object-fit: contain;
  background: var(--card);
}

.clean-gallery-section {
  padding-top: 24px;
}

.clean-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.clean-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(49, 36, 22, 0.08);
}

@media (max-width: 980px) {
  .page-hero.with-image {
    grid-template-columns: 1fr;
  }

  .clean-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .clean-gallery {
    grid-template-columns: 1fr;
  }
}

.teaching-in-action {
  background: var(--paper);
}

.teaching-in-action h2 {
  max-width: 760px;
}

.teaching-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.teaching-row img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(49, 36, 22, 0.08);
}

@media (max-width: 860px) {
  .teaching-row {
    grid-template-columns: 1fr;
  }
}

/* Final consistency tweaks */
.split img.image-contain {
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.gallery.four img {
  height: clamp(220px, 18vw, 320px);
  aspect-ratio: auto;
  object-fit: cover;
}

.gallery-title-only {
  padding-bottom: 0;
}

.gallery-title-only .eyebrow {
  margin-bottom: 0;
  text-align: center;
}

.clean-gallery-section {
  padding-top: clamp(18px, 3vw, 36px);
}

.clean-gallery img {
  background: transparent;
}

.page-hero.centered {
  text-align: center;
}

.page-hero.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.text-only.centered {
  text-align: center;
}

.text-only.centered p {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

/* Specific final fixes */
.clean-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.gallery.four img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

/* Final home/cooking polish only */
body:has(.hero) .hero {
  align-items: start;
  min-height: auto;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 72px);
}

body:has(.hero) .hero h1 {
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 760px;
}

body:has(.hero) .hero-image {
  margin-top: 0;
}

body:has(.hero) .hero-image img {
  aspect-ratio: 4 / 4.7;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: grid;
  gap: 14px;
  text-align: center;
  color: var(--ink);
}

.plain-list li {
  padding: 0;
  margin: 0;
}

.plain-list li::before {
  content: none;
}

/* Final requested fixes */
body:has(.hero) .hero h1 {
  font-size: clamp(2.65rem, 5.35vw, 4.85rem);
  max-width: 820px;
}

body:has(.hero) .hero-image img {
  aspect-ratio: 1 / 1;
}

.offering-lines {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.offering-lines p {
  margin: 0;
  color: var(--ink);
}


/* Gallery sequence fix */
.clean-gallery img.sequence-photo {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* Mobile homepage image sizing fix */
@media (max-width: 860px) {
  body:has(.hero) .hero-image {
    margin: 0;
    width: 100%;
  }

  body:has(.hero) .hero-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
  }
}
