/* story.css — page-specific styles. Shared foundation lives in base.css,
   which must be loaded BEFORE this file. */

/* ---------- article wrapper ---------- */
  .article-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 640px) { .article-wrap { padding: 0 20px; }
  }

  /* ---------- article header ---------- */
  .article-header {
    padding: 160px 0 56px;
    text-align: center;
  }
  .article-header .back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none;
    margin-bottom: 32px;
  }
  .article-header .back-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
  .article-header .back-link:hover svg { transform: translateX(-4px); }

  .article-header .tag {
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--blue); font-weight: 600;
    background: rgba(0, 98, 65, 0.08); padding: 5px 12px; border-radius: 6px;
    display: inline-block; margin-bottom: 24px;
  }

  .article-header h1 {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: clamp(28px, 4vw, 44px); line-height: 1.2;
  }

  .article-header .meta {
    margin-top: 20px; color: var(--ink-soft); font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
  }
  .article-header .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }

  /* ---------- article body (Brian Dean style) ---------- */
  .article-body {
    padding-bottom: 80px;
  }

  .article-body h2 {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3;
    margin: 56px 0 20px; color: var(--ink);
    padding-top: 16px;
  }

  .article-body h3 {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35;
    margin: 40px 0 16px; color: var(--ink);
  }

  .article-body p {
    font-size: 17px; line-height: 1.85; color: var(--ink-soft);
    margin-bottom: 24px;
  }

  .article-body p strong { color: var(--ink); font-weight: 600; }

  .article-body ul, .article-body ol {
    margin: 0 0 24px 24px; color: var(--ink-soft);
    font-size: 17px; line-height: 1.85;
  }
  .article-body li { margin-bottom: 8px; }
  .article-body li strong { color: var(--ink); font-weight: 600; }

  .article-body blockquote {
    border-left: 3px solid var(--blue);
    padding: 16px 0 16px 28px;
    margin: 36px 0;
    font-size: 18px; line-height: 1.75;
    font-style: italic; color: var(--ink);
    background: rgba(0, 98, 65, 0.03);
    border-radius: 0 8px 8px 0;
  }

  .article-body .callout {
    background: rgba(0, 98, 65, 0.05);
    border: 1px solid rgba(0, 98, 65, 0.12);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 40px 0;
  }
  .article-body .callout p { margin-bottom: 0; font-size: 16px; }
  .article-body .callout p strong { color: var(--blue); }

  .article-body img {
    width: 100%; border-radius: 10px; margin: 36px 0;
    border: 1px solid var(--rule);
  }

  .article-body a {
    color: var(--blue); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-color: rgba(0, 98, 65, 0.3);
    transition: text-decoration-color 0.2s;
  }
  .article-body a:hover { text-decoration-color: var(--blue); }

  .article-body hr {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule), transparent);
    margin: 56px 0;
  }

  /* ---------- key results box ---------- */
  .results-box {
    background: var(--blue-deep);
    color: #fff;
    border-radius: 14px;
    padding: 36px 40px;
    margin: 40px 0;
  }
  .results-box h3 {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 18px; margin: 0 0 20px; color: #fff;
    opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .results-box ul { list-style: none; margin: 0; padding: 0; }
  .results-box li {
    font-size: 17px; line-height: 1.7; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
  }
  .results-box li:last-child { border-bottom: none; }
  .results-box li strong { color: #fff; font-weight: 700; }

  /* ---------- author bio ---------- */
  .author-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--rule);
    overflow: hidden;
    margin: 64px 0 80px;
    box-shadow: 0 12px 32px -12px rgba(0,0,0,0.05);
  }
  .author-cover {
    width: 100%;
    height: 140px;
    background: var(--blue);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 28px;
  }
  .author-cover .cover-text {
    position: relative;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 900;
    transform: rotate(-4deg);
  }
  .author-cover .hand-circle {
    position: absolute;
    top: 50%; left: 50%;
    width: 180%; height: 240%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
  }
  .author-bio {
    position: relative;
    padding: 0 32px 40px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  }
  .author-avatar {
    width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    border: 4px solid #fff; flex-shrink: 0;
    margin-top: -60px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .author-info { flex: 1; }
  .author-info .written-by {
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); opacity: 0.7; margin-bottom: 6px;
  }
  .author-info .author-name {
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 20px;
    margin-bottom: 12px;
  }
  .author-info .author-desc {
    font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 520px; margin: 0 auto; text-align: left;
  }
  .author-info .author-links {
    margin-top: 24px; display: flex; gap: 16px; justify-content: center;
  }
  .author-info .author-links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none;
  }
  .author-info .author-links a svg { width: 16px; height: 16px; }
  .author-info .author-links a:hover { text-decoration: underline; }

  @media (max-width: 640px) {
    .author-info .author-desc { max-width: 100%; }
  }

  /* ---------- next story ---------- */
  .next-story {
    padding: 56px 0 80px;
  }
  .next-story .label {
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); opacity: 0.7; margin-bottom: 12px;
  }
  .next-story a {
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 22px;
    text-decoration: none; color: var(--ink);
    display: inline-flex; align-items: center; gap: 10px;
    transition: color 0.2s;
  }
  .next-story a:hover { color: var(--blue); }
  .next-story a svg { width: 20px; height: 20px; transition: transform 0.2s; }
  .next-story a:hover svg { transform: translateX(4px); }

  /* ---------- footer ---------- */
  .foot-section {
    padding: 40px 0 60px;
    text-align: center;
  }
  .foot-section p { color: var(--ink-soft); font-size: 14px; }
  .foot-section a { color: var(--blue); text-decoration: none; font-weight: 600; }
  .foot-section a:hover { text-decoration: underline; }
