/* ── LISA KIRKMAN — SHARED STYLESHEET ── */

/* ── DESIGN TOKENS ── */
:root {
  --forest:  #032c24;
  --slate:   #376f7e;
  --stone:   #7e979c;
  --sky:     #a5d5e9;
  --mist:    #d3eaf8;
  --paper:   #f5f0e8;
  --ink:     #1a1a18;
  --cream:   #ede8dc;
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

/* ── STORY HEADER ── */
.story-header {
  background: var(--slate);
  padding: 28px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.story-header::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 120px;
  background: var(--slate);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 1;
}

.header-home {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--mist);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}

.header-home:hover { color: var(--sky); }

.header-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  position: relative;
  z-index: 2;
}

/* ── STORY HERO ── */
.story-hero {
  background: var(--cream);
  padding: 28px 80px 48px;
  border-bottom: 1px solid var(--mist);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.story-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.story-hero-inner {
  display: block;
  margin-top: 0;
}

.story-title-block { max-width: 100%; }

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 16px;
  margin-top: 0;
}

.story-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 70vw;
}

.story-byline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-byline::before {
  content: 'By';
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* Optional image — floated right at top of story body */
.story-hero-image {
  float: right;
  width: min(250px, 40vw);
  margin: 0 0 24px 32px;
  position: relative;
}

.story-hero-image img {
  width: 100%;
  border-radius: 2px;
  display: block;
  box-shadow: 0 8px 32px rgba(3,44,36,0.2);
}

.story-hero-inner::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 600px) {
  .story-hero-image {
    float: none;
    width: min(250px, 100%);
    margin: 0 auto 24px;
    display: block;
  }
}

/* ── STORY BODY ── */
.story-body {
  max-width: 80%;
  margin: 0 auto;
  padding: 56px 40px 80px;
  overflow: visible;
}

/* Pull quotes — float right, straddle column into margin */
.story-pullquote {
  float: right;
  clear: right;
  width: 38%;
  margin: 8px -80px 24px 28px;
  border-top: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  padding: 18px 60px 18px 0;
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--slate);
  line-height: 1.35;
  text-indent: 0;
}

/* Arrow detail bleeding into the margin */
.story-pullquote::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: var(--sky);
}

@media (max-width: 900px) {
  .story-pullquote {
    float: none;
    width: 100%;
    margin: 32px 0;
    padding: 18px 0;
    text-align: center;
  }
  .story-pullquote::after { display: none; }
}

/* Buy button */
.story-buy-btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  background: var(--forest);
  text-decoration: none;
  padding: 5px 12px;
  transition: background 0.2s;
}

.story-buy-btn:hover { background: var(--slate); }

/* Epigraph */
.story-epigraph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.575rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  border-left: 2px solid var(--sky);
  padding-left: 20px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.story-epigraph cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* Body paragraphs */
.story-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.9;
  color: #2e2e28;
  margin-bottom: 1.36em;
  text-indent: 2em;
}

.story-body p:first-of-type {
  text-indent: 0;
}

.story-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--forest);
  float: left;
  line-height: 0.78;
  margin-right: 8px;
  margin-top: 8px;
}

/* ── STORY FOOTER ── */
.story-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}

.story-end-rule {
  flex: 1;
  height: 1px;
  background: var(--mist);
}

.story-end-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--stone);
  font-style: italic;
}

/* ── BOTTOM NAV ── */
.story-bottom-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-nav-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.story-nav-btn:hover { color: var(--forest); }

.story-nav-btn::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s;
}

.story-nav-btn.back-top::before { display: none; }
.story-nav-btn.back-top::after {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s;
}

.story-nav-btn:hover::before,
.story-nav-btn:hover::after { width: 32px; }

/* ── FLOATING BACK TO TOP ── */
.float-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  background: var(--slate);
  color: var(--mist);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 100;
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-top:hover { background: var(--forest); }

@media (max-width: 560px) {
  .float-top { bottom: 20px; right: 20px; }
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  padding: 28px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.06em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .story-header { padding: 24px 40px; }
  .story-hero { padding: 48px 40px 36px; }
  .story-hero-inner { grid-template-columns: 1fr; }
  .story-hero-image { width: 160px; }
  .story-body { padding: 40px 24px 60px; }
  .story-bottom-nav { padding: 0 24px 48px; }
  footer { padding: 24px 40px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .story-header { padding: 20px 24px; }
  .story-hero { padding: 36px 24px 28px; }
}
