@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@18..72,200..550&display=swap");

/* =========================================================
   Ava — Ultra Premium Editorial CSS (drop-in replacement)
   Keeps your existing class structure.
   ========================================================= */

:root{
  /* Editorial palette (salmon-forward, luxury ink) */
  --bg:   #fbf6ef;
  --bg2:  #fffaf3;
  --band: #f2e3dd;      /* slightly deeper band than before */

  --ink:   #2c2528;     /* warmer ink for editorial feel */
  --muted: rgba(44,37,40,0.68);
  --line:  rgba(58,47,51,0.14);

  /* Brand */
  --brand:  #3A2F33;    /* deep editorial aubergine */
  --salmon: #E8B8AE;    /* refined salmon */
  --salmon2:#DFA79C;    /* deeper salmon (your favicon tone) */

  /* Buttons / accents */
  --accent:  var(--brand);
  --accent2: #2f2529;

  /* Radius + layout */
  --radius: 16px;
  --radiusLg: 26px;
  --max: 1120px;

  /* Premium shadows (softer + more realistic) */
  --shadow: 0 22px 60px rgba(44,37,40,0.10);
  --shadowSm: 0 12px 28px rgba(44,37,40,0.08);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --t: 220ms;
}

*{box-sizing:border-box}
html,body{height:100%}
html{ background:none; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 22px}

/* =========================================================
   Header (more editorial: cleaner, finer lines, calmer hover)
   ========================================================= */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(251,246,239,0.76);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,47,51,0.10);
}

.header__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}

.brand__name{
  font-family:"Playfair Display", serif;
  font-weight:700;
  letter-spacing:0.25px;
  font-size:18px;
}

.nav{display:flex; align-items:center; gap:14px}
.nav a{
  font-size:14px;
  color: rgba(44,37,40,0.78);
  padding:8px 10px;
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.nav a:hover{
  background: rgba(223,167,156,0.16);
  color: rgba(44,37,40,0.92);
}

/* Mobile menu */
.menuBtn{
  display:none;
  border:1px solid rgba(58,47,51,0.14);
  background: rgba(255,255,255,0.55);
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.menuBtn:hover{ background: rgba(255,255,255,0.80); transform: translateY(-1px); }

.mobileNav{
  display:none;
  padding: 8px 0 14px;
  border-top: 1px solid rgba(58,47,51,0.10);
}
.mobileNav a{
  display:block;
  padding:10px 8px;
  border-radius: 12px;
  color: rgba(44,37,40,0.85);
  transition: background var(--t) var(--ease);
}
.mobileNav a:hover{background: rgba(223,167,156,0.16)}
.mobileNav.isOpen{display:block}

@media (max-width: 860px){
  .nav{display:none}
  .menuBtn{display:inline-flex}
}

/* =========================================================
   Typography (more editorial hierarchy + air)
   ========================================================= */
h1,h2,h3{
  font-family:"Playfair Display", serif;
  letter-spacing:0.2px;
  line-height:1.06;
  margin:0;
}
h1{font-size: clamp(40px, 4.2vw, 58px)}
.h2{font-size: clamp(28px, 2.6vw, 42px)}
.h3{
  font-family:"Playfair Display", serif;
  letter-spacing:0.2px;
  line-height:1.12;
  margin:0;
  font-size: 22px;
}

.pill{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  color: rgba(44,37,40,0.76);
  background: rgba(223,167,156,0.18);
  border: 1px solid rgba(58,47,51,0.10);
  padding:8px 12px;
  border-radius:999px;
}

.lead{
  margin:18px 0 0;
  color: rgba(44,37,40,0.76);
  max-width: 62ch;
  font-size:18px;
  line-height: 1.7;
}

.micro{
  margin:14px 0 0;
  color: rgba(44,37,40,0.58);
  font-size:14px;
  line-height: 1.7;
}

.sub{
  margin:12px 0 0;
  color: var(--muted);
  max-width: 74ch;
  font-size:16px;
  line-height: 1.75;
}

/* =========================================================
   Spacing (the “luxury” upgrade = more breathing room)
   ========================================================= */
.hero{padding:92px 0 44px}
.section{padding:100px 0}

@media (max-width: 720px){
  .hero{padding:64px 0 32px}
  .section{padding:70px 0}
}

/* =========================================================
   Hero layout
   ========================================================= */
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:44px;
  align-items:center;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr; gap:26px}
}

.hero__title{ margin-top: 14px; }
.hero__lead{ margin-top: 14px; }

.ctaRow{
  display:flex;
  gap:12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Hero frame (more “gallery” than “card”) */
.heroFrame{
  margin:0;
  border-radius: var(--radiusLg);
  border: 1px solid rgba(58,47,51,0.12);
  background: transparent;
  box-shadow: var(--shadow);
  overflow:hidden;
  padding:18px;
}
.heroFrame img{
  width:100%;
  height:auto;
  border-radius: 18px;
  
}

/* =========================================================
   Split layout (feel-like / app, etc.)
   ========================================================= */
.split{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items:center;
}
@media (max-width: 980px){ .split{ grid-template-columns: 1fr; } }

.split__right--center{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
@media (max-width: 980px){
  .split__right--center{ align-items: flex-start; }
}

/* =========================================================
   Support row (lighter card feel)
   ========================================================= */
.support{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
@media (max-width: 980px){ .support{grid-template-columns:1fr} }

.support__item{
  border: 1px solid rgba(58,47,51,0.12);
  background: rgba(255,255,255,0.52);
  border-radius: 20px;
  padding:20px;
  box-shadow: var(--shadowSm);
}
.support__item .h2{font-size:24px}
.support__item .sub{font-size:15px}

/* =========================================================
   Manifest quote (more editorial: calmer rule + wider max)
   ========================================================= */
.manifest{
  display:flex;
  align-items:center;
  height:100%;
  padding-right: 3rem;
  border-right: 1px solid rgba(58,47,51,0.14);
}
@media (max-width: 980px){
  .manifest{
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(58,47,51,0.14);
    padding-bottom: 18px;
  }
}
.manifest__text{
  font-size: 1.55rem;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 460px;
  color: rgba(44,37,40,0.88);
}

/* =========================================================
   Section heads
   ========================================================= */
.sectionHead{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px;
}

/* =========================================================
   Books rail (more editorial column, more refinement)
   ========================================================= */
.booksRail{
  max-width: 860px;
  margin: 0 auto;
  margin-top: 22px;
}

.booksList{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}

.bookItem{
  display:grid;
  grid-template-columns: 136px 1fr;
  gap:18px;
  align-items:center;

  border: 1px solid rgba(58,47,51,0.12);
  background: rgba(255,255,255,0.54);
  border-radius: 24px;
  padding:16px;

  box-shadow: var(--shadowSm);

  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease);
}

.bookItem:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.72);
}

.bookCover{
  height: 172px;
  border-radius: 18px;
  border: 1px solid rgba(58,47,51,0.12);
  background: #f7f4ef;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  overflow:hidden;
}

.bookCover img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: drop-shadow(0 16px 24px rgba(44,37,40,0.18));
}

.bookMeta h3{
  font-size: 26px;
  line-height: 1.12;
}

.bookMeta p{
  margin:10px 0 0;
  color: rgba(44,37,40,0.70);
  font-size: 15px;
  line-height: 1.75;
  max-width: 70ch;
}

.bookLink{
  display:inline-block;
  margin-top:12px;
  font-size: 13px;
  color: rgba(44,37,40,0.55);
  border-bottom: 1px solid rgba(44,37,40,0.24);
  padding-bottom:2px;
}

/* Mobile books */
@media (max-width: 640px){
  .booksRail{max-width: 100%;}
  .bookItem{ grid-template-columns: 1fr; }
  .bookCover{height: 220px;}
  .bookMeta h3{font-size:24px}
}

/* Show more row */
.moreRow{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

/* =========================================================
   Buttons (editorial: solid ink + inverse hover)
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  font-weight:600;
  font-size:14px;
  border:1px solid transparent;
  white-space:nowrap;
  transition: background var(--t) var(--ease),
              color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}

.btn--primary{
  background: var(--brand);
  color:#fff;
  border-color: var(--brand);
  box-shadow: 0 16px 34px rgba(58,47,51,0.18);
}
.btn--primary:hover{
  background: transparent;
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(58,47,51,0.16);
}

.btn--ghost{
  background: rgba(255,255,255,0.56);
  border-color: rgba(58,47,51,0.14);
  color: rgba(44,37,40,0.86);
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.82);
  transform: translateY(-1px);
}

/* =========================================================
   Lists
   ========================================================= */
.bulletList{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(44,37,40,0.72);
  font-size: 15px;
  line-height: 1.75;
}
.bulletList li{ margin: 6px 0; }
.strongLabel{ margin-top: 14px; }

/* =========================================================
   App band + icon
   ========================================================= */
.app{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:22px;
  align-items:center;
}
@media (max-width: 980px){ .app{grid-template-columns:1fr} }

.appIcon{
  width: 132px;
  height: 132px;
  border-radius: 30px;
  overflow:hidden;
  border: 1px solid rgba(58,47,51,0.12);
  background:#fff;
  box-shadow: var(--shadow);
  margin-left:auto;
}
@media (max-width: 980px){ .appIcon{margin-left:0} }
.appIcon img{width:100%; height:100%; object-fit:cover}

.appNote{
  max-width: 280px;
  text-align: right;
  border-top: 1px solid rgba(58,47,51,0.12);
  padding-top: 12px;
}
@media (max-width: 980px){ .appNote{ text-align: left; } }

/* =========================================================
   About
   ========================================================= */
.about{
  display:grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap:26px;
  align-items:start;
}
@media (max-width: 980px){ .about{grid-template-columns:1fr} }

.about__img img{
  width:100%;
  max-width: 420px;
  border-radius: var(--radiusLg);
  border: 1px solid rgba(58,47,51,0.12);
  background:#fff;
  box-shadow: var(--shadow);
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  border-top: 1px solid rgba(58,47,51,0.10);
  padding:26px 0 38px;
  color: rgba(44,37,40,0.58);
  font-size:13px;
}
.footer__row{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}

/* =========================================================
   Focus
   ========================================================= */
:focus-visible{
  outline: 3px solid rgba(223,167,156,0.55);
  outline-offset: 3px;
  border-radius:12px
}

/* =========================================================
   Section background system (keep your existing variants)
   ========================================================= */
.section, .hero{
  position: relative;
  z-index: 0;
}
.section::before, .hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
}

/* Variants */
.bg-hero::before{
  background:
    radial-gradient(1200px 800px at 85% 0%, rgba(223,167,156,0.12), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(223,167,156,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.bg-soft::before{
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(223,167,156,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.bg-band::before{
  background: rgba(242,227,221,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55),
              inset 0 -1px 0 rgba(255,255,255,0.55);
}

.bg-clean::before{
  background: var(--bg2);
}

/* =========================================================
   Blog — listing page
   ========================================================= */

.blogGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.blogCard {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(58,47,51,0.12);
  background: rgba(255,255,255,0.54);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadowSm);
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease);
  text-decoration: none;
  color: inherit;
}
.blogCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.72);
}

.blogCard__img {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--band);
  overflow: hidden;
}
.blogCard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogCard__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blogCard__meta {
  font-size: 12px;
  color: rgba(44,37,40,0.50);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blogCard__title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.blogCard__excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(44,37,40,0.66);
  margin: 0;
  flex: 1;
}

.blogCard__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid rgba(58,47,51,0.24);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* =========================================================
   Article page
   ========================================================= */

.articleWrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 22px 100px;
}

.article__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(44,37,40,0.50);
  margin-bottom: 18px;
}

.article__title {
  font-family: "Fraunces", serif;
  font-variation-settings: 'wght' 480, 'opsz' 72;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 20px;
}

.article__byline {
  font-size: 14px;
  color: rgba(44,37,40,0.52);
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(58,47,51,0.12);
}

.article__body {
  font-size: 17px;
  line-height: 1.82;
  color: rgba(44,37,40,0.88);
}

.article__body p {
  margin: 0 0 26px;
}

.article__body h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: 'wght' 460, 'opsz' 36;
  font-size: clamp(21px, 2.4vw, 28px);
  color: var(--ink);
  margin: 54px 0 18px;
  line-height: 1.15;
}

.article__body h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: 'wght' 420, 'opsz' 18;
  font-size: 19px;
  color: var(--ink);
  margin: 38px 0 12px;
  line-height: 1.2;
}

.article__body ul,
.article__body ol {
  padding-left: 22px;
  margin: 0 0 26px;
}

.article__body li {
  margin-bottom: 8px;
}

.article__body blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  background: var(--band);
  border-left: 3px solid var(--salmon2);
  border-radius: 0 14px 14px 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(44,37,40,0.80);
  font-style: italic;
}

.article__cta {
  margin-top: 60px;
  padding: 32px 36px;
  background: rgba(223,167,156,0.14);
  border: 1px solid rgba(223,167,156,0.32);
  border-radius: 24px;
}

.article__cta p {
  font-size: 15px;
  color: rgba(44,37,40,0.72);
  margin: 8px 0 20px;
  line-height: 1.7;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(44,37,40,0.55);
  margin-bottom: 40px;
  transition: color var(--t) var(--ease);
}
.article__back:hover { color: var(--ink); }
.article__back::before { content: "←"; }

/* =========================================================
   Article reading progress bar (CSS scroll-driven)
   ========================================================= */

@keyframes grow-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.readingBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--salmon2, #DFA79C);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
  animation: grow-progress linear both;
  animation-timeline: scroll(root block);
}

/* CTA title — Fraunces instead of inline Playfair */
.article__cta h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: 'wght' 440, 'opsz' 18;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}

/* Article hero image */
.article__hero {
  margin: 0 0 36px;
  border-radius: 16px;
  overflow: hidden;
}
.article__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Related articles section
   ========================================================= */

.relatedArticles {
  border-top: 1px solid rgba(58,47,51,0.10);
  padding: 60px 0 80px;
  background: var(--bg2, #fffaf3);
}

.relatedArticles__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(44,37,40,0.38);
  margin-bottom: 28px;
  text-align: center;
}

.relatedArticles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 860px) {
  .relatedArticles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .relatedArticles__grid { grid-template-columns: 1fr; }
  .relatedArticles { padding: 44px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .readingBar { animation: none; }
}



/* =========================================================
   Blog preview — section "From the blog" sur index
   ========================================================= */

.blogPreview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 980px) {
  .blogPreview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blogPreview { grid-template-columns: 1fr; }
}

.blogPreviewCard {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(58,47,51,0.12);
  background: rgba(255,255,255,0.54);
  border-radius: 24px;
  padding: 28px 30px 30px;
  box-shadow: var(--shadowSm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease);
}

.blogPreviewCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.72);
}

.blogPreviewCard__title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
