/* AJZ Storybook — Minimal theme inspired by Ghost blogs.
   Typography-first, roomy whitespace, and simple cards. */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --accent: #0f766e; /* teal-700 */
  --card: #fafafa;
  --border: #e5e5e5;
  --maxw: 800px;
}
@media (prefers-color-scheme: dark) {
  :root{
    --bg: #0b0b0c;
    --text: #e8e8ea;
    --muted: #a3a3a3;
    --accent:#2dd4bf;
    --card: #121214;
    --border: #242428;
  }
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:ui-serif, Georgia, 'Times New Roman', Times, serif;line-height:1.65}
a{color:var(--text);text-decoration:none}
a:hover{color:var(--accent)}
.container{max-width:var(--maxw);margin:0 auto;padding:0 16px}
.header{border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:40px;height:40px;border-radius:999px;background:var(--accent);opacity:.9}
.title{font-weight:800;font-size:20px;letter-spacing:.2px}
.tagline{color:var(--muted);font-size:14px;margin-top:-6px}
.menu{display:flex;gap:16px;align-items:center}
.menu a{font-size:14px;color:var(--muted)}
.menu a.active{color:var(--text);font-weight:600}
.hero{padding:36px 0 8px 0}
.hero h1{font-size:40px;margin:0;font-weight:700;letter-spacing:0.2px;line-height:1.1}
.hero p{margin:8px 0 0 0;color:var(--muted)}
.grid{display:grid;gap:24px;margin:28px 0 64px 0}
.card{background:var(--card);padding:20px;border:1px solid var(--border);border-radius:14px;transition:transform .08s ease}
.card:hover{transform:translateY(-2px)}

/* Make the hero area a card so it visually matches other cards */
.hero-card {
  padding: 24px; /* slightly more breathing room */
  display: block;
}

.word-cloud-wrap{margin-top:12px}
.word-cloud{padding:8px}
.meta{color:var(--muted);font-size:12px}
.card h2{margin:8px 0 6px 0;font-size:22px;font-weight:700;letter-spacing:0.2px;line-height:1.15}
.footer{border-top:1px solid var(--border);padding:24px 0;color:var(--muted);font-size:14px}
.prose{font-size:18px}
.prose h1,.prose h2,.prose h3{line-height:1.25}
.prose h1{font-size:40px;margin:10px 0 8px 0}
.prose h2{font-size:28px;margin:28px 0 8px 0}
.prose h3{font-size:22px;margin:20px 0 6px 0}
.prose p{margin:12px 0}
.prose img{width:100%;border-radius:14px;border:1px solid var(--border);background:var(--card)}
.prose blockquote{margin:16px 0;padding:8px 16px;border-left:3px solid var(--accent);color:var(--muted);background:var(--card);border-radius:8px}
.kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.byline{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:14px}
hr{border:none;border-top:1px solid var(--border);margin:24px 0}
.badge{display:inline-block;font-size:12px;padding:2px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted)}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;border:1px solid var(--border);background:var(--card);font-size:14px}
figure{margin:0}
figcaption{color:var(--muted);font-size:12px;margin-top:6px}
/* Thought of the Day */
.thought-of-day {
  margin: 20px 0 32px 0;
  padding: 0;
}

.thought-content {
  /* Match visual style of other .card elements */
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 14px; /* same as .card */
  padding: 20px; /* align with .card spacing */
  position: relative;
  transition: transform .08s ease; /* allow subtle lift like other cards */
}

.thought-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.thought-content blockquote {
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.thought-content:hover{transform:translateY(-2px)}

.thought-meta {
  margin-top: 8px;
}

.thought-meta small {
  color: var(--muted);
  font-size: 12px;
}

.thought-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.thought-meta a:hover {
  text-decoration: underline;
}

/* Dr. Jane Goodall Tribute Section */
.tribute-section {
  margin: 48px 0;
  padding: 40px;
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tribute-header {
  text-align: center;
  margin-bottom: 40px;
}

.tribute-header h2 {
  font-size: 32px;
  margin: 8px 0 16px 0;
  color: var(--text);
}

.tribute-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tribute-content {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.tribute-life,
.tribute-quotes,
.tribute-legacy {
  background: var(--bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.tribute-content h3 {
  font-size: 22px;
  margin: 0 0 16px 0;
  color: var(--accent);
  font-weight: 700;
}

.tribute-content p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  color: var(--text);
}

.featured-quote {
  font-size: 24px;
  font-style: italic;
  text-align: center;
  margin: 24px 0;
  padding: 24px;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
}

.quote-collection {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.mini-quote {
  padding: 16px;
  background: var(--card);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.mini-quote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
  font-size: 16px;
}

.tribute-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tribute-link {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
}

.tribute-link:hover {
  background: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .tribute-section {
    padding: 24px;
    margin: 32px 0;
  }
  
  .tribute-header h2 {
    font-size: 28px;
  }
  
  .tribute-intro {
    font-size: 16px;
  }
  
  .featured-quote {
    font-size: 20px;
    padding: 20px;
  }
  
  .tribute-links {
    justify-content: center;
  }
}

@media (max-width: 640px){
  .hero h1{font-size:32px}
  
  .thought-content {
    padding: 20px;
  }
  
  .thought-content blockquote {
    font-size: 16px;
  }
  
  .tribute-section {
    padding: 20px;
  }
  
  .tribute-content {
    gap: 24px;
  }
  
  .tribute-life,
  .tribute-quotes,
  .tribute-legacy {
    padding: 20px;
  }
}

/* Learning Resources for Science Articles */
.learning-resources {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.resource-link {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.resource-link:hover {
  background: var(--text);
  transform: translateY(-1px);
  color: white;
}

.resource-link.video {
  background: #ef4444; /* red for videos */
}

.resource-link.image {
  background: #8b5cf6; /* purple for images */
}

.fun-facts {
  margin-top: 12px;
}

.fun-facts h4 {
  font-size: 14px;
  margin: 0 0 8px 0;
  color: var(--accent);
}

.fun-facts ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}

.fun-facts li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.fun-facts strong {
  color: var(--text);
}

/* Ensure all article images are the same size */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 12px;
}

/* Wide sunset photo under Today's Reflection */
.wide-sunset {
  /* width: 100%;
  height: 30vh; /* Wide landscape view 
   object-fit: cover;
  object-position: center 40%; /* Shows interesting middle portion 
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 20px;
  display: block; 
   */

  width: 100%;
  height: 30vh;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 20px;
  display: block;
}

/* Word cloud styles */
.word-cloud-wrap {
  margin-top: 18px;
  text-align: center;
  position: relative;
}

.word-cloud {
  display: inline-block;
  max-width: 760px;
  width: 100%;
  padding: 12px;
  line-height: 1;
  word-wrap: break-word;
}

.word-cloud .cloud-word {
  display: inline-block;
  margin: 6px 8px;
  padding: 2px 4px;
  vertical-align: middle;
  transition: transform .18s ease, opacity .2s ease;
  transform-origin: center;
  cursor: default;
  user-select: none;
}

.word-cloud .cloud-word:hover{
  transform: scale(1.08) rotate(0deg);
  text-decoration: underline;
}

/* visually-hidden helper */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
/* end word cloud */