@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&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg-body: #f8f6f1;
  --bg-card: #ffffff;
  --bg-dark: #111110;
  --bg-cta: #eef6f8;
  --text-main: #1c1c1a;
  --text-light: #ffffff;
  --text-muted: #6e6e68;
  --text-subtle: #9a9a92;
  --accent: #1A7F96;
  --accent-hover: #136478;
  --accent-light: rgba(26,127,150,0.08);
  --accent-secondary: #4a6b5c;
  --border: #e2ddd4;
  --border-light: #ede9e1;
  --font-serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 3px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ─── Reading Progress ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #4ab8cc);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ─── Layout ─── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 22px;
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}

li {
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
  font-size: 1.02rem;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ─── Article Header ─── */
.article-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.article-header .container {
  position: relative;
}

.article-header h1 {
  margin-top: 20px;
  max-width: 640px;
}

/* ─── Meta Bar ─── */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.meta-bar .tag {
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-bar .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

/* ─── Drop Cap ─── */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.78;
  padding-right: 12px;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 400;
}

/* ─── Figures ─── */
.figure {
  margin: 48px -28px;
}

.figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.figure figcaption {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 12px;
  text-align: center;
  font-style: italic;
  padding: 0 28px;
  line-height: 1.5;
}

/* ─── CTA Block ─── */
.cta-block {
  background: var(--bg-cta);
  border: 1px solid rgba(26,127,150,0.15);
  padding: 40px 36px;
  margin: 48px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.cta-block p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--text-main);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(26,127,150,0.25);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,127,150,0.35);
  text-decoration: none;
  color: #fff;
}

.btn i {
  font-size: 0.8rem;
}

/* ─── Blockquote ─── */
blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-main);
  padding: 32px 36px;
  margin: 48px 0;
  line-height: 1.55;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

blockquote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}

/* ─── Highlight Boxes ─── */
.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 32px;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.highlight-box:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.highlight-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.highlight-box h3 i {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ─── Review Cards ─── */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  right: 24px;
  line-height: 1;
}

.review-card .stars {
  color: #d4a017;
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
}

.review-card .author {
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 18px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card .author::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--border);
  display: inline-block;
}

.review-card .author span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ─── Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 48px 0;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
  background: var(--bg-card);
  padding: 32px 20px;
  transition: background 0.2s;
}

.stat-item:hover {
  background: var(--accent-light);
}

.stat-item .number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 0 24px 0;
}

.faq-answer p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.75;
}

/* ─── Section Divider ─── */
.section-sm + .section-sm {
  position: relative;
}

/* ─── Footer ─── */
footer {
  background: var(--bg-dark);
  color: #888;
  padding: 72px 0 36px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-grid h4 {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
  padding-left: 0;
}

.footer-grid li::before {
  display: none;
}

.footer-grid a {
  color: #777;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.legal-info {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #666;
}

.legal-info strong {
  color: #888;
}

.legal-info a {
  color: #777;
}

.disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  color: #555;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #222;
}

.bottom-bar {
  text-align: center;
  font-size: 0.72rem;
  color: #444;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #1e1e1e;
}

/* ─── Static Pages ─── */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.page-content {
  padding-bottom: 80px;
}

.page-content h2 {
  margin-top: 48px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.page-content p {
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .section-sm {
    padding: 36px 0;
  }

  .article-header {
    padding: 48px 0 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-block {
    padding: 28px 24px;
  }

  blockquote {
    font-size: 1.15rem;
    padding: 24px 28px;
  }

  .drop-cap::first-letter {
    font-size: 3.8rem;
  }

  .figure {
    margin: 36px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .highlight-box {
    padding: 24px 20px;
  }

  .review-card {
    padding: 24px 20px;
  }
}
