/* Dark navy + brown/gold theme override for Squarespace mirror */

:root {
  /* Remap Squarespace theme tokens toward navy / gold */
  --white-hsl: 222, 35%, 8%;
  --lightAccent-hsl: 222, 32%, 11%;
  --accent-hsl: 38, 45%, 52%;
  --darkAccent-hsl: 222, 40%, 6%;
  --black-hsl: 38, 28%, 78%;
  --safeLightAccent-hsl: 38, 45%, 52%;
  --safeDarkAccent-hsl: 38, 45%, 52%;
  --safeInverseAccent-hsl: 222, 35%, 8%;
  --safeInverseLightAccent-hsl: 222, 35%, 8%;
  --safeInverseDarkAccent-hsl: 222, 35%, 8%;

  --navy: #0d1524;
  --navy-matte: #0d1524;
  --navy-elevated: #162236;
  --canvas: #0d1524;
  --gold: #c4a35a;
  --gold-soft: #d4b56e;
  --brown-gold: #b8956c;
  --brown-muted: #9a7d5a;
  --cream-gold: #e6d3a8;
  --mist-line: rgba(196, 163, 90, 0.14);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
}

html {
  color-scheme: dark;
  background: var(--canvas) !important;
}

body,
body:not(.sqs-modal-overlay-open) {
  background: var(--canvas) !important;
  color: var(--brown-gold) !important;
  font-family: var(--font-body) !important;
}

/* Force chef-driven typography over Squarespace fonts */
body,
p,
li,
.sqs-html-content,
.sqs-html-content p,
.sqs-html-content li,
.sqs-html-content span,
.header-nav-item a,
.header-menu-nav-item a,
.header-nav a,
.sqs-button-element--primary,
.sqs-block-button-element--primary {
  font-family: var(--font-body) !important;
}

#site-title,
h1, h2, h3, h4, h5, h6,
.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.sqs-html-content h4,
.passion-cook__title {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

/* Header / chrome */
.header,
.header .header-announcement-bar-wrapper,
#header,
.tweak-fixed-header-style-basic #header {
  background: rgba(11, 18, 32, 0.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist-line);
}

.header-nav-item a,
.header-menu-nav-item a,
.header-nav a {
  color: var(--brown-gold) !important;
}

#site-title,
#block-21a729055beee659dc47 h3 {
  background: linear-gradient(
    115deg,
    #7a5424 0%,
    #a67c3d 16%,
    #c4a35a 32%,
    #e6d3a8 48%,
    #b8923f 64%,
    #c4a35a 80%,
    #8a6a2b 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(230, 211, 168, 0.22))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  animation: gold-reflect 5.5s ease-in-out infinite;
}

#site-title:hover,
#block-21a729055beee659dc47 h3:hover {
  filter: drop-shadow(0 1px 0 rgba(245, 230, 184, 0.35))
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
  animation-duration: 2.2s;
}

@keyframes gold-reflect {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.header-nav-item a:hover,
.header-menu-nav-item a:hover {
  color: var(--cream-gold) !important;
}

.burger-inner > div,
.top-bun,
.patty,
.bottom-bun {
  background-color: var(--gold) !important;
}

/* Page sections — one continuous canvas, no template color blocks */
.page-section,
.page-section .section-background,
.page-section .section-border,
.page-section .content-wrapper,
.page-section .content,
#page,
#siteWrapper,
.site-wrapper,
.sections,
main {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.page-section[data-section-theme],
.page-section[data-section-theme=""],
.page-section[data-section-theme="light"],
.page-section[data-section-theme="light-bold"],
.page-section[data-section-theme="white"],
.page-section[data-section-theme="bright"],
.page-section[data-section-theme="black"],
.page-section[data-section-theme="dark"],
.page-section[data-section-theme="dark-bold"],
[data-section-theme] .section-background,
[data-section-theme="light"] .section-background,
[data-section-theme="light-bold"] .section-background,
[data-section-theme="white"] .section-background,
[data-section-theme="black"] .section-background,
[data-section-theme="dark"] .section-background,
[data-section-theme="dark-bold"] .section-background {
  background-color: transparent !important;
  background-image: none !important;
  background: transparent !important;
}

/* Kill Squarespace section hairlines / dividers */
.section-border,
.section-divider,
.page-section .section-border {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.page-section {
  position: relative;
  isolation: isolate;
}

/* Soft atmospheric wash — continuous, not per-block */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(115% 70% at 50% -8%, rgba(196, 163, 90, 0.045), transparent 48%),
    radial-gradient(90% 60% at 50% 110%, rgba(4, 8, 18, 0.55), transparent 58%),
    linear-gradient(
      180deg,
      rgba(10, 16, 28, 0.35) 0%,
      transparent 18%,
      transparent 72%,
      rgba(8, 12, 22, 0.45) 100%
    );
  mix-blend-mode: soft-light;
}

/* Soft dissolve at the bottom of every section into the shared canvas */
.page-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(3.5rem, 8vw, 6.5rem);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 21, 36, 0.45) 55%,
    var(--canvas) 100%
  );
}

/* Large SQSP images dissolve into the page instead of ending in a hard box */
.sqs-block-image .fluid-image-container,
.sqs-block-image .sqs-image,
.sqs-image-content,
.content-fit,
.content-fill {
  position: relative;
  overflow: hidden;
}

.sqs-block-image .fluid-image-container::after,
.sqs-image-content::after,
.content-fill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 21, 36, 0.18) 35%,
    rgba(13, 21, 36, 0.7) 75%,
    var(--canvas) 100%
  );
}

footer.sections,
#footer-sections {
  background: transparent !important;
}

/* About page: never crop photos — show full frame, centered */
body:has(a[href="about.html"][aria-current="page"]) .sqs-block-image img,
body:has(a[href="about.html"][aria-current="page"]) .gallery-masonry-item img,
body:has(a[href="about.html"][aria-current="page"]) .fluid-image-container img,
body:has(a[href="about.html"][aria-current="page"]) .content-fill img,
body:has(a[href="about.html"][aria-current="page"]) .content-fit img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

body:has(a[href="about.html"][aria-current="page"]) .content-fill::after,
body:has(a[href="about.html"][aria-current="page"]) .fluid-image-container::after,
body:has(a[href="about.html"][aria-current="page"]) .sqs-image-content::after {
  content: none !important;
  display: none !important;
}

/* Fallback class if :has unsupported — set on about via body class */
body.kb-about .sqs-block-image img,
body.kb-about .fluid-image-container img,
body.kb-about .content-fill img,
body.kb-about .content-fit img,
body.kb-about .kb-life-grid__item img,
body.kb-about .passion-cook__item img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

body.kb-about .content-fill::after,
body.kb-about .fluid-image-container::after {
  content: none !important;
  display: none !important;
}

/* Home — Who Am I with pink hoodie photo */
.kb-whoami {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  background: transparent;
}

.kb-whoami__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.kb-whoami__photo {
  margin: 0;
  width: 100%;
}

.kb-whoami__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0.94) contrast(1.04) saturate(0.92) !important;
}

.kb-whoami__copy {
  text-align: left;
}

.kb-whoami__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem) !important;
  font-weight: 500 !important;
  color: var(--cream-gold) !important;
  -webkit-text-fill-color: var(--cream-gold);
  margin: 0 0 1rem !important;
  line-height: 1.05;
}

.kb-whoami__text {
  font-family: var(--font-body) !important;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem) !important;
  line-height: 1.65 !important;
  color: var(--brown-muted) !important;
  -webkit-text-fill-color: var(--brown-muted);
  margin: 0 !important;
  max-width: 34rem;
}

@media (max-width: 800px) {
  .kb-whoami__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .kb-whoami__photo {
    max-width: 26rem;
    margin: 0 auto;
  }

  .kb-whoami__copy {
    text-align: center;
  }

  .kb-whoami__text {
    margin-inline: auto !important;
  }
}

/* Home — Who Am I left photo (pink hoodie) — legacy sqsp block fallback */
#block-yui_3_17_2_1_1755062659865_2005,
.fe-block-yui_3_17_2_1_1755062659865_2005 {
  min-height: clamp(22rem, 55vh, 36rem);
  align-self: stretch;
}

#block-yui_3_17_2_1_1755062659865_2005 .js-content-mode-element-wrapper,
#block-yui_3_17_2_1_1755062659865_2005 .js-content-mode-element-system_desktop,
#block-yui_3_17_2_1_1755062659865_2005 .content-fill,
#block-yui_3_17_2_1_1755062659865_2005 .fluid-image-container {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(22rem, 55vh, 36rem);
}

#block-yui_3_17_2_1_1755062659865_2005 .content-fill::after,
#block-yui_3_17_2_1_1755062659865_2005 .fluid-image-container::after,
#block-yui_3_17_2_1_1755062659865_2005 .sqs-image-content::after {
  content: none !important;
  display: none !important;
}

#block-yui_3_17_2_1_1755062659865_2005 img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(22rem, 55vh, 36rem);
  object-fit: cover !important;
  object-position: center 20% !important;
  filter: brightness(0.94) contrast(1.04) saturate(0.9) !important;
}

/* Custom life photo grid — replaces Squarespace masonry */
.kb-life-grid {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  background: transparent;
}

.kb-life-grid__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .kb-life-grid__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.kb-life-grid__item {
  margin: 0;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-life-grid__item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: brightness(0.92) contrast(1.03) saturate(0.88);
  transition: filter 0.35s ease;
}

.kb-life-grid__item:hover img {
  transform: none;
  filter: brightness(1) contrast(1.05) saturate(1);
}

/* Life/photo gallery: replace broken Squarespace masonry absolute layout */
.gallery-section,
.gallery-section.page-section,
.gallery-section.section-height--medium,
.gallery-section.section-height--small,
.gallery-section.section-height--large,
.gallery-section .content-wrapper,
.gallery-section .content,
.gallery-section .gallery,
.gallery-section .gallery-masonry,
.gallery-section .gallery-masonry-wrapper,
.gallery-masonry-wrapper {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.gallery-section .gallery-masonry-wrapper,
.gallery-masonry-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(1100px, calc(100% - 2.5rem)) !important;
  max-width: 1100px;
  margin: 0 auto !important;
  position: relative !important;
  padding: 0 0 1.5rem !important;
  overflow: visible !important;
}

@media (min-width: 900px) {
  .gallery-section .gallery-masonry-wrapper,
  .gallery-masonry-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.gallery-masonry-item,
.gallery-section .gallery-masonry-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  float: none !important;
  inset: auto !important;
}

.gallery-masonry-item-wrapper,
.gallery-section .gallery-masonry-item-wrapper {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  background: #0a101c;
}

.gallery-masonry-item img,
.gallery-section .gallery-masonry-item img {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto;
  object-fit: contain !important;
  display: block !important;
  transform: none !important;
}

/* Don't fade/cut gallery tiles — keep section dissolve subtle only */
.gallery-section.page-section::after {
  height: 2.5rem;
  opacity: 0.55;
}

.gallery-masonry-item-wrapper::after,
.gallery-section .content-fill::after {
  content: none !important;
  display: none !important;
}

/* Typography — brown / gold */
h1, h2, h3, h4, h5, h6,
.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.sqs-html-content h4 {
  color: var(--cream-gold) !important;
}

#block-21a729055beee659dc47 h3 {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

p,
.sqs-html-content p,
.sqs-html-content li,
.sqs-html-content span,
.sqs-html-content {
  color: var(--brown-muted) !important;
}

a {
  color: var(--gold) !important;
}

a:hover {
  color: var(--cream-gold) !important;
}

/* Buttons */
.sqs-button-element--primary,
.sqs-block-button-element--primary,
.btn {
  background: #1a2740 !important;
  color: var(--cream-gold) !important;
  border: 1px solid rgba(196, 163, 90, 0.35) !important;
  box-shadow: none !important;
}

.sqs-button-element--primary:hover,
.sqs-block-button-element--primary:hover {
  background: #243552 !important;
  color: #fff6df !important;
}

/* Images: slightly shaded for navy mood */
.sqs-image img,
.sqs-block-image img,
.fluid-image-container img,
img {
  filter: brightness(0.9) contrast(1.04) saturate(0.86);
}

/* Footer */
footer {
  color: var(--brown-gold) !important;
}

/* Mobile menu overlay */
.header-menu,
.header-menu-nav-wrapper,
.header-menu-bg {
  background: var(--navy) !important;
}

.header-menu-nav-item a {
  color: var(--brown-gold) !important;
}

/* Form fields / misc */
.sqs-block,
.fe-block {
  color: inherit;
}

/* My passion for cooking */
.passion-cook {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  background: transparent;
  border-top: none;
}

.passion-cook::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 163, 90, 0.06) 50%,
    transparent
  );
  opacity: 0.7;
}

.passion-cook__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.passion-cook__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem) !important;
  font-weight: 500 !important;
  color: var(--cream-gold) !important;
  -webkit-text-fill-color: var(--cream-gold);
  margin: 0 0 1.5rem !important;
  text-align: center;
}

.passion-cook__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.passion-cook__item {
  margin: 0;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passion-cook__item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: brightness(0.92) contrast(1.03) saturate(0.88);
  transition: filter 0.4s ease;
}

.passion-cook__item:hover img {
  transform: none;
  filter: brightness(1) contrast(1.05) saturate(1);
}

.passion-cook__item:first-child {
  grid-column: 1 / -1;
}

.passion-cook__item:first-child img {
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  .passion-cook__grid {
    grid-template-columns: 1fr;
  }
  .passion-cook__item:first-child img {
    aspect-ratio: auto;
  }
}

/* Exhibition heroes & IA polish */
.kb-hero {
  position: relative;
  z-index: 1;
  padding: 0 0 clamp(2rem, 5vw, 3.5rem);
  background: transparent;
}

.kb-hero::after {
  content: none;
}

.kb-hero__frame {
  position: relative;
  margin: 0;
  max-width: none;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

/* Image dissolves into the page canvas */
.kb-hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 21, 36, 0.15) 28%,
    rgba(13, 21, 36, 0.55) 62%,
    rgba(13, 21, 36, 0.92) 86%,
    var(--canvas) 100%
  );
  z-index: 1;
}

.kb-hero__frame img {
  width: 100%;
  height: auto;
  min-height: clamp(22rem, 62vh, 44rem);
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.88) contrast(1.05) saturate(0.9) !important;
}

.kb-hero--boston .kb-hero__frame img {
  aspect-ratio: 2.2 / 1;
  min-height: clamp(24rem, 68vh, 48rem);
  object-position: center 45%;
}

.kb-hero__caption {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0.75rem auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.kb-hero__eyebrow {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold);
  margin: 0 0 0.4rem !important;
}

.kb-hero__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 1.3rem + 2vw, 3rem) !important;
  font-weight: 500 !important;
  color: var(--cream-gold) !important;
  -webkit-text-fill-color: var(--cream-gold);
  margin: 0 !important;
}

/* Slightly quieter nav for exhibition feel */
.kb-exhibition .header-nav-item a {
  letter-spacing: 0.04em;
  font-size: 0.95rem !important;
}
