/* style.css */

:root {

  --bg: #111111;

  --text: #f2f2f2;

  --muted: #8d8d8d;

  --line: #2a2a2a;

  --hover: #ffffff;

  --max-width: 920px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {

  background-color: var(--bg);

  background-image:
    radial-gradient(
      circle at 75% 15%,
      rgba(255, 255, 255, 0.06),
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 85%,
      rgba(80, 100, 180, 0.04),
      transparent 40%
    );

  color: var(--text);

  font-family: 'Inter', sans-serif;

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;

  overflow: hidden;
}

.layout {

  display: flex;

  width: 100%;

  height: 100vh;
}

/* SIDEBAR */

.sidebar {

  width: 260px;

  border-right: 1px solid var(--line);

  flex-shrink: 0;
}

.sidebar-inner {

  position: sticky;

  top: 0;

  padding: 56px 40px;
}

.site-heading {
  margin-bottom: 56px;
}

.site-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title {

  font-size: 2rem;

  font-weight: 500;

  letter-spacing: -0.04em;

  margin-bottom: 0.35rem;

  cursor: pointer;
}

.nav {

  display: flex;

  flex-direction: column;

  gap: 12px;
}

.nav-item {

  background: none;

  border: none;

  padding: 0;

  cursor: pointer;

  text-align: left;

  font-size: 0.98rem;

  font-weight: 400;

  color: var(--muted);

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-item:hover {

  color: var(--hover);

  transform: translateX(4px);
}

.nav-item.active {

  color: var(--text);
}

/* CONTENT */

.content {

  flex: 1;

  overflow-y: auto;
}

.content-inner {

  max-width: var(--max-width);

  padding: 120px 64px 64px 12px;

  margin: 0 auto;
}

/* TEXT */

#project-text {

  margin-bottom: 64px;
}

#project-text p {

  margin-bottom: 1.5rem;

  line-height: 1.8;
}

#project-text h3 {

  margin-top: 2rem;

  margin-bottom: 1rem;

  font-weight: 600;
}


.project-title {

  font-size: 2.2rem;

  font-weight: 500;

  letter-spacing: -0.04em;

  margin-bottom: 24px;
}

.project-description {

  max-width: 720px;

  font-size: 1rem;

  line-height: 1.35;

  color: #c8c8c8;
}

.project-description a,
.multi-project-description a {

  color: inherit;

  text-decoration: none;

  border-bottom: 1px solid var(--text);

  transition: opacity 0.2s ease;
}

.project-description a:hover,
.multi-project-description a:hover {

  opacity: 0.6;
}

/* SPECIAL SPACING FOR CV ENTRIES */

.big-text-for-exhibition-work {
  font-size: 1.15rem;

  margin-bottom: 0.5rem;

  font-weight: 500;

  padding-left: 0.5rem;

}

.cv-entry-exhibition {

  line-height: 1.8;

  padding-left: 1rem;
}

.cv-entry-panel {

  line-height: 2.5;

  padding-left: 0.5rem;

}

.cv-entry-education {

  line-height: 1.5;

  padding-left: 0.5rem;

}


.cv-entry-skill {

  line-height: 2.0;

  padding-left: 0.5rem;
}

/* GALLERY */

#gallery {

  display: flex;

  flex-direction: column;

  gap: 28px;
}

.gallery-image {

  width: 100%;

  height: auto;

  display: block;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;

    border: 1px solid rgba(255,255,255,0.06);
}

/* MINI */

.gallery-image.mini {

  max-width: 350px;
}


/* SMALL */

.gallery-image.small {

  max-width: 420px;
}

/* MEDIUM */

.gallery-image.medium {

  max-width: 720px;
}

/* LARGE */

.gallery-image.large {

  max-width: 980px;
}

/* POSTER */

.gallery-image.poster {

  width: auto;

  max-width: 100%;

  max-height: 65vh;

  margin: 0 auto;
}


.gallery-image:hover {

  transform: scale(1.01);

  opacity: 0.96;
}

/* VIDEO */

.gallery-video {

  width: 100%;

  aspect-ratio: 16 / 9;

  border: none;
}

/* VIDEO SIZE VARIANTS */

.gallery-video.large {

  max-width: 980px;
}

.gallery-video.medium {

  max-width: 720px;
}

/* PAGE TYPE CONFIGURATIONS */

.single-project-layout {

  display: grid;

  grid-template-columns: 38% 62%;

  gap: 3rem;

  align-items: start;
}

.single-project-text {

  position: relative;

  align-self: start;

  top: 40px;

  transition: transform 0.2s ease-out;
}

.single-project-gallery {

  display: flex;

  flex-direction: column;

  gap: 2rem;

  padding-top: 1rem;
}

.multi-project-page {

  display: flex;

  flex-direction: column;
}

.multi-project {

  display: grid;

  grid-template-columns: 45% 55%;

  gap: 3rem;

  padding-bottom: 4rem;

  margin-bottom: 4rem;

  border-bottom: 1px solid var(--line);
}

.multi-project-text {

  align-self: start;
}

.multi-project-title {

  font-size: 1.6rem;

  font-weight: 500;

  margin-bottom: 1rem;
}

.multi-project-description {

  line-height: 1.5;

  color: #c8c8c8;
}

.multi-project-gallery {

  display: flex;

  flex-direction: column;

  gap: 1.5rem;

}



/* MOBILE */

@media (max-width: 900px) {

.site-heading {
    margin-bottom: 32px;
  }

.single-project-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-project-text {
    position: relative; /* kill sticky on mobile */
    top: auto;
  }

.project-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

#gallery {
  display: none;
}

  .block {
    width: 100%;
  }

  .block img {
    width: 100%;
    height: auto;
    display: block;
  }


.multi-project {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }

.multi-project-description {
    line-height: 1.65;
  }

  .multi-project-text {
    order: 1;
  }

  .multi-project-gallery {
    order: 2;
    gap: 1.25rem;
  }


  body {
    overflow: auto;
  }

  .layout {

    flex-direction: column;

    height: 100vh;
    overflow-y: auto;
  }

  .sidebar {

    width: 100%;

    border-right: none;

    border-bottom: 1px solid var(--line);
  }

  .sidebar-inner {

    position: relative;

    padding: 32px 24px;
  }

  .content-inner {

    padding: 40px 24px;
  }

  .project-title {

    font-size: 1.8rem;
  }

  .multi-project {

  grid-template-columns: 1fr;

  }
}


/* BLOG PAGES */

.blog-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 80px 24px;
}

.blog-post {
  max-width: 760px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 4rem;
}

.blog-post h1 {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.blog-post h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.85;
  color: #c8c8c8;
  margin-bottom: 1.5rem;
}

.blog-post a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
}

.blog-post a:hover {
  opacity: 0.7;
}

/* IMAGES */

.blog-image-block {
  margin: 3rem 0;
}

.blog-image-block img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}

.blog-image-block figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.blog-image-block.wide {
  width: 115%;
  margin-left: -7.5%;
}

/* CODE BLOCKS */

.blog-post pre {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem;
  margin: 2.5rem 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-post code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

.blog-post p code {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.12rem 0.35rem;
  font-size: 0.9em;
}

/* DIVIDER */

.blog-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 4rem 0;
}

/* BACK LINK */

.back-link {
  display: block;
  max-width: 760px;
  margin: 0 auto 5rem auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--text);
}

/* MOBILE BLOG PAGE */

@media (max-width: 900px) {
  .blog-page {
    padding: 40px 24px;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-image-block.wide {
    width: 100%;
    margin-left: 0;
  }
}

/* BLOG SCROLL FIX */

body:has(.blog-page) {
  overflow: auto;
}



