/* Bayha Entertainment — one stylesheet
   Grouped by page structure. Palette from Design specs.md (2026-09-16). */

/* --- Page --- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #8A8680;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: #9A9590;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #C4C0B8;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header --- */
.site-header {
  padding: 3rem 1.25rem 2.5rem;
  border-bottom: none; /* was 1px solid #2A2A2A; Harlen — no line under logo */
  text-align: center;
}

.logo-link {
  display: inline-block;
}

.logo-link:hover,
.logo-link:focus {
  text-decoration: none;
  opacity: 0.92;
}

.logo {
  width: min(32rem, 100%);
  margin: 0 auto;
}

/* --- Main --- */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}


/* Page title under logo (Harlen 2026-09-18) */
.page-title {
  margin: 0 0 0.5rem;
  padding: 0 0 0.25rem;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  color: #EDEAE4;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* --- Sections --- */
.terminals,
.simulations,
.investigations {
  margin-bottom: 2.5rem;
  padding-top: 3.5rem; /* airy space above each section heading */
}

.terminals {
  padding-top: 2.5rem; /* slightly less under logo; still open */
}

.section-heading {
  margin: 0 0 1.35rem;
  padding-top: 0.55rem;
  padding-bottom: 0;
  border-top: 1px solid #3A3A3A; /* plain gray line above heading */
  border-bottom: none;
  color: #EDEAE4; /* soft off-white; not pure white */
  font-size: 1.4rem; /* +4pt from 1.15rem */
  font-weight: 700;
  letter-spacing: 0.42em; /* tracked / spaced */
  text-transform: uppercase;
}

.partner-list,
.film-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-card {
  margin: 0;
  padding: 1.25rem 0;
  background: transparent;
  border: none;
}

/* Gray hatch separator between partners — blends on black */
.partner-sep {
  list-style: none;
  margin: 3.5rem 0;
  padding: 0;
  height: 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-sep::before,
.partner-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #3A3A3A 18%,
    #5A5A5A 50%,
    #3A3A3A 82%,
    transparent
  );
}

.partner-sep-mark {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin: 0 0.85rem;
  border: 1px solid #5A5A5A;
  background: #1A1A1A;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px #000000;
}


.partner-info {
  display: grid;
  grid-template-columns: 8.32rem 1fr; /* was 8rem; trial ×1.04 */
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.partner-mark {
  width: 8.32rem; /* was 8rem; trial ×1.04 */
  max-height: 7rem;
  object-fit: contain;
  object-position: left center;
}

.partner-mark-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.32rem; /* was 8rem; trial ×1.04 */
  height: 4.5rem;
  border: 1px solid #3A3A3A;
  color: #7A7670;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.partner-name {
  margin: 0;
  font-weight: 600;
  color: #A8A49C;
}

.partner-url {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: #6E6A64;
}

/* Flair notice — light gray + black rail (Harlen 2026-09-18); buttons/chips stay yellow */
.caution-notice {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem 0.5rem 1.75rem;
  border: none;
  border-bottom: 2px solid #CFCFCF; /* light gray; bottom only */
  background-color: #CFCFCF;
  background-image: repeating-linear-gradient(
    -45deg,
    #CFCFCF 0 6px,
    #000000 6px 12px
  );
  background-size: 1.1rem 100%;
  background-repeat: no-repeat;
  background-position: left top;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.warning-prefix {
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: 0.35em;
}

/* Shared angled black/white hazard rail (Harlen 2026-09-16: most buttons) */
.caution-btn,
.caution-chip {
  background-color: #F0C400;
  background-image: repeating-linear-gradient(
    -45deg,
    #F0C400 0 6px,
    #000000 6px 12px
  );
  background-size: 1.1rem 100%;
  background-repeat: no-repeat;
  background-position: left top;
}

/* Warning-looking button that IS the real partner link */
.caution-btn {
  display: inline-block;
  padding: 0.65rem 1rem 0.65rem 1.75rem;
  border: 2px solid #000000;
  color: #1A1408;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.caution-btn:hover,
.caution-btn:focus {
  background-color: #E8C547;
  color: #1A1408;
  text-decoration: none;
  box-shadow: 5px 5px 0 #000000;
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* --- Investigations (film projects) --- */
/* spacing owned by shared section rules above */

.film-row {
  display: grid;
  grid-template-columns: 5.72rem 1fr; /* was 5.5rem; trial ×1.04 */
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid #3D2A1F;
}

.film-poster {
  width: 5.72rem; /* was 5.5rem; trial ×1.04 */
  height: auto;
  border: 1px solid #3D2A1F;
  background: #14110F;
}

.film-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #A8A49C;
  font-weight: 600;
}

.film-meta {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #A89F93;
}

.film-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Film link chips — same hazard rail as partner buttons */
.caution-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem 0.25rem 1.35rem;
  border: 1px solid #000000;
  color: #1A1408;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
  box-shadow: 1px 1px 0 #000000;
}

.caution-chip:hover,
.caution-chip:focus {
  background-color: #E8C547;
  color: #1A1408;
  text-decoration: none;
  box-shadow: 2px 2px 0 #000000;
  transform: translateY(-1px);
  filter: brightness(1.06);
}



/* Page-end disclaimer (Harlen 2026-09-17) — muted, above diamond */
.page-disclaimer {
  max-width: 44rem;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1.25rem;
  color: #5A5650;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}


/* --- Books / Volumes (draft 2026-09-18) --- */
.volumes {
  margin-bottom: 2.5rem;
  padding-top: 3.5rem;
}

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid #3D2A1F;
}

.book-cover {
  width: 7.5rem;
  height: auto;
  border: 1px solid #3D2A1F;
  background: #14110F;
}

.book-body h3 {
  margin: 0 0 0.25rem;
  font-size: 2.1rem; /* 2× prior 1.05rem — Harlen 2026-09-19 */
  color: #A8A49C;
  font-weight: 600;
  line-height: 1.2;
}

.book-meta {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: #A89F93;
}

.book-blurb {
  margin: 0 0 0.75rem;
  color: #8A8680;
  font-size: 0.9rem;
  line-height: 1.5;
}

.book-body .caution-btn {
  margin-top: 0.35rem;
}

/* Single diamond rule between main content and footer (Harlen 2026-09-17) */
.page-end-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 44rem;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  height: 1.25rem;
}

.page-end-rule::before,
.page-end-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #3A3A3A 18%,
    #5A5A5A 50%,
    #3A3A3A 82%,
    transparent
  );
}

.page-end-rule-mark {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin: 0 0.85rem;
  border: 1px solid #5A5A5A;
  background: #1A1A1A;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px #000000;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 1.25rem 3rem;
  border-top: none; /* diamond .page-end-rule is the only break above footer */
  text-align: center;
  color: #5A5650;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

.footer-links a {
  color: #7A7670;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #C4C0B8;
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #A89F93;
}

/* --- Adaptive / mobile (Harlen 2026-09-17: all sites adaptive) --- */
.partner-url {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partner-card,
.caution-notice,
.caution-btn,
.caution-chip {
  max-width: 100%;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    padding: 1.5rem 0.85rem 1.75rem;
  }

  .logo {
    width: min(20rem, 94vw);
  }

  main {
    max-width: 100%;
    padding: 1.25rem 0.85rem 2.25rem;
  }

  .terminals,
  .simulations,
  .investigations {
    padding-top: 2.5rem;
  }

  .terminals {
    padding-top: 1.75rem;
  }

  .page-title h1 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }


  .section-heading {
    font-size: 1.2rem; /* +4pt from 0.95rem */
    letter-spacing: 0.32em;
    margin-bottom: 1.1rem;
  }

  .page-disclaimer {
    margin: 1.75rem auto 1.15rem;
    padding: 0 0.85rem;
    font-size: 0.75rem;
  }


  .partner-info {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-items: center;
    text-align: center;
  }

  .partner-mark,
  .partner-mark-text {
    width: min(11.44rem, 72vw); /* was min(11rem, 72vw); trial ×1.04 on rem */
    max-height: 7rem;
    margin-left: auto;
    margin-right: auto;
    object-position: center;
  }

  .partner-mark-text {
    height: 3.75rem;
  }

  .partner-name {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .partner-sep {
    margin: 2rem 0;
  }


  .caution-notice {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .caution-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .film-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .film-poster {
    width: min(9.88rem, 48vw); /* was min(9.5rem, 48vw); trial ×1.04 on rem */
    margin-left: auto;
    margin-right: auto;
  }

  .film-body h3 {
    font-size: 1.05rem;
  }

  .film-links {
    flex-direction: column;
    align-items: stretch;
  }

  .caution-chip {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }


  .volumes {
    padding-top: 2.5rem;
  }

  .book-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .book-cover {
    width: min(11rem, 55vw);
    margin-left: auto;
    margin-right: auto;
  }

  .book-body {
    text-align: center;
  }

  .book-body .film-links {
    justify-content: center;
  }

  .book-body .caution-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 0.95rem;
  }

  .site-header {
    padding: 1.15rem 0.65rem 1.35rem;
  }

  .logo {
    width: min(17rem, 96vw);
  }

  main {
    padding: 1rem 0.65rem 2rem;
  }

  .partner-card {
    padding: 1rem 0;
  }

  .partner-mark,
  .partner-mark-text {
    width: min(9.88rem, 78vw); /* was min(9.5rem, 78vw); trial ×1.04 on rem */
    max-height: 6rem;
    margin-left: auto;
    margin-right: auto;
    object-position: center;
  }

  .partner-name {
    font-size: 1rem;
  }

  .partner-url {
    font-size: 0.8rem;
  }

  .partner-sep {
    margin: 1.5rem 0;
  }


  .caution-notice {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem 0.45rem 1.45rem;
    letter-spacing: 0.01em;
  }

  .caution-btn {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.7rem 0.75rem 0.7rem 1.55rem;
  }

  .film-poster {
    width: min(8.84rem, 55vw); /* was min(8.5rem, 55vw); trial ×1.04 on rem */
    margin-left: auto;
    margin-right: auto;
  }

  .film-meta {
    font-size: 0.8rem;
  }

  .caution-chip {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  }

  .site-footer {
    padding: 1.5rem 0.65rem 2.25rem;
  }
}

/* Respect reduced motion — keep hover color, skip motion */
@media (prefers-reduced-motion: reduce) {
  .caution-btn,
  .caution-chip {
    transition: background-color 0.15s ease, filter 0.15s ease;
  }

  .caution-btn:hover,
  .caution-btn:focus,
  .caution-chip:hover,
  .caution-chip:focus {
    transform: none;
  }
}
