/* ============================================================
   Au fil de la Parole — Threads of the Word
   International edition (.com)
   Shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  color-scheme: light only;
  /* Brand palette (from design system) */
  --bg-primary:   #F5F0E8;   /* cream ivory */
  --bg-secondary: #EDE5D4;   /* warm beige (cards) */
  --bg-deep:      #1A1612;   /* footer / contrast */
  --accent:       #2C4A2E;   /* forest green */
  --accent-soft:  #8BAE8A;   /* sage */
  --text:         #2A2018;   /* deep brown */
  --text-mid:     #6B5E4A;   /* mid brown */
  --text-soft:    #9A8A6E;   /* sand */
  --border:       #C8BFA8;   /* gold-beige */
  --on-accent:    #E8DFC8;   /* light cream over green */

  /* Typography */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --measure: 38rem;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  border-bottom: 0.5px solid var(--border);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text);
}
.brand-tagline {
  font-family: var(--sans);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  font-weight: 400;
}
.site-nav a.active { color: var(--text); border-bottom: 1.5px solid var(--accent); padding-bottom: 0.3rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.lang-bar { display: flex; gap: 0.5rem; align-items: center; }
.lang-bar a, .lang-bar span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  color: var(--text-mid);
  border: 0.5px solid transparent;
}
.lang-bar a:hover { background: var(--bg-secondary); text-decoration: none; }
.lang-bar a.current { background: var(--accent); color: var(--on-accent); }
.lang-bar span.disabled { color: var(--text-soft); opacity: 0.55; cursor: default; }

/* ---------- Verse banner (promise of the day) ---------- */

.verse-banner {
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 0.95rem var(--gutter);
}
.verse-banner .ref {
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--accent-soft);
  margin-left: 0.6rem;
}
.verse-banner a { color: var(--on-accent); text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  background-color: var(--bg-primary);
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(245, 240, 232, 0) 0%,
    rgba(245, 240, 232, 0) 30%,
    rgba(245, 240, 232, 0.45) 55%,
    rgba(245, 240, 232, 0.92) 85%,
    var(--bg-primary) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #1f3621; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-secondary); text-decoration: none; }

/* ---------- Main content (meditation body) ---------- */

main.meditation {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
}

main.meditation p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 1.4rem;
}

main.meditation h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 2.5rem 0 1.25rem;
  letter-spacing: -0.005em;
}

main.meditation em, main.meditation i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

/* Key verse block within meditation */
.verse-block {
  background: var(--accent);
  color: var(--on-accent);
  padding: 2rem 1.75rem;
  margin: 2.25rem -0.5rem;
  border-radius: 4px;
  text-align: center;
}
.verse-block .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.verse-block .ref {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--accent-soft);
}

/* ---------- For further reading ---------- */

.further {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem var(--gutter);
  border-top: 0.5px solid var(--border);
}
.further-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.further-item {
  margin-bottom: 1.3rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.further-item .ref {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.further-item q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  quotes: "“" "”";
}

/* ---------- Author block (About page portrait) ---------- */

.author-block {
  margin: 3rem auto 1.5rem;
  text-align: center;
}
.author-portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--bg-secondary);
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 18px rgba(42, 32, 24, 0.14);
}
.author-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.author-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Closing question ---------- */

.closing-question {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-mid);
  text-align: center;
}

/* ---------- Index / archive cards ---------- */

.archive {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem var(--gutter);
}
.archive-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  margin-bottom: 2rem;
}
.meditation-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.meditation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(42, 32, 24, 0.08);
}
.meditation-card a {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}
.card-thumb {
  flex: 0 0 36%;
  max-width: 280px;
  border-radius: 6px;
  overflow: hidden;
  align-self: stretch;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}
.card-content { flex: 1; min-width: 0; padding: 0.25rem 0; }
.meditation-card .date {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}
.meditation-card .card-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.meditation-card .card-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.meditation-card .read {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  color: var(--on-accent);
  padding: 3rem var(--gutter) 2.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.footer-inner .brand-name { color: var(--on-accent); }
.footer-inner .brand-tagline { color: var(--accent-soft); }
.footer-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}
.footer-links a:hover { color: var(--on-accent); text-decoration: none; }
.footer-meta {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- Utility ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .site-nav { gap: 1rem; font-size: 0.6rem; order: 3; flex-basis: 100%; justify-content: flex-start; padding-top: 0.5rem; border-top: 0.5px solid var(--border); }
  .hero { min-height: 440px; }
  .verse-block { margin: 2rem -0.5rem; padding: 1.5rem 1.25rem; }
  .verse-block .quote { font-size: 1.05rem; }
  .meditation-card a { flex-direction: column; gap: 1rem; }
  .card-thumb { flex: 0 0 auto; max-width: none; width: 100%; }
  .card-thumb img { height: 200px; min-height: 200px; }
}
