/*
Theme Name: ELZZUP Press
Theme URI: https://elzzuppress.com
Author: ELZZUP Press
Author URI: https://elzzuppress.com
Description: A purpose-built block theme for ELZZUP Press and its story worlds.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elzzup-press
*/

:root {
  --elzzup-navy: #071f3f;
  --elzzup-blue: #0b3567;
  --elzzup-copper: #b86c2c;
  --elzzup-copper-light: #dda35f;
  --elzzup-ink: #102033;
  --elzzup-cream: #f6f1e8;
  --elzzup-paper: #fffdf9;
  --elzzup-line: rgba(7, 31, 63, 0.14);
  --elzzup-shadow: 0 20px 60px rgba(7, 31, 63, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--elzzup-paper);
  color: var(--elzzup-ink);
}

a { text-underline-offset: .2em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--elzzup-line);
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  min-height: 72px;
  gap: 2rem;
}

.site-header__brand img {
  display: block;
  width: min(245px, 38vw);
  max-height: 98px;
  height: auto;
  object-fit: contain;
}

.site-header .wp-block-navigation-item__content {
  color: var(--elzzup-navy);
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-header .wp-block-navigation-item__content:hover { color: var(--elzzup-copper); }

.series-nav {
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: var(--elzzup-navy);
  color: #fff;
}

.series-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: min(1240px, calc(100% - 2rem));
  min-height: 54px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.series-nav a {
  flex: 0 0 auto;
  color: #fff;
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}

.series-nav a:hover,
.series-nav a[aria-current="page"] { color: var(--elzzup-copper-light); }

.series-nav__name {
  padding-right: 1.4rem;
  border-right: 1px solid rgba(255,255,255,.22);
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.series-nav__titles { position: relative; flex: 0 0 auto; }
.series-nav__titles summary {
  cursor: pointer;
  list-style: none;
  color: var(--elzzup-copper-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.series-nav__titles summary::-webkit-details-marker { display: none; }
.series-nav__titles summary::after { content: " +"; }
.series-nav__titles[open] summary::after { content: " −"; }
.series-nav__title-list {
  position: absolute;
  z-index: 50;
  top: 2rem;
  left: 0;
  display: grid;
  min-width: 230px;
  gap: .15rem;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: var(--elzzup-navy);
  box-shadow: var(--elzzup-shadow);
}
.series-nav__title-list a { padding: .55rem .65rem; border-radius: 8px; text-transform: none; }
.series-nav__title-list a:hover { background: rgba(255,255,255,.08); }

.series-breadcrumbs {
  margin: 0 0 1.2rem;
  font-size: .84rem;
  letter-spacing: .04em;
}
.series-breadcrumbs a { color: inherit; }

.series-book-hero {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(221,163,95,.28), transparent 23rem),
    linear-gradient(140deg, #06172f, #0b3567 62%, #071f3f);
}
.series-book-hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .98; }
.series-book-hero .wp-block-post-excerpt { max-width: 760px; font-size: 1.25rem; }

.series-next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
}
.series-next-prev a {
  display: block;
  padding: 1.35rem;
  border: 1px solid var(--elzzup-line);
  border-radius: 14px;
  background: #fff;
  color: var(--elzzup-navy);
  text-decoration: none;
}
.series-next-prev a:last-child { text-align: right; }
.series-next-prev small { display: block; margin-bottom: .3rem; color: var(--elzzup-copper); font-weight: 700; text-transform: uppercase; }

.elzzup-main { min-height: 60vh; }

.elzzup-hero {
  overflow: hidden;
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(221, 163, 95, .28), transparent 24rem),
    linear-gradient(135deg, #06172f 0%, #0a2f5d 56%, #071f3f 100%);
}

.elzzup-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.12) 47.2% 47.6%, transparent 47.8%),
    linear-gradient(65deg, transparent 0 61%, rgba(221,163,95,.2) 61.2% 61.5%, transparent 61.7%);
}

.elzzup-hero > * { position: relative; z-index: 1; }

.elzzup-kicker {
  margin: 0 0 1rem;
  color: var(--elzzup-copper-light);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.elzzup-hero h1,
.world-hero h1 {
  max-width: 930px;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .96;
  letter-spacing: -.045em;
}

.elzzup-hero h1,
.world-hero h1,
.world-hero h2,
.series-book-hero h1,
.world-card h3,
.book-card--dark h2,
.book-card--deep h2,
.elzzup-cta h2 {
  color: #fff;
}

.elzzup-hero__lede,
.world-hero__lede {
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.elzzup-button .wp-block-button__link,
.wp-block-button.elzzup-button .wp-block-button__link {
  border: 1px solid var(--elzzup-copper-light);
  border-radius: 999px;
  padding: .88rem 1.35rem;
  background: var(--elzzup-copper);
  box-shadow: none;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.elzzup-button .wp-block-button__link:hover {
  background: #96531e;
  transform: translateY(-2px);
}

.elzzup-button--ghost .wp-block-button__link {
  border-color: rgba(255,255,255,.62);
  background: transparent;
}

.elzzup-button--ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

.elzzup-section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

.elzzup-section--cream { background: var(--elzzup-cream); }

.section-intro { max-width: 760px; margin-bottom: 2.5rem; }
.section-intro h2 { margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }

.world-grid { gap: 1.4rem; }

.world-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: var(--elzzup-shadow);
  color: #fff;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .58;
  background: repeating-linear-gradient(120deg, transparent 0 28px, rgba(255,255,255,.055) 29px 30px);
}

.world-card > * { position: relative; z-index: 1; }
.world-card h3 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .98; }
.world-card p { max-width: 36rem; font-size: 1.05rem; line-height: 1.65; }

.world-card--zodiac {
  background:
    radial-gradient(circle at 75% 18%, rgba(221,163,95,.42), transparent 17rem),
    linear-gradient(145deg, #051326, #102e61 66%, #261944);
}

.world-card--waters {
  background:
    radial-gradient(circle at 82% 15%, rgba(86,183,193,.34), transparent 18rem),
    linear-gradient(145deg, #061a24, #0d3b47 58%, #071f3f);
}

.feature-card {
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--elzzup-line);
  border-radius: 18px;
  background: rgba(255,255,255,.74);
}

.feature-card h3 { color: var(--elzzup-navy); }

.world-hero {
  padding: clamp(5rem, 10vw, 9rem) 0;
  color: #fff;
}

.world-hero--zodiac {
  background:
    radial-gradient(circle at 76% 17%, rgba(221,163,95,.38), transparent 22rem),
    linear-gradient(140deg, #051326, #142f66 62%, #271946);
}

.world-hero--waters {
  background:
    radial-gradient(circle at 78% 12%, rgba(77,183,194,.33), transparent 24rem),
    linear-gradient(140deg, #05171f, #0b3c49 58%, #071f3f);
}

.book-card {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--elzzup-line);
  border-radius: 22px;
  box-shadow: var(--elzzup-shadow);
  background: #fff;
}

.book-card--dark { color: #fff; background: var(--elzzup-navy); }
.book-card--deep { color: #fff; background: #0b3c49; }

.elzzup-cta {
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 24px;
  background: var(--elzzup-navy);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--elzzup-line);
  background: var(--elzzup-cream);
}

.site-footer__inner { padding-top: 3rem; padding-bottom: 3rem; gap: 2rem; }
.site-footer__mark img { width: 120px; height: auto; }
.site-footer a { color: var(--elzzup-navy); }
.site-footer__fineprint { font-size: .82rem; opacity: .75; }

.wp-block-post-title { text-wrap: balance; }
.wp-block-post-content > p { line-height: 1.75; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 64px; }
  .site-header__brand img { width: min(215px, 62vw); max-height: 86px; }
  .elzzup-hero h1, .world-hero h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .world-card { min-height: 380px; }
  .series-nav__inner { gap: 1rem; }
  .series-nav__title-list { position: fixed; top: auto; right: 1rem; left: 1rem; }
  .series-next-prev { grid-template-columns: 1fr; }
  .series-next-prev a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
