/* ============================================================
   Carmen De Vos – Clone Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

strong, b {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 0.85;
}

/* --- Page Wrapper (10px padding around entire page) --- */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 10px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
}

.header-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 10px;
  min-height: auto;
}

@media (min-width: 1024px) {
  .header-grid {
    min-height: 220px;
  }
}

.header-logo {
  grid-column: span 8;
}

@media (min-width: 1024px) {
  .header-logo {
    grid-column: span 6;
  }
}

.header-logo a {
  display: inline-block;
}

.logo-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

@media (min-width: 1024px) {
  .logo-svg {
    max-width: 360px;
  }
}

.header-nav-area {
  grid-column: span 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
}

@media (min-width: 1024px) {
  .header-nav-area {
    grid-column: span 6;
  }
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  padding: 0;
}

.mobile-menu-btn:hover {
  font-weight: 500;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* --- Desktop Navigation (fixed right) --- */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 50;
    text-align: right;
  }
}

.desktop-nav ul {
  list-style: none;
}

.desktop-nav li {
  white-space: nowrap;
  margin-bottom: 2px;
}

.desktop-nav a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  transition: font-family 0.15s ease;
}

.desktop-nav a:hover,
.desktop-nav a.current {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
}

.desktop-nav a::before {
  content: '';
}

.desktop-nav a:hover::before {
  content: '[';
}

.desktop-nav a::after {
  content: '';
}

.desktop-nav a:hover::after {
  content: ']';
}

.desktop-nav a.current::before {
  content: '[';
}

.desktop-nav a.current::after {
  content: ']';
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  background: #fff;
  padding: 20px 10px;
}

.mobile-menu-overlay.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.mobile-nav a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 24px;
  color: #000;
}

.mobile-nav a.current {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
}

.mobile-nav a.current::before {
  content: '[';
}

.mobile-nav a.current::after {
  content: ']';
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-content {
  flex-grow: 1;
  padding-top: 50px;
}

@media (min-width: 1024px) {
  .site-content {
    padding-top: 100px;
  }
}

/* --- Content Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 10px;
}

.main-content-area {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 10px;
  row-gap: 50px;
  align-items: start;
}

@media (min-width: 1024px) {
  .main-content-area {
    grid-column: span 9;
    row-gap: 100px;
  }
}

/* --- Sidebar (Series Links) --- */
.sidebar-area {
  grid-column: span 12;
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-area {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

.series-links {
  position: fixed;
  top: auto;
  right: 10px;
  text-align: right;
  z-index: 5;
  margin-top: 320px;
}

.series-links li {
  white-space: nowrap;
  margin-bottom: 4px;
}

.series-links a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  transition: font-family 0.15s ease;
}

.series-links a:hover {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
}

.series-links a::before {
  content: '';
}

.series-links a:hover::before {
  content: '[';
}

.series-links a::after {
  content: '';
}

.series-links a:hover::after {
  content: ']';
}

.series-links__extra {
  margin-top: 32px;
}

/* ============================================================
   GRID ITEMS – Image Cards
   ============================================================ */
.grid-item--img {
  grid-column: span 4;
}

@media (min-width: 1024px) {
  .grid-item--img {
    grid-column: span 2;
  }
}

/* Asymmetric offsets (matching the original scattered layout) */
.grid-item--img-1 {
  padding-top: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-1 {
    padding-top: 15%;
    padding-right: 30%;
    padding-left: 20%;
  }
}

.grid-item--img-2 {
  padding-top: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-2 {
    padding-top: 0;
  }
}

.grid-item--img-3 {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-3 {
    padding-left: 33%;
  }
}

.grid-item--img-4 {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-4 {
    padding-left: 20%;
  }
}

.grid-item--img-5 {
  padding: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-5 {
    padding-left: 25%;
    padding-right: 25%;
    padding-top: 20%;
  }
}

.grid-item--img-6 {
  padding: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-6 {
    padding-left: 30%;
    padding-right: 30%;
    padding-top: 10%;
  }
}

.grid-item--img-7 {
  padding: 0;
}

@media (min-width: 1024px) {
  .grid-item--img-7 {
    padding-top: 25%;
    padding-right: 30%;
    padding-left: 20%;
  }
}

.grid-item--img-8 {
  padding: 0;
}

/* --- Image Placeholders --- */
figure {
  margin: 0;
}

figure a {
  display: block;
}

.img-placeholder {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.img-placeholder--portrait {
  aspect-ratio: 4 / 5;
}

.img-placeholder--square {
  aspect-ratio: 1 / 1;
}

.img-placeholder--landscape {
  aspect-ratio: 3 / 2;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  transition: opacity 0.3s ease;
}

figure:hover .img-overlay {
  opacity: 0;
}

figcaption {
  margin-top: 5px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  line-height: 1.3;
  color: #000;
}

/* ============================================================
   GRID ITEMS – Text Blocks
   ============================================================ */
.grid-item--text {
  grid-column: span 4;
}

@media (min-width: 1024px) {
  .grid-item--text {
    grid-column: span 2;
  }
}

/* Text blocks are full-width on the 4-col mobile grid */
.text-block {
  font-size: 24px;
  line-height: 1.35;
  display: inline;
}

.text-block > * {
  display: inline;
}

@media (min-width: 1024px) {
  .text-block {
    font-size: 36px;
    line-height: 1.25;
  }
}

.text-block p {
  margin: 0;
}

.text-block p + .inline-link {
  display: inline;
  margin-left: 0;
}

.inline-link {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  display: inline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.inline-link:hover {
  text-decoration-line: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-top: 50px;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 100px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 50px;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 10px;
    row-gap: 100px;
  }
}

.footer-cta {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .footer-cta {
    grid-column: span 9;
  }
}

.footer-cta > * {
  display: inline;
}

.footer-cta p {
  font-size: 24px;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .footer-cta p {
    font-size: 36px;
    line-height: 1.25;
  }
}

.footer-cta .inline-link {
  font-size: 16px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 1024px) {
  .footer-copy {
    flex-direction: row;
    gap: 0;
  }
}

.footer-copy a {
  text-decoration-thickness: 1px;
}

.footer-copy a:hover {
  text-decoration-line: underline;
}

.footer-credit {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.footer-credit:hover {
  text-decoration-line: underline;
}

/* ============================================================
   UTILITY / ANIMATION
   ============================================================ */

/* Fade-in animation for images */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-item--img figure {
  animation: fadeIn 0.6s ease-out both;
}

.grid-item--img:nth-child(1) figure { animation-delay: 0.0s; }
.grid-item--img:nth-child(2) figure { animation-delay: 0.1s; }
.grid-item--img:nth-child(4) figure { animation-delay: 0.15s; }
.grid-item--img:nth-child(5) figure { animation-delay: 0.2s; }
.grid-item--img:nth-child(6) figure { animation-delay: 0.25s; }
.grid-item--img:nth-child(7) figure { animation-delay: 0.3s; }
.grid-item--img:nth-child(8) figure { animation-delay: 0.35s; }
.grid-item--img:nth-child(9) figure { animation-delay: 0.4s; }

/* Smooth transitions */
a {
  transition: color 0.15s ease;
}

/* Selection color */
::selection {
  background: #000;
  color: #fff;
}
