/* Hoshinari Brood – site styles
   Fonts: Cinzel (SIL OFL 1.1), self-hosted, see /assets/fonts/OFL-Cinzel.txt */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/cinzel-latin-wght.woff2) format("woff2-variations"),
       url(/assets/fonts/cinzel-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/cinzel-latin-ext-wght.woff2) format("woff2-variations"),
       url(/assets/fonts/cinzel-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #0b0a09;
  --bg-raised: #14110f;
  --line: #2a2420;
  --text: #d9d3c7;
  --text-soft: #b3aa9c;
  --muted: #8a8277;
  --amber: #c8892f;
  --amber-soft: #a8742a;
  --rust: #8e3b26;
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-text: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --measure: 38rem;
  --wide: 72rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #e0a24a; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--bg); padding: 8px 12px;
  font-family: var(--font-ui); font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand img { width: auto; height: 40px; opacity: .92; }
.brand:hover img { opacity: 1; }
.brand:hover { color: var(--amber); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- Layout ---------- */
main { flex: 1; }
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 72px 24px;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.2em; }
.prose p.lead { font-size: 1.3rem; line-height: 1.6; color: var(--text); }
.soft { color: var(--text-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(30px, 6vw, 64px); }
h2 { font-size: clamp(22px, 3.4vw, 34px); }
h3 { font-size: 18px; letter-spacing: .24em; text-transform: uppercase; }
.rule {
  width: 56px; height: 1px; border: 0;
  background: var(--amber);
  margin: 32px 0;
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Home hero ---------- */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero .cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px var(--line);
}
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.status {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 14px 22px 13px 25px;
  transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn.primary { border-color: var(--amber-soft); color: var(--amber); }
.btn[aria-disabled="true"] { color: var(--muted); border-style: dashed; pointer-events: none; }

/* titles that must stay on one line, sized to their column */
.hero > div:last-child, .album-grid > div:last-child { container-type: inline-size; }
.title-fit {
  white-space: nowrap;
  font-size: min(52px, 7.9cqi);
  letter-spacing: .14em;
}
.eyebrow.artist {
  white-space: nowrap;
  font-size: min(17px, 3.8cqi);
  letter-spacing: .24em;
  color: var(--text-soft);
  margin-bottom: 18px;
}

/* ---------- Band ---------- */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.member {
  background: var(--bg);
  padding: 32px 28px 36px;
}
.member .role {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--amber);
  margin: 0 0 18px;
}
.member p { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.member h3 { margin-bottom: 6px; }

.note {
  border-left: 1px solid var(--amber);
  padding: 4px 0 4px 22px;
  color: var(--text-soft);
  font-size: 1rem;
}

/* ---------- Album ---------- */
.album-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: start;
}
.album-grid .cover {
  position: sticky; top: 32px;
  aspect-ratio: 1 / 1;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--line);
}
.album-grid .cover img { width: 100%; height: 100%; object-fit: cover; }
.tracklist {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.tracklist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.tracklist .title { font-size: 1.1rem; }
.tracklist .sub { color: var(--muted); }
.tracklist .time {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.total {
  display: flex; justify-content: space-between;
  font-family: var(--font-ui); font-size: 14px; color: var(--muted);
  padding-top: 14px;
}

/* ---------- Booklet ---------- */
.booklet-stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
.flipbook { margin: 0 auto; }
.flipbook .page { background: #111; }
.flipbook .page img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.booklet-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted);
}
.js .booklet-controls { display: flex; }
.booklet-controls button {
  font: inherit;
  font-family: var(--font-display);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 12px;
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px 16px 10px 19px;
  cursor: pointer;
}
.booklet-controls button:hover { border-color: var(--amber); color: var(--amber); }
.booklet-controls .count { min-width: 6em; text-align: center; font-variant-numeric: tabular-nums; }
.booklet-hint { text-align: center; font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin-top: 14px; }

/* no-JS fallback: pages stacked */
.flipbook.static { display: grid; gap: 24px; max-width: 760px; }
.flipbook.static .page { box-shadow: 0 0 0 1px var(--line); }

/* zoom overlay */
.zoom {
  position: fixed; inset: 0;
  background: rgba(5,4,4,.96);
  z-index: 50;
  display: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.zoom.open { display: block; }
.zoom img { max-width: none; width: min(1600px, 200vw); margin: 0 auto; }
.zoom.fit img { width: auto; max-width: 100%; max-height: 100vh; }
.zoom-bar {
  position: fixed; top: 12px; right: 12px; z-index: 51;
  display: flex; gap: 8px;
}
.zoom-bar button {
  font-family: var(--font-ui); font-size: 14px;
  background: rgba(20,17,15,.92); color: var(--text);
  border: 1px solid var(--line); padding: 10px 14px; cursor: pointer;
}
.zoom-bar button:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 20px; letter-spacing: .16em; margin-top: 2.2em; }
.legal h3 { font-size: 14px; margin-top: 1.8em; }
.legal p, .legal li { font-size: 1rem; }
.legal .en { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 24px 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer nav { display: flex; gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .section { padding: 48px 16px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 16px 56px; }
  .album-grid { grid-template-columns: 1fr; gap: 40px; }
  .album-grid .cover { position: static; max-width: 420px; }
  .site-header .inner { padding: 16px; }
  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 12px; letter-spacing: .22em; }
  .booklet-stage { padding: 0 8px; }
  .booklet-controls { gap: 8px; flex-wrap: wrap; }
  .booklet-controls button { padding: 10px 10px 9px 12px; letter-spacing: .18em; }
  .booklet-controls .count { min-width: 4.5em; }
  .site-footer .inner { padding: 24px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
