/* Shared styles for the articles section (articles/index.html and every article page). */

:root {
  --bg: #f2f0eb;
  --bg-alt: #e8e4dc;
  --white: #fafaf7;
  --green-whisper: #e4ede8;
  --green-pale: #c8ddd2;
  --green-soft: #9ebfb0;
  --green-mid: #6a9e88;
  --green-deep: #3d7560;
  --green-dark: #234f3d;
  --green-ink: #152e24;
  --text: #1c2820;
  --text-mid: #3d4e42;
  --text-muted: #667869;
  --gold: #b89a6a;
  --gold-light: #d4bc94;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Outfit, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 300;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 1rem;
  display: block;
}

.fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.fade.in {
  opacity: 1;
  transform: none;
}

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3.5rem;
  background: rgba(242, 240, 235, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(106, 158, 136, 0.13);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav-logomark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.nav-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--green-ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav-sub {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-top: 3px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-back {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-back:hover {
  color: var(--green-dark);
}
.nav-book {
  background: var(--green-dark);
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  transition: background 0.2s;
}
.nav-book:hover {
  background: var(--green-deep);
}

/* ── Headings ────────────────────────────────── */
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  line-height: 1.18;
  color: var(--green-ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
}

/* ── Listing page ────────────────────────────── */
.page-hero {
  padding: 9.5rem 3.5rem 3.5rem;
  text-align: center;
}
.page-hero .lead-link {
  color: var(--green-deep);
  border-bottom: 1px solid var(--green-pale);
}
.page-hero .lead {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.category {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.read-time svg {
  width: 15px;
  height: 15px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--green-deep);
  transition:
    color 0.2s,
    gap 0.2s;
}
.read-more::after {
  content: "→";
}
.read-more:hover {
  color: var(--green-dark);
  gap: 0.75rem;
}

/* Featured article */
.featured {
  background: var(--bg-alt);
  border-top: 1px solid rgba(35, 79, 61, 0.08);
  border-bottom: 1px solid rgba(35, 79, 61, 0.08);
  padding: 5rem 3.5rem 5.5rem;
}
.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.featured-label {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.featured-image {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 50px rgba(21, 46, 36, 0.14);
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-image:hover img {
  transform: scale(1.03);
}
.featured-text h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.featured-text h2 a:hover {
  color: var(--green-deep);
}
.featured-text .subtitle {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.featured-text .summary {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.featured-text .meta-line {
  margin-bottom: 2rem;
}

/* More articles grid */
.more-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3.5rem 2rem;
}
.more-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(200, 221, 210, 0.6);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(61, 117, 96, 0.12);
}
.article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.article-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.article-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.more-articles[hidden] + .article-cta {
  margin-top: 0;
}

/* ── Article page ────────────────────────────── */
.article-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 10rem 1.5rem 2.5rem;
  text-align: center;
}
.article-head .standfirst {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}
.byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: left;
}
.byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.byline small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-hero {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(21, 46, 36, 0.14);
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
}
.article-body > * + * {
  margin-top: 1.25rem;
}
.article-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-top: 3rem;
}
.article-body h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-top: 2rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}
.article-body li + li {
  margin-top: 0.5rem;
}
.article-body a {
  color: var(--green-deep);
  border-bottom: 1px solid var(--green-pale);
}
.article-body a:hover {
  border-color: var(--green-mid);
}
.article-body strong {
  font-weight: 500;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--green-pale);
  padding-left: 1.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--green-dark);
}
.article-body .references {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.article-body .references li {
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  overflow-wrap: anywhere;
}
.article-body .references li + li {
  margin-top: 0.4rem;
}

.article-body .opening-questions {
  margin-bottom: 2rem;
}
.article-body .opening-questions p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--green-dark);
}
.article-body .opening-questions p + p {
  margin-top: 0.35rem;
}

/* Draft placeholder: delete these blocks as you write. */
.placeholder {
  background: #fbf5e9;
  border: 1px dashed var(--gold);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #7a6440;
}

/* Support note shown at the end of every article */
.support-note {
  background: var(--green-whisper);
  border-radius: 0.8rem;
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.article-body .references + .support-note {
  margin-top: 2.5rem;
}
.support-note strong {
  color: var(--green-dark);
}

/* ── Reading progress bar ────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 250;
}

/* ── Share bar ───────────────────────────────── */
.share {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(35, 79, 61, 0.12);
}
.share-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.9rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.share-buttons a,
.share-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--green-pale);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.share-buttons a:hover,
.share-buttons button:hover {
  background: var(--green-whisper);
  border-color: var(--green-mid);
}
.share-buttons svg {
  width: 15px;
  height: 15px;
}
.share-native {
  display: none !important;
}
.can-native-share .share-native {
  display: inline-flex !important;
}

/* ── Related articles ────────────────────────── */
.related {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}
.related-title {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  text-align: center;
}
.related .article-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}

/* ── Closing CTA ─────────────────────────────── */
.article-cta {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
  margin-top: 3rem;
}
.article-cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.article-cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
.btn-light {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.2s;
}
.btn-light:hover {
  background: var(--green-whisper);
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--green-ink);
  padding: 4rem 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}
.footer-logo-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.footer-logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1rem;
  display: block;
}
.footer-about {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}
.footer-social-label {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-col h4 {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: rgba(255, 255, 255, 0.85);
}
.footer-base {
  background: var(--green-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 3.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 960px) {
  nav {
    padding: 1rem 1.25rem;
  }
  .nav-links .nav-back {
    display: none;
  }
  .page-hero {
    padding: 8rem 1rem 2rem;
  }
  .featured {
    padding: 3rem 1rem 3.5rem;
  }
  .featured-label {
    margin-bottom: 1.5rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .more-articles {
    padding: 3.5rem 1rem 1rem;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .article-head {
    padding: 8rem 1rem 2rem;
  }
  .article-hero {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }
  .related {
    padding: 2.5rem 1rem 0.5rem;
  }
  .related .article-list {
    grid-template-columns: 1fr;
  }
  .article-body,
  .share {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.25rem 2rem;
  }
  .footer-base {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
