/* Wonderfully Wild Facts — simple starter site
   Brand: deep green + gold + cream (matches the channel seal and fact cards).
   Built for readability: large, bold, high-contrast type; phone first. */

:root {
  --green-dark: #00361e;
  --green: #035430;
  --gold: #c9a227;
  --gold-dark: #7a5c00;
  --cream: #fffaf0;
  --paper: #fffdf7;
  --ink: #1d2419;
  --muted: #4c5546;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  border-bottom: 5px solid var(--gold);
}
.site-header .seal { width: 104px; height: 104px; }
.site-header .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.15rem;
  color: #fdf3d0;
}
.site-header .tagline {
  margin: 0;
  font-size: 1.05rem;
  color: #e9dfba;
}
.site-header a { text-decoration: none; }

.site-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}
.site-nav a {
  color: #fdf3d0;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 2.5rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  line-height: 1.25;
}
h1 { font-size: 2.15rem; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

p { margin: 0 0 1.1rem; }
a { color: var(--green); font-weight: 600; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lede { font-size: 1.25rem; }

.meta-line {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.meta-line a { color: var(--gold-dark); }

/* ---------- Cards ---------- */
.card {
  display: block;
  background: var(--paper);
  border: 1px solid #e3d9bd;
  border-top: 5px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 54, 30, 0.08);
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card .card-body { display: block; padding: 1.25rem 1.3rem 1.35rem; }
@media (min-width: 40rem) { .card .card-body { padding: 1.5rem 1.6rem 1.6rem; } }
.card h3 { color: var(--green-dark); }
.card p { margin: 0 0 0.4rem; font-weight: 400; }
.card .card-cat {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-grid { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  display: block;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  border-bottom: 5px solid var(--gold);
}
.cat-card h3 { color: #fdf3d0; margin-bottom: 0.25rem; }
.cat-card p { margin: 0; color: #e9dfba; font-weight: 400; }

/* ---------- Article ---------- */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0 0 1.25rem;
}
.wonder {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin: 1.5rem 0;
}
.sources {
  background: #f4ecd4;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-top: 2rem;
  font-size: 1rem;
}
.sources h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.sources ul { margin: 0; padding-left: 1.2rem; }
.sources li { margin-bottom: 0.35rem; }

.more-links { margin-top: 2rem; }
.more-links a { display: inline-block; margin: 0 1rem 0.5rem 0; }

/* ---------- Video embed (vertical Shorts) ---------- */
.video-embed { margin: 1.5rem 0; }
.video-embed .watch-label {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--green);
}
.embed-frame {
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-dark);
  box-shadow: 0 4px 14px rgba(0, 54, 30, 0.25);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #e9dfba;
  border-top: 5px solid var(--gold);
  padding: 2rem 1rem 2.25rem;
  text-align: center;
}
.site-footer .seal { width: 72px; height: 72px; }
.site-footer .brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fdf3d0;
  margin: 0.5rem 0;
}
.site-footer a { color: #fdf3d0; }
.site-footer .social { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0 1rem; }
.site-footer p { max-width: 40rem; margin: 0.5rem auto; font-size: 1rem; }

/* ---------- Share row ---------- */
.share-row {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid #e3d9bd;
  border-top: 5px solid var(--gold);
  border-radius: 10px;
}
.share-label {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 0 0 0.6rem;
}
.share-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-links a, .share-copy {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--green);
  color: #fdf3d0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}
.share-links a:hover, .share-copy:hover { background: var(--green-dark); }
