@font-face {
  font-family: 'Erode-Semibold';
  src: url('../assets/fonts/Erode-Semibold.woff2') format('woff2'),
       url('../assets/fonts/Erode-Semibold.woff') format('woff'),
       url('../assets/fonts/Erode-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

:root {
  --paper: #f3f1ec;
  --ink: #111111;
  --ink-headline: #000000;
  --ink-soft: #2a2a2a;
  --border-w: 3px;
  --border-w-thick: 6px;
  --font-display: "Erode-Semibold", "Arial Black", sans-serif;
  --font-jp: "Erode-Semibold", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --photo-filter: sepia(0.4) saturate(0.45) contrast(0.82) brightness(1.12) hue-rotate(-10deg);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  background-image: url("../assets/bg.png");
  background-repeat: repeat;
  background-size: 720px 720px;
  color: var(--ink);
  font-family: var(--font-body);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 60px;
  background: transparent;
  /* clip rather than hidden, so the rotated scraps' shadows aren't turned
     into a scroll container */
  overflow-x: clip;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px 16px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-link:hover { opacity: 0.6; }

.nav-link[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.top-bar--brand {
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.page-logo-mark {
  display: block;
  height: clamp(48px, 7.4vw, 74px);
  width: auto;
  flex-shrink: 0;
}

.page-logo {
  display: block;
  height: clamp(28px, 4.6vw, 46px);
  width: auto;
  max-width: calc(100% - 90px);
}

/* ---------- PAGE HEADERS ---------- */
.content-poster {
  width: 100%;
  max-width: 1100px;
  padding: 20px 20px 40px;
}

.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.content-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-headline);
}

.content-kanji {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(16px, 5vw, 36px);
  line-height: 1;
  color: var(--ink-headline);
}

.content-lede {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-headline);
}

/* ---------- DIVIDER ---------- */
.divider {
  display: flex;
  align-items: center;
  padding: 0 24px 22px;
}

.divider .line {
  flex: 1;
  height: 2px;
  background: var(--ink);
  margin: 0 10px;
}

.divider .plus {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- FOOTER (outside poster) ---------- */
.site-footer {
  width: 100%;
  max-width: 1100px;
  margin-top: 26px;
  text-align: center;
  color: #3a3a3a;
  font-family: var(--font-body);
}

.site-footer p { margin: 0 0 10px; font-size: 14px; }

.stream-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stream-link:hover { opacity: 0.6; }

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-nav .footer-icon {
  display: inline-flex;
  text-decoration: none;
}

.footer-nav .footer-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-nav a {
  color: #3a3a3a;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-nav a:hover { opacity: 0.6; }

@media (max-width: 560px) {
  .top-bar--brand {
    flex-wrap: wrap;
  }

  .top-bar--brand .top-nav {
    width: 100%;
    justify-content: flex-end;
  }
}
