:root {
    --tick: 0.1s;
    --textColor: #2b2b26;
    --semiTextColor: #2b2b26;
    --linkColor: #8E8E93;
    --backgroundColor: #F8F7F7;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --textColor: #C6C6C8;
      --semiTextColor: #C6C6C8;
      --linkColor: #636366;
      --backgroundColor: #1C1C1E;
    }
  }
  
  * { box-sizing: border-box; }
  
  body {
    font-family: Inter, sans-serif;
    font-size: 1.5em;
    margin: 0;
    padding: 0;
    text-align: left;
    background-color: var(--backgroundColor);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--textColor);
  }
  
  /* narrow text column for regular content */
  main {
    max-width: 720px;
    margin: auto;
    padding: 20px;
  }
  
  h1, h2, h3, h4, h5, h6, strong, b {
    color: var(--semiTextColor);
  }
  
  a { color: var(--linkColor); }
  img { max-width: 100%; }
  p { margin: 1em 0; }
  
  hr {
    color: var(--textColor);
    background-color: var(--textColor);
    border-top: 1px solid var(--textColor);
  }
  
  blockquote {
    border-left: 2px solid var(--linkColor);
    color: var(--semiTextColor);
    padding-left: 1em;
    margin-left: 1em;
    font-style: italic;
  }
  
  footer {
    text-align: center;
    padding: 25px;
  }
  
  iframe { border: 0; }
  
  /* ---------- site navigation ---------- */
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em 1.6em;
    font-size: 0.7em;
  }
  
  .site-nav a {
    color: var(--textColor);
    text-decoration: none;
  }
  
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { text-decoration: underline; }
  
  /* ---------- shared page header (sub-pages) ---------- */
  .subpage-header {
    max-width: 720px;
    margin: auto;
    padding: 20px 20px 0;
  }
  
  /* ---------- items (posts, performances) ---------- */
  .item { margin: 2.5em 0; }
  .item h2 { margin-bottom: 0.1em; }
  
  .item .meta {
    font-size: 0.7em;
    color: var(--linkColor);
    margin: 0 0 0.6em;
  }
  
  .item audio {
    width: 100%;
    margin-top: 0.5em;
  }
  
  /* ---------- full-screen painting sections (home page) ---------- */
  .hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background-size: cover;      /* fills the screen, never stretches */
    background-position: center; /* try "center top" if the crop is off */
    background-repeat: no-repeat;
    display: flex;
  }
  
  .hero-fall {
    background-image: url("Peter_Paul_Rubens_-_Fall_of_the_damned%20(1).jpg");
  }
  
  .hero-horrors {
    background-image: url("Los_horrores_de_la_guerra.jpg");
  }
  
  /* same 720px column and 20px padding as the sub-pages */
  .hero-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
  }
  
  .hero-content { margin-top: 30vh; }
  
  .hero h1,
  .hero h2,
  .hero p {
    color: #ffffffeb;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-style: italic;
  }
  
  .hero audio {
    max-width: 100%;
    margin-top: 0.5em;
  }
  
  /* nav on top of the painting */
  .hero .site-nav a {
    color: #ffffffeb;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-style: italic;
  }
  

/* ---------- "More info" dropdown ---------- */
.more-info {
    position: relative;          /* Establishes a positioning context for the absolute dropdown */
    margin-left: auto;           /* keeps it on the right, even without a nav */
    width: max-content;
    max-width: min(340px, 100%);
    font-size: 0.7em;
  }
  
  .more-info summary {
    cursor: pointer;
    list-style: none;
    text-align: right;
    color: #ffffffeb;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-style: italic;
    user-select: none;
  }
  
  .more-info summary::-webkit-details-marker { display: none; }
  .more-info summary::after { content: " \25BE"; }
  .more-info[open] summary::after { content: " \25B4"; }
  .more-info summary:hover { text-decoration: underline; }
  
  .more-info-text {
    position: absolute;          /* Pulls the text out of document flow to prevent layout shifts */
    top: calc(100% + 5px);       /* Positions it right below the summary */
    right: 0;                    /* Aligns it to the right side of the container */
    z-index: 100;                /* Ensures it floats above the audio player and other content */
    width: 320px;                /* Consistent width for the overlay box */
    margin-top: 0;
    padding: 0.8em 1em;
    background: rgba(0, 0, 0, 0.85); /* Slightly darker backdrop for readability */
    backdrop-filter: blurpx;     /* Optional: adds a nice glassmorphism blur effect */
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  
  .more-info-text p {
    margin: 0 0 0.8em;
    text-shadow: none;
  }
  
  .more-info-text p:last-child { margin-bottom: 0; }
  /* ---------- releases grid ---------- */
  .releases-header { max-width: 1100px; }
  
  .wide-main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
  }
  
  .release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
  }
  
  .release-card {
    display: flex;
    flex-direction: column;
  }
  
  .release-card .cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;        /* square covers */
    object-fit: cover;          /* crops instead of stretching */
    background-color: rgba(128, 128, 128, 0.25);
    border-radius: 4px;
  }
  
  .release-card h2 {
    font-size: 1em;
    margin: 0.6em 0 0.1em;
  }
  
  .release-card .meta {
    font-size: 0.7em;
    color: var(--linkColor);
    margin: 0 0 0.4em;
  }
  
  .release-card audio {
    width: 100%;
    margin-top: 0.3em;
  }
  
  /* ---------- slight heading tilt ---------- */
  h1 { transform: rotate(-1.2deg); transition: var(--tick); }
  h2 { transform: rotate(0.8deg);  transition: var(--tick); }
  h3 { transform: rotate(-0.6deg); transition: var(--tick); }
  h4 { transform: rotate(0.5deg);  transition: var(--tick); }
  h5 { transform: rotate(-0.4deg); transition: var(--tick); }
  h6 { transform: rotate(0.3deg);  transition: var(--tick); }

  /* ---------- clickable release titles ---------- */

  .release-card h2 a {
    color: inherit;
    text-decoration: none;
  }
  
  .release-card h2 a:hover { text-decoration: underline; }