/* ========================================
   HASWELL & THORNE — Main Stylesheet
   ======================================== */

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

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: #0a0a0f;
  color: #e0d8c8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* --- Fog Animation --- */

.fog-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fog {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
}

.fog-1 {
  background: radial-gradient(ellipse 800px 400px at 30% 40%, rgba(139,32,53,0.08), transparent);
  animation: fogDrift1 12s ease-in-out infinite;
}

.fog-2 {
  background: radial-gradient(ellipse 600px 300px at 70% 60%, rgba(74,74,139,0.06), transparent);
  animation: fogDrift2 16s ease-in-out infinite;
}

@keyframes fogDrift1 {
  0%   { transform: translateX(-10%) translateY(0);     opacity: 0.03; }
  50%  { transform: translateX(5%)   translateY(-20px);  opacity: 0.06; }
  100% { transform: translateX(-10%) translateY(0);     opacity: 0.03; }
}

@keyframes fogDrift2 {
  0%   { transform: translateX(10%)  translateY(0);     opacity: 0.04; }
  50%  { transform: translateX(-8%)  translateY(15px);   opacity: 0.07; }
  100% { transform: translateX(10%)  translateY(0);     opacity: 0.04; }
}

@keyframes flicker {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
  73%      { opacity: 0.85; }
  91%      { opacity: 0.95; }
}

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


/* --- Navigation --- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(224,216,200,0.06);
}

.nav-link {
  color: #a09888;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Crimson Pro', serif;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #c4943a;
}


/* --- Hero Section --- */

.hero {
  text-align: center;
  padding: 100px 32px 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196,148,58,0.08) 0%, transparent 70%);
  animation: flicker 4s ease-in-out infinite;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.15;
  color: #e8dfd0;
  margin-bottom: 16px;
  animation: fadeIn 1.2s ease-out;
}

.hero h1 .amp {
  font-style: italic;
  color: #c4943a;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B2035, transparent);
  margin: 24px auto;
}

.hero-subtitle {
  font-size: 18px;
  color: #8b7b6b;
  font-family: 'Crimson Pro', serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  max-width: 500px;
  margin: 0 auto;
}


/* --- Story Cards Grid --- */

.stories-section {
  padding: 0 32px 80px;
  position: relative;
  z-index: 1;
}

.stories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stories-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: #c4943a;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.story-card {
  background: #1a1520;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(224,216,200,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeIn 0.6s ease-out both;
}

.story-card:hover {
  transform: scale(1.04);
  border-color: rgba(196,148,58,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-image-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a1520, rgba(139,32,53,0.15), #1a1520);
}

.card-image-placeholder span {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(139,32,53,0.5);
}

.card-genre {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(196,148,58,0.7);
  font-family: 'Crimson Pro', serif;
}

.card-body {
  padding: 16px 16px 20px;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 6px;
  color: #e0d8c8;
  line-height: 1.3;
}

.card-body .card-date {
  font-size: 12px;
  color: #6b6358;
  margin: 0;
}

.card-body.placeholder {
  text-align: center;
}

.card-body.placeholder h3 {
  font-style: italic;
  color: #6b6358;
}


/* --- All Stories Page --- */

.stories-page {
  padding: 60px 32px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.stories-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: #e8dfd0;
  margin-bottom: 16px;
  text-align: center;
}

.stories-page .divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B2035, transparent);
  margin: 0 auto 40px;
}

.stories-page .coming-soon {
  font-size: 18px;
  color: #6b6358;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 60px;
}

.stories-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(224,216,200,0.06);
  transition: opacity 0.3s;
}

.stories-list-item:hover {
  opacity: 0.85;
}

.stories-list-thumb {
  width: 100px;
  height: 70px;
  border-radius: 4px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1520;
  border: 1px solid rgba(224,216,200,0.06);
}

.stories-list-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 4px;
  color: #e0d8c8;
  transition: color 0.3s;
}

.stories-list-item:hover h3 {
  color: #c4943a;
}

.stories-list-info p {
  font-size: 13px;
  color: #6b6358;
  margin: 0;
}


/* --- About Page --- */

.about-page {
  padding: 80px 32px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: #e8dfd0;
  margin-bottom: 24px;
}

.about-page p {
  font-size: 17px;
  line-height: 1.8;
  color: #a09888;
  font-style: italic;
}


/* --- Individual Post --- */

.post {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  position: relative;
  z-index: 1;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-meta {
  font-size: 13px;
  color: #6b6358;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-genre {
  color: #c4943a;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  color: #e8dfd0;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-description {
  font-size: 18px;
  color: #8b7b6b;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.post-cover {
  margin: 0 -32px 40px;
  border-radius: 6px;
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 18px;
  line-height: 1.9;
  color: #c8c0b0;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: #e0d8c8;
  margin: 2em 0 0.8em;
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #e0d8c8;
  margin: 1.5em 0 0.6em;
}

.post-body blockquote {
  border-left: 2px solid #8B2035;
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: #a09888;
}

.post-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8B2035, transparent);
  margin: 3em auto;
  max-width: 200px;
}

.post-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(224,216,200,0.06);
}

.back-link {
  font-size: 14px;
  color: #6b6358;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.back-link:hover {
  color: #c4943a;
}


/* --- Footer --- */

.footer {
  border-top: 1px solid rgba(224,216,200,0.06);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-tagline {
  font-size: 14px;
  color: #6b6358;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
}

.social-placeholders {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px dashed rgba(224,216,200,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-dot span {
  font-size: 14px;
  color: #3a3630;
}

.copyright {
  font-size: 12px;
  color: #4a4540;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* --- Responsive --- */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .post-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 20px 50px;
  }

  .hero h1 {
    font-size: 30px;
  }
}
