/* Externalized CSS from stories_index.shtml; site-specific style preserved. */
:root {
      --olive: #a3a375;
      --pine: #2d4434;
      --forest: #45624b;
      --cream: #f8f4e7;
      --paper: #fffdf6;
      --bronze: #ab7b46;
      --ink: #27342b;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--olive);
      color: var(--ink);
      font-family: Georgia, 'Times New Roman', serif;
    }
    a { color: #345744; }
    a:visited { color: #674b72; }
    a:hover { color: #8b4e32; }
    a:focus-visible { outline: 3px solid #8b4e32; outline-offset: 3px; }
    .page {
      max-width: 1400px;
      margin: 0 auto;
      padding: 22px 18px;
      display: grid;
      grid-template-columns: minmax(180px, 23%) minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }
    .sidebar {
      position: sticky;
      top: 18px;
      padding: 15px;
      border-radius: 12px;
      background: var(--cream);
      border: 1px solid rgba(45,68,52,.3);
      box-shadow: 0 4px 18px rgba(24,36,25,.1);
    }
    .sidebar-image { display: block; width: 100%; height: auto; margin-bottom: 16px; }
    .sidebar h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--pine); }
    nav a {
      display: block;
      padding: 9px 10px;
      margin-bottom: 4px;
      border-radius: 6px;
      text-decoration: none;
      font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
      font-size: .95rem;
      color: var(--pine);
    }
    nav a:visited { color: var(--pine); }
    nav a:hover { background: #e5e8d4; color: #233c2d; text-decoration: underline; }
    nav a[aria-current="page"] { background: var(--pine); color: #fff; font-weight: 700; }
    .content { min-width: 0; }
    .intro {
      padding: 24px 22px 28px;
      text-align: center;
      background: var(--cream);
      border-radius: 14px;
      border: 1px solid rgba(45,68,52,.3);
      box-shadow: 0 4px 18px rgba(24,36,25,.1);
    }
    .intro h1 { color: var(--pine); font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 14px; }
    .header-image { width: min(100%, 480px); height: auto; display: block; margin: 0 auto; }
    .section-heading {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 28px 0 18px;
      color: var(--pine);
      font-size: 1.4rem;
    }
    .section-heading::after { content: ''; height: 2px; flex: 1; background: rgba(45,68,52,.35); }
    .stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .story-card {
      min-width: 0;
      background: var(--paper);
      border: 1px solid rgba(45,68,52,.26);
      border-radius: 12px;
      box-shadow: 0 5px 16px rgba(24,36,25,.13);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform .16s ease, box-shadow .16s ease;
    }
    .story-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(24,36,25,.2); }
    .cover-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 230px;
      padding: 12px;
      background: #e4e4d7;
      border-bottom: 4px solid var(--bronze);
    }
    .cover-wrap img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
    .card-content { display: flex; flex-direction: column; flex: 1; padding: 18px; }
    .card-content h3 { margin: 0 0 8px; color: var(--pine); font-size: 1.3rem; }
    .card-content p { margin: 0 0 18px; line-height: 1.45; color: #5d6158; font-size: .95rem; }
    .story-link {
      display: inline-block;
      align-self: flex-start;
      margin-top: auto;
      background: var(--pine);
      color: #fff !important;
      padding: 10px 15px;
      border-radius: 7px;
      text-decoration: none;
      font: 600 .9rem system-ui, -apple-system, 'Segoe UI', sans-serif;
    }
    .story-link:hover { background: #4d674f; text-decoration: underline; }
    @media (max-width: 1050px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 700px) {
      .page { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 16px; }
      .sidebar { position: static; text-align: center; }
      .sidebar-image { max-width: 220px; margin: 0 auto 10px; }
      nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
      nav a { margin: 0; padding: 8px 10px; }
      .intro { padding: 20px 14px; }
    }
    @media (max-width: 520px) {
      .stories { grid-template-columns: minmax(0, 1fr); }
      .cover-wrap { height: 240px; }
    }
    @media (prefers-reduced-motion: reduce) { .story-card { transition: none; } }

/* Compatibility with site.css: retain the original Stories navigation. */
.sidebar nav a { font-weight: 400; }
.sidebar nav a:visited { color: var(--pine); }
.sidebar nav a:hover { background: #e5e8d4; color: #233c2d; text-decoration: underline; }
.sidebar nav a[aria-current="page"] { background: var(--pine); color: #fff; font-weight: 700; }
@media (max-width:700px) { .sidebar nav { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; } .sidebar nav a { margin:0; padding:8px 10px; } }
