/* ---------- TOKENS ---------- */
:root {
  --bg: #ffffff;
  --bg-band: oklch(0.965 0.006 80);
  --ink: #0a0a0c;
  --ink-2: #4a4a52;
  --ink-3: #8a8a92;
  --rule: #e8e8ea;
  --lavender: #a98cc8;

  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- SHARED HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: none;
  z-index: 100;
  gap: 24px;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--rule);
}
.sh-brand {
  display: flex; align-items: center; flex-shrink: 0;
  transition: opacity .25s ease;
}
/* On the homepage, hide the small brand logo until past the hero */
.site-header.home-mode .sh-brand {
  opacity: 0 !important; pointer-events: none !important;
}
.site-header.home-mode.is-past-hero .sh-brand {
  opacity: 1 !important; pointer-events: auto !important;
}
.sh-brand img { height: 32px; width: auto; }
.sh-nav { flex: 1; display: flex; justify-content: center; }
.sh-nav ul {
  list-style: none; display: flex; gap: 24px;
  margin: 0; padding: 0;
  font-size: 13px; font-weight: 500;
}
.sh-nav a {
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .15s;
  position: relative;
}
.sh-nav a:hover { color: var(--ink); }
.sh-nav a.is-active { color: var(--ink); }
.sh-nav a.is-active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--ink);
}

.sh-lang {
  display: flex; align-items: center; gap: 2px;
  background: oklch(0.95 0.005 80);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-opt {
  font-size: 11px; font-weight: 600;
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background .15s, color .15s;
}
.lang-opt.is-active {
  background: var(--ink); color: #fff;
}

.sh-burger { display: none; }

.sh-mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  z-index: 99;
  padding: 16px 24px;
}
.sh-mobile-menu ul {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.sh-mobile-menu li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sh-mobile-menu li:last-child { border: none; }
.sh-mobile-menu a { font-size: 15px; font-weight: 500; }

/* push body content below fixed header */
body { padding-top: var(--header-h); }

/* ---------- HERO ---------- */
.hero {
  min-height: calc(70vh - var(--header-h));
  display: flex;
  align-items: center; justify-content: center;
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  height: min(70%, 520px);
  width: auto;
  pointer-events: none;
  z-index: 0;
}
.hero-deco img {
  height: 100%; width: auto;
  display: block;
  object-fit: contain;
}
.hero-deco-left {
  left: 0;
  border-radius: 0 24px 24px 0;
  overflow: hidden;
  background: #f4eef7;
}
.hero-deco-right {
  right: 0;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  background: #fdfaf6;
}
.hero-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  max-width: 720px;
}
.hero-logo {
  width: min(640px, 80vw);
  margin: 0 auto;
}
.hero-logo img { width: 100%; height: auto; }

.hero-title {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 auto 20px;
  max-width: 720px;
  text-wrap: balance;
}
.hero-title em {
  display: block;
  font-style: normal;
  color: var(--lavender);
}
.hero-lede {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 580px;
  color: var(--ink-2);
  margin: 0 auto 40px;
  text-wrap: pretty;
}
/* ---------- BAND ---------- */
.band {
  background: var(--bg-band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------- CATALOG (Apple Music row) ---------- */
.catalog { padding: 80px 40px 40px; max-width: 1280px; margin: 0 auto; }
.catalog-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 32px;
}
.catalog-header h2 { margin: 0; font-weight: 800; font-size: 32px; letter-spacing: -0.025em; }
.catalog-header .sub { font-size: 13px; color: var(--ink-3); font-weight: 500; }

.cd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cd { cursor: pointer; display: block; }
.cd-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f2;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 10px -2px rgba(0,0,0,0.08),
    0 14px 28px -8px rgba(0,0,0,0.18);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.cd:hover .cd-cover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.07),
    0 8px 18px -4px rgba(0,0,0,0.12),
    0 24px 44px -10px rgba(0,0,0,0.24);
}
.cd-cover img { width: 100%; height: 100%; object-fit: cover; }
.cd-play {
  position: absolute; bottom: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #111;
  display: grid; place-items: center; font-size: 14px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(8px); font-weight: 700;
}
.cd:hover .cd-play { opacity: 1; transform: translateY(0); }

.cd-meta { margin-top: 12px; padding: 0 2px; }
.cd-meta .kind {
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.cd-meta h3 { margin: 0 0 2px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.cd-meta .subtitle { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---------- STORIES ---------- */
.stories {
  padding: 60px 40px 100px;
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 100px;
}
.story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.story.flip { direction: rtl; }
.story.flip > * { direction: ltr; }

.story-cover {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 30px 60px -20px rgba(0,0,0,0.25);
  background: #f0f0f2;
  max-width: 420px; width: 100%; margin: 0 auto;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
  cursor: pointer;
}
.story-cover:hover { transform: translateY(-6px); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; }

.story-text { max-width: 460px; }
.story-text .kind {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lavender); margin: 0 0 16px;
}
.story-text h3 {
  margin: 0 0 16px; font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.06; letter-spacing: -0.025em;
}
.story-text .lede {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 28px;
  text-wrap: pretty;
}
.story-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .2s, background .2s;
}
.story-cta:hover { transform: translateY(-1px); background: #1f1f24; }
.story-cta .arrow { transition: transform .2s; }
.story-cta:hover .arrow { transform: translateX(3px); }

/* ---------- ABOUT (homepage section + about page) ---------- */
.about-wrap { background: var(--bg-band); }
.about {
  max-width: 1180px; margin: 0 auto;
  padding: 100px 40px;
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 80px; align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.3);
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.92 0.01 80) 0 14px,
      oklch(0.95 0.01 80) 14px 28px
    );
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); padding: 24px; gap: 8px;
}
.portrait-placeholder span { font-weight: 600; letter-spacing: 0.05em; }
.portrait-placeholder small { font-size: 10px; opacity: 0.7; max-width: 200px; }

.about-text .kind {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.about-text h2 {
  font-weight: 800; font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04; margin: 0 0 24px;
  letter-spacing: -0.03em; text-wrap: balance;
}
.about-text p {
  font-size: 16px; line-height: 1.65;
  color: var(--ink-2); margin: 0 0 16px;
  max-width: 540px;
}
.passions {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0 0;
}
.passions li {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px; color: var(--ink-2);
}
.about-page .about {
  max-width: 1240px;
  padding: 60px 40px 80px;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 80px;
}
.about-page .about-text {
  max-width: 560px;
}
.about-page .about-text .kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.about-page .portrait-frame {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.28);
}
.about-page .about-text h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 16px;
}
.about-page .about-text p {
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- FOOTER ---------- */
.site-footer { background: #ffffff; padding: 80px 40px 32px; }
.footer-top {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 80px;
  padding-bottom: 48px; border-bottom: 1px solid var(--rule);
}
.footer-brand img { height: 70px; width: auto; margin-bottom: 18px; }
.footer-brand p {
  font-size: 14px; color: var(--ink-2);
  max-width: 320px; margin: 0; line-height: 1.55;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-cols h4 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin: 0 0 16px;
}
.footer-cols a {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 8px; transition: color .2s;
}
.footer-cols a:hover { color: var(--lavender); }
.footer-bot {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
}

/* ---------- BOOK PLACEHOLDER COVER ---------- */
.book-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 10px -2px rgba(0,0,0,0.08),
    0 14px 28px -8px rgba(0,0,0,0.18);
}
.pp-cover .book-cover {
  border-radius: 4px;
  max-width: 380px;
  box-shadow: 0 50px 100px -20px rgba(42,26,34,0.4);
}
.story-cover .book-cover {
  width: 100%; height: 100%;
  border-radius: 16px;
}

/* ---------- PRODUCT PAGE COMMON ---------- */
.pp { min-height: 100vh; }
.pp-hero {
  padding: 60px 40px 80px;
  display: grid; grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 80px; max-width: 1240px; margin: 0 auto;
  align-items: center;
}
.pp-content { max-width: 560px; }
.pp-cover {
  aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
  max-width: 520px; width: 100%; margin: 0 auto;
}
.pp-cover img { width: 100%; height: 100%; object-fit: cover; }
.pp-kind {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px; opacity: 0.7;
}
.pp-title {
  font-weight: 800; font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0; margin: 0 0 16px;
  letter-spacing: -0.035em;
}
.pp-title em {
  font-weight: 800; font-size: clamp(30px, 3vw, 50px);
}
.pp-subtitle {
  font-size: 22px; font-weight: 500;
  margin: 0 0 32px; opacity: 0.85;
  line-height: 1.3; letter-spacing: -0.015em;
}
.pp-blurb {
  font-size: 17px; line-height: 1.65;
  margin: 0 0 36px; opacity: 0.85; max-width: 520px;
}
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.pp-btn {
  padding: 13px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .2s, opacity .2s, background .2s;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid;
}
.pp-btn.primary { border-color: transparent; }
.pp-btn:hover { transform: translateY(-1px); }
.pp-btn iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 16px;
  flex-shrink: 0;
}

.pp-section { padding: 60px 40px; max-width: 1240px; margin: 0 auto; }
.pp-section h2 { font-weight: 800; font-size: 28px; letter-spacing: -0.025em; margin: 0 0 24px; }
.pp-list { border-top: 1px solid; }
.pp-list-row {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid;
  align-items: center; font-size: 15px;
}
.pp-list-row .num { font-size: 12px; font-weight: 600; opacity: 0.55; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .site-header { padding: 0 16px; gap: 12px; }
  .sh-nav { display: none; }
  .sh-burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
  }
  .sh-burger span {
    width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .2s;
  }
  .hero {
    padding: 40px 20px;
    min-height: 70vh;
  }
  .hero-deco { height: 40%; opacity: 0.7; }
  .hero-body { padding: 0; }
  .hero-logo { margin-bottom: 36px; }
  .catalog { padding: 56px 20px 28px; }
  .cd-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stories { padding: 40px 20px 80px; gap: 60px; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story.flip { direction: ltr; }
  .story-cover { max-width: 380px; }
  .about { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 24px; }
  .site-footer { padding: 60px 20px 28px; }
  .footer-bot { flex-direction: column; gap: 6px; }
  .pp-hero { grid-template-columns: 1fr; padding: 32px 20px 40px; gap: 32px; }
  .about-page .about { grid-template-columns: 1fr; padding: 32px 20px 40px; gap: 32px; }
  .pp-section { padding: 40px 20px; }
  .sh-mobile-menu .sh-lang {
    margin: 0 auto;
    width: max-content;
  }
}
@media (min-width: 981px) {
  .sh-mobile-menu { display: none !important; }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: var(--bg);
    color: var(--ink);
  }
}
