/* ============================================================
   featherScroll — blog.css
   Editorial dark theme for category pages
   White/cream theme for article pages
   ============================================================ */

:root {
  --cream: #f5f0e8;
  --green-deep: #1a3a2a;
  --green-mid: #3d7a52;
  --green-mist: #a8c5b0;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --text-dark: #1a2e1a;
  --text-mid: #3a5a3a;
  --text-muted: #6a8a6a;
  --border: #dde8dd;
  --bg-page: #f7fbf7;
  --bg-card: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-content: 740px;
  --max-wide: 1100px;

  /* category accents */
  --accent-wild: #d86a79;
  --accent-know: #6b9fff;
  --accent-whatif: #e8c97a;
  --accent-onthisday: #2dd4bf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== EDITORIAL PAGES (category list pages) ===== */
body.cat-wild,
body.cat-knowledge,
body.cat-whatif,
body.cat-onthisday {
  background: #0a0a0a;
  color: #f5f0e8;
  line-height: 1.7;
}
/* ── Editorial Header ── */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.ed-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f0e8;
  letter-spacing: 0.03em;
}

.ed-brand-name span {
  color: #e8c97a;
}

.ed-back-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.5);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.ed-back-btn:hover {
  color: #f5f0e8;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Editorial Hero ── */
.ed-hero {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.ed-hero-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cat-wild .ed-hero-kicker {
  color: var(--accent-wild);
}
.cat-knowledge .ed-hero-kicker {
  color: var(--accent-know);
}
.cat-whatif .ed-hero-kicker {
  color: var(--accent-whatif);
}
.cat-onthisday .ed-hero-kicker {
  color: var(--accent-onthisday);
}

.ed-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.ed-hero-title em {
  font-style: italic;
}

.cat-wild .ed-hero-title em {
  color: var(--accent-wild);
}
.cat-knowledge .ed-hero-title em {
  color: var(--accent-know);
}
.cat-whatif .ed-hero-title em {
  color: var(--accent-whatif);
}
.cat-onthisday .ed-hero-title em {
  color: var(--accent-onthisday);
}

.ed-hero-desc {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.55);
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ed-hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(245 240 232 / 31%);
}

/* ── Editorial Main ── */
.ed-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.ed-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cat-wild .ed-section-label {
  color: var(--accent-wild);
}
.cat-knowledge .ed-section-label {
  color: var(--accent-know);
}
.cat-whatif .ed-section-label {
  color: var(--accent-whatif);
}
.cat-onthisday .ed-section-label {
  color: var(--accent-onthisday);
}

.ed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-section-count {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Featured Card ── */
.ed-featured-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
}

.ed-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ed-featured-visual {
  padding: 3rem;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.ed-featured-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.ed-featured-visual-inner {
  position: relative;
  z-index: 1;
  border-left: 3px solid;
  padding-left: 1.5rem;
}

.ed-featured-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 0.75rem;
}

.ed-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.ed-featured-teaser {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.55;
  font-weight: 300;
  max-width: 54ch;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.ed-featured-read {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Grid Cards ── */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ed-grid-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
  cursor: pointer;
  border-top: 2px solid var(--card-accent, rgba(255, 255, 255, 0.1));
}

.ed-grid-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.ed-grid-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.ed-grid-card-date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}

.ed-grid-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f5f0e8;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.ed-grid-card-teaser {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.45);
  line-height: 1.5;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.ed-grid-card-read {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--card-accent, rgba(245, 240, 232, 0.4));
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ── Editorial Footer ── */
.ed-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 1.5rem;
}

.ed-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.ed-footer-inner p {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.2);
  font-weight: 300;
}

.ed-footer-links {
  display: flex;
  gap: 1.5rem;
}

.ed-footer-links a {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
  transition: color 0.2s;
}

.ed-footer-links a:hover {
  color: rgba(245, 240, 232, 0.6);
}

/* ===== ARTICLE PAGES — dark redesign ===== */
body.article-page {
  background: #0d0d0e;
  color: #e8e8ec;
  line-height: 1.75;
}

/* ── Header ── */
.fs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 14, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fs-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fs-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  object-fit: cover;
}

.fs-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5f0e8;
  letter-spacing: 0.03em;
}

.fs-brand-name span {
  color: #e8c97a;
}

.fs-back-btn,
button.fs-back-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.5);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.fs-back-btn:hover,
button.fs-back-btn:hover {
  color: #e8c97a;
  border-color: rgba(201, 168, 76, 0.4);
}

/* ── Main layout ── */
.fs-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.fs-article {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-top: 3rem;
}

/* ── Article header ── */
.fs-article-header {
  margin-bottom: 0;
}

.fs-article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.fs-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.fs-article-hook {
  font-size: 1.05rem;
  color: #e8c97a;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.fs-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.3);
}

.fs-article-brand {
  font-weight: 600;
  color: rgba(45, 212, 191, 0.7);
}

/* ── Divider ── */
.fs-article-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(201, 168, 76, 0.6),
    rgba(201, 168, 76, 0.05)
  );
  border-radius: 99px;
  margin: 2rem 0;
}

/* ── Body ── */
.fs-article-body {
  font-size: 1.05rem;
  color: rgba(232, 232, 236, 0.85);
  line-height: 1.85;
}

.fs-article-body p {
  margin-bottom: 1.4rem;
}

.fs-article-body p:last-child {
  margin-bottom: 0;
}

.fs-article-body strong {
  font-weight: 600;
  color: #f5f0e8;
}

/* ── Sections ── */
.fs-section {
  margin-bottom: 2.5rem;
}

.fs-section-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #f5f0e8;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
  padding-left: 1rem;
  border-left: 3px solid #2dd4bf;
}

/* ── Back button ── */
.fs-article-back,
button.fs-article-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
  padding: 0;
  text-decoration: none;
}

.fs-article-back:hover,
button.fs-article-back:hover {
  color: #e8c97a;
}

/* ── Footer ── */
.fs-footer {
  background: #080809;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
}

.fs-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.fs-footer-inner p {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.2);
  font-weight: 300;
}

.fs-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.fs-footer-links a {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
  transition: color 0.2s;
}

.fs-footer-links a:hover {
  color: #e8c97a;
}

/* ── Article responsive ── */
@media (max-width: 640px) {
  .fs-header-inner {
    padding: 0 1rem;
  }
  .fs-main {
    padding: 0 1rem 3rem;
  }
  .fs-article {
    padding-top: 2rem;
  }
  .fs-article-body {
    font-size: 1rem;
  }
  .fs-section-heading {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .fs-article-body {
    font-size: 1.1rem;
  }
}

.fs-article-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #e8c97a;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
  padding-left: 1rem;
  border-left: 3px solid #2dd4bf;
}
