/* ============================================
   SEVORUS — Design System
   Single source of truth for the whole site.
   ============================================ */

/* Self-hosted font — no dependency on Google Fonts CDN,
   which is blocked in China and adds an extra external
   round-trip everywhere else. Served from the same host
   as the rest of the site. */
@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/inria-serif-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/inria-serif-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inria Serif';
  src: url('/assets/fonts/inria-serif-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #88847F;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);
  --divider: rgba(255, 255, 255, 0.2);
  --cover-bg: #EDE9E0;

  --font: 'Inria Serif', Georgia, 'Times New Roman', serif;

  --page-padding: 22px;
  --nav-gap-top: 20px;
  --nav-gap-bottom: 16px;
  --tap-padding-v: 12px;

  --cover-size-list: 140px;   /* thumbnail next to tracklists */
  --cover-size-hero: 260px;   /* home page hero cover */

  --max-text-width: 640px;
}

* { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Visible keyboard focus (accessibility floor) */
a:focus-visible, button:focus-visible {
  outline: 1px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}

/* ============================================
   Persistent home logo — top-left of primary nav
   ============================================ */
.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
}
.nav-logo {
  width: 26px;
  height: 26px;
  display: block;
}

/* ============================================
   Primary navigation
   ============================================ */
.site-header { padding-top: 26px; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--nav-gap-top);
  padding: 0 var(--page-padding) 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-primary::-webkit-scrollbar { display: none; }

.nav-primary a,
.nav-primary .nav-dots {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--tap-padding-v) 2px;
  flex-shrink: 0;
}

.nav-primary a.is-current { text-decoration: underline; text-underline-offset: 4px; }
.nav-primary a.is-muted {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.nav-divider {
  border-top: 1px solid var(--divider);
  margin: 0 var(--page-padding);
}

/* Secondary nav — horizontally scrollable, fade hint both edges */
.nav-secondary-wrap { position: relative; }
.nav-secondary {
  display: flex;
  align-items: center;
  gap: var(--nav-gap-bottom);
  padding: 0 var(--page-padding) 4px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-secondary::-webkit-scrollbar { display: none; }
.nav-secondary a {
  font-size: 14px;
  text-transform: uppercase;
  padding: var(--tap-padding-v) 2px;
  flex-shrink: 0;
}
.nav-secondary-wrap::before,
.nav-secondary-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}
.nav-secondary-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.nav-secondary-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* ============================================
   Layout primitives
   ============================================ */
/* Page-level width cap + sticky footer via flex:
   body is display:flex column (min-height:100%), .container
   grows to fill remaining space so the footer always sits at
   the bottom even on short pages, never floating mid-page. */
.site-header,
.container,
.site-footer {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

.container {
  flex: 1 0 auto;
  padding: 24px var(--page-padding) 20px;
}

.prose {
  max-width: var(--max-text-width);
  font-size: 16px;
  line-height: 1.7;
}
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

.center { text-align: center; }

/* ============================================
   Cover art
   ============================================ */
.cover {
  background: var(--cover-bg);
  display: block;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cover--list {
  width: var(--cover-size-list);
  height: var(--cover-size-list);
  flex-shrink: 0;
}
.cover--hero {
  width: var(--cover-size-hero);
  height: var(--cover-size-hero);
  margin: 0 auto;
}

/* Placeholder state — visible only until real asset is dropped in */
.cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.35);
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

/* ============================================
   Records / Lyric list layout
   ============================================ */
.record-block::after {
  content: '';
  display: table;
  clear: both;
}
.record-block .cover--list {
  float: left;
  margin: 0 24px 20px 0;
}
.record-block--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.record-block--stacked .cover--list { float: none; margin: 0; }
.record-block--stacked .prose {
  text-align: left;
  max-width: var(--max-text-width);
  margin: 28px auto 0;
}

.tracklist {
  font-size: 16px;
  line-height: 2.2;
}
.record-block--stacked .tracklist {
  max-width: 360px;
  margin: 28px auto 0;
}
.tracklist--centered {
  max-width: 360px;
  margin: 0 auto;
}
.tracklist .track-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
}
.tracklist--centered .track-row {
  justify-content: center;
  gap: 0;
}
.tracklist .track-row.is-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.45);
}
.tracklist .track-row.is-link:hover { text-decoration-color: rgba(255,255,255,0.9); }
.tracklist .t-time { color: var(--text-muted); }

.fact-line {
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  margin: 44px 0;
}

/* ============================================
   Lyric page (individual track)
   ============================================ */
.lyric-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
}
.lyric-label {
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  margin: 26px 0 8px;
}
.lyric-block {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.lyric-block p { margin: 0; }

/* ============================================
   Bio / Contact
   ============================================ */
.brand-image {
  width: 100%;
  max-width: 340px;
  margin: 40px auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.contact-tagline {
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-email {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

/* ============================================
   Footer lockup
   ============================================ */
.site-footer {
  padding: 28px var(--page-padding) 40px;
  text-align: center;
}
.footer-wordmark {
  font-size: 26px;
  letter-spacing: 10px;
  padding-left: 10px; /* optical compensation for trailing letter-spacing */
  display: block;
  margin-bottom: 28px;
}
.rune-icon {
  display: block;
}
.rune-icon--footer {
  width: 26px;
  height: 26px;
  margin: 0 auto 28px;
}
.footer-copyright {
  font-size: 13px;
  opacity: 0.75;
}

/* ============================================
   Home page specific
   ============================================ */
.home-hero { padding-top: 20px; text-align: center; }
.home-tagline {
  font-size: 18px;
  margin-top: 28px;
}

/* ============================================
   Responsive — widen up for larger screens
   ============================================ */
@media (min-width: 720px) {
  :root {
    --page-padding: 48px;
    --cover-size-hero: 340px;
  }
  .nav-primary a, .nav-primary .nav-dots { font-size: 17px; }
  .nav-secondary a { font-size: 15px; }
  .prose { font-size: 17px; }
  .nav-secondary-wrap::before,
  .nav-secondary-wrap::after { display: none; }

  /* Nav is centered independently, relative to the page itself —
     NOT tied to the width of the content column below it. Nav's
     own content (~400px) and the essay column are simply different
     widths by nature (short menu labels vs a readable text column)
     — that's normal and expected. Centering both independently
     means both share the exact same center point (page center). */
  .nav-primary { justify-content: center; }
  .nav-secondary { justify-content: center; }

  /* The standalone tracklist below the essay on Records needs
     the same centered column width, or it reads as a left-stuck
     strip instead of continuing the block above it. */
  .container > .tracklist {
    max-width: 820px;
    margin: 0 auto;
  }
}
