@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark: #8B6914;
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --dark-mid: #2A2A2A;
  --mid: #444444;
  --light-mid: #888888;
  --light: #CCCCCC;
  --off-white: #F5F2EC;
  --white: #FFFFFF;
  --accent-red: #8B2020;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  font-size: 17px;
}

/* ─── COVER PAGE ─── */
.cover {
  min-height: 100vh;
  background: linear-gradient(160deg, #0D0D0D 0%, #1a1208 50%, #0D0D0D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cover-ornament {
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0.8;
}

.cover-line {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  opacity: 0.5;
}

.cover h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.cover h1 span {
  color: var(--gold);
  font-style: italic;
}

.cover-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: var(--light-mid);
  letter-spacing: 1px;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.cover-author {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 60px;
}

.cover-tagline {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-mid);
  opacity: 0.6;
}

/* ─── NAVIGATION ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ─── QUOTE PAGE ─── */
.quote-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.quote-inner {
  max-width: 700px;
  text-align: center;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 30px;
  display: block;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  color: var(--off-white);
  line-height: 1.5;
  margin-bottom: 24px;
}

.quote-attr {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* ─── NOTE PAGE ─── */
.note-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
}

.note-page p {
  color: var(--light);
  margin-bottom: 20px;
  font-size: 16px;
}

/* ─── TABLE OF CONTENTS ─── */
.toc {
  background: var(--dark);
  padding: 80px 40px;
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.toc-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
  display: block;
}

.toc h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 50px;
}

.toc-part {
  margin-bottom: 40px;
}

.toc-part-title {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.toc-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: all 0.2s;
}

.toc-item:hover .toc-item-title {
  color: var(--gold);
}

.toc-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--off-white);
  transition: color 0.2s;
}

.toc-item-num {
  font-size: 12px;
  color: var(--light-mid);
  opacity: 0.5;
  margin-left: 20px;
  flex-shrink: 0;
}

/* ─── PART DIVIDER ─── */
.part-divider {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0D0D0D 0%, #1a1208 50%, #0D0D0D 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.part-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.part-divider-inner {
  position: relative;
  z-index: 1;
}

.part-number {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 20px;
}

.part-divider h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
}

.part-divider h2 em {
  color: var(--gold);
  font-style: italic;
}

.part-ornament {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto;
  opacity: 0.4;
}

/* ─── CHAPTER ─── */
.chapter {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px;
}

.chapter-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.chapter-num {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
  display: block;
}

.chapter h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--white);
  line-height: 1.2;
  font-weight: 600;
}

.chapter h2 em {
  color: var(--gold);
  font-style: italic;
}

/* ─── SECTION HEADINGS ─── */
.chapter h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--white);
  margin: 60px 0 24px;
  font-weight: 600;
  line-height: 1.3;
}

.chapter h4 {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 48px 0 20px;
  font-weight: 500;
}

/* ─── BODY TEXT ─── */
.chapter p {
  color: var(--light);
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.85;
}

.chapter p strong {
  color: var(--white);
  font-weight: 500;
}

.chapter p em {
  color: var(--gold-light);
  font-style: italic;
}

/* ─── ARCHETYPE CARDS ─── */
.archetype-card {
  background: var(--dark);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 36px 40px;
  margin: 40px 0;
  position: relative;
}

.archetype-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.03) 0%, transparent 60%);
  border-radius: 4px;
  pointer-events: none;
}

.archetype-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.archetype-type {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-mid);
  margin-bottom: 20px;
  opacity: 0.7;
}

.archetype-card p {
  color: var(--light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.archetype-card p:last-child {
  margin-bottom: 0;
}

.archetype-insight {
  background: rgba(201,168,76,0.08);
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 20px;
}

.archetype-insight strong {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.archetype-insight p {
  color: var(--off-white) !important;
  font-size: 15px !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* ─── PULL QUOTES ─── */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 24px 32px;
  margin: 48px 0;
  background: rgba(201,168,76,0.04);
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 22px) !important;
  font-style: italic;
  color: var(--off-white) !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.04) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 32px 36px;
  margin: 40px 0;
}

.highlight-box p {
  color: var(--off-white) !important;
  font-size: 16px !important;
  margin-bottom: 12px !important;
}

.highlight-box p:last-child {
  margin-bottom: 0 !important;
}

/* ─── DIVIDER ─── */
.ornament-divider {
  text-align: center;
  margin: 60px 0;
  color: var(--gold);
  opacity: 0.4;
  font-size: 20px;
  letter-spacing: 12px;
}

/* ─── CTA SECTION ─── */
.cta-section {
  background: linear-gradient(160deg, #1a1208 0%, #0D0D0D 100%);
  padding: 100px 40px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.cta-section h2 em {
  color: var(--gold);
  font-style: italic;
}

.cta-section p {
  color: var(--light-mid);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 48px;
  border-radius: 2px;
  margin-top: 20px;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 50px 40px;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--light-mid);
  opacity: 0.5;
  line-height: 1.8;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.8;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .cover { padding: 60px 24px; }
  .chapter { padding: 60px 24px; }
  .toc { padding: 60px 24px; }
  .part-divider { padding: 60px 24px; }
  .archetype-card { padding: 28px 24px; }
  .cta-section { padding: 80px 24px; }
}

@media print {
  .nav { display: none; }
  .cover { page-break-after: always; }
  .part-divider { page-break-before: always; }
  body { background: white; color: black; }
}
/* ─── ARCHETYPE CALCULATOR ─── */
.calculator-section {
  background: linear-gradient(160deg, #0D0D0D 0%, #1a1208 50%, #0D0D0D 100%);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.calc-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calc-label {
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
}

.calc-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
  opacity: 0.4;
}

.calc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.calc-title span {
  color: var(--gold);
  font-style: italic;
}

.calc-subtitle {
  font-size: 15px;
  color: var(--light-mid);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.calc-label-field {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.calc-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--white);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  -moz-appearance: textfield;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input:focus {
  border-color: rgba(201,168,76,0.6);
  background: rgba(255,255,255,0.06);
}

.calc-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-btn {
  width: 100%;
  padding: 18px 40px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  margin-top: 8px;
}

.calc-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* Result */
.calc-result {
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.5s ease;
}

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

.calc-result-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
  opacity: 0.4;
}

.calc-result-label {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

.calc-result-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.calc-result-desc {
  font-size: 16px;
  color: var(--light);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.calc-reset {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 8px 0;
}

.calc-reset:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .calculator-section {
    padding: 70px 24px;
  }
  .calc-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
