/* rafilevy.com — site styles (replaces Squarespace's template CSS) */

/* ------------------------------------------------------------ tokens */
:root {
  --black: #000;
  --white: #fff;
  --light: #fafafa;      /* page background */
  --accent: #dcdcdc;     /* light grey */
  --dark: #1c1c1c;       /* dark sections */

  --serif: 'freight-big-pro', 'Freight Big Fallback', Georgia, serif;
  --sans: 'freight-sans-pro', 'Freight Sans Fallback', 'Helvetica Neue', Arial, sans-serif;

  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1400px;
  --gutter: 4vw;
  --header-h: 168px;

  --base: 17px;
  --h1: calc(4.5 * var(--base));
  --h2: calc(3 * var(--base));
  --h3: calc(2 * var(--base));
  --h4: calc(1.1 * var(--base));
  --p-large: calc(1.3 * var(--base));
  --p-small: calc(0.85 * var(--base));
}
@media (max-width: 767px) {
  :root {
    --gutter: 6vw;
    --header-h: 84px;
    --base: 16px;
    /* Squarespace's mobile type scale */
    --h1: calc(3.5 * min(1.2vh, 10.8px) + 1rem);
    --h2: calc(2 * min(1.2vh, 10.8px) + 1rem);
    --h3: calc(1 * min(1.2vh, 10.8px) + 1rem);
    --h4: calc(0.1 * min(1.2vh, 10.8px) + 1rem);
    --p-large: calc(0.3 * min(1.2vh, 10.8px) + 1rem);
    --p-small: calc(-0.15 * min(1.2vh, 10.8px) + 1rem);
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  margin: 0;
  background: var(--light);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--black); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: normal; }
h1 { font-size: var(--h1); line-height: 0.946; }
h2 { font-size: var(--h2); line-height: 1.012; }
h3 { font-size: var(--h3); line-height: 1.056; }
h4 { font-size: var(--h4); line-height: 1.0956; }
p { margin: 0; }
strong, b { font-weight: 700; }
.sqsrte-large { font-size: var(--p-large); line-height: 1.6; }
.sqsrte-small { font-size: var(--p-small); line-height: 1.6; }

/* ------------------------------------------------------------ themes */
.theme-none, .theme-white { --bg-solid: var(--light); --bg: var(--light); --text: var(--black); --heading: var(--black);
  --btn-bg: var(--black); --btn-fg: var(--light); --btn2-bg: var(--black); --btn2-fg: var(--light); --rule: var(--black); }
.theme-white { --bg: transparent; }
.theme-light, .theme-light-bold, .theme-bright { --bg-solid: var(--accent); --bg: var(--accent); --text: var(--black); --heading: var(--black);
  --btn-bg: var(--black); --btn-fg: var(--light); --btn2-bg: var(--black); --btn2-fg: var(--accent); --rule: var(--black); }
.theme-dark { --bg-solid: var(--dark); --bg: var(--dark); --text: var(--light); --heading: var(--light);
  --btn-bg: var(--white); --btn-fg: var(--black); --btn2-bg: var(--white); --btn2-fg: var(--black); --rule: var(--light); }
.theme-dark-bold { --bg-solid: var(--dark); --bg: var(--dark); --text: var(--black); --heading: var(--black);
  --btn-bg: var(--accent); --btn-fg: var(--black); --btn2-bg: var(--accent); --btn2-fg: var(--black); --rule: var(--black); }
.theme-bright-inverse { --bg-solid: var(--dark); --bg: var(--dark); --text: var(--accent); --heading: var(--accent);
  --btn-bg: var(--accent); --btn-fg: var(--black); --btn2-bg: var(--accent); --btn2-fg: var(--black); --rule: var(--accent); }
.theme-black, .theme-black-bold { --bg-solid: var(--black); --bg: var(--black); --text: var(--light); --heading: var(--light);
  --btn-bg: var(--light); --btn-fg: var(--black); --btn2-bg: var(--light); --btn2-fg: var(--black); --rule: var(--light); }

.section { color: var(--text); }
.section h1, .section h2, .section h3, .section h4 { color: var(--heading); }
.sqsrte-text-color--dark { color: var(--dark); }
.sqsrte-text-color--light { color: var(--light); }
.sqsrte-text-color--white { color: var(--white); }
.sqsrte-text-color--black { color: var(--black); }
.sqsrte-text-color--accent, .sqsrte-text-color--lightAccent { color: var(--accent); }
.sqsrte-text-color--darkAccent { color: var(--dark); }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--text);
  transition: transform .3s ease;
  pointer-events: none;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3vw var(--gutter);
  max-width: none;
  pointer-events: auto;
}
.site-header .theme-none, .site-header.theme-none, .site-header.theme-white { --text: var(--black); }
.header-logo { display: block; flex: 0 0 auto; line-height: 0; }
.header-logo img { width: 164px; height: 82px; object-fit: contain; object-position: left center; }
.header-nav { display: flex; gap: 22.5px; align-items: center; }
.nav-link {
  font-family: var(--sans); font-size: var(--base); font-weight: 500; line-height: 1.6;
  text-decoration: none; color: inherit; padding: 2px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
}
.nav-link:hover, .nav-link.is-active { background-size: 100% 1px; }
.site-header.theme-bright-inverse .nav-link, .site-header.theme-dark .nav-link { color: var(--white); }
.site-header.theme-dark .nav-link { color: var(--light); }
.site-header.theme-dark-bold .nav-link { color: var(--white); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 767px) {
  .header-inner { padding: 0 var(--gutter); height: var(--header-h); }
  .header-logo img { width: 30px; height: 15px; }
  .header-nav { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    width: 35px; height: 36px; padding: 0; margin-right: 6px; background: none; border: 0; cursor: pointer; color: inherit;
  }
  .site-header.theme-bright-inverse .menu-toggle, .site-header.theme-dark .menu-toggle, .site-header.theme-dark-bold .menu-toggle { color: var(--white); }
  .menu-toggle span { display: block; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(5.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .menu-open .site-header .menu-toggle { color: var(--black) !important; }
  .mobile-menu:not([hidden]) {
    display: flex; position: fixed; inset: 0; z-index: 99;
    background: var(--light); color: var(--black);
    padding: calc(var(--header-h) + 6vw) var(--gutter) 6vw;
    align-items: center; justify-content: center;
  }
  .mobile-menu.theme-none, .mobile-menu.theme-white { background: var(--light); }
  .mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .menu-link { font-family: var(--sans); font-size: 8.5vw; line-height: 1.2; text-decoration: none; color: inherit; }
}

/* ------------------------------------------------------------ sections */
.page { display: block; }
.section {
  position: relative;
  display: flex; align-items: center;
  background: transparent;
  overflow: visible;
}
.section-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
}
.section-bg .bg-video, .section-bg .bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.section-bg .bg-overlay { position: absolute; inset: 0; background: var(--bg); }
.section > .content-wrapper { position: relative; z-index: 1; width: 100%; display: flex; }
.section > .content-wrapper > .content { width: 100%; }

/* first section sits under the fixed header */
.page > .section:first-child { padding-top: var(--header-h); }
.page > .section.fluid-section:first-child.section-height--custom { padding-top: var(--header-h); }

.section-height--small:not(.gallery-section):not(.list-section) { min-height: 33vh; }
.section-height--medium:not(.gallery-section):not(.list-section) { min-height: 66vh; }
.section-height--large:not(.gallery-section):not(.list-section) { min-height: 100vh; }
.vertical-alignment--middle.section-height--small > .content-wrapper { padding-top: 3.3vmax; padding-bottom: 3.3vmax; }
.vertical-alignment--middle.section-height--medium > .content-wrapper { padding-top: 6.6vmax; padding-bottom: 6.6vmax; }
.vertical-alignment--middle.section-height--large > .content-wrapper { padding-top: 10vmax; padding-bottom: 10vmax; }
.vertical-alignment--top { align-items: flex-start; }
.vertical-alignment--bottom { align-items: flex-end; }
.vertical-alignment--top.section-height--small > .content-wrapper { padding-bottom: 6.6vmax; }
.vertical-alignment--top.section-height--medium > .content-wrapper { padding-bottom: 13.2vmax; }
.vertical-alignment--bottom.section-height--small > .content-wrapper { padding-top: 6.6vmax; }
.vertical-alignment--bottom.section-height--medium > .content-wrapper { padding-top: 13.2vmax; }

/* inset background (white card inset from edges) */
.background-width--inset { padding: var(--sqs-site-gutter); }
.page > .background-width--inset:first-child { padding-top: calc(var(--header-h)); }
.background-width--inset > .section-bg { inset: var(--sqs-site-gutter); }
.page > .background-width--inset:first-child > .section-bg { top: var(--header-h); }

/* ------------------------------------------------------------ fluid grid */
.fluid-engine { position: relative; }
.fe-block { position: relative; pointer-events: auto; min-width: 0; }
.fe-block > .blk { height: 100%; display: flex; flex-direction: column; }
.fe-block .blk-align { display: flex; flex-direction: column; width: 100%; }
.fe-block .blk-image, .fe-block .blk-image .blk-align { height: 100%; }
.fe-block .blk-image .blk-align { align-items: stretch !important; }
.fe-block .blk-code .blk-align, .fe-block .blk-text .blk-align, .fe-block .blk-html .blk-align { align-items: stretch !important; }

/* text blocks */
.text-block { width: 100%; overflow-wrap: break-word; }
.text-block > *:first-child { margin-top: 0 !important; }
.text-block > *:last-child { margin-bottom: 0 !important; }
.text-block p { margin: var(--base) 0; }
.text-block p.sqsrte-large { margin: calc(.5 * var(--p-large)) 0; }
.text-block h1 { margin: 0 0 calc(var(--base) * 1.76) 0; }
.text-block h2 { margin: calc(2 * var(--base)) 0; }
.text-block h3 { margin: calc(2 * var(--base)) 0; }
.text-block h4 { margin: var(--base) 0; }
.text-block a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.text-block ul, .text-block ol { margin: var(--base) 0; padding-left: 1.4em; }
.text-block li > p { margin: .3em 0; }
.text-block blockquote { margin: 0; font-family: var(--serif); font-size: var(--h3); line-height: 1.3; }

/* images */
.image-block { margin: 0; width: 100%; height: 100%; position: relative; }
.image-block > a { display: block; width: 100%; height: 100%; }
.image-block img { width: 100%; height: 100%; }
.fe-block .image-block > img, .fe-block .image-block > a > img { position: absolute; inset: 0; }
.image-block.fit-contain img { object-fit: contain; }
.image-caption { margin-top: .6em; font-size: var(--p-small); }

/* buttons */
.button-block { display: flex; width: 100%; }
.button-block.align-left { justify-content: flex-start; }
.button-block.align-center { justify-content: center; }
.button-block.align-right { justify-content: flex-end; }
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; line-height: normal; letter-spacing: .02em;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 0; border-radius: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 1.2em 2.004em;
  transition: opacity .1s linear;
}
.btn:hover { opacity: .8; }
.btn--small { font-size: calc(0.75 * var(--base)); }
.btn--medium { font-size: var(--base); }
.btn--large { font-size: calc(1.1 * var(--base)); }
.btn--secondary { background: var(--btn2-bg); color: var(--btn2-fg); }
.btn--tertiary { background: var(--btn2-bg); color: var(--btn2-fg); }

/* custom code blocks (cards etc. — from the old site's custom CSS) */
.code-block { width: 100%; }
.code-block h1, .code-block h2, .code-block h3, .code-block h4 { margin: calc(2 * var(--base)) 0; }
.code-block p { margin: var(--base) 0; }
.card { background-color: #fff; padding: 70px; }
@media only screen and (max-width: 600px) {
  .card { background-color: #fff; padding: 20px; padding-top: 220px; padding-bottom: 40px; }
}

/* ------------------------------------------------------------ accordion */
.accordion-block { width: 100%; }
.accordion-items-container {
  list-style: none; margin: 0; padding: 0;
  background: var(--tweak-accordion-block-background-color, transparent);
}
.accordion-item { position: relative; }
.accordion-divider { height: 1px; background: var(--rule); opacity: 1; }
.accordion-divider--top { position: absolute; top: 0; left: 0; right: 0; }
.accordion-item:last-child::after { content: ''; display: block; height: 1px; background: var(--rule); }
.accordion-item__title-wrapper { margin: 0; font-weight: inherit; }
p.accordion-item__title-wrapper { font-family: var(--sans); }
.accordion-item__click-target {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  font: inherit; letter-spacing: inherit;
  padding: var(--accordion-item-padding-top, 30px) var(--accordion-item-padding-right, 0) var(--accordion-item-padding-bottom, 30px) var(--accordion-item-padding-left, 0);
}
.accordion-item__title { padding-right: 14px; line-height: 1.24; }
.accordion-icon-container { position: relative; flex: 0 0 auto; width: var(--accordion-icon-size, 14px); height: var(--accordion-icon-size, 14px); }
.plus__horizontal-line, .plus__vertical-line {
  position: absolute; background: currentColor; transition: transform .25s ease;
}
.plus__horizontal-line { left: 0; right: 0; top: 50%; height: var(--accordion-icon-thickness, 1px); transform: translateY(-50%); }
.plus__vertical-line { top: 0; bottom: 0; left: 50%; width: var(--accordion-icon-thickness, 1px); transform: translateX(-50%); }
.accordion-item.is-open .plus__vertical-line { transform: translateX(-50%) rotate(90deg); }
.accordion-item__dropdown { overflow: hidden; }
.accordion-item__description {
  padding: var(--accordion-description-padding-top, 0) var(--accordion-description-padding-right, 0) var(--accordion-description-padding-bottom, 30px) var(--accordion-description-padding-left, 0);
  max-width: 100%;
}
.accordion-item__description p { margin: 0 0 var(--base); }
.accordion-item__description p:last-child { margin-bottom: 0; }
.accordion-item__description a { text-decoration: underline; }

/* ------------------------------------------------------------ list sections (carousels) */
.list-section { display: block; }
.list-inner { position: relative; z-index: 1; padding-left: var(--gutter); padding-right: var(--gutter); }
.list-section-title { margin-bottom: var(--title-space, 40px); }
.list-section-title p { font-family: var(--serif); font-weight: 300; font-size: var(--h2); line-height: 1.6; margin: 0; }
.list-section-title.align-center { text-align: center; }
.items { position: relative; }
.items-track {
  list-style: none; padding: 0;
  margin: 0;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.items.show-adjacent .items-track {
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
}
.items-track::-webkit-scrollbar { display: none; }
.items-track > .list-item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.items.show-adjacent .items-track > .list-item {
  flex-basis: calc((100vw - 2 * var(--gutter) - var(--cols) * var(--gap)) / (var(--cols) + .05));
}
.items--carousel .items-track > .list-item { justify-content: flex-start; }
.item-media { width: 100%; margin-bottom: 10px; overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media.ratio-original img { height: auto; object-fit: contain; }
/* logo strip (original-ratio media, no text): small centred logos like the Squarespace site */
.items-track > .list-item:has(> .item-media.ratio-original:only-child) { justify-content: center; align-items: center; }
.item-media.ratio-original:only-child { width: 120px; margin: 0 auto; }
.item-media.ratio-4x3 { aspect-ratio: 4 / 3; }
.item-media.ratio-3x4 { aspect-ratio: 3 / 4; }
.item-media.ratio-1x1 { aspect-ratio: 1; }
.item-media.ratio-16x9 { aspect-ratio: 16 / 9; }
.item-media.ratio-3x2 { aspect-ratio: 3 / 2; }
.item-media.ratio-2x3 { aspect-ratio: 2 / 3; }
.item-title { font-size: var(--title-size, var(--h2)); line-height: 1.012; margin: 0; color: var(--heading); }
.item-desc { margin-top: 10px; font-size: var(--body-size, var(--base)); }
.item-desc:empty { display: none; }
.item-button { margin-top: 10px; }
.item-button .btn { font-size: var(--button-size, var(--base)); }
.carousel-nav { pointer-events: none; position: absolute; left: 0; right: 0; top: 50%; }
.carousel-arrow {
  pointer-events: auto;
  position: absolute; top: 0; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: transparent; color: var(--bg-solid, var(--light));
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow::before {
  content: ''; position: absolute; inset: 15px; border-radius: 50%;
  background: var(--text); opacity: .6;
}
.carousel-arrow svg { position: relative; width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.carousel-arrow.prev { left: -15px; }
.carousel-arrow.next { right: -15px; }
.items.is-logo-strip .carousel-arrow::before { inset: 0; background: var(--accent); opacity: 1; }
.items.is-logo-strip .carousel-arrow { color: var(--black); }
.items.is-logo-strip .carousel-arrow svg { width: 30px; height: 12px; }
.items.is-logo-strip .carousel-arrow.prev { left: calc(-1 * var(--gutter)); }
.items.is-logo-strip .carousel-arrow.next { right: calc(-1 * var(--gutter)); }
@media (max-width: 767px) {
  .items-track > .list-item, .items.show-adjacent .items-track > .list-item { flex-basis: 80%; }
  .items-track > .list-item:has(.ratio-original) { flex-basis: 40%; }
}

/* ------------------------------------------------------------ gallery */
.gallery-section { display: block; }
.gallery-inner { position: relative; z-index: 1; padding: var(--gutter); }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: calc(var(--gutter) * .3); }
.gallery-item { margin: 0; overflow: hidden; aspect-ratio: 1; }
.gallery-grid.ratio-three-four-vertical .gallery-item { aspect-ratio: 3 / 4; }
.gallery-grid.ratio-four-three-horizontal .gallery-item { aspect-ratio: 4 / 3; }
.gallery-grid.ratio-sixteen-nine-horizontal .gallery-item { aspect-ratio: 16 / 9; }
.gallery-grid.ratio-two-three-vertical .gallery-item { aspect-ratio: 2 / 3; }
.gallery-grid.ratio-three-two-horizontal .gallery-item { aspect-ratio: 3 / 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* gallery slideshow (sample menus) */
.slideshow {
  position: relative; z-index: 1;
  height: calc(var(--ss-h) + 2 * var(--sqs-site-gutter));
  max-width: calc(var(--sqs-site-max-width) * var(--ss-w));
  margin: 0 auto; padding: var(--sqs-site-gutter);
  display: flex; flex-direction: column;
}
.slides { position: relative; flex: 1; min-height: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; }
.ss-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 27px; height: 32px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
}
.ss-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.ss-arrow.prev { left: 20px; }
.ss-arrow.next { right: 20px; }
.thumbs { display: flex; justify-content: center; gap: 10px; padding-top: 22px; height: 100px; flex: 0 0 auto; box-sizing: content-box; }
.thumb { width: 80px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .5; transition: opacity .2s; }
.thumb.is-active, .thumb:hover { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .slideshow { height: auto; padding: var(--gutter); }
  .slides { aspect-ratio: 4 / 5; flex: none; }
  .thumbs { display: none; }
}

/* ------------------------------------------------------------ blog list */
.blog-list-section, .blog-item-section, .product-list-section { display: block; }
.blog-list { position: relative; z-index: 1; padding: calc(var(--header-h) * 0 + 58px) var(--gutter) 6.6vmax; display: flex; flex-direction: column; gap: 30px; }
.page > .blog-list-section:first-child, .page > .blog-item-section:first-child, .page > .product-list-section:first-child { padding-top: var(--header-h); }
.blog-entry { display: grid; grid-template-columns: 40% 1fr; column-gap: 6%; align-items: center; }
.blog-image { display: block; aspect-ratio: 1; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta { font-size: var(--base); line-height: 1.2; margin-bottom: 20px; font-weight: 400; }
.blog-title { font-size: var(--h2); line-height: 1.1; margin: 0 0 30px; }
.blog-title a { text-decoration: none; }
.blog-excerpt { font-size: var(--base); }
.blog-excerpt p { margin: var(--base) 0; }
.blog-more-link { display: inline-block; margin-top: 20px; font-size: var(--base); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 767px) {
  .blog-entry { grid-template-columns: 1fr; row-gap: 20px; }
}

/* ------------------------------------------------------------ blog post */
.blog-post { position: relative; z-index: 1; width: 75%; max-width: 994px; margin: 0 auto; padding: 58px 0 0; }
.blog-post-header { text-align: center; margin-bottom: 50px; }
.blog-post-meta { font-size: var(--base); line-height: 1.2; font-weight: 400; margin-bottom: 34px; }
.blog-post-title { font-size: var(--h1); line-height: 1.1; }
.blog-post-body .text-block h2 { font-size: var(--h3); line-height: 1.1; }
.blog-post-body .text-block ol, .blog-post-body .text-block ul { padding-left: 40px; margin: 0; }
.blog-post-body .text-block h3 strong, .blog-post-body .text-block h2 strong { font-weight: 700; }
.blog-post-body .text-block h3 { margin: var(--base) 0; }
.blog-post-body .text-block a { text-decoration: underline; }
.blog-post-body .button-block, .blog-post-body .image-block { margin: 2em 0; }
.item-pagination {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 4vw;
  padding: 58px var(--gutter) 50px;
}
.pag-link { display: flex; align-items: center; gap: 14px; text-decoration: none; max-width: 45%; }
.pag-next { margin-left: auto; text-align: right; }
.pag-title { font-family: var(--serif); font-size: var(--h3); line-height: 1; font-weight: 300; margin: 0; color: var(--heading); }
.pag-icon { width: 9px; height: 16px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.2; }
@media (max-width: 767px) {
  .blog-post { width: auto; margin: 0 var(--gutter); }
  .pag-title { font-size: var(--p-large); }
}

/* ------------------------------------------------------------ store (empty) */
.product-list { position: relative; z-index: 1; padding: 40px var(--gutter) 40px; text-align: center; }
.product-list-title { font-size: var(--h3); line-height: 1.6; margin-bottom: 20px; }
.product-list-empty h4 { font-size: var(--p-small); margin: 0 0 6px; }
.product-list-empty p { font-size: var(--p-small); }

/* ------------------------------------------------------------ forms */
.form-block { width: 100%; }
.site-form { display: flex; flex-direction: column; gap: 20px; }
.site-form .hp { position: absolute; left: -9999px; }
.site-form { font-size: var(--base); }
.site-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.site-form legend, .site-form .label { display: block; font-size: var(--base); line-height: 1.6; margin-bottom: 2px; padding: 0; }
.site-form .req { opacity: .7; }
.site-form .field { display: block; }
.site-form fieldset.field > .field, .site-form .field-row { margin-top: 10px; }
.site-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-form .field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.site-form .field-desc { font-size: var(--base); margin: 4px 0 10px; opacity: .7; }
.site-form input[type=text], .site-form input[type=email], .site-form input[type=tel],
.site-form input[type=date], .site-form textarea, .site-form select {
  width: 100%; font-family: var(--sans); font-weight: 500; font-size: var(--base); line-height: 1.6;
  color: var(--black); background: var(--light);
  border: 1px solid var(--black); border-radius: 0; padding: 10px;
  -webkit-appearance: none; appearance: none;
}
.site-form input[type=date] { width: 200px; }
.site-form textarea { min-height: 100px; resize: vertical; }
.site-form .select-wrap { position: relative; }
.site-form .select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.site-form .option { display: flex; align-items: center; gap: 11px; margin: 18px 0; font-size: var(--base); cursor: pointer; }
.site-form .option input { width: 16px; height: 16px; margin: 0; accent-color: var(--black); }
.site-form input:focus, .site-form textarea:focus, .site-form select:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.form-submit .btn { font-size: var(--base); }
.form-message, .form-error { padding: 20px 0; }
.form-error { color: #b00020; }

/* ------------------------------------------------------------ intro section: highlighted lines
   "Where Clinical Nutrition Meets Classical Culinary Training" on /, /meal-prep-portland and
   /private-chef-portland. Body copy is unchanged from the original; only the opening two lines
   and the "No batch cooking…" line get extra emphasis. */
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:is(:nth-child(1), :nth-child(2), :nth-last-child(2)) {
  text-wrap: balance;
}
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-child(1) {
  font-size: calc(var(--p-large) * 1.12); margin-bottom: .2em;
}
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-child(2) { margin-top: .2em; }
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-child(2)::after {
  content: ''; display: block; width: 48px; height: 1px; background: currentColor;
  margin: 1.6rem auto 1.8rem; opacity: .5;
}
/* headline: balanced line breaks so "Training" never sits alone */
:is(#block-b5003d698ad137932d54, #block-cd7d216110c595b210a4) h2 { text-wrap: balance; }
/* closing: light divider, the promise, then where you cook (lighter) */
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-last-child(2) {
  margin: 1.8rem 0 1.15em;
}
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-last-child(2)::before {
  content: ''; display: block; width: min(40rem, 100%); height: 1px; margin: 0 auto 1.6rem;
  background: rgba(0, 0, 0, .15);
}
:is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:last-child {
  font-size: calc(var(--p-large) * .86); color: #555; text-wrap: balance;
}
@media (max-width: 767px) {
  :is(#block-acc5688287c31be2a3bf, #block-f6e9e0f9ac11e5c7bced) .text-block p:nth-child(1) { font-size: calc(var(--p-large) * 1.05); }
}

/* ------------------------------------------------------------ "How our Meal Prep Service works" step icons
   Thin outline icons (Tabler Icons, MIT) above the four step titles on /, /meal-prep-portland
   and /private-chef-portland. They take the heading color. */
#block-yui_3_17_2_1_1773974067949_41461 .text-block::before, #block-737b07fd2a3eb0ec7a47 .text-block::before, #block-fd1861fdb59c4cf95d39 .text-block::before, #block-2e4754cf015e66e2af9a .text-block::before, #block-6e1d84a1e604d3b8d964 .text-block::before, #block-b5e16593e33b99496c85 .text-block::before, #block-6982be7955f5f72c86f0 .text-block::before, #block-459e5e1aa133f41663b7 .text-block::before {
  content: ''; display: block; width: 38px; height: 38px; margin: 0 0 18px -2px;
  background-color: currentColor;
  -webkit-mask: var(--step-icon) center / contain no-repeat; mask: var(--step-icon) center / contain no-repeat;
}
#block-yui_3_17_2_1_1773974067949_41461, #block-737b07fd2a3eb0ec7a47 { --step-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2%22/%3E%3C/svg%3E"); }
#block-fd1861fdb59c4cf95d39, #block-2e4754cf015e66e2af9a { --step-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z%22/%3E%3Cpath d=%22M16 3v4%22/%3E%3Cpath d=%22M8 3v4%22/%3E%3Cpath d=%22M4 11h16%22/%3E%3Cpath d=%22M11 15h1%22/%3E%3Cpath d=%22M12 15v3%22/%3E%3C/svg%3E"); }
#block-6e1d84a1e604d3b8d964, #block-b5e16593e33b99496c85 { --step-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3c1.918 0 3.52 1.35 3.91 3.151a4 4 0 0 1 2.09 7.723l0 7.126h-12v-7.126a4 4 0 1 1 2.092 -7.723a4 4 0 0 1 3.908 -3.151z%22/%3E%3Cpath d=%22M6.161 17.009l11.839 -.009%22/%3E%3C/svg%3E"); }
#block-6982be7955f5f72c86f0, #block-459e5e1aa133f41663b7 { --step-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.1%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 3v12h-5c-.023 -3.681 .184 -7.406 5 -12zm0 12v6h-1v-3m-10 -14v17m-3 -17v3a3 3 0 1 0 6 0v-3%22/%3E%3C/svg%3E"); }
@media (max-width: 767px) {
  #block-yui_3_17_2_1_1773974067949_41461 .text-block,
  #block-737b07fd2a3eb0ec7a47 .text-block,
  #block-fd1861fdb59c4cf95d39 .text-block,
  #block-2e4754cf015e66e2af9a .text-block,
  #block-6e1d84a1e604d3b8d964 .text-block,
  #block-b5e16593e33b99496c85 .text-block,
  #block-6982be7955f5f72c86f0 .text-block,
  #block-459e5e1aa133f41663b7 .text-block { display: flex; align-items: center; gap: 12px; }
  #block-yui_3_17_2_1_1773974067949_41461 .text-block::before,
  #block-737b07fd2a3eb0ec7a47 .text-block::before,
  #block-fd1861fdb59c4cf95d39 .text-block::before,
  #block-2e4754cf015e66e2af9a .text-block::before,
  #block-6e1d84a1e604d3b8d964 .text-block::before,
  #block-b5e16593e33b99496c85 .text-block::before,
  #block-6982be7955f5f72c86f0 .text-block::before,
  #block-459e5e1aa133f41663b7 .text-block::before { flex: 0 0 auto; width: 26px; height: 26px; margin: 0; }
}

/* mobile: the first step's paragraph overlapped its two-line title (also on the Squarespace site) */
@media (max-width: 767px) {
  #block-010350d91921461ecf19, #block-95a4b2385101455da813 { margin-top: 34px; }
}

/* ------------------------------------------------------------ 404 */
.not-found { min-height: 70vh; }
.not-found-inner { padding: 6.6vmax var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* ------------------------------------------------------------ footer */
.site-footer .section { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0s !important; transition: none !important; }
}
