/* ========== STORY PAGE STYLES ========== */

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ========== TOP NAVIGATION ========== */
nav.story-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

nav.story-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-accent-bg);
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

nav.story-nav a:hover {
  background-color: var(--color-accent);
  color: var(--color-card-bg);
}

nav.story-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

nav.story-nav span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ========== HERO SECTION ========== */
.story-hero {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.story-hero-bg {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background-color: var(--color-accent-bg);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

.story-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: block;
}

.story-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ========== STORY BODY ========== */
.story-body {
  margin-bottom: 2.5rem;
}

.story-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Drop Cap */
.story-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  float: left;
  color: var(--color-accent);
  margin-right: 0.1em;
  margin-top: 0.05em;
  line-height: 1;
}

/* ========== TESTIMONIAL ========== */
.testimonial {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-accent-bg);
  border-radius: 0 8px 8px 0;
}

.testimonial .quote-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.testimonial .quote-attribution {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ========== TECH TAGS ========== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-card-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  background-color: transparent;
  text-decoration: none;
}

.tech-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ========== BACK LINK ========== */
.back-link {
  display: block;
  text-align: center;
  margin: 3rem 0 2rem 0;
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-card-border);
  margin-top: 3rem;
}

footer a {
  color: var(--color-link);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========== DARK MODE TOGGLE (story override) ========== */
.theme-toggle {
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-accent);
  color: var(--color-card-bg);
  border: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--color-accent-soft);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  main {
    padding: 1.5rem 1rem;
  }

  .story-title {
    font-size: 1.8rem;
  }

  .story-hero-bg {
    width: 150px;
    height: 150px;
  }

  .story-icon {
    font-size: 3rem;
  }

  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }
}
