/* =============================================================
   Simplified View — Blog Styles
   Bootstrap 5.3 base + custom theme
   ============================================================= */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sv-bg:          #fafaf7;
  --sv-text:        #1a1a1a;
  --sv-muted:       #6b6b6b;
  --sv-accent:      #b5754f;
  --sv-border:      #e6e2da;
  --sv-hero-overlay: rgba(8, 8, 16, 0.58);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sv-text);
  background-color: var(--sv-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ─────────────────────────────────────────────── */
.sv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 1.4rem 0;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

.sv-nav.scrolled {
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* On non-hero pages the nav is always solid */
body.solid-nav .sv-nav {
  background: rgba(10, 10, 18, 0.96) !important;
  padding: 0.85rem 0 !important;
}

.sv-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sv-nav .brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.sv-nav .brand:hover { color: rgba(255,255,255,0.8); }

.sv-nav .nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}

.sv-nav .nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  transition: color 0.2s;
}
.sv-nav .nav-links a:hover,
.sv-nav .nav-links a.active { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────── */
.sv-hero {
  /* Mobile base — reasonable fixed height so text always overlays image */
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  background-color: #0c0c18;
  background-image: url('../images/hero.jpg');
  background-size: cover;           /* fills hero, crops proportionally */
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;    /* fixed causes issues on mobile */
}

/* sm — 576px+ */
@media (min-width: 576px) {
  .sv-hero { min-height: 420px; }
}

/* md — 768px+ */
@media (min-width: 768px) {
  .sv-hero { min-height: 540px; }
}

/* lg — 992px+: viewport-relative height, squashed 120px from full screen */
@media (min-width: 992px) {
  .sv-hero {
    min-height: 100vh;
    background-attachment: fixed;   /* parallax re-enabled on desktop */
  }
}

/* Gradient overlay */
.sv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 16, 0.50) 0%,
    rgba(8, 8, 16, 0.62) 60%,
    rgba(8, 8, 16, 0.82) 100%
  );
  z-index: 1;
}

/* When no image is provided */
.sv-hero.gradient-only {
  background-image: none;
  background: linear-gradient(145deg, #0d0d1a 0%, #12122a 40%, #1a1232 100%);
}

.sv-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 680px;
  width: 100%;
}

.sv-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sv-accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.sv-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.sv-hero-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--sv-accent);
  margin: 0 auto 1.5rem;
  border: none;
  opacity: 1;
}

.sv-hero-tagline {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* Animated scroll indicator */
.sv-scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: cue-float 2.4s ease-in-out infinite;
}

.sv-scroll-cue svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

@keyframes cue-float {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.6;  }
}

/* ── Post list ──────────────────────────────────────────────── */
.sv-posts-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.sv-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sv-muted);
  margin-bottom: 3rem;
}
.sv-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sv-border);
}

.sv-post-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--sv-border);
}
.sv-post-item:first-of-type { padding-top: 0; }
.sv-post-item:last-of-type  { border-bottom: none; }

.sv-post-meta {
  font-size: 0.8rem;
  color: var(--sv-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sv-post-meta .sep {
  width: 3px; height: 3px;
  background: var(--sv-border);
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-post-item h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.sv-post-item h2 a {
  color: var(--sv-text);
  transition: color 0.2s;
}
.sv-post-item h2 a:hover { color: var(--sv-accent); }

.sv-post-excerpt {
  color: var(--sv-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sv-read-more {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s, color 0.2s;
}
.sv-read-more:hover { color: var(--sv-text); gap: 0.6rem; }
.sv-read-more svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.sv-footer {
  border-top: 1px solid var(--sv-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--sv-muted);
  font-size: 0.8125rem;
}
.sv-footer a { color: var(--sv-muted); }
.sv-footer a:hover { color: var(--sv-text); }

/* ── Individual post page ───────────────────────────────────── */
.sv-post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--sv-border);
}

.sv-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sv-muted);
  margin-bottom: 2rem;
  transition: color 0.2s, gap 0.25s;
}
.sv-back:hover { color: var(--sv-text); gap: 0.6rem; }
.sv-back svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.sv-post-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.875rem, 5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sv-post-header .sv-lede {
  font-size: 1.125rem;
  color: var(--sv-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0;
}

.sv-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.sv-post-body > * + * { margin-top: 1.5rem; }
.sv-post-body p { margin: 0 0 1.5rem; line-height: 1.8; }

.sv-post-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.625rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}
.sv-post-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.sv-post-body blockquote {
  border-left: 3px solid var(--sv-accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--sv-muted);
  font-style: italic;
  font-size: 1.0625rem;
}

.sv-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.sv-post-body code {
  background: #f0ede6;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
  color: #b5400f;
}
.sv-post-body pre {
  background: #14141e;
  color: #e8e8f0;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.sv-post-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ── About page ─────────────────────────────────────────────── */
.sv-about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}
.sv-about-body h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 2.5rem;
}
.sv-about-body p {
  color: var(--sv-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.sv-about-body p strong { color: var(--sv-text); font-weight: 600; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sv-post-header,
  .sv-post-body,
  .sv-about-body,
  .sv-posts-section { padding-left: 1.25rem; padding-right: 1.25rem; }

  .sv-post-header { padding-top: 5.5rem; }
}
