/* volume.css — V volume pages (volume2.html, volume3.html,
   volume4.html). The artwork presentation is the exhibition
   page's (pricingstyle.css); this file only adds the site's
   page transition, the volume pages' own spacing, and the
   light/dark theme.

   Colours follow the system setting, like the V orbit page:
   white background in light mode, solid black in dark mode. */

:root{
  color-scheme: light dark;
}

/* ===== PAGE TRANSITION ===== */
.page-transition{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.page-transition.fade-in{
    opacity: 0;
}

.page-transition.fade-out{
    opacity: 1;
    pointer-events: all;
}

/* The intro is the first thing on the page, so it clears the
   fixed header; the catalogue then follows it closely. */
body.volume-page .commentary{
    padding-top: 140px;
}

body.volume-page .catalogue{
    padding-top: 0;
}

/* ===== LIGHT MODE (default): white background ===== */
html{
    background-image: none;
    background-color: #fff;
}

body.volume-page{
    background-image: none;
    background-color: #fff;
    color: #111;
}

body.volume-page header .brand,
body.volume-page header .lang-toggle,
body.volume-page header .navigation .navigation-items a{
    color: #000;
}

body.volume-page header .navigation .navigation-items a:before{
    background: #000;
}

/* The hamburger is a white image: invert it on the white page. */
@media (max-width: 1040px){
  body.volume-page .menu-btn{
    filter: invert(1);
  }
}

body.volume-page .commentary{
    color: #111;
}

body.volume-page .chapter-body{
    color: #333;
}

body.volume-page .commentary-label{
    color: #666;
}

body.volume-page .art-info p{
    color: #555;
}

body.volume-page .site-footer p{
    color: #666;
}

body.volume-page .site-footer a{
    color: #111;
}

body.volume-page .media-icons a{
    color: #111;
}

/* ===== THE STORY (volume 2) — the short story, in full.
   Follows the site's language: English while the site is in
   English, Japanese when the JP toggle is on. */
.story{
    max-width: 650px;
    margin: 100px auto 0;
    padding: 0 20px;
}

.story-label{
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #b33a2e;
    margin-bottom: 15px;
}

.story-title{
    font-family: "Hahmlet", serif;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 8px;
}

.story-subtitle{
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.story-summary[hidden]{
    display: none;
}

.story-summary p{
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 18px;
}

.story-link{
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.story-link:hover{
    opacity: .7;
}

/* The small V in the volume label is the V mark image, not
   text — black in light mode, white in dark mode (the
   <picture> element in the label picks by system setting). */
.label-mark{
    display: inline-block;
    height: 1.1em;
    vertical-align: -0.15em;
}

.label-mark img{
    height: 100%;
    width: auto;
    display: block;
}

/* ===== DARK MODE: solid black, like the V orbit page ===== */
@media (prefers-color-scheme: dark){
  html{
    background-image: none;
    background-color: #000;
  }

  body.volume-page{
    background-image: none;
    background-color: #000;
    color: #fff;
  }

  body.volume-page header .brand,
  body.volume-page header .lang-toggle,
  body.volume-page header .navigation .navigation-items a{
    color: #fff;
  }

  body.volume-page header .navigation .navigation-items a:before{
    background: #fff;
  }

  body.volume-page .commentary{
    color: #eee;
  }

  body.volume-page .chapter-body{
    color: #ccc;
  }

  body.volume-page .commentary-label{
    color: #ccc;
  }

  body.volume-page .art-info p{
    color: #ddd;
  }

  body.volume-page .story-subtitle{
    color: #ccc;
  }

  body.volume-page .story-summary p{
    color: #ccc;
  }

  body.volume-page .story-link{
    color: #fff;
  }

  body.volume-page .site-footer p{
    color: #fff;
  }

  body.volume-page .site-footer a{
    color: #fff;
  }

  body.volume-page .media-icons a{
    color: #fff;
  }
}

/* The hamburger stays white in dark mode. */
@media (max-width: 1040px) and (prefers-color-scheme: dark){
  body.volume-page .menu-btn{
    filter: none;
  }
}

/* ===== THE BREAKDOWN (volume 1) — what V is, in brief:
   the Events timeline and the Kowloon number, in text so
   they read on the page as well as in the Events image. */
.breakdown{
    max-width: 650px;
    margin: 100px auto 0;
    padding: 0 20px;
}

.breakdown-label{
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #b33a2e;
    margin-bottom: 15px;
}

.breakdown-title{
    font-family: "Hahmlet", serif;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 50px;
}

.breakdown-event{
    display: flex;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid #ddd;
}

.breakdown-event:last-of-type{
    border-bottom: 1px solid #ddd;
}

.breakdown-date{
    font-family: "Hahmlet", serif;
    font-size: 1.3rem;
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.breakdown-text{
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.breakdown-note{
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

/* The breakdown video is portrait (9:16), so it sits narrow
   and centred instead of filling the column. */
.breakdown-video{
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: #000;
}

/* Slider dots on volume pages: the exhibition's active dot is
   white, which vanishes on the volume pages' white background
   in light mode — so the active dot is black here instead. */
body.volume-page .art-slider-nav .dot{
    background: #999;
}

body.volume-page .art-slider-nav .dot.active{
    background: #111;
}

@media (prefers-color-scheme: dark){
  .breakdown-event{
    border-top-color: #333;
  }

  .breakdown-event:last-of-type{
    border-bottom-color: #333;
  }

  .breakdown-text,
  .breakdown-note{
    color: #ccc;
  }

  body.volume-page .art-slider-nav .dot{
    background: #666;
  }

  body.volume-page .art-slider-nav .dot.active{
    background: #fff;
  }
}

/* System tabs (volume pages) — a row of rectangle tabs under the
   intro, linking the volume to its systems articles. */
.system-tabs{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.system-tab{
    display: block;
    background: #fff;
    border: 1px solid #222;
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

a.system-tab:hover{
    color: #b33a2e;
}

.system-tab.is-placeholder{
    color: #999;
    cursor: default;
}

@media (prefers-color-scheme: dark){
    .system-tab{
        background: #000;
        border-color: #ddd;
        color: #eee;
    }

    .system-tab.is-placeholder{
        color: #666;
    }
}

@media (max-width: 700px){
    .system-tab{
        font-size: 11px;
        padding: 6px 12px;
    }
}
