html {
  scroll-behavior: smooth;
}

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

body {
  background-color: #F4F1EA;
  color: #1C1B1A;
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.6;
}

/* ================= 1. INITIAL HERO ================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F4F1EA;
  z-index: 10;
  will-change: opacity;
}

.brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Cinzel', serif;
}

.logo-svg {
  width: 125px; 
  height: auto;
  margin-bottom: 8px;
}

.brand-title {
  font-size: 4.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
  padding-left: 0.08em;
  -webkit-text-stroke: 0.4px #1C1B1A;
}

.brand-subtitle {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.09em; 
  transform: scaleY(1.06);
  -webkit-text-stroke: 0.2px #1C1B1A;
}

/* Dynamic Market Indicators */
.indicator-up, .indicator-down { display: none; fill: #1C1B1A; }
.market-neutral .indicator-up, .market-neutral .indicator-down { display: none; }
.market-up .indicator-up { display: block; }
.market-down .indicator-down { display: block; }
.market-both .indicator-up, .market-both .indicator-down { display: block; }

/* ================= SCROLL INDICATOR ================= */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1C1B1A;
  opacity: 0.45;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  animation: pulseChevron 2.4s infinite ease-in-out;
  pointer-events: none;
}

.scroll-hint.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
  animation: none;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes pulseChevron {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 0.7;
  }
}

/* ================= 2. FIXED TOP HEADER ================= */
.corner-header {
  position: fixed;
  top: 20px;
  left: 40px;
  width: auto;
  height: auto;
  padding: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-8px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.corner-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.corner-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #1C1B1A;
  font-family: 'Cinzel', serif;
}

.corner-logo-svg {
  width: 44px;
  height: auto;
  margin-bottom: 4px;
}

.corner-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.corner-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  margin-top: 3px;
}

/* ================= 3. FEED CONTAINER ================= */
.feed-container {
  position: relative;
  z-index: 20;
  max-width: 680px;
  margin: 0 auto;
  padding: 110px 24px 120px;
}

.post-item {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(28, 27, 26, 0.12);
}

.post-header {
  margin-bottom: 12px;
}

.post-title {
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: #1C1B1A;
}

.post-title:hover {
  text-decoration: underline;
}

.permalink-star {
  font-family: sans-serif;
  font-size: 1.1rem;
  color: #1C1B1A;
  text-decoration: none;
  margin-left: 6px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.permalink-star:hover {
  opacity: 1;
}

.post-meta {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #666;
  margin-top: 4px;
}

.post-commentary {
  font-size: 1.15rem;
  color: #2C2B2A;
}

.post-commentary p {
  margin-bottom: 12px;
}

/* Daring Fireball-style Blockquote */
.post-commentary blockquote {
  margin: 18px 0;
  padding-left: 18px;
  border-left: 2px solid rgba(28, 27, 26, 0.35);
  font-style: normal;
  color: #4A4846;
}

.post-commentary blockquote p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .corner-header {
    top: 12px;
    left: 20px;
  }
  .corner-logo-svg {
    width: 34px;
  }
  .corner-title {
    font-size: 0.85rem;
  }
  .corner-subtitle {
    font-size: 0.55rem;
  }
  .feed-container {
    padding-top: 90px;
  }
}

/* Remove bottom border line on standalone post view */
.post-item.single-post {
  border-bottom: none;
}
