/* ============ BASE ============ */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff; /* pale mint, like Jente Posthuma */
  color: #222;
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  min-height: 100vh;
}

a {
  color: #222;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #000; }

h1, h2 {
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hidden { display: none !important; }

/* ============ FRAME (the bordered rectangle in the sketch) ============ */
.frame {
  position: relative;
  margin: 4vh auto;
  width: min(92vw, 1100px);
  height: 88vh;
  border: 2px solid #000011;       /* green border, like the sketch */
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.site-title {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #000011;
  white-space: nowrap;
}

/* ============ MENU TRIGGER (vertical letters on the left) ============ */
.menu-trigger {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #000011;
  letter-spacing: 0.05em;
  padding: 8px;
  z-index: 5;
}

.menu-trigger span {
  display: block;
  line-height: 1;
}

.menu-trigger:hover { color: #000; }

/* ============ CENTERED PORTRAIT ============ */
.portrait-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1 / 1;
  border: 1px solid #000011;
  background: #ddd;
  overflow: hidden;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /*filter: grayscale(100%) contrast(1.05);*/
}

/* Instagram icon under the portrait */
.portrait-instagram {
  position: absolute;
  top: calc(50% + clamp(140px, 17vw, 220px));  /* sits just below the portrait */
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
  display: block;
  padding: 6px;
  z-index: 5;
  transition: transform 0.2s ease;
}
 
.portrait-instagram:hover { transform: translateX(-50%) scale(1.15); }
 
.portrait-instagram svg { display: block; }

/* The little "zwarte vlek" Megan drew in the bottom-right of the sketch */
.zwarte-vlek {
  position: absolute;
  bottom: 28px;
  right: 36px;
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  z-index: 3;
}

/* ============ GEESE + JELLYFISH (over the clean design) ============ */
.geese-image {
  position: absolute;
  top: 22%;
  left: 100%;
  transform: translateY(-50%);
  animation: move-geese 20s linear infinite;
  z-index: 4;
  pointer-events: none;
}

.geese-image img { width: 300px; height: auto; display: block; }

@keyframes move-geese {
  0%   { left: 100%; }
  100% { left: -20%; }
}

.jellyfish-image-bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 200px;
  height: 200px;
  animation: moveJellyfish 45s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.jellyfish-image-bottom img { width: 100%; height: 100%; display: block; }

@keyframes moveJellyfish {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(calc(85vw - 130px), calc(-70vh + 130px)) rotate(20deg); }
}

/* ============ MENU PANEL (pops up when MENU clicked) ============ */
.menu-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(420px, 85vw);
  background: #ffffff;
  border: 1px solid #000011;
  padding: 36px 40px 32px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-panel.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.menu-panel li button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  color: #222;
  cursor: pointer;
  padding: 6px 8px;
  letter-spacing: 0.04em;
}
@keyframes tilt-n-move-shaking {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, 5px) rotate(5deg); }
  50% { transform: translate(0, 0) rotate(0eg); }
  75% { transform: translate(-5px, 5px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.menu-panel li button:hover {
  color: #000011;
  animation: tilt-n-move-shaking 0.15s infinite;
}

.menu-close,
.panel-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: #000011;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* ============ PANELS (Boeken, Verhalen, Contact, Blog) ============ */
.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(720px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #000011;
  padding: 40px 48px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.panel.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.panel h2 {
  margin: 0 0 24px;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #000011;
  text-align: center;
}

.panel p { line-height: 1.7; }

/* Boeken layout */
.books {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.book {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 180px;
}

.book img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  display: block;
  transition: transform 0.2s ease;
}

.book:hover img { transform: scale(1.03); }

.book-title {
  margin: 12px 0 2px;
  font-weight: 700;
  font-size: 15px;
}

.book-meta {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.quotes p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
}

/* Verhalen layout */
.stories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stories li {
  margin: 0 0 14px;
  font-size: 16px;
}

/* Backdrop while any panel/menu is open */
.backdrop {
  position: fixed;
  inset: 0;
  background: #ffffff;
  backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ============ TEXT-MESSAGE THUMB + OVERLAY ============ */
.text-message-image {
  position: absolute;
  bottom: 20px;
  right: 50px;
  z-index: 6;
}
 
.text-message-image img {
  width: 70px;
  height: auto;
  display: block;
  transform-origin: bottom right;
  transition: transform 0.2s ease-in-out;
}
 
.text-message-image img:hover {
  transform: scale(6);
}
/* ============ RANDOM DOG ============ */
.random-dog {
  position: fixed;
  width: 200px;
  height: auto;
  z-index: 50;
  pointer-events: none;
}

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 600px) {
  .frame { height: 92vh; margin: 2vh auto; }
  .site-title { font-size: 16px; letter-spacing: 0.12em; }
  .menu-trigger { left: 10px; font-size: 16px; }
  .portrait-wrap { width: 65vw; }
  .panel { padding: 32px 22px; }
  .books { gap: 18px; }
  .book { width: 130px; }
}
