@charset "UTF-8";

/* =========================
Base variables
Fiery Summer Sunset on coolors.co
A76F24
EEC666
EE3532
731013
57681F
313819
========================= */

:root {
--space: 1.4rem;
--text-color: #191921;
--bg-color: rgb(250, 248, 243);;
--accent-color: #57681f;
--hover-color: #EEC666;
--hover-purple: #731013;
--dark-green: #313819;
--bright-red: #EE3532;
}

/* =========================
Reset
========================= */
h1, h2, h3, h4, h5, h6,
p, ul, ol {
margin: 0;
padding: 0;
}

ul, ol {
list-style: none;
}

ul li, ol li {
margin-bottom: 0.3rem;
}

/* =========================
Layout
========================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
position: relative;
background-color: var(--bg-color);
background: transparent;
color: var(--text-color);
font-family: 'Fraunces', serif;
font-weight: 400;

font-size: 1.1rem;
line-height: 1.15;

margin-left: 1em;

margin: 0;
margin-top: 0;
padding-top: 0em;

min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
    url("./images/nouv1.webp") center / cover no-repeat;
  background-attachment: fixed;
  background-position: -200px -500px;
  background-size: auto;
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
}

/* middle content blocks the image */
.main-content {
  background: var(--bg-color);
}

.par-div {
  margin-left: 1.7rem;
  margin-right: 1.7rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.par-div p {
  max-width: clamp(45ch, 90vw, 65ch);
  line-height: 1.5rem;
}

.par-div a {
  text-decoration-line: underline;
  text-decoration-offset: 4px;
}

.par-div a:hover {
  text-decoration-style: wavy;
  text-decoration-skip-ink: none;
  text-decoration-offset: 1px;
  font-style: italic;
}

@media (max-width: 600px) {
  .par-div img {
    float: none !important;
    display: block;
    width: min(250px, 100%);
    height: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.3rem;
    margin-bottom: 0.75rem;
  }
}

.main-content > * + * {
  margin-top: 1rem;
}

.main-content p {
  margin-top: 0.9rem;
}

.main-content h2, .main-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.main-content h2 + p {
  margin-top: 0;
}

.main-content img {
  margin-top: 1.2rem;
}

.par-div h1 + ul,
.par-div h2 + ul {
  margin-top: 0.8rem;
}

/* top and footer let image show through */
.top-name,
.footer {
  background: transparent;
}

.top-name {
  padding-top: 0.5em;
  margin-bottom: 0.4em;
  overflow: visible;
  position: relative;
}

.top-name header {
  white-space: nowrap;
  font-size: clamp(1.4rem, 11.5vw, 3rem);
}

.top-name header a {
  display: inline-block;
  white-space: nowrap;
}

.footer {
  margin-top: 0.5em;
  padding-bottom: 2em;
}

@media (hover: none) and (pointer: coarse) {
  html,
  body {
    overflow-x: clip;
  }

  body {
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    max-width: none;
    min-height: 100svh;
  }

  .main-content {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .linediv {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .footer {
    padding-bottom: 0;
  }

}

.movement-list {
  margin-bottom: 1rem;
}

/* vertical rhythm */
body > * + * {
}

.footer {
  margin-left: 1rem;
  font-size: 1.5rem;
}

.footer .sep {
  margin: 0 0.4rem;
  color: rgba(255,255,255,0.4);
}

.excerpt {
  display: block;
  margin-left: 0.8rem;
  opacity: 0.65;
  font-size: 1rem;
  line-height: 1.5;
}
.blog-list li + li {
  margin-top: 1rem;
}
.blog-list .excerpt {
  margin-top: 0.1rem;
}

.project-list li + li {
  margin-top: 1rem;
}

.project-list .excerpt {
  margin-top: 0.1rem;
}

/* =========================
Typography
========================= */
h1, h2, h3 {
font-weight: normal;
letter-spacing: 0.02em;
}

header {
font-size: 3rem;
padding-top: 0.2rem;
font-family: "Fascinate", sans-serif;
margin-left: 1rem;
}

header a {
  color: var(--accent-color);
  text-decoration: none;
}

header a:hover {
  color: var(--hover-purple);
  text-decoration: none;
}

/* paragraphs */
p {
text-indent: 0;
}

p:first-of-type {
text-indent: 0;
}

.meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

/* =========================
Links
========================= */
a {
color: var(--accent-color);
text-decoration: none;
text-underline-offset: 4px;
}

a:hover {
text-decoration-style: wavy;
text-underline-offset: 5px;
}

/* external links: slightly softer baseline */
a.external {
  font-family: "Montserrat Alternates", sans-serif;
  opacity: 0.85;
  padding: 0.1rem 0.7rem 0.3rem 0.7rem;

  /* border: 0.2rem solid var(--accent-color); */
  border-radius: 999px;
  /* background-color: var(--hover-color); */

  transition: all 300ms ease;
}

/* hover: same underline, but slightly brighter feel */
a.external:hover {
  text-decoration: none;;
  background: var(--hover-color);
  color: var(--hover-purple);
}

.movement-list a:hover {
  text-decoration-line: underline;
  text-decoration-offset: 5px;
  font-style: italic;
}

/* =========================
Secondary nav + filters
========================= */
.secondary-nav,
.filters {
  color: rgba(255,255,255,0.6);
}

.filters {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.secondary-nav {
  margin-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  font-family: "Montserrat Alternates", sans-serif;
  /* font-family: "Fraunces", sans-serif; */
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  line-height: 2rem;
  gap: 0.3rem;
}

.secondary-nav .nav-group {
  display: inline-flex;
  gap: 0.3rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-break {
  display: none;
}

@media (max-width: 600px) {
  .nav-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}

.secondary-nav a.active-nav {
  background-color: var(--hover-purple);
  color: var(--hover-color);
}

.secondary-nav a[href*="gallery"] {
  width: 4.8rem;
  flex: 0 0 4.8rem;
  display: inline-flex;
  justify-content: center;
}

.secondary-nav a[href*="projects"] {
  width: 5.5rem;
  flex: 0 0 5.5rem;
  display: inline-flex;
  justify-content: center;
}

/* nav links */
.secondary-nav a {
  position: relative;
  display: inline-block;

  color: var(--accent-color);
  text-decoration: none;

  padding: 0.1rem 0.7rem 0.3rem 0.7rem;

  /* border: 0.2rem solid var(--accent-color); */
  border-radius: 999px;
  /* background-color: var(--hover-color); */

  transition: all 300ms ease;
}

.secondary-nav a[href*="bio"] {
  position: relative;
  padding: 0.2rem 0.7rem 0.2rem 0.7rem;
}

.secondary-nav a:hover {
  color: var(--hover-color);
  background-color: var(--accent-color);
  /* border: 0.2rem solid var(--hover-color); */
}

/* filter buttons styled like links */
.filters button {
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0;
  font: inherit;
  color: var(--accent-color);
  cursor: pointer;
  text-decoration: none;
  transition: color 300ms ease, transform 300ms ease, font-style 0ms ease;
}

.filters button:hover {
  color: var(--hover-purple);
  font-style: italic;
  transform: scale(1.2);
}

.filters button.active-filter {
  color: var(--hover-purple);
  font-style: italic;
  transform: scale(1.2);
}

/* =========================
Lists
========================= */
.nav-li {
	line-height: 2.3rem;
}

.movement-list li + li {
margin-top: 0.3rem;
}

/* =========================
Divider
========================= */
.linediv {
  border-top: 3px solid var(--accent-color);

  width: 100vw;
  margin-left: calc(50% - 50vw);
  transform: none;
}

@media (hover: none) and (pointer: coarse) {
  .linediv {
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }
}

/* =========================
Conditional visibility
========================= */
#movements:empty,
#description:empty,
#score-link:empty,
#instrumentation:empty
{
  display: none;
}

/* =========================
Interaction
========================= */
.active {
background: rgba(255,255,255,0.08);
padding: 2px 4px;
border-radius: 4px;
}

mark {
background: transparent;
color: var(--accent-color);
}

/* =========================
Piece view (SPA)
========================= */
#piece-divider {
display: none;
}

#piece-container {
line-height: 1.5;
}

/* local rhythm */
#piece-container > * + * {
margin-top: 0.45rem;
}

/* movement grouping */
#piece-container .movement-list {
opacity: 0.9;
margin-bottom: 0;
}

#piece-container .movement-list li + li {
margin-top: 0.12rem;
}

/* tighten title → movements */
.piece-title + .movement-list {
margin-top: 0.2rem;
}

/* closing spacing */
#score-link {
margin-top: 0.7rem;
}

/* breadcrumbs */
.breadcrumbs {
font-size: 0.9rem;
margin-bottom: 1rem;
}

.breadcrumbs:empty {
display: none;
}

.breadcrumbs .sep {
margin: 0 0.3rem;
}

#breadcrumbs .crumb {
  opacity: 0.7;
}

.project-viewall a {
  color: var(--accent-color);
  opacity: 0.7;
  text-decoration: none;
}

.project-viewall a:hover {
  opacity: 1;
}

/* =========================
Gallery
========================= */
figure {
margin: 0;
}

figure + figure {
margin-top: 1.2rem;
}

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

.centered-img {
  display: block;
  margin: 0 auto;
  width: 250px;
}

.par-div figure {
  width: clamp(45ch, 90vw, 65ch);
  margin: 1rem auto;
  margin-left: 0;
}

.par-div figure img {
  display: block;
  margin: 0 auto;
  width: 250px;
  height: auto;
}

img + img {
  margin-top: 1rem;
}

figcaption {
font-size: 0.9rem;
opacity: 0.7;
margin-top: 0.3rem;
text-align: center;
}

/* =========================
   Gallery layout
========================= */

.gallery {
  margin-left: 1.7rem;
  margin-right: 1.7rem;
  margin-bottom: 1rem;
}

.gallery figure {
  margin-left: auto;
  margin-right: auto;
}

.gallery figure + figure {
  margin-top: 1.6rem; /* more breathing room than text */
}

.gallery img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* captions feel quieter */
.gallery figcaption {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* Youtube and PDF modal stuff */
.yt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: auto;
  backdrop-filter: blur(1px);
}

.yt-modal.open {
  display: flex;
  pointer-events: auto;
}

body.modal-open {
  position: fixed;
  width: 100%;
  overscroll-behavior: none;
}

body.modal-open > *:not(.yt-modal) {
  pointer-events: none;
}

.yt-modal-inner {
  position: relative;
  width: min(90vw, 900px);   /* allow wider PDFs */
  height: 85vh;              /* ← key */
}

.yt-modal-inner.pdf-viewer {
  width: min(96vw, 1100px);
  height: 88vh;
}

.yt-modal-inner.pdf-viewer .yt-frame {
  height: 100%;
}

.yt-modal-inner.pdf-viewer .yt-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#yt-close {
  position: absolute;
  top: -28px;
  right: 0;

  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .top-name,
  .footer {
    text-align: center;
  }

  .top-name header {
    margin-left: 0;
  }

  .left-stack {
    width: 100%;
  }

  .secondary-nav {
    margin-left: 0;
    margin-inline: auto;
    justify-content: center;
    width: fit-content;
  }

  .search-row {
    width: fit-content;
    margin: 0 auto 0.8rem;
    position: relative;
  }

  .catalog-layout {
    margin-left: 0;
    width: 100%;
  }

  .filters-column {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-inner {
    align-items: center;
    justify-content: center;
  }

  .footer {
    margin-left: 0;
    margin-top: 0.5em;
    padding-bottom: 2em;
  }

}
