/* ==========================================================================
   Droomtentjes — public website
   Recreates the Squarespace design: dusty-rose "bokeh" background, cream
   headings, Raleway body text, Space Grotesk headings and pill buttons.
   ========================================================================== */

@font-face {
  font-family: "Raleway";
  src: url("/assets/raleway-latin-31c5c832.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("/assets/raleway-latin-italic-a0c9d87b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-latin-c09702de.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rose: #bd898e;
  --cream: #fef1cc;
  --ink: #1c1c1c;
  --black: #000;
  --white: #fff;

  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --text-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.216rem);   /* 17px → 19.5px */
  --h1-size: clamp(2.1rem, 1.6rem + 1.5vw, 2.728rem);           /* → 43.6px */
  --h2-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.08rem);           /* → 33.3px */

  --gutter: max(1.25rem, 4vw);
  --header-height: clamp(5.5rem, 3.5rem + 4.4vw, 8.4rem);

  --nav-color: var(--black);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--rose);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body.theme-bright {
  --nav-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0 0 0.65em;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- Bokeh background --------------------------------------------------- */

.bokeh__canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bokeh__toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.7);
  color: var(--white);
  cursor: pointer;
}

.bokeh__toggle svg {
  width: 0.85rem;
  height: 0.85rem;
}

.bokeh__toggle .icon-play,
.bokeh.is-paused .bokeh__toggle .icon-pause {
  display: none;
}

.bokeh.is-paused .bokeh__toggle .icon-play {
  display: block;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 2vw var(--gutter);
  color: var(--nav-color);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__logo {
  display: block;
  flex: none;
  position: relative;
  z-index: 2;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: clamp(3.25rem, 2rem + 2.6vw, 4.8rem);
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}

.site-nav a {
  padding: 0.1em 0;
  color: var(--nav-color);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.1em) / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background-size: 100% 1px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.social-links a {
  display: grid;
  place-items: center;
  color: var(--nav-color);
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nav-color);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger span:nth-child(1) { top: 0.85rem; }
.burger span:nth-child(2) { top: 1.33rem; }
.burger span:nth-child(3) { top: 1.81rem; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 2rem;
  background: var(--rose);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.mobile-menu nav a {
  color: var(--white);
  font-size: 2rem;
  line-height: 1.4;
  text-decoration: none;
}

.mobile-menu .social-links {
  position: absolute;
  bottom: 2rem;
}

.mobile-menu .social-links a {
  color: var(--white);
}

.menu-open {
  overflow: hidden;
}

.menu-open .site-header {
  --nav-color: var(--white);
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.menu-open .burger span:nth-child(1) { top: 1.33rem; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 1.33rem; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .site-header__menu {
    display: none;
  }

  .burger {
    display: block;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 4.25rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 300px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.82;
}

.button--light {
  background: var(--white);
  color: var(--rose);
}

/* --- Sections ----------------------------------------------------------- */

.section {
  position: relative;
  padding: 6vw var(--gutter);
}

.section--first {
  padding-top: calc(var(--header-height) + 2.5vw);
}

.section--solid {
  background: var(--rose);
}

.heading-cream {
  color: var(--cream);
}

.page-title {
  font-size: var(--h1-size);
}

.block-title {
  font-size: var(--h2-size);
}

/* --- Home: hero --------------------------------------------------------- */

.hero {
  padding-top: var(--header-height);
  background: var(--rose);
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(59.5vw, 90vh);
  padding: 4vw var(--gutter);
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.51), rgba(0, 0, 0, 0.51)),
    var(--hero-image, none) center / cover no-repeat;
}

.hero__title {
  color: var(--rose);
  font-size: var(--h1-size);
  line-height: 1.12;
}

.hero__subtitle {
  margin-top: 0.75em;
}

.hero__text {
  max-width: 48rem;
  margin-top: 2.6rem;
  color: var(--white);
}

.hero__text p {
  margin-bottom: 0.75em;
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 3rem;
  }

  .hero__media {
    min-height: 0;
    padding: 0;
    background: none;
  }

  .hero__titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-height: min(99vw, 32rem);
    margin: 0 6vw;
    padding: 2rem 0.75rem;
    background:
      linear-gradient(rgba(0, 0, 0, 0.51), rgba(0, 0, 0, 0.51)),
      var(--hero-image, none) center / cover no-repeat;
  }

  .hero__title {
    font-size: clamp(1.9rem, 1.2rem + 3vw, 2.4rem);
  }

  .hero__text {
    margin-top: 1.6rem;
    padding: 0 6vw;
  }
}

/* --- Home: theme cards -------------------------------------------------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.1vw;
  row-gap: 7vw;
  padding: 3.5vw var(--gutter) 7vw;
}

.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.theme-card__image-link {
  display: block;
  width: 100%;
}

.theme-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.theme-card__title {
  margin: 1.8em 0 0.75em;
  color: var(--black);
  font-size: var(--h2-size);
}

.theme-card__text {
  flex: 1;
  max-width: 26rem;
  color: var(--ink);
}

.theme-card .button {
  width: 100%;
  margin-top: 1.75rem;
}

@media (max-width: 1023px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4vw;
  }
}

@media (max-width: 640px) {
  .theme-grid {
    grid-template-columns: 1fr;
    row-gap: 4.5rem;
    padding: 3rem 6vw 5rem;
  }

  .theme-card__image-link {
    width: 88%;
  }

  .theme-card__title {
    margin-top: 1.25em;
  }

  .theme-card .button {
    width: auto;
    min-height: 3rem;
    padding: 0 1.6rem;
    font-size: 0.8rem;
  }
}

/* --- Droomoverzicht ----------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 21rem));
  justify-content: space-between;
  gap: 4.5rem 3rem;
  max-width: 78rem;
  margin: 0 auto;
  color: var(--black);
  text-align: center;
}

.info-block .block-title {
  margin-bottom: 1.3rem;
}

.info-block--wide {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 48rem;
  margin-top: 1rem;
}

@media (max-width: 1023px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* --- Droombericht ------------------------------------------------------- */

.contact {
  max-width: 45rem;
  min-height: calc(100vh - 6vw);
  margin: 0 auto;
  text-align: center;
}

.contact .block-title {
  margin-bottom: 2.2rem;
}

.contact__details {
  margin-top: 2.6rem;
}

.contact__details a {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* --- Droomervaringen ---------------------------------------------------- */

.experiences__title {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Every cloud has the same size, on every screen and however long its text:
   one to four next to each other, and a last row that is not full stays in
   the middle. */
.flower-grid {
  --cloud: 21rem;
  --per-row: 1;
  --gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  max-width: calc(4 * var(--cloud) + 3 * var(--gap));
  margin-inline: auto;
}

.flower {
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: min(var(--cloud), (100% - (var(--per-row) - 1) * var(--gap) - 1px) / var(--per-row));
  aspect-ratio: 1;
  min-height: 0;
  container-type: inline-size;
  color: var(--ink);
  text-align: center;
}

.flower__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--cream);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85));
}

/* The text sits in the middle of the cloud and grows and shrinks with it, so it
   wraps the same way on every screen. --cloud-text is the letter size as a
   percentage of the cloud's width; CloudText works it out per ervaring and
   calculates with the numbers below (width, line height, the two margins). */
.flower__text {
  position: relative;
  margin: 0;
  width: 78%;
  font-size: calc(var(--cloud-text, 4.5) * var(--cloud) / 100);   /* browsers without cqi */
  font-size: calc(var(--cloud-text, 4.5) * 1cqi);
  overflow-wrap: break-word;
}

.flower__text p:last-child {
  margin-bottom: 0;
}

.flower__author {
  margin-bottom: 0.9em;
}

@media (min-width: 700px) {
  .flower-grid {
    --per-row: 2;
  }
}

@media (min-width: 1100px) {
  .flower-grid {
    --per-row: 3;
  }
}

@media (min-width: 1500px) {
  .flower-grid {
    --per-row: 4;
  }
}

/* --- Theme page --------------------------------------------------------- */

.theme-intro {
  text-align: center;
  padding-bottom: 3vw;
}

.theme-intro .page-title {
  margin-bottom: 1.6rem;
}

.theme-intro__text {
  max-width: 50rem;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding: 2.5vw var(--gutter) 6vw;
  background: var(--rose);
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 6vw 4rem;
  }
}

/* --- Droomnieuws ----------------------------------------------------------- */

.news-header {
  max-width: 46rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.news-header__text {
  margin-top: 1.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 24.5rem));
  justify-content: center;
  gap: 2.25rem 1.75rem;
  max-width: 78rem;
  margin: 0 auto;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.75);
}

.news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.5rem 1.6rem;
}

.news-card__meta,
.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.news-card__meta {
  color: #6b5558;
}

.news-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.news-card__excerpt {
  font-size: 1rem;
  line-height: 1.55;
}

.news-card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-badge {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

.promo-badge--ended {
  background: rgba(28, 28, 28, 0.12);
  color: var(--ink);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.news-pagination .button {
  min-height: 3.25rem;
}

.news-empty {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 28px;
  background: var(--cream);
  text-align: center;
}

.news-article {
  max-width: 50rem;
  margin: 0 auto;
}

.news-article__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
  text-decoration: none;
}

.news-article__meta {
  margin: 0.9rem 0 1.75rem;
  color: var(--white);
}

.news-article__meta .promo-badge {
  background: var(--cream);
  color: var(--ink);
}

.news-article__card {
  padding: clamp(1.25rem, 0.75rem + 2.2vw, 2.75rem);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.news-article__images {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.news-article__images img {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 18px;
  object-fit: cover;
}

.news-article__images--2,
.news-article__images--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-article__images--2 img:first-child,
.news-article__images--3 img:first-child {
  grid-column: 1 / -1;
}

.news-article__images--2 img:not(:first-child),
.news-article__images--3 img:not(:first-child) {
  aspect-ratio: 1;
}

.news-article__body p {
  margin-bottom: 0.8em;
}

.news-article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.news-article__actions .button {
  min-height: 3.5rem;
}

.news-article__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .news-grid {
    gap: 1.75rem;
  }

  .news-card__title {
    font-size: 1.4rem;
  }
}

/* --- Formatting from the admin ------------------------------------------------
   The palette of the toolbar in the admin (SiteFormatting::COLORS): a class per
   colour. The light colours would disappear on the cream cards and the dark ones
   on the dark photo of the homepage, so there they are another shade. */

:root {
  --kleur-creme: #fef1cc;
  --kleur-wit: #ffffff;
  --kleur-goud: #ffd98a;
  --kleur-perzik: #ffd9c2;
  --kleur-mint: #d3f3e0;
  --kleur-ijsblauw: #d3e9ff;
  --kleur-lila: #eadcff;
  --kleur-roze: #7a3c49;
  --kleur-paars: #4b2a6b;
  --kleur-blauw: #1f3a5f;
  --kleur-groen: #1f4d3a;
  --kleur-zwart: #000000;
}

:is(.flower, .news-card, .news-article__card, .news-empty) {
  --kleur-creme: #96636a;
  --kleur-wit: #96636a;
  --kleur-goud: #8a6100;
  --kleur-perzik: #a14f24;
  --kleur-mint: #1f6b4a;
  --kleur-ijsblauw: #245a8a;
  --kleur-lila: #6a3fa0;
}

.hero {
  --kleur-roze: #e2a9b1;
  --kleur-paars: #d9c2ff;
  --kleur-blauw: #bcd9ff;
  --kleur-groen: #bfe8d0;
}

.kleur-creme { color: var(--kleur-creme); }
.kleur-wit { color: var(--kleur-wit); }
.kleur-goud { color: var(--kleur-goud); }
.kleur-perzik { color: var(--kleur-perzik); }
.kleur-mint { color: var(--kleur-mint); }
.kleur-ijsblauw { color: var(--kleur-ijsblauw); }
.kleur-lila { color: var(--kleur-lila); }
.kleur-roze { color: var(--kleur-roze); }
.kleur-paars { color: var(--kleur-paars); }
.kleur-blauw { color: var(--kleur-blauw); }
.kleur-groen { color: var(--kleur-groen); }
.kleur-zwart { color: var(--kleur-zwart); }

/* --- For an admin who is logged in ----------------------------------------------
   "Deze pagina wijzigen": from a page straight to its form in the admin. */

.admin-bar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.admin-bar a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.admin-bar a:hover {
  text-decoration: underline;
}

.admin-bar .admin-bar__edit {
  background: var(--cream);
  color: var(--ink);
}

.menu-open .admin-bar {
  display: none;
}

/* On a phone only the edit button, so it stays clear of the pause button. */
@media (max-width: 640px) {
  .admin-bar__link {
    display: none;
  }
}

/* Just above the bar, so it never covers the menu. */
.admin-toast {
  position: fixed;
  left: 1rem;
  bottom: 4.4rem;
  z-index: 60;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  animation: admin-toast 6s ease-in forwards;
}

@keyframes admin-toast {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
