/* bks.baby — Night Ink Studio visual system (unique to this site) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #12151c;
  --ink-soft: #1c2230;
  --paper: #f4f7fb;
  --mist: #e8eef6;
  --rose: #f2497d;
  --rose-deep: #c91d58;
  --ice: #7ec8e3;
  --mint: #4fd1a5;
  --text: #1a2030;
  --muted: #5a6578;
  --line: rgba(18, 21, 28, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(18, 21, 28, 0.12);
  --radius: 22px;
  --max: 1080px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(242, 73, 125, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(126, 200, 227, 0.22), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, var(--paper) 40%, #eef3f9 100%);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose);
}

.bks-shell {
  min-height: 100vh;
}

/* —— Top promo ads —— */
.promo-lane {
  background: linear-gradient(90deg, #fff5f8, #f0fbff);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 4px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 6px 0;
  gap: 4px 2px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* floating dock shared item chrome */
#dock-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#dock-ads img {
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#dock-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#dock-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#dock-ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* sticky dock: 4 / row mobile, 8 / row desktop */
.ribbon-dock {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  padding: 0 8px;
}

.ribbon-dock.is-visible {
  max-height: 220px;
  opacity: 1;
  padding: 8px 8px 4px;
}

/* floating dock: mobile 4 / row, desktop 8 / row */
#dock-ads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  gap: 4px 0;
  width: 100%;
}

#dock-ads > div {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#dock-ads img {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  #dock-ads {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  #dock-ads img {
    width: 65px;
    height: 65px;
  }
}

/* —— Header —— */
.pulse-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(18, 21, 28, 0.92);
  backdrop-filter: blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: Syne, "Noto Sans SC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(242, 73, 125, 0.45);
}

.nav-links {
  display: none;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(242, 73, 125, 0.22);
  color: #fff;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--ink-soft);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
}

.nav-drawer a:hover {
  background: rgba(242, 73, 125, 0.2);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* —— Layout —— */
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.crumb {
  margin: 18px auto 8px;
  width: min(var(--max), calc(100% - 32px));
  font-size: 13px;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--rose);
}

/* —— Hero: diagonal ink ribbon —— */
.ink-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 28px;
}

.ink-hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto -10%;
  height: 72%;
  background:
    linear-gradient(125deg, rgba(18, 21, 28, 0.95) 0%, rgba(28, 34, 48, 0.88) 48%, rgba(242, 73, 125, 0.55) 100%);
  transform: skewY(-4deg);
  border-radius: 0 0 48px 48px;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
  color: #fff;
  padding: 28px 0 36px;
}

.hero-copy h1 {
  font-family: Syne, "Noto Sans SC", sans-serif;
  font-size: clamp(1.85rem, 6vw, 2.85rem);
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.hero-orb {
  justify-self: center;
  width: min(220px, 58vw);
  aspect-ratio: 1;
  border-radius: 28% 40% 32% 44%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(126, 200, 227, 0.25);
  animation: orb-float 6s ease-in-out infinite;
}

.hero-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.8fr;
  }
}

/* —— Sections —— */
.chapter {
  padding: 36px 0;
}

.chapter + .chapter {
  border-top: 1px dashed rgba(90, 101, 120, 0.2);
}

.chapter h2 {
  font-family: Syne, "Noto Sans SC", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin: 0 0 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.chapter h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  color: var(--ink);
}

.chapter p {
  margin: 0 0 14px;
  color: var(--text);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

/* mosaic splits */
.split-mosaic {
  display: grid;
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}

@media (min-width: 760px) {
  .split-mosaic {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split-mosaic.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split-mosaic.reverse .shot-frame {
    order: -1;
  }
}

.shot-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
  transform: rotate(-1.2deg);
  max-width: 340px;
  margin: 0 auto;
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(126, 200, 227, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

.shot-frame img {
  width: 100%;
  display: block;
}

.shot-frame.tilt-r {
  transform: rotate(1.4deg);
}

/* tip chips (not cards for hero — used in content as interactive labels) */
.tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(242, 73, 125, 0.1);
  color: var(--rose-deep);
  border: 1px solid rgba(242, 73, 125, 0.18);
}

/* feature panels (interaction containers) */
.panel-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 700px) {
  .panel-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .panel-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pane {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(18, 21, 28, 0.05);
  transition: transform 0.25s ease, border-color 0.25s;
}

.pane:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 73, 125, 0.35);
}

.pane h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pane p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.pane .mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--rose), #ff8fb3);
  color: #fff;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.pane .mark.ice {
  background: linear-gradient(135deg, var(--ice), #a8e0f0);
  color: var(--ink);
}

.pane .mark.mint {
  background: linear-gradient(135deg, var(--mint), #9aefc9);
  color: var(--ink);
}

/* quote band */
.pulse-band {
  margin: 28px 0;
  padding: 22px 20px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(18, 21, 28, 0.94), rgba(201, 29, 88, 0.85));
  color: #fff;
  box-shadow: var(--shadow);
  animation: band-glow 5s ease-in-out infinite;
}

.pulse-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes band-glow {
  0%,
  100% {
    box-shadow: 0 14px 36px rgba(242, 73, 125, 0.22);
  }
  50% {
    box-shadow: 0 18px 44px rgba(126, 200, 227, 0.28);
  }
}

/* legal / subpage */
.legal-body {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px 36px;
  margin: 12px auto 48px;
  width: min(var(--max), calc(100% - 32px));
  box-shadow: var(--shadow);
}

.legal-body h1 {
  margin-top: 0;
  font-family: Syne, "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.legal-body h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

/* error pages */
.err-stage {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px 60px;
}

.err-stage h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(3rem, 14vw, 5.5rem);
  margin: 0;
  background: linear-gradient(120deg, var(--rose), var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err-stage p {
  color: var(--muted);
  max-width: 28em;
}

.ghost-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* footer */
.site-foot {
  margin-top: 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 28px;
}

.foot-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 700px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-foot a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ice);
}

.site-foot h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin: 6px 0;
}

.foot-copy {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* motion accents */
.rise-in {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
