:root {
  --bg-sunrise-top: #fef6e9;
  --bg-sunrise-mid: #ffd9b3;
  --bg-sunrise-bottom: #f3f3ff;
  --accent-gold: #f4b23a;
  --accent-peach: #ffb88c;
  --accent-sky: #7fb7ff;
  --text-main: #22252b;
  --text-soft: #4b4f5a;
  --tab-bg: rgba(255, 255, 255, 0.85);
  --tab-border: rgba(255, 255, 255, 0.9);
  --tab-active: #ffffff;
  --tab-hover: rgba(255, 255, 255, 0.98);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-pill: 999px;
  --radius-card: 18px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(
    180deg,
    var(--bg-sunrise-top) 0%,
    var(--bg-sunrise-mid) 40%,
    var(--bg-sunrise-bottom) 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

page {
  display: block
  width: 100%;
  max-width: var(--max-width);
}

.hero {
  position: relative;
  text-align: center;
  padding: 32px 16px 72px;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1f2430;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  inset: 40% 10% auto;
  height: 120px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(4px);
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(10px);
}

.tab {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.tab:hover {
  background: var(--tab-hover);
  border-color: var(--tab-border);
  color: var(--text-main);
}

.tab.active {
  background: var(--tab-active);
  border-color: var(--tab-border);
  color: var(--text-main);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

main {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(
    135deg,
    rgba(255, 248, 230, 0.9),
    rgba(255, 221, 196, 0.9),
    rgba(230, 236, 255, 0.95)
  );
  min-height: 360px;
}

.content-inner {
  padding: 32px 24px 32px;
}

@media (min-width: 768px) {
  .content-inner {
    padding: 40px 48px 40px;
  }
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Back Cover (New Dawn glow band) */
.backcover-band {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 900px) {
  .backcover-band {
    flex-direction: row;
    align-items: center;
  }
}

.backcover-text {
  flex: 3;
  max-width: 640px;
}

.backcover-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-sky);
  margin-bottom: 10px;
  font-weight: 600;
}

.backcover-heading {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #1f2430;
}

.backcover-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.backcover-ray {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-peach));
  margin: 10px 0 18px;
}

.backcover-note {
  font-size: 0.9rem;
  color: #5b6070;
}

.book-card {
  flex: 2;
  display: flex;
  justify-content: center;
}

.book-mock {
  width: 210px;
  height: 310px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1f2430, #3b4a6b);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.book-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
}

.book-mock-inner {
  position: absolute;
  inset: 18px 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f8ff;
}

.book-mock-title {
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.book-mock-sub {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.9;
}

.book-mock-footer {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Table of Contents */
.toc {
  max-width: 720px;
}

.toc-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.toc-marker {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff7e6, var(--accent-gold));
  box-shadow: 0 0 0 3px rgba(244, 178, 58, 0.25);
  margin-top: 4px;
  flex-shrink: 0;
}

.toc-text {
  flex: 1;
}

.toc-chapter {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6f7c;
  margin-bottom: 2px;
}

.toc-heading {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.toc-part {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.toc-desc {
  font-size: 0.9rem;
  color: #5b6070;
}

/* Long Text */
.longtext-shell {
  display: flex;
  justify-content: center;
}

.longtext {
    
  max-width: 680px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .longtext {
    padding: 32px 32px;
  }
}

.longtext h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.longtext h3 {
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #333746;
}

.longtext li {
  font-size: 0.98rem;
  line-height: 1.3;
  color: #4a4f5c;
  margin-left: 15pt;
}

.longtext ul {
  margin-bottom: 10px;
}

.longtext p {
  font-size: 0.98rem;
  line-height: 1.3;
  color: #4a4f5c;
  margin-top: 10px;
  margin-bottom: 10px;
}

.longtext hr {
  border: none;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-peach), var(--accent-sky));
  margin: 18px 0;
  opacity: 0.7;
}

/* Buy Tab */
.buy-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.buy-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.buy-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6f7c;
  background: linear-gradient(90deg, #fff7e6, #ffe2c7);
  margin-bottom: 10px;
}

.buy-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.buy-text {
  font-size: 0.95rem;
  color: #555a67;
  margin-bottom: 6px;
}

.buy-sub {
  font-size: 0.85rem;
  color: #7a7f8c;
}
