/* ============================================
   ΠΑΡΑΜΥΘΟΥΠΟΛΗ — Shared Styles
   ============================================ */

:root{
  --night: #14202c;
  --night-deep: #0a1118;
  --ember: #e3a248;
  --ember-bright: #f0bc6a;
  --cream: #f4ecdc;
  --rust: #8a3e3e;
  --slate: #5c7a89;
  --line: rgba(244,236,220,0.12);
  --paper: #faf6ee;
  --ink: #2a2018;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: 'Newsreader', serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

h1, h2, h3, .display{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ NAV ============ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,17,24,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo{
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-logo img{ width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.nav-links{
  display: flex;
  gap: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a{
  text-decoration: none;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover{ opacity: 1; }
.back-link{
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(244,236,220,0.7);
}
.back-link:hover{ color: var(--ember-bright); }

/* ============ BUTTONS ============ */
.btn{
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  transition: transform 0.15s, background 0.2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-primary{ background: var(--ember); color: var(--night-deep); }
.btn-primary:hover{ background: var(--ember-bright); transform: translateY(-1px); }
.btn-ghost{ border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover{ border-color: var(--ember); transform: translateY(-1px); }

/* ============ FOOTER ============ */
footer{
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--night-deep);
}
.footer-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}

/* ============ STORY PAGE TEMPLATE ============ */
.story-header{
  padding: 76px 0 52px;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 380px at 50% 100%, rgba(227,162,72,0.2), transparent 70%),
    var(--night);
}
.story-header .eyebrow{ display: block; margin-bottom: 16px; }
.story-origin{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--slate);
  margin: 0 0 22px;
}
.story-header h1{
  font-size: clamp(32px, 5.2vw, 50px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.story-tagline{
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(244,236,220,0.6);
  max-width: 460px;
  margin: 0 auto;
}
.actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cover-figure{ margin: 0 0 8px; }
.cover-img{
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, #1f2e3d, #0e161f);
}
.cover-img img{ width: 100%; height: 100%; object-fit: cover; }
figcaption{
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--slate);
  text-align: center;
  margin-top: 10px;
}

.story-content{
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  margin: 44px 0 0;
  padding: 54px 62px 60px;
}
.story-content h2{
  font-size: 23px;
  color: var(--rust);
  margin: 42px 0 16px;
}
.story-content h2:first-child{ margin-top: 0; }
.story-content p{
  font-size: 19px;
  line-height: 1.75;
  margin: 0 0 22px;
}
.story-content p:last-child{ margin-bottom: 0; }
.dropcap::first-letter{
  font-family: 'Fraunces', serif;
  font-size: 62px;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 4px 10px 0 0;
  color: var(--rust);
}
.inline-figure{ margin: 34px -6px; }
.inline-figure .cover-img{ aspect-ratio: 4/3; }

.moral-box{
  margin-top: 38px;
  padding: 24px 26px;
  background: rgba(138,62,62,0.06);
  border-left: 3px solid var(--rust);
  border-radius: 0 6px 6px 0;
}
.moral-box .eyebrow{ color: var(--rust); display: block; margin-bottom: 8px; }
.moral-box p{ font-size: 17px; margin: 0; font-style: italic; }

.discussion-box{
  margin-top: 32px;
  padding: 24px 26px;
  background: rgba(92,122,137,0.08);
  border-left: 3px solid var(--slate);
  border-radius: 0 6px 6px 0;
}
.discussion-box .eyebrow{ color: var(--slate); display: block; margin-bottom: 10px; }
.discussion-box ul{ margin: 0; padding-left: 20px; }
.discussion-box li{ font-size: 16px; margin-bottom: 10px; }
.discussion-box li:last-child{ margin-bottom: 0; }

.download-strip{
  margin: 44px 0 90px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.download-strip h3{ font-size: 17px; margin-bottom: 4px; }
.download-strip p{
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(244,236,220,0.55);
  margin: 0;
}
.download-buttons{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Floral footer divider used at end of each tale */
.flower-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 0;
}
.flower-divider img{
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.85;
  border: 2px solid var(--line);
}
.flower-divider .stem{
  width: 60px;
  height: 1px;
  background: var(--line);
}

@media (max-width: 600px){
  .story-content{ padding: 34px 22px 42px; }
  .story-content p{ font-size: 17px; }
  .download-strip{ flex-direction: column; align-items: flex-start; }
  .nav-links{ display: none; }
}
