/* Fonts (self-hosted, latin subset, from Google Fonts) */
@font-face {
  font-family: "Calistoga";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/calistoga-400.woff2") format("woff2");
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/familjen-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/crimson-pro.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/crimson-pro-italic.woff2") format("woff2");
}

/* Colours */
:root {
  --navy: #192d63;       /* header + footer background */
  --blue: #1f3a80;       /* heading accent */
  --tan: #b79f7c;        /* accent: buttons, tan sections */
  --gold: #f7d39f;       /* header links */
  --beige: #e4cfb4;      /* hero tagline */
  --ink: #212020;        /* body text */
  --white: #fff;
  --heading: "Calistoga", Georgia, serif;
  --body: "Crimson Pro", Georgia, serif;
  --button: "Familjen Grotesk", Arial, sans-serif;
  --gutter: 6vw;
}
@media (min-width: 768px) {
  :root { --gutter: 3vw; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  /* Crimson Pro runs ~6% smaller than the original Calluna, so body text is 17px */
  font-size: 1.0625rem;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 1rem 1.3rem; background: var(--tan); color: var(--white);
  font-family: var(--button); text-transform: uppercase;
}
.skip:focus { left: 0; }

/* Type scale: Squarespace's fluid sizes (value - 1) * 1.2vw + 1rem,
   and on phones (value - 1) * 1.2% of the viewport height (max 900px) + 1rem */
h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 2rem 0;
}
h1 { --v: 3;   font-size: calc(var(--v) * .012 * min(100vh, 900px) + 1rem); line-height: 1.056; }
h2 { --v: 1.8; font-size: calc(var(--v) * .012 * min(100vh, 900px) + 1rem); line-height: 1.1136; }
h3 { --v: 1.2; font-size: calc(var(--v) * .012 * min(100vh, 900px) + 1rem); line-height: 1.1424; }
h4 { --v: .6;  font-size: calc(var(--v) * .012 * min(100vh, 900px) + 1rem); line-height: 1.1712; }
@media (min-width: 768px) {
  h1, h2, h3, h4 { font-size: calc(var(--v) * 1.2vw + 1rem); }
}
p { margin: 1rem 0; }
.small { font-size: calc((-.1 * .012 * min(100vh, 900px) + 1rem) * 1.0625); line-height: 1.5; }
@media (min-width: 768px) {
  .small { font-size: calc((-.1 * 1.2vw + 1rem) * 1.0625); }
}
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.center { text-align: center; }
.indent { margin-left: 40px; }
.c-blue { color: var(--blue); }
.c-beige { color: var(--beige); }
.c-white { color: var(--white); }
.c-ink { color: var(--ink); }

/* Hand-drawn underline under a heading word */
.hl {
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 11c12.5-1.5 25-4.6 50-6s38 0 50 .5c2.4.1-1.9 1.6-2 1.7' fill='none' stroke='%231f3a80' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 100% .3em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
h1 .hl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 11c12.5-1.5 25-4.6 50-6s38 0 50 .5c2.4.1-1.9 1.6-2 1.7' fill='none' stroke='%231f3a80' stroke-width='3.4' stroke-linecap='square' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.hl-thick {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 11c12.5-1.5 25-4.6 50-6s38 0 50 .5c2.4.1-1.9 1.6-2 1.7' fill='none' stroke='%23b79f7c' stroke-width='7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.3rem;
  background: var(--tan); color: var(--white);
  font-family: var(--button); font-size: 1rem; line-height: 1.2;
  text-transform: uppercase; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: opacity .1s linear;
}
.btn:hover { opacity: .8; }
.btn-line { border: 1px solid var(--white); }
.b > .btn { width: 100%; height: 100%; padding-top: 0; padding-bottom: 0; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--gold);
}
.header-inner {
  position: relative; z-index: 45; /* stays above the mobile menu overlay */
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5vw var(--gutter);
}
.logo img { width: 110px; height: 110px; }
.nav { display: flex; align-items: center; }
.nav a {
  margin-left: 2.5vw;
  padding: .1em 0;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.5;
}
.nav a:first-child { margin-left: 0; }
.nav a:hover, .nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.social { display: flex; margin-left: 2.5vw; color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.burger { display: none; }
.menu { display: none; }

@media (max-width: 767px) {
  .logo img { width: 100px; height: 100px; }
}
@media only screen and (pointer: coarse) and (max-width: 1024px), screen and (max-width: 799px) {
  .header-inner { padding: 6vw; }
  .nav { display: none; }
  .burger {
    display: block; position: relative;
    width: 36px; height: 36px; padding: 0;
    background: none; border: 0; cursor: pointer;
    color: var(--gold);
  }
  .burger span {
    position: absolute; left: 0; right: 0; height: 1px;
    background: currentColor;
    transition: transform .25s ease;
  }
  .burger span:first-child { top: 13px; }
  .burger span:last-child { top: 22px; }
  .menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 40;
    padding: 146px var(--gutter) 40px;
    background: var(--blue);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .menu-open .menu { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu a {
    color: var(--tan);
    font-size: 8.6vmin;
    line-height: 1.6;
    text-decoration: none;
  }
  .menu .social { margin: 2rem 0 0; color: var(--tan); }
  .menu .social svg { width: 28px; height: 28px; }
}

/* Sections */
.sec {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 33vh;
  padding: 3.3vmax 0;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}
.sec.custom { min-height: 10vh; padding: 1.25vw 0; }
.sec.tan { background: var(--tan); color: var(--white); }
.sec.dark { background: var(--blue); color: var(--white); }
.sec.photo { color: var(--white); }
.bg { position: absolute; inset: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); opacity: var(--overlay, .15);
}

/* Squarespace's fluid grid: 8 columns on phones, 24 from 768px */
.fe {
  --gap: 11px;
  --cell: calc((2000px - var(--gap) * 7) / 8);
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(calc(var(--gutter) - var(--gap)), 1fr)
    repeat(8, minmax(0, var(--cell)))
    minmax(calc(var(--gutter) - var(--gap)), 1fr);
  grid-template-rows: repeat(var(--rows), minmax(24px, auto));
  gap: var(--gap);
  width: 100%;
}
@media (min-width: 768px) {
  .fe {
    --cell: calc((2000px - var(--gap) * 23) / 24);
    --row: calc(min(2000px, 94vw) * .0215);
    grid-template-columns:
      minmax(calc(var(--gutter) - var(--gap)), 1fr)
      repeat(24, minmax(0, var(--cell)))
      minmax(calc(var(--gutter) - var(--gap)), 1fr);
    grid-template-rows: repeat(var(--rows-d), minmax(var(--row), auto));
  }
}
.b {
  grid-area: var(--m);
  z-index: var(--z, 0);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-width: 0;
}
@media (min-width: 768px) {
  .b { grid-area: var(--d); z-index: var(--zd, var(--z, 0)); }
}
.b.mid { justify-content: center; }
.b.end { justify-content: flex-end; }
.b > .text { width: 100%; }
.b.img { position: relative; }
.b.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b.img.contain img { object-fit: contain; }
.b.card { background: var(--white); padding: 0; }

/* Workshop sign-up (was a Squarespace newsletter block) */
.signup { text-align: center; }
.signup h2 { --v: 1.2; line-height: 1.2; margin: 0 0 16px; }
@media (min-width: 768px) {
  .signup h2 { font-size: calc(var(--v) * 1.2vw + 1rem); }
}
.signup .btn { margin-top: 1.5rem; }
.signup .note { margin-top: 2.5rem; }

/* Footer */
.footer { background: var(--navy); color: var(--white); min-height: 0; }
.footer h4 { color: var(--tan); }
.footer a { color: var(--tan); }
.brand > .text > :first-child { margin-top: 0; }
.brand h4 { margin-bottom: 0; }
.brand .small { margin-top: 8px; }
.brand > .text + .text { margin-top: 1rem; }
@media (min-width: 768px) {
  .b.brand { flex-direction: row; justify-content: flex-start; gap: 37px; }
  .brand > .text { width: auto; }
  .brand > .text + .text { margin-top: 0; }
  .brand p { margin: 0; }
  .brand .small { margin-top: 8px; }
}
@media (max-width: 767px) {
  .b.mid-m { justify-content: center; }
}
@media (min-width: 768px) {
  .b.mid-d { justify-content: center; }
}
.pad { padding: 6%; }
.sec.medium { padding: 6.6vmax 0; }
.text ul { margin: 1rem 0; padding-left: 40px; }
.text li > p { margin: .5rem 0; }
.text .btn { color: var(--white); }
.text.on-tan .btn { background: var(--white); color: var(--tan); }

/* Photo carousel (was a Squarespace list section) */
.gallery { padding: 10vmax 0 calc(10vmax + 6vw); }
.carousel {
  position: relative;
  --cols: 1;
  --w: calc(100vw - 6vw);
}
@media (min-width: 768px) {
  .carousel { --cols: 2; --w: calc((100vw - 6vw - 40px - (var(--cols) - 1) * 20px) / var(--cols)); }
}
@media (min-width: 1024px) { .carousel { --cols: 3; } }
.slides {
  --gap: 20px;
  display: flex; gap: var(--gap);
  margin: 0; padding: 0 3vw; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 3vw;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides li { flex: 0 0 var(--w); scroll-snap-align: start; }
.slides img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 6%; }
.slides h2 { --v: .2; margin: 0; max-width: 75%; font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.arrows { display: flex; justify-content: center; gap: 18px; margin-top: 24px; }
.arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(33, 32, 32, .12); color: var(--blue);
  cursor: pointer;
}
.arrow svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }
@media (min-width: 768px) {
  .arrows { display: block; margin: 0; }
  .arrow {
    position: absolute; top: calc(var(--w) / 2); transform: translateY(-50%);
    width: 60px; height: 60px; background: rgba(228, 228, 228, .8);
  }
  .arrow svg { width: 36px; }
  .prev { left: 5vw; }
  .next { right: 5vw; }
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 6vw; fill: var(--tan); }
.text a { color: var(--tan); }
.tan .text a { color: var(--white); }
.email { margin: 0; }
.text .email a { color: var(--blue); }

/* FAQ accordion (native details/summary) */
.faq details { border-top: 1px solid rgba(255, 255, 255, .5); }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .5); }
.faq summary {
  display: flex; align-items: center; gap: 22px;
  padding: 16px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: 0 0 26px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M1 1l12 12L25 1' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::before { transform: rotate(180deg); }
.faq summary h4 { margin: 0; color: var(--white); }
.faq details > p { margin: 0 0 1rem 48px; }
.faq details > p:last-child { padding-bottom: 1rem; }
.pad-s { padding: 3%; }
/* About: room under the card text for the Workshops button on its bottom edge (the live site overlaps here) */
.pad-s.btn-room { padding-bottom: calc(3% + 2rem); }

/* Blog list (was Squarespace "side by side" layout; posts have no images) */
.blog-list { padding: 3.3vmax var(--gutter); }
.post-item { display: grid; grid-template-columns: 1fr; padding: 0 0 40px; }
.post-text { display: flex; flex-direction: column; padding: 24px 0; }
.post-item time { display: block; margin-bottom: 20px; font-size: 1rem; }
.post-item h1 {
  --v: 1.8; margin: 0 0 30px; line-height: 1.2; color: var(--ink);
  font-size: calc(var(--v) * .012 * min(100vh, 900px) + 1rem);
}
.post-item h1 a { text-decoration: none; }
.post-excerpt p { margin: 16px 0; }
.more { align-self: flex-start; margin-top: 24px; color: var(--tan); text-underline-offset: .2em; }
@media (min-width: 768px) {
  .blog-list { padding-top: 3.3vmax; }
  .post-item { grid-template-columns: 40% 54%; column-gap: 6%; padding: 0; }
  .post-text { grid-column: 2; display: flex; flex-direction: column; padding: 0; }
  .post-item h1 { font-size: calc(var(--v) * 1.2vw + 1rem); }
}

/* Blog post */
.post { padding: 4.8vmax var(--gutter) 3vw; }
@media (min-width: 768px) {
  .post article { width: 55%; margin: 0 auto; }
}
.post article > h1 { margin: 0 0 48px; text-align: center; line-height: 1.2; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body li > p { margin: .5rem 0; }
.post-body ul { padding-left: 40px; }
.pager { display: flex; justify-content: space-between; gap: 5vw; margin-top: 6vw; }
.pager a { flex: 1 1 50%; display: flex; align-items: center; gap: 30px; color: var(--ink); text-decoration: none; }
.pager .next { justify-content: flex-end; text-align: right; }
.pager h2 { --v: 1.2; margin: 0; line-height: 1; }
.pager span {
  flex: 0 0 14px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 30'%3E%3Cpath d='M13 1 1 15l12 14' fill='none' stroke='%23212020' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pager .next span { transform: scaleX(-1); }
@media (max-width: 767px) {
  .pager a { gap: 16px; }
}
.post-body p { white-space: pre-wrap; }
.post-body p:empty { min-height: 24px; }

/* 404 */
.notfound { padding: 6.6vmax var(--gutter); min-height: 50vh; }
.notfound .text { max-width: 750px; margin: 0 auto; }

/* Home banner: on tablets the heading wraps to 3 lines, so the button moves below it (the live site overlaps here) */
@media (min-width: 768px) and (max-width: 1100px) {
  .banner-btn { grid-area: 9/2/11/6; }
}
