/* ============================================
   FONTS
   ============================================ */

@font-face {
  font-family: "Forma DJR Deck";
  src: url("../fonts/FormaDJRDeck-Regular.woff2") format("woff2"),
       url("../fonts/FormaDJRDeck-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Deck";
  src: url("../fonts/FormaDJRDeck-Medium.woff2") format("woff2"),
       url("../fonts/FormaDJRDeck-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Micro";
  src: url("../fonts/FormaDJRMicro-Regular.woff2") format("woff2"),
       url("../fonts/FormaDJRMicro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma DJR Micro";
  src: url("../fonts/FormaDJRMicro-Medium.woff2") format("woff2"),
       url("../fonts/FormaDJRMicro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   TOKENS
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-rule: #e2e2e2;

  --font-display: "Forma DJR Deck", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Forma DJR Micro", "Helvetica Neue", Arial, sans-serif;
  --font-body: "CMU Serif", "Computer Modern Serif", Georgia, serif;

  --sidebar-width: 240px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   SIDEBAR NAV (fixed, left margin — like the Wix site)
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 32px;
  border-right: none;
  background: transparent;
  overflow: visible;
  z-index: 100;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.8;
  margin: 0 0 10px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-nav);
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 0.3;
  width: 100%;
}

.site-nav a {
  display: inline-block;
  padding: 2px 0;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-muted);
}

.has-dropdown {
  position: relative;
  width: fit-content;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 2px 0;
  margin: 0;
  text-align: left;
  transition: color 0.15s ease;
  display: inline;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: "";
}

.has-dropdown:hover .dropdown-toggle::after {
  content: ":";
}

.has-dropdown.open .dropdown-toggle,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: var(--color-muted);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  left: 100%;
  top: 0;
  margin: 0;
  padding: 0 16px;
  border-left: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: 26px;
  z-index: 200;
}

.dropdown-menu a {
  display: inline-block;
  padding: 2px 0;
  white-space: nowrap;
}

.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* ============================================
   PAGE LAYOUT (offset for fixed sidebar)
   ============================================ */

main {
  margin-left: var(--sidebar-width);
  max-width: calc(var(--content-width) + var(--sidebar-width));
  padding: 64px 48px 96px;
  position: relative;
}

.site-footer {
  margin-left: var(--sidebar-width);
  text-align: left;
  padding: 32px 48px;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: none;
}

/* ============================================
   HOMEPAGE BACKGROUND VIDEO
   ============================================ */

.bg-video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.bg-video-wrap video,
.bg-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ARTWORK PIECE (image OR video)
   ============================================ */

.piece {
  text-align: center;
  margin-bottom: 56px;
}

.piece-media {
  margin: 0 auto 28px;
  max-width: 100%;
  background: #000;
}

video.piece-media {
  width: 100%;
  max-height: 640px;
}

.piece-caption {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-muted);
  line-height: 1.7;
  text-align: left;
}

.piece-caption .piece-title {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

.bio {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.75;
}

/* ============================================
   RESPONSIVE — collapse sidebar to a top bar on narrow screens
   ============================================ */

@media (max-width: 600px) {
  .site-header {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-right: none;
    border-bottom: none;
  }

  .site-title {
    margin: 0;
    font-size: 18px;
  }

  .site-nav {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    width: auto;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    border: none;
    padding: 14px 20px;
    margin-top: 8px;
  }

  main,
  .site-footer {
    margin-left: 0;
    max-width: 100%;
    padding: 40px 20px 64px;
  }
}
