/* ============================================================
   style.css — faelian.net vibes
   ============================================================
   warm, clean, gambling-cute with teal accents
   change the variables below to retheme the whole site
   ============================================================ */


/* ------------------------------------------------------------
   global color palette — aventurine inspired ♠
   ------------------------------------------------------------ */

:root {
  /* backgrounds — soft lavender-tinted cream */
  --bg-main: #f7f6f9;
  --bg-card: #ffffff;
  --bg-hover: #f3f1f6;
  --bg-input: #f5f4f7;
  
  /* text — deep and rich */
  --text-primary: #0a0a0f;
  --text-secondary: #3a3a45;
  --text-faint: #6a6a75;
  
  /* primary accent — deep ocean teal */
  --accent: #007691;
  --accent-hover: #004f73;
  --accent-soft: #e0f4f8;
  --accent-deep: #012f4b;
  
  /* secondary accent — bright cyan */
  --cyan: #00c8c3;
  --cyan-soft: #e0faf9;
  
  /* tertiary — soft gold */
  --gold: #dbbe7e;
  --gold-soft: #f9f5eb;
  
  /* quaternary — lavender like his eyes */
  --lavender: #d092d1;
  --lavender-soft: #f9f0f9;
  
  /* borders & lines — soft purple tint */
  --border: #e5e0ea;
  --border-strong: #d0c8d8;
  
  /* special */
  --error: #c44d4d;
  --shadow: rgba(1, 47, 75, 0.1);
  --shadow-accent: rgba(0, 118, 145, 0.3);
  --shadow-lavender: rgba(208, 146, 209, 0.25);
}

/* ------------------------------------------------------------
   dark mode
   ------------------------------------------------------------ */

[data-theme="dark"] {
  --bg-main: #0a0f14;
  --bg-card: #0f171e;
  --bg-hover: #141e28;
  --bg-input: #121a22;
  
  --text-primary: #e8eef2;
  --text-secondary: #a8b8c4;
  --text-faint: #6a8090;
  
  --accent: #00a0b8;
  --accent-hover: #00c8c3;
  --accent-soft: #0a2530;
  --accent-deep: #007691;
  
  --cyan: #00c8c3;
  --cyan-soft: #0a2828;
  
  --gold: #dbbe7e;
  --gold-soft: #1e1a10;
  
  --lavender: #d092d1;
  --lavender-soft: #1e1020;
  
  --border: #1e2a35;
  --border-strong: #2a3a48;
  
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-accent: rgba(0, 200, 195, 0.2);
  --shadow-lavender: rgba(208, 146, 209, 0.15);
}

/* dark mode overrides for elements with hardcoded colors */
[data-theme="dark"] .welcome-hero,
[data-theme="dark"] .story-header,
[data-theme="dark"] .site-header-bar,
[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 100%);
}

[data-theme="dark"] .stats-bar {
  background: linear-gradient(135deg, #012f4b 0%, #011f30 100%);
}

[data-theme="dark"] .nav-breadcrumb {
  background: linear-gradient(135deg, #012f4b 0%, #011f30 100%);
}

[data-theme="dark"] .chapter-list {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .story-content {
  color: var(--text-primary);
}

[data-theme="dark"] .site-header-bar__link {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .site-header-bar__link:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 160, 184, 0.35) 0%,
    rgba(0, 200, 195, 0.2) 100%
  );
  border-color: rgba(0, 200, 195, 0.35);
}

[data-theme="dark"] .welcome-hero__title,
[data-theme="dark"] .story-header__title {
  text-shadow: 
    0 0 50px rgba(61, 212, 192, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.5);
}


/* ------------------------------------------------------------
   dark mode toggle button
   ------------------------------------------------------------ */

.theme-toggle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-toggle:hover {
  background: linear-gradient(
    135deg,
    rgba(219, 190, 126, 0.3) 0%,
    rgba(219, 190, 126, 0.15) 100%
  );
  border-color: rgba(219, 190, 126, 0.4);
  box-shadow: 
    0 4px 16px rgba(219, 190, 126, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle__icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

:root .theme-toggle__icon--sun {
  display: none;
}

:root .theme-toggle__icon--moon {
  display: inline;
}


/* ------------------------------------------------------------
   reset & base
   ------------------------------------------------------------ */

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

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main content grows to push footer down */
main.container {
  flex: 1;
  width: 100%;
}


/* ------------------------------------------------------------
   typography — the fancy stuff
   ------------------------------------------------------------ */

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}


/* ------------------------------------------------------------
   links
   ------------------------------------------------------------ */

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

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


/* ------------------------------------------------------------
   layout containers
   ------------------------------------------------------------ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.container--reading {
  max-width: 1100px;
}

.container--centered {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}


/* ------------------------------------------------------------
   site-wide header bar — casino VIP energy
   ------------------------------------------------------------ */

.site-header-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 2.5rem 2.5rem 3.5rem 2.5rem;
  padding-bottom: calc(3.5rem + 12px);
  margin-bottom: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

/* felt texture overlay */
.site-header-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(46, 184, 166, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(196, 75, 140, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(201, 162, 39, 0.015) 40px,
      rgba(201, 162, 39, 0.015) 80px
    );
  pointer-events: none;
}

/* teal rail with gradient suits at the bottom */
.site-header-bar::after {
  display: none;
}

.header-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #012f4b, #004f73, #007691, #004f73, #012f4b);
  padding: 0.35rem 0;
  text-align: center;
}

.header-rail .rail-suits {
  font-size: 0.75rem;
  letter-spacing: 1rem;
  background: linear-gradient(90deg, #5a3a60, #a070a8, #e8c8e8, #a070a8, #5a3a60);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #012f4b, #004f73, #007691, #004f73, #012f4b);
  padding: 0.35rem 0;
  text-align: center;
}

.footer-rail .rail-suits {
  font-size: 0.75rem;
  letter-spacing: 1rem;
  background: linear-gradient(90deg, #5a3a60, #a070a8, #e8c8e8, #a070a8, #5a3a60);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: text-shadow 0.3s ease;
}

.site-title:hover {
  color: white;
  text-decoration: none;
  text-shadow: 0 0 20px var(--shadow-accent);
}

/* animated suits around the title */
.site-title::before {
  content: "♦";
  color: var(--lavender);
  margin-right: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.site-title::after {
  content: "♠";
  color: var(--cyan);
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.site-title:hover::before {
  transform: translateY(-3px) rotate(-15deg);
  color: var(--gold);
}

.site-title:hover::after {
  transform: translateY(-3px) rotate(15deg);
  color: var(--lavender);
}

.site-header-bar__nav {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* GLASS NAV BUTTONS */
.site-header-bar__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  
  /* THE GLASS EFFECT */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.site-header-bar__link:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 118, 145, 0.4) 0%,
    rgba(0, 200, 195, 0.25) 100%
  );
  border-color: rgba(0, 200, 195, 0.4);
  box-shadow: 
    0 4px 16px rgba(0, 200, 195, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-header-bar__link:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* ------------------------------------------------------------
   breadcrumb navigation
   ------------------------------------------------------------ */

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

/* gradient accent on left */
.nav-breadcrumb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--cyan) 0%,
    var(--accent) 50%,
    var(--lavender) 100%
  );
}

.nav-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-breadcrumb .sep {
  color: var(--lavender);
  opacity: 0.6;
  font-size: 0.6rem;
}

.nav-breadcrumb__current {
  color: var(--accent);
  font-weight: 600;
}


/* ------------------------------------------------------------
   page titles
   ------------------------------------------------------------ */

.page-title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-summary {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}


/* ------------------------------------------------------------
   welcome hero (home page)
   ------------------------------------------------------------ */

.welcome-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.welcome-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(201, 162, 39, 0.03) 40px,
    rgba(201, 162, 39, 0.03) 80px
  );
  pointer-events: none;
}

.welcome-hero__content {
  position: relative;
  z-index: 1;
}

.welcome-hero__greeting {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.welcome-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  
  /* solid color base so it's always readable */
  color: #3dd4c0;
  
  /* text shadow gives it depth and separation from bg */
  text-shadow: 
    0 0 40px rgba(61, 212, 192, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* brighter gradient */
  background: linear-gradient(
    135deg, 
    #5eeadb 0%,
    #00c8c3 35%,
    #d092d1 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-hero__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  line-height: 1.7;
  font-style: italic;
}

.welcome-hero__decoration {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.welcome-hero__suit {
  font-size: 3rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.welcome-hero__suit:nth-child(1) { color: var(--cyan); opacity: 0.5; }
.welcome-hero__suit:nth-child(2) { color: var(--lavender); opacity: 0.6; }
.welcome-hero__suit:nth-child(3) { color: var(--gold); opacity: 0.5; }
.welcome-hero__suit:nth-child(4) { color: var(--cyan); opacity: 0.6; }

.welcome-hero:hover .welcome-hero__suit:nth-child(1) { opacity: 0.9; transform: translateY(-6px) rotate(-5deg); }
.welcome-hero:hover .welcome-hero__suit:nth-child(2) { opacity: 1; transform: translateY(-10px) rotate(3deg); transition-delay: 0.05s; }
.welcome-hero:hover .welcome-hero__suit:nth-child(3) { opacity: 0.9; transform: translateY(-6px) rotate(-3deg); transition-delay: 0.1s; }
.welcome-hero:hover .welcome-hero__suit:nth-child(4) { opacity: 0.8; transform: translateY(-8px) rotate(5deg); transition-delay: 0.15s; }


/* ------------------------------------------------------------
   stats bar (home page)
   ------------------------------------------------------------ */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--accent-deep) 0%, #0a4a44 100%);
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

/* subtle shimmer overlay */
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.02) 40px,
    rgba(255, 255, 255, 0.02) 80px
  );
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

/* decorative suit between stats */
.stat-item__divider {
  color: var(--gold);
  font-size: 1.25rem;
  opacity: 0.6;
  align-self: center;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}


/* ------------------------------------------------------------
   quote/tagline section (home page)
   ------------------------------------------------------------ */

.quote-section {
  text-align: center;
  padding: 3.5rem 3rem;
  margin-bottom: 2rem;
  position: relative;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  border-radius: 12px;
  overflow: visible;
}

/* decorative line above */
.quote-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* decorative line below */
.quote-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.quote-section__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  padding: 1rem 3rem;
}

/* big decorative quote marks */
.quote-section__text::before {
  content: """;
  position: absolute;
  top: -0.25rem;
  left: 0;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.4;
  font-style: normal;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-section__text::after {
  content: """;
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.4;
  font-style: normal;
  font-family: Georgia, serif;
  line-height: 1;
}

/* the little spade decoration */
.quote-section__icon {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* ------------------------------------------------------------
   recently updated section (home page)
   ------------------------------------------------------------ */

.recent-section {
  margin-bottom: 2.5rem;
}

.recent-section__heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-section__heading::before {
  content: "♦";
  color: var(--lavender);
  font-size: 0.75rem;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px var(--shadow);
}

/* gradient accent on left */
.recent-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--lavender) 100%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}

/* shimmer */
.recent-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 200, 195, 0.05),
    rgba(208, 146, 209, 0.03),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.recent-item:hover {
  border-color: var(--accent);
  box-shadow: 
    0 6px 20px var(--shadow-accent),
    0 0 15px rgba(0, 200, 195, 0.08);
  transform: translateX(6px) translateY(-2px);
  text-decoration: none;
}

.recent-item:hover::before {
  opacity: 1;
  width: 6px;
}

.recent-item:hover::after {
  left: 120%;
}

.recent-item__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.recent-item__story {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.recent-item:hover .recent-item__story {
  color: var(--accent);
}

.recent-item__arrow {
  color: var(--lavender);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.recent-item:hover .recent-item__arrow {
  transform: translateX(3px);
  opacity: 1;
}

.recent-item__chapter {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.recent-item:hover .recent-item__chapter {
  color: var(--cyan);
}

.recent-item__date {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-item__date::before {
  content: "♠";
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.5;
}


/* ------------------------------------------------------------
   stories section (home page)
   ------------------------------------------------------------ */

.stories-section {
  margin-top: 1rem;
}

.stories-section__heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}


/* ------------------------------------------------------------
   story cards (home page)
   ------------------------------------------------------------ */

.story-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px var(--shadow);
}

/* gradient accent bar on left */
.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    var(--cyan) 0%,
    var(--accent) 40%,
    var(--lavender) 70%,
    var(--gold) 100%
  );
  transition: width 0.3s ease;
  z-index: 2;
}

/* subtle shimmer overlay */
.story-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 200, 195, 0.04),
    rgba(208, 146, 209, 0.03),
    transparent
  );
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.story-card:hover {
  border-color: var(--accent);
  box-shadow: 
    0 8px 32px var(--shadow-accent),
    0 0 20px rgba(0, 200, 195, 0.1);
  transform: translateY(-4px) translateX(4px);
  text-decoration: none;
}

.story-card:hover::before {
  width: 8px;
}

.story-card:hover::after {
  left: 120%;
}

/* text content area */
.story-card__content {
  flex: 1;
  padding: 1.75rem 2rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* cover image area */
.story-card__cover {
  width: 180px;
  min-width: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin: 1rem;
  margin-left: 0;
  border-radius: 8px;
}

.story-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* subtle gradient overlay on image */
.story-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    transparent 30%
  );
  pointer-events: none;
}

.story-card:hover .story-card__cover img {
  transform: scale(1.05);
}

/* decorative suit watermark */
.story-card .story-card__title::before {
  content: "♠";
  color: var(--cyan);
  font-weight: normal;
  margin-right: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.story-card:hover .story-card__title::before {
  transform: rotate(-15deg) scale(1.2);
  color: var(--lavender);
}

.story-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
  position: relative;
}

.story-card:hover .story-card__title {
  color: var(--accent);
}

.story-card__summary {
  color: var(--text-secondary);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
}

.story-card__meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.story-card__meta::before {
  content: "♦";
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.6;
}

/* responsive — stack on mobile */
@media (max-width: 600px) {
  .story-card {
    flex-direction: column-reverse;
  }
  
  .story-card__cover {
    width: 100%;
    height: 150px;
    min-width: unset;
  }
  
  .story-card__cover::after {
    background: linear-gradient(
      0deg,
      var(--bg-card) 0%,
      transparent 40%
    );
  }
  
  .story-card__content {
    padding: 1.25rem 1.5rem;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-left: 0.25rem;
}

.status--ongoing {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--cyan-soft) 100%);
  color: var(--accent);
  border: 1px solid rgba(0, 118, 145, 0.2);
}

.status--ongoing::before {
  content: "♠";
  font-size: 0.65rem;
}

.status--complete {
  background: linear-gradient(135deg, #e8f5e8 0%, #d8f0d8 100%);
  color: #3a7a3a;
  border: 1px solid rgba(58, 122, 58, 0.2);
}

.status--complete::before {
  content: "♥";
  font-size: 0.65rem;
}

.status--hiatus {
  background: linear-gradient(135deg, var(--gold-soft) 0%, #f5eedc 100%);
  color: #8a6b3f;
  border: 1px solid rgba(138, 107, 63, 0.2);
}

.status--hiatus::before {
  content: "♦";
  font-size: 0.65rem;
}


/* ------------------------------------------------------------
   story header (story page hero)
   ------------------------------------------------------------ */

.story-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.story-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(201, 162, 39, 0.03) 40px,
    rgba(201, 162, 39, 0.03) 80px
  );
  pointer-events: none;
}

.story-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  
  color: #3dd4c0;
  text-shadow: 
    0 0 40px rgba(61, 212, 192, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3);
  
  background: linear-gradient(
    135deg, 
    #5eeadb 0%,
    #00c8c3 35%,
    #d092d1 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-header__title::before {
  content: "♠ ";
  -webkit-text-fill-color: #00c8c3;
  opacity: 0.9;
  text-shadow: 0 0 15px rgba(0, 200, 195, 0.6);
}

.story-header__summary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.story-header__meta {
  font-size: 0.9rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
  font-weight: 500;
}


/* ------------------------------------------------------------
   chapter section (story page)
   ------------------------------------------------------------ */

.chapter-section {
  margin-top: 1rem;
  width: 100%;
}

.chapter-section__heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chapter-section__heading::before {
  content: "♠";
  color: var(--accent);
  font-size: 0.85rem;
}


/* ------------------------------------------------------------
   chapter list (story page)
   ------------------------------------------------------------ */

.chapter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-item {
  position: relative;
}

.chapter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px var(--shadow);
}

/* gradient accent on left */
.chapter-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--lavender) 100%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}

/* shimmer */
.chapter-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 200, 195, 0.05),
    rgba(208, 146, 209, 0.03),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.chapter-link:hover {
  border-color: var(--accent);
  box-shadow: 
    0 6px 20px var(--shadow-accent),
    0 0 15px rgba(0, 200, 195, 0.08);
  transform: translateX(6px) translateY(-2px);
  text-decoration: none;
}

.chapter-link:hover::before {
  opacity: 1;
  width: 6px;
}

.chapter-link:hover::after {
  left: 120%;
}

.chapter-link__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.chapter-link__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.chapter-link:hover .chapter-link__number {
  color: var(--accent);
}

.chapter-link__arrow {
  color: var(--lavender);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chapter-link:hover .chapter-link__arrow {
  transform: translateX(3px);
  opacity: 1;
}

.chapter-link__title {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.chapter-link:hover .chapter-link__title {
  color: var(--cyan);
}

/* suit icon on right */
.chapter-link__suit {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.5;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chapter-link:hover .chapter-link__suit {
  opacity: 0.8;
  transform: rotate(15deg);
}

/* cycle through suit colors */
.chapter-item:nth-child(4n+1) .chapter-link__suit { color: var(--cyan); }
.chapter-item:nth-child(4n+2) .chapter-link__suit { color: var(--lavender); }
.chapter-item:nth-child(4n+3) .chapter-link__suit { color: var(--gold); }
.chapter-item:nth-child(4n) .chapter-link__suit { color: var(--accent); }


/* ------------------------------------------------------------
   chapter page title
   ------------------------------------------------------------ */

.chapter-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  padding-bottom: 1.75rem;
}

/* the decorative suit line underneath */
.chapter-page__title::after {
  content: "♠ ♦ ♥ ♣ ♠ ♦ ♥ ♣";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.5rem;
  background: linear-gradient(
    90deg, 
    transparent,
    var(--accent) 15%,
    var(--cyan) 30%,
    var(--lavender) 50%,
    var(--gold) 70%,
    var(--accent) 85%,
    transparent
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.7;
}

/* gradient line above the suits */
.chapter-page__title::before {
  content: "";
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent,
    var(--accent) 20%,
    var(--lavender) 50%,
    var(--gold) 80%,
    transparent
  );
}


/* ------------------------------------------------------------
   reading view (chapter page)
   ------------------------------------------------------------ */

.story-content {
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, sans-serif, 'GNU Unifont';
  font-size: 12pt;
  line-height: 1.9;
  color: var(--text-primary);
}

.story-content p {
  margin-bottom: 1.5rem;
  text-indent: 0;
}

.story-content em {
  font-style: italic;
}

.story-content strong {
  font-weight: 600;
}

.story-content hr {
  border: none;
  text-align: center;
  margin: 2.5rem 0;
}

.story-content hr::before {
  content: "♠ ♦ ♠";
  color: var(--accent);
  letter-spacing: 0.5rem;
}

.story-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}


/* ------------------------------------------------------------
   chapter navigation (prev/next)
   ------------------------------------------------------------ */

.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.chapter-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 200px;
}

.chapter-nav__link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-primary);
}

.chapter-nav__link--prev {
  align-items: flex-start;
}

.chapter-nav__link--next {
  align-items: flex-end;
  text-align: right;
}

.chapter-nav__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.chapter-nav__title {
  font-size: 1rem;
  color: var(--text-primary);
}

.chapter-nav__link--disabled {
  background: var(--bg-main);
  border: 1px dashed var(--border);
  color: var(--text-faint);
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.chapter-nav__link--disabled .chapter-nav__label {
  color: var(--text-faint);
}

.chapter-nav__link--disabled .chapter-nav__title {
  color: var(--text-faint);
}


/* ------------------------------------------------------------
   login page
   ------------------------------------------------------------ */

.container--centered {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(0, 200, 195, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(208, 146, 209, 0.05) 0%, transparent 50%),
    var(--bg-main);
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 
    0 12px 40px var(--shadow),
    0 0 80px 20px rgba(0, 200, 195, 0.08),
    0 0 120px 40px rgba(208, 146, 209, 0.05);
  position: relative;
  overflow: hidden;
}

/* gradient top border */
.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--accent) 25%,
    var(--lavender) 50%,
    var(--gold) 75%,
    var(--cyan) 100%
  );
}

/* decorative corner suits */
.login-box::after {
  content: "♠ ♥ ♦ ♣";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--lavender),
    var(--gold),
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.4;
}

.login-icon {
  font-size: 4rem;
  margin-bottom: 0.75rem;
  display: block;
  background: linear-gradient(
    135deg,
    var(--cyan) 0%,
    var(--accent) 50%,
    var(--lavender) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px var(--shadow-accent));
}

.login-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.login-form {
  margin-top: 1rem;
}

.login-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 
    0 0 0 4px var(--accent-soft),
    0 4px 12px var(--shadow-accent);
}

.login-input::placeholder {
  color: var(--text-faint);
  font-style: italic;
}

.login-button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(
    135deg, 
    var(--accent) 0%, 
    var(--accent-deep) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-button::before {
  content: "♠";
  position: absolute;
  left: 1.25rem;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-button::after {
  content: "♠";
  position: absolute;
  right: 1.25rem;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px var(--shadow-accent),
    0 0 20px rgba(0, 200, 195, 0.3);
  background: linear-gradient(
    135deg, 
    var(--cyan) 0%, 
    var(--accent) 100%
  );
}

.login-button:hover::before {
  transform: translateX(-4px) rotate(-15deg);
  opacity: 0.8;
}

.login-button:hover::after {
  transform: translateX(4px) rotate(15deg);
  opacity: 0.8;
}

.login-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-accent);
}

.login-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(196, 77, 77, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(196, 77, 77, 0.2);
}


/* ------------------------------------------------------------
   footer — card table felt aesthetic
   ------------------------------------------------------------ */

.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
}

/* felt texture overlay */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(46, 184, 166, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 75, 140, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(201, 162, 39, 0.02) 40px,
      rgba(201, 162, 39, 0.02) 80px
    );
  pointer-events: none;
}

/* decorative top border — hide the old pseudo element */
.site-footer::after {
  display: none;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}

/* card suits — big and bouncy */
.site-footer__suits {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__suits span {
  font-size: 2rem;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}

.site-footer__suits span:nth-child(1) { color: var(--cyan); }
.site-footer__suits span:nth-child(2) { color: var(--lavender); }
.site-footer__suits span:nth-child(3) { color: var(--gold); }
.site-footer__suits span:nth-child(4) { color: var(--cyan); }

/* hover animations — each suit does something different */
.site-footer__suits span:nth-child(1):hover {
  transform: translateY(-8px) rotate(-10deg);
  text-shadow: 0 8px 20px var(--shadow-accent);
}

.site-footer__suits span:nth-child(2):hover {
  transform: scale(1.3);
  text-shadow: 0 0 20px var(--shadow-lavender);
}

.site-footer__suits span:nth-child(3):hover {
  transform: translateY(-6px) rotate(15deg);
  filter: brightness(1.3);
}

.site-footer__suits span:nth-child(4):hover {
  transform: rotate(360deg);
  text-shadow: 0 8px 20px var(--shadow-accent);
}

/* tagline */
.site-footer__tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* nav links */
.site-footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--shadow-accent);
  text-decoration: none;
}

.site-footer__sep {
  color: var(--gold);
  opacity: 0.6;
}

/* copyright */
.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
}


/* ------------------------------------------------------------
   responsive tweaks
   ------------------------------------------------------------ */

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1.25rem;
  }
  
  /* header adjustments */
  .site-header-bar {
    padding: 1.5rem 1rem 1.5rem 1rem;
  }
  
  /* hide the suit rails on mobile */
  .header-rail,
  .footer-rail {
    display: none;
  }
  
  .site-header-bar__inner {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .site-title {
    font-size: 1.35rem;
  }
  
  .site-header-bar__nav {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  .site-header-bar__link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .theme-toggle {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* welcome hero */
  .welcome-hero {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
    gap: 1.5rem;
  }
  
  .welcome-hero__title {
    font-size: 2rem;
  }
  
  .welcome-hero__subtitle {
    font-size: 1.1rem;
  }
  
  .welcome-hero__decoration {
    justify-content: center;
  }
  
  .welcome-hero__suit {
    font-size: 2.25rem;
  }
  
  /* stats bar */
  .stats-bar {
    gap: 1rem;
    padding: 1.25rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .stat-item {
    min-width: 70px;
  }
  
  .stat-item__number {
    font-size: 1.6rem;
  }
  
  .stat-item__label {
    font-size: 0.65rem;
  }
  
  .stat-item__divider {
    display: none;
  }
  
  /* quote section */
  .quote-section {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .quote-section__text {
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    line-height: 1.5;
  }
  
  .quote-section__text::before,
  .quote-section__text::after {
    font-size: 2rem;
  }
  
  .quote-section__text::before {
    top: -0.5rem;
    left: -0.25rem;
  }
  
  .quote-section__text::after {
    bottom: -0.75rem;
    right: -0.25rem;
  }
  
  /* recent updates */
  .recent-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  
  .recent-item__info {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .recent-item__story {
    font-size: 1rem;
  }
  
  .recent-item__chapter {
    font-size: 0.9rem;
  }
  
  .recent-item__date {
    align-self: flex-end;
    margin-top: 0.25rem;
  }
  
  /* story cards */
  .story-card {
    flex-direction: column-reverse;
  }
  
  .story-card__cover {
    width: 100%;
    height: 160px;
    min-width: unset;
    margin: 0;
    border-radius: 12px 12px 0 0;
  }
  
  .story-card__cover::after {
    background: linear-gradient(
      0deg,
      var(--bg-card) 0%,
      transparent 50%
    );
  }
  
  .story-card__content {
    padding: 1.25rem 1.5rem;
  }
  
  .story-card__title {
    font-size: 1.25rem;
  }
  
  .story-card__summary {
    font-size: 1rem;
  }
  
  /* story header */
  .story-header {
    padding: 1.75rem 1.5rem;
  }
  
  .story-header__title {
    font-size: 1.85rem;
  }
  
  .story-header__title::before {
    content: "♠";
    margin-right: 0.25rem;
  }
  
  .story-header__summary {
    font-size: 1.05rem;
  }
  
  /* chapter list */
  .chapter-link {
    padding: 1rem 1.25rem;
  }
  
  .chapter-link__info {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .chapter-link__number {
    font-size: 0.95rem;
  }
  
  .chapter-link__title {
    font-size: 0.9rem;
  }
  
  .chapter-link__suit {
    font-size: 0.7rem;
  }
  
  /* chapter page title */
  .chapter-page__title {
    font-size: 1.6rem;
    padding-bottom: 1.5rem;
  }
  
  .chapter-page__title::after {
    font-size: 0.7rem;
    letter-spacing: 0.3rem;
  }
  
  .chapter-page__title::before {
    width: 200px;
  }
  
  /* chapter navigation */
  .chapter-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .chapter-nav__link {
    min-width: unset;
    width: 100%;
  }
  
  .chapter-nav__link--prev,
  .chapter-nav__link--next {
    align-items: center;
    text-align: center;
  }
  
  /* reading view */
  .story-content {
    font-size: 11pt;
    line-height: 1.8;
  }
  
  /* footer */
  .site-footer {
    padding: 2rem 1.25rem;
  }
  
  .site-footer__suits {
    gap: 1.25rem;
  }
  
  .site-footer__suits span {
    font-size: 1.75rem;
  }
  
  .site-footer__tagline {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .site-footer__nav {
    gap: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .site-footer__copy {
    font-size: 0.75rem;
    padding: 0 1rem;
  }
  
  /* breadcrumb */
  .nav-breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  /* login */
  .login-box {
    padding: 2.5rem 1.75rem 2.5rem 1.75rem;
    max-width: 340px;
    margin: 0 1rem;
  }
  
  .login-icon {
    font-size: 3rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .login-button::before,
  .login-button::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.25rem 1rem;
  }
  
  .site-title::before,
  .site-title::after {
    display: none;
  }
  
  .site-title {
    font-size: 1.15rem;
  }
  
  .welcome-hero {
    padding: 1.5rem 1.25rem;
  }
  
  .welcome-hero__greeting {
    font-size: 0.75rem;
  }
  
  .welcome-hero__title {
    font-size: 1.65rem;
  }
  
  .welcome-hero__subtitle {
    font-size: 1rem;
  }
  
  .welcome-hero__suit {
    font-size: 1.75rem;
  }
  
  .stats-bar {
    gap: 1rem;
    padding: 1rem 0.75rem;
  }
  
  .stat-item__number {
    font-size: 1.5rem;
  }
  
  .stat-item__label {
    font-size: 0.65rem;
  }
  
  .quote-section {
    padding: 2rem 1rem;
  }
  
  .quote-section__text {
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
  }
  
  .quote-section__text::before,
  .quote-section__text::after {
    font-size: 2rem;
  }
  
  .recent-item__info {
    gap: 0.3rem;
  }
  
  .recent-item__arrow {
    display: none;
  }
  
  .recent-item__chapter {
    display: block;
    width: 100%;
  }
  
  .story-card__cover {
    height: 140px;
  }
  
  .story-card__content {
    padding: 1rem 1.25rem;
  }
  
  .story-card__title {
    font-size: 1.1rem;
  }
  
  .story-card__summary {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .story-card__meta {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .status {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }
  
  .story-header {
    padding: 1.5rem 1.25rem;
  }
  
  .story-header__title {
    font-size: 1.5rem;
  }
  
  .story-header__summary {
    font-size: 1rem;
  }
  
  .chapter-link {
    padding: 0.9rem 1rem;
  }
  
  .chapter-link__number {
    font-size: 0.9rem;
  }
  
  .chapter-link__arrow {
    display: none;
  }
  
  .chapter-link__title {
    font-size: 0.85rem;
  }
  
  .chapter-page__title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  
  .chapter-page__title::after {
    content: "♠ ♦ ♥ ♣";
    font-size: 0.65rem;
    letter-spacing: 0.25rem;
  }
  
  .chapter-page__title::before {
    width: 160px;
  }
  
  .story-content {
    font-size: 10.5pt;
    line-height: 1.75;
  }
  
  .story-content hr::before {
    letter-spacing: 0.3rem;
  }
  
  .chapter-nav__link {
    padding: 1rem;
  }
  
  .site-footer__suits span {
    font-size: 1.5rem;
  }
  
  .site-footer__tagline {
    font-size: 0.95rem;
  }
  
  .site-footer__nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-footer__sep {
    display: none;
  }
  
  .login-box {
    padding: 2rem 1.5rem;
    margin: 0 0.75rem;
  }
  
  .login-box::after {
    font-size: 0.75rem;
    letter-spacing: 0.35rem;
  }
  
  .login-icon {
    font-size: 2.5rem;
  }
  
  .login-title {
    font-size: 1.35rem;
  }
  
  .login-subtitle {
    font-size: 1rem;
  }
  
  .login-input {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
  
  .login-button {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
}
