/* Noa Thari Menschel — site styles (rebuilt from the Cargo design) */

/* Everything is sized in rem, and rem scales with the window width
   the way Cargo did, so the layout keeps its proportions. */
html { font-size: max(8px, 0.7886vw); }
/* phones: Cargo's "mobile zoom" of 23% on top of the same width-based scale */
@media (max-width: 767px) { html { font-size: calc(0.7886vw * 1.23); } }

/* white goes on <html> only, so backdrops and "behind" pins (negative z-index) stay visible */
html { background: #fff; }
html, body { margin: 0; padding: 0; min-height: 100vh; color: #000; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:active { opacity: .7; }
i, em { font-style: italic; }
b, strong { font-weight: bolder; }
img { border: 0; }

/* ---------- page structure ---------- */
.main_container { min-height: 100vh; width: 100%; overflow: hidden; display: flex; flex-direction: column; }
.content_container { width: 100%; flex: 1 0 auto; }
.pinned { position: relative; width: 100%; }
.page_container { position: relative; width: 100%; }
.pinned .page_container.accommodate:not(.fixed):not(.overlay) { z-index: 2; }
.pinned .page_container.overlay { position: absolute; z-index: 4; left: 0; }
.pinned .page_container.overlay.fixed { position: fixed; }
.pinned_top .page_container.overlay { top: 0; }
.pinned_bottom .page_container.overlay { bottom: 0; }
.pinned .page_container.overlay.fixed .page { max-height: 100vh; }
.pinned .page_container.overlay.fixed .page.allow-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; pointer-events: auto; }
.page.allow-scroll::-webkit-scrollbar { display: none; }
/* overlays shouldn't block clicks on what's underneath, except their own links */
.page_container.overlay { pointer-events: none; }
.page_container.overlay a, .page_container.overlay .slideshow { pointer-events: auto; }
.page a.active { opacity: .4; }
.icon { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; font-weight: 400; }

/* full-window background image behind a page */
.backdrop { position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center; background-repeat: no-repeat; }

.container { display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; max-width: 100%; margin-left: 0; margin-right: auto; text-align: left; }
.page { position: relative; z-index: 2; word-wrap: break-word; }
.content { flex: 1 0 auto; max-width: 100%; }
.content_padding { padding: 10rem; }

@media (max-width: 767px) { .exclude_mobile { display: none !important; } }
@media (min-width: 768px) { .exclude_desktop { display: none !important; } }

/* ---------- typography (Cargo editor styles) ---------- */
.bodycopy {
  font-size: 1.7rem; font-weight: 400; line-height: 1.2;
  color: rgba(0, 0, 0, .85);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.bodycopy a { color: rgb(105, 143, 255); padding-bottom: .1em; }
h1 {
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300; font-size: 2.4rem; line-height: 1; margin: 0; padding: 0;
  color: rgba(0, 0, 0, .85); letter-spacing: -0.01em;
}
.bodycopy h1 a, .bodycopy h2 a { color: rgba(0, 0, 0, .85); padding-bottom: 0; }
.bodycopy small a { color: #000; }
h2 {
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; font-size: 1.1rem; line-height: 1.3; margin: 0; padding: 0;
  color: rgba(0, 0, 0, .85);
}
small {
  display: inline-block; font-size: 1.3rem; line-height: 1.3;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 300; color: #000;
}
small a { color: #000; }
/* pasted text sometimes nests an h1 inside an h1 — don't let it double up */
h1 h1 { font-size: 1em; }

/* ---------- column grid ---------- */
[grid-row] { display: flex; flex-wrap: wrap; align-items: flex-start; }
[grid-col="1"] { width: 8.33333%; }  [grid-col="2"] { width: 16.66667%; }
[grid-col="3"] { width: 25%; }       [grid-col="4"] { width: 33.33333%; }
[grid-col="5"] { width: 41.66667%; } [grid-col="6"] { width: 50%; }
[grid-col="7"] { width: 58.33333%; } [grid-col="8"] { width: 66.66667%; }
[grid-col="9"] { width: 75%; }       [grid-col="10"] { width: 83.33333%; }
[grid-col="11"] { width: 91.66667%; }[grid-col="12"] { width: 100%; }
/* "x" columns divide the row evenly: x12 = 1 per row, x11 = 2, x10 = 3 ... */
[grid-col="x12"] { width: 100%; } [grid-col="x11"] { width: 50%; } [grid-col="x10"] { width: 33.333%; }
[grid-col="x9"] { width: 25%; } [grid-col="x8"] { width: 20%; } [grid-col="x7"] { width: 16.667%; }
[grid-col="x6"] { width: 14.286%; } [grid-col="x5"] { width: 12.5%; } [grid-col="x4"] { width: 11.111%; }
[grid-col="x3"] { width: 10%; } [grid-col="x2"] { width: 9.091%; } [grid-col="x1"] { width: 8.333%; }
[grid-col="auto"] { flex: 1; }
[grid-pad="0.25"] { padding: .125rem; } [grid-pad="0.5"] { padding: .25rem; } [grid-pad="0.75"] { padding: .375rem; }
[grid-pad="1.5"] { padding: .75rem; } [grid-pad="2.5"] { padding: 1.25rem; } [grid-pad="7"] { padding: 3.5rem; } [grid-pad="9"] { padding: 4.5rem; }
[grid-gutter="0.5"] { margin: -.25rem; } [grid-gutter="1"] { margin: -.5rem; } [grid-gutter="1.5"] { margin: -.75rem; }
[grid-gutter="3"] { margin: -1.5rem; } [grid-gutter="5"] { margin: -2.5rem; } [grid-gutter="7"] { margin: -3.5rem; }
[grid-gutter="14"] { margin: -7rem; } [grid-gutter="18"] { margin: -9rem; }
[grid-pad="0"] { padding: 0; } [grid-pad="1"] { padding: .5rem; } [grid-pad="2"] { padding: 1rem; }
[grid-pad="3"] { padding: 1.5rem; } [grid-pad="4"] { padding: 2rem; } [grid-pad="5"] { padding: 2.5rem; }
[grid-pad="6"] { padding: 3rem; } [grid-pad="8"] { padding: 4rem; } [grid-pad="10"] { padding: 5rem; }
[grid-gutter="0"] { margin: 0; } [grid-gutter="2"] { margin: -1rem; } [grid-gutter="4"] { margin: -2rem; }
[grid-gutter="6"] { margin: -3rem; } [grid-gutter="8"] { margin: -4rem; } [grid-gutter="10"] { margin: -5rem; }
[grid-gutter="12"] { margin: -6rem; } [grid-gutter="16"] { margin: -8rem; } [grid-gutter="20"] { margin: -10rem; }
@media (max-width: 767px) { [grid-responsive] [grid-col] { width: 100%; } }

/* ---------- images ---------- */
.page_content img { display: block; max-width: 100%; height: auto; }
img.inline { display: inline-block; vertical-align: bottom; margin-bottom: .5em; }

/* freeform collage: positions are stored as % of the width */
.montessori { position: relative; width: 100%; height: 0; padding-bottom: var(--h); }
.montessori .m-card { position: absolute; }
.montessori .m-card img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .montessori { height: auto; padding-bottom: 0; display: grid; grid-template-columns: repeat(var(--mcols, 2), 1fr); gap: .5rem; }
  .montessori .m-card { position: static; width: auto !important; padding: 0 !important; }
}

/* slideshow */
.slideshow { position: relative; width: 100%; overflow: hidden; }
.slideshow .slide { display: none; justify-content: center; align-items: center; }
.slideshow .slide.is-active { display: flex; }
.slideshow .slide img { max-height: 100vh; width: auto; max-width: 100%; }
.slideshow button {
  position: absolute; top: 0; bottom: 0; width: 25%; border: 0; background: transparent;
  color: transparent; cursor: pointer; font-size: 3rem;
}
.slideshow .ss-prev { left: 0; cursor: w-resize; }
.slideshow .ss-next { right: 0; cursor: e-resize; }
.gallery-column img { width: 100%; margin-bottom: 1rem; }
