:root{
  --orange: #F46C01;
  --maxw: 1400px;
}

*{ box-sizing: border-box; }

/* Remove default link styling */
a{
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus,
a:active{
  text-decoration: none;
  opacity: 1;
}

html, body{ height: 100%; }

body{
  margin: 0;
  background: #fff;
  color: #111;
  position: relative;
}

/* GLOBAL TOP NAV */
.site-nav{
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--maxw);
  padding: 0 40px;
  z-index: 1000;
}

.site-nav__inner{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 28px;
}

.site-nav a{
  font-family: "Roboto Condensed", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #4a4f59;
  text-decoration: none;
}

.site-nav a:hover{
  opacity: 0.7;
}

/* Dropdown menu for essays


• always within viewport */
.dropdown{
position: relative;
display: inline-block;
cursor: pointer;
}
.dropdown-content{
display: none;
position: absolute;
left: 50%;
top: 100%;
transform: translateX(-50%);
background-color: #f9f9f9;
min-width: 200px;
max-height: 70vh !important;
overflow-y: auto !important;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1000;
}
.dropdown-content a{
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
font-weight: 400;
font-size: 16px;
}
.dropdown-content a:hover{
background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content{
display: block !important;
}
.dropdown:hover > a{
opacity: 0.7;
}

/* Base page layout (NO fixed height by default) */
.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 40px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Home is a poster: fixed viewport height */
.page--home{
  height: 100vh;
  height: 100dvh;
}

/* Big THURBOT title (homepage) */
h1{
  margin: 0;
  font-family: "Roboto Condensed", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 160px);
  line-height: 0.9;
  letter-spacing: 1px;
  color: var(--orange);
  flex: 0 0 auto;
}

/* HOME HERO */
.hero{
  width: 100%;
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 14px;
}

/* The visual stage that holds the image */
.hero-visual{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

/* Make the clickable area exactly the visual box */
.hero-link{
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

/* Force fully-visible behavior, even if other global img rules exist */
.hero-img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  display: block;
}

.caption{
  margin: 0;
  text-align: right;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.15;
  color: #666;
  flex: 0 1 auto;
}

/* POSTS */
.page--post{
  padding-top: 24px;
  padding-bottom: 56px;
  gap: 22px;
}

/* THURBOT link on posts */
.post-header{
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.post-home{
  font-family: "Roboto Condensed", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--orange);
  text-decoration: none;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

/* ABOUT page special THURBOT header */
.page--about-post{
  gap: 18px;
}

.about-home-header{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.about-home-link{
  display: inline-block;
  margin: 0;
  font-family: "Roboto Condensed", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 160px);
  line-height: 0.9;
  letter-spacing: 1px;
  color: var(--orange);
  text-decoration: none;
}

.about-home-link:hover{
  opacity: 0.9;
}

/* Post hero block (full page width) */
.post-hero{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* This controls the photo height on post pages */
.post-visual{
  height: 80vh;
  max-height: 1400px;
  min-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* White frame */
.post-frame{
  height: 100%;
  width: auto;

  background: #fff;
  padding: 2%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image fits inside the padded frame */
.post-img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;

  display: block;
  object-fit: contain;
  object-position: center;
}

/* If post-caption exists in markup: hide it (you do NOT want it) */
.post-caption{
  display: none !important;
}

/* Post title (NOT orange) */
.post-title{
  margin: 0 0 18px 0;
  font-family: "Roboto Condensed", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: 0.2px;
  color: #111;
}

/* Body text */
.post-body{
  max-width: 760px;
  width: 100%;
  margin: 0 auto;

  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: #111;
}

.post-body p{
  margin: 0 0 1.1em 0;
}

/* Make generic post content behave like post text */
.post-content{
  width: 100%;
}

.post-content p{
  margin: 0 0 1.1em 0;
}

/* Thumbnails block under the text */
.post-navigation{
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.post-divider{
  border: 0;
  border-top: 1px solid #000;
  margin: 18px 0 12px 0;
}

.post-thumbs{
  column-width: 100px;
  column-gap: 10px;
}

.thumb-link{
  break-inside: avoid;
  margin-bottom: 10px;
  width: 100%;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
}

.thumb-img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* HAMBURGER BUTTON — hidden on desktop */
.hamburger{
  display: none;
}

/* CLOSE BUTTON — hidden on desktop */
.nav-close{
  display: none;
}

@media (max-width: 700px){

  /* Nav zit nu fixed rechtsboven */
  .site-nav{
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
    width: auto;
    padding: 0;
    z-index: 2000;
  }

  /* Hamburger knop zichtbaar */
  .hamburger{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2100;
  }

  .hamburger span{
    display: block;
    width: 100%;
    height: 2px;
    background: #4a4f59;
    border-radius: 2px;
    transition: background 0.2s;
  }

  /* Menu standaard verborgen op mobiel */
  .site-nav__inner{
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    background: #fff;
    padding: 20px 24px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow-y: auto;
    justify-content: flex-start;
  }

  /* Menu open state */
  .site-nav__inner.is-open{
    display: flex;
  }

  /* X sluit-knop */
  .nav-close{
    display: flex;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #4a4f59;
    padding: 0;
    margin-bottom: 24px;
    line-height: 1;
  }

  /* Verberg nav-close op desktop */

  .site-nav a{
    font-size: 18px;
  }

  /* Dropdown sectie op mobiel */
  .dropdown{
    width: 100%;
    margin-bottom: 8px;
  }

  .dropdown > a {
    display: block;
    padding: 6px 0;
    font-weight: 700;
  }

  /* Sublinks altijd zichtbaar in mobiel menu */
  .dropdown-content{
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 4px 12px;
    min-width: unset;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dropdown-content a{
    font-size: 15px;
    padding: 5px 0;
    color: #666;
    display: block;
  }

  /* Contact link wat ruimte erboven */
  .site-nav__inner > a[href^="mailto"]{
    margin-top: 8px;
    padding: 6px 0;
  }

  /* Witruimte boven Thurbot: max 25px */
  .page{
    padding: 25px 16px 18px 16px;
    gap: 12px;
  }

  .hero{
    gap: 10px;
  }

  .page--post{
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .post-body{
    font-size: 16px;
  }

  /* Op mobiel: geen vaste hoogte, image bepaalt zelf de hoogte */
  .post-visual{
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
  }

  .post-frame{
    height: auto;
    width: 100%;
    padding: 0;
    display: block;
  }

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

  .thumb-img{
    width: 100%;
    height: auto;
  }
}