:root{
  --bg: #EFE7D8;
  --bg-card: #F8F3E8;
  --bg-card-hover: #F1E9D8;
  --ink: #2B2620;
  --ink-soft: #5F564A;
  --broderie: #20365C; --sashiko-red: #9C3B32;
  --cuisine: #B0562E;
  --textes: #5C6B4E; --collages: #7A4B6B;
  --tape: #E4D9B8;
  --tape-line: rgba(43,38,32,0.28);
  --line: rgba(43,38,32,0.14);
}

.accent-broderie{ --accent: var(--broderie); }
.accent-cuisine{ --accent: var(--cuisine); }
.accent-textes{ --accent: var(--textes); }
.accent-collages{ --accent: var(--collages); }

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

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Archivo', sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}

body::before{
  content:""; position:fixed; inset:0; pointer-events:none; opacity:0.5;
  background-image: radial-gradient(rgba(43,38,32,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index:0;
}

.skip-link{
  position:absolute; left:12px; top:-60px; z-index:100;
  background:var(--ink); color:var(--bg-card); padding:10px 18px; border-radius:3px;
  font-family:'IBM Plex Mono', monospace; font-size:13px; transition:top .15s ease;
}
.skip-link:focus{ top:12px; }

a{ color:inherit; text-decoration:none; }
.eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--ink-soft); }

a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--ink); outline-offset:3px;
}

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; position:relative; z-index:1;}
.wrap-narrow{ max-width:680px; margin:0 auto; padding:0 32px; position:relative; z-index:1; }
.wrap-narrow--900{ max-width:900px; }
.wrap-narrow--640{ max-width:640px; }

/* header */
header{ padding:28px 0 18px; }
.header-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ font-family:'Caveat', cursive; font-size:42px; font-weight:700; display:inline-flex; align-items:center; letter-spacing:0.3px; }
.logo .syl-a{ color:var(--broderie); }
.logo .syl-b{ color:var(--collages); }
.logo .syl-c{ color:var(--cuisine); }

nav{ display:flex; gap:28px; font-family:'IBM Plex Mono', monospace; font-size:12.5px; letter-spacing:0.07em; text-transform:uppercase; }
nav a{ position:relative; color:var(--ink-soft); transition:color .2s ease; }
nav a:hover{ color:var(--ink); }
nav a.active{ color:var(--ink); }
nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background-image: repeating-linear-gradient(90deg, var(--accent, var(--ink)) 0 4px, transparent 4px 7px); }

.btn-ghost{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--ink-soft); border-bottom:1px solid var(--line); padding-bottom:2px; }
.btn-ghost:hover{ color:var(--ink); border-color:var(--accent, var(--ink)); }
.breadcrumb{ padding:20px 0 6px; }

/* hero */
.hero{ padding:52px 0 40px; max-width:680px; }
.hero h1{ font-family:'Fraunces', serif; font-weight:500; font-size:clamp(36px,5vw,54px); line-height:1.12; letter-spacing:-0.01em; }
.hero h1 em{ font-style:italic; font-weight:400; }
.hero h1 .w-broderie{ color:var(--broderie); }
.hero h1 .w-cuisine{ color:var(--cuisine); }
.hero h1 .w-textes{ color:var(--textes); }
.hero h1 .w-collages{ color:var(--collages); }
.hero p.lede{ margin-top:20px; font-size:16.5px; color:var(--ink-soft); max-width:52ch; }
.hero .cta-row{ margin-top:26px; display:flex; gap:16px; align-items:center; }

.btn{
  font-family:'IBM Plex Mono', monospace; font-size:13px; letter-spacing:0.05em; text-transform:uppercase;
  background:var(--sashiko-red); color:var(--bg-card); padding:15px 28px; border-radius:999px;
  position:relative; overflow:hidden; isolation:isolate;
  box-shadow: 0 6px 16px rgba(156,59,50,0.35), inset 0 0 0 1px rgba(255,255,255,0.12);
  transition:transform .22s ease, box-shadow .22s ease;
}
.btn::before{
  content:""; position:absolute; top:10%; left:14%; width:32%; height:38%;
  background:radial-gradient(circle, rgba(255,255,255,0.6), rgba(255,255,255,0) 70%);
  border-radius:50%; pointer-events:none; z-index:1;
}
.btn:hover{ transform:translateY(-2px) scale(1.035); box-shadow:0 10px 22px rgba(156,59,50,0.4), inset 0 0 0 1px rgba(255,255,255,0.18); }

/* category filter chips */
.filters{ display:flex; gap:10px; flex-wrap:wrap; padding:8px 0 40px; }
.chip{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.04em;
  padding:8px 16px; border-radius:20px; border:1px solid var(--line); color:var(--ink-soft);
  cursor:pointer; background:transparent; transition:all .18s ease; display:inline-flex; align-items:center; gap:7px;
}
.chip .dot{ width:7px; height:7px; border-radius:50%; }
.chip.active{ background:var(--ink); color:var(--bg-card); border-color:var(--ink); }
.chip.active .dot{ background:var(--bg-card) !important; }
.chip:not(.active):hover{ border-color:var(--ink); color:var(--ink); }

/* section */
.section{ padding:20px 0 46px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:30px; flex-wrap:wrap; gap:12px; }
.section-head h2{ font-family:'Fraunces', serif; font-weight:500; font-size:26px; }

/* featured */
.featured{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:44px; align-items:center; background:var(--bg-card); border-radius:4px; padding:38px; margin-bottom:44px; position:relative; }
.featured .swatch{ max-width:100%; aspect-ratio:4/3; position:relative; }
.featured .swatch svg{ width:100%; height:100%; }

.cat-tag{
  display:inline-flex; align-items:center; gap:7px; font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  letter-spacing:0.06em; text-transform:uppercase; padding:5px 11px; border-radius:20px; border:1px solid var(--line); color:var(--ink-soft);
}
.cat-tag .dot{ width:7px; height:7px; border-radius:50%; }
.featured h3{ font-family:'Fraunces', serif; font-weight:500; font-size:29px; line-height:1.2; margin:15px 0 12px; }
.featured p.excerpt{ color:var(--ink-soft); max-width:50ch; margin-bottom:16px; }
.post-meta{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); }

/* grid */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.post-card{
  background:var(--bg-card); border-radius:3px; padding:22px 22px 24px; position:relative;
  transition:transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column;
}
.post-card:hover{ transform:translateY(-3px); box-shadow:0 8px 22px rgba(43,38,32,0.10); }
.post-card .tape{
  position:absolute; width:64px; height:20px; background:var(--tape); opacity:0.85;
  top:-9px; box-shadow:0 1px 2px rgba(0,0,0,0.08);
}
.post-card .swatch{ width:100%; aspect-ratio:4/3; margin-bottom:16px; border-radius:2px; overflow:hidden; }
.post-card .swatch svg{ width:100%; height:100%; display:block; }
.post-card .cat-tag{ margin-bottom:12px; align-self:flex-start; }
.post-card h3{ font-family:'Fraunces', serif; font-weight:500; font-size:18.5px; line-height:1.28; margin-bottom:8px; }
.post-card p.excerpt{ font-size:14px; color:var(--ink-soft); margin-bottom:10px; flex-grow:1; }

/* text-type card variant: no swatch image, quote mark instead */
.post-card.type-textes{ border-left:3px dashed var(--textes); padding-left:24px; }
.quote-mark{
  font-family:'Fraunces', serif; font-style:italic; font-size:54px; line-height:0.6; color:var(--textes); opacity:0.55;
  margin-bottom:6px; display:block;
}

.hidden{ display:none !important; }

/* page head (category landing pages) */
.page-head{ padding:30px 0 40px; max-width:640px; }
.page-head h1{ font-family:'Fraunces', serif; font-weight:500; font-size:clamp(32px,4.4vw,46px); line-height:1.15; }
.page-head .cat-tag{ margin-bottom:16px; }
.page-head .cat-tag .dot{ background:var(--accent); }
.page-head p{ margin-top:16px; color:var(--ink-soft); font-size:16px; max-width:56ch; }

/* quick-jump pills */
.subnav{ display:flex; gap:10px; flex-wrap:wrap; padding-bottom:36px; }
.subnav a{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.03em;
  padding:7px 15px; border-radius:20px; border:1px solid var(--line); color:var(--ink-soft);
  transition:all .18s ease;
}
.subnav a:hover{ border-color:var(--accent); color:var(--ink); }

/* subcategory blocks */
.subcat{ padding:10px 0 50px; scroll-margin-top:20px; }
.subcat-head{ max-width:640px; margin-bottom:30px; }
.subcat-head h2{ font-family:'Fraunces', serif; font-weight:500; font-size:27px; margin-top:6px; }
.subcat-head p{ margin-top:12px; color:var(--ink-soft); font-size:15.5px; max-width:58ch; }
.subcat + .subcat{ border-top:1px dashed var(--line); }

/* masonry gallery */
.gallery{ column-count:3; column-gap:28px; padding-bottom:60px; }
.gallery-item{ break-inside:avoid; margin-bottom:28px; position:relative; }
.gallery-item .tape{
  position:absolute; width:60px; height:20px; background:var(--tape); opacity:0.9;
  box-shadow:0 1px 3px rgba(0,0,0,0.12); z-index:2;
}
.gallery-item .photo-frame{ background:var(--bg-card); padding:10px 10px 16px; border-radius:2px; box-shadow:0 4px 14px rgba(43,38,32,0.10); }
.gallery-item img{ width:100%; display:block; border-radius:1px; }
.gallery-item .cap{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-soft); text-align:center; margin-top:10px; letter-spacing:0.02em; }

/* video frame, portrait like the photos */
.video-frame{ position:relative; max-width:300px; margin:14px 0 32px; background:var(--bg-card); padding:10px 10px 16px; border-radius:2px; box-shadow:0 4px 14px rgba(43,38,32,0.10); }
.video-frame .tape{ position:absolute; width:60px; height:20px; background:var(--tape); opacity:0.9; box-shadow:0 1px 3px rgba(0,0,0,0.12); z-index:2; }
.video-frame video{ width:100%; display:block; border-radius:1px; background:#000; }

/* post list (textes.html) */
.post-list{ display:flex; flex-direction:column; gap:22px; padding-bottom:60px; max-width:720px; }
.post-list .post-card{ border-left:3px dashed var(--accent); border-radius:0 3px 3px 0; padding:26px 28px; }
.post-list .post-card .quote-mark{ color:var(--accent); }
.post-list .post-card .cat-tag .dot{ background:var(--accent); }
.soon{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--ink-soft); opacity:0.7; margin-top:6px; }

/* about page (a-propos.html) */
.about{ padding:40px 0 20px; display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:start; }
.portrait{ position:relative; width:100%; aspect-ratio:4/5; border-radius:4px; overflow:hidden; background:var(--bg-card); display:flex; align-items:center; justify-content:center; }
.portrait .tape{ position:absolute; width:70px; height:22px; background:var(--tape); opacity:0.9; top:-10px; left:calc(50% - 35px); transform:rotate(-3deg); z-index:2; box-shadow:0 1px 2px rgba(0,0,0,0.08); }
.portrait-placeholder{ text-align:center; color:var(--ink-soft); padding:30px; }
.portrait-placeholder svg{ width:64px; height:64px; margin-bottom:14px; }
.portrait-placeholder p{ font-family:'IBM Plex Mono', monospace; font-size:12px; line-height:1.6; }
.about-text h1{ font-family:'Fraunces', serif; font-weight:500; font-size:clamp(30px,4vw,42px); line-height:1.18; margin-bottom:22px; }
.about-text p{ font-size:16.5px; margin-bottom:18px; color:var(--ink); }
.about-text .signature{ font-family:'Fraunces', serif; font-style:italic; font-size:19px; margin-top:8px; }

/* article head (recipes + text articles) */
.article-head{ padding:34px 0 30px; text-align:center; }
.article-head h1{ font-family:'Fraunces', serif; font-weight:500; font-size:clamp(32px,4.4vw,46px); line-height:1.14; letter-spacing:-0.01em; max-width:18ch; margin:18px auto 16px; }
.article-head .lede{ max-width:50ch; margin:0 auto; color:var(--ink-soft); font-size:16.5px; }
.article-hero{ padding:36px 0 44px; display:flex; justify-content:center; position:relative; }
.swatch{ position:relative; width:100%; aspect-ratio:16/9; border-radius:3px; overflow:visible; }
.swatch svg{ width:100%; height:100%; display:block; }
.article-hero .swatch{ max-width:600px; }
.article-hero .tape{ position:absolute; width:70px; height:22px; background:var(--tape); opacity:0.85; top:-10px; left:calc(50% - 35px); transform:rotate(-3deg); box-shadow:0 1px 2px rgba(0,0,0,0.08); }

.info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:36px 0; }
.info-box{ background:var(--bg-card); border-radius:4px; padding:26px 28px; }
.info-box .eyebrow{ margin-bottom:14px; }
.ingredients-list{ list-style:none; font-size:15px; line-height:2.1; }
.ingredients-list li{ display:flex; justify-content:space-between; border-bottom:1px dashed var(--line); padding:4px 0; }
.ingredients-list li span:last-child{ color:var(--ink-soft); font-family:'IBM Plex Mono', monospace; font-size:13px; }
.meta-list{ list-style:none; font-family:'IBM Plex Mono', monospace; font-size:14px; line-height:2.3; color:var(--ink-soft); }
.meta-list b{ color:var(--ink); font-weight:500; }

.steps{ margin:36px 0; }
.step{ display:flex; gap:16px; margin-bottom:20px; }
.step .num{ font-family:'Fraunces', serif; font-style:italic; font-weight:500; font-size:20px; color:var(--accent); flex-shrink:0; width:32px; }
.step .txt{ font-size:16px; padding-top:1px; }

.note{ margin:38px 0; padding:16px 22px; border-left:2px dashed var(--accent); font-size:14.5px; color:var(--ink-soft); font-style:italic; }

.author-row{ display:flex; align-items:center; gap:16px; padding:32px 0; border-top:1px solid var(--line); margin-top:20px; }
.author-avatar{ width:46px; height:46px; border-radius:50%; background:var(--textes); flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#F8F3E8; font-family:'Fraunces', serif; font-style:italic; font-size:18px; }
.author-name{ font-weight:600; font-size:14.5px; }
.author-role{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-soft); }

/* text article (texte-vagabonde-bois-joli.html) */
.hero-photo{ margin:32px 0 44px; border-radius:3px; overflow:hidden; position:relative; }
.hero-photo img{ width:100%; display:block; }
.hero-photo .tape{ position:absolute; width:70px; height:22px; background:var(--tape); opacity:0.9; top:-10px; left:calc(50% - 35px); transform:rotate(-3deg); box-shadow:0 1px 2px rgba(0,0,0,0.1); }

.poem{ padding:10px 0 30px; font-family:'Fraunces', serif; font-size:19px; line-height:1.85; color:var(--ink); }
.poem p{ margin-bottom:26px; }
.poem .signature{ margin-top:44px; font-family:'Archivo', sans-serif; font-size:14.5px; font-weight:600; letter-spacing:0.02em; }
.poem .context{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); font-style:normal; line-height:1.7; margin-top:6px; }

.post-nav{ display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:36px 0; }
.post-nav a{ background:var(--bg-card); border-radius:4px; padding:22px 24px; display:block; transition:background .2s ease; }
.post-nav a:hover{ background:var(--bg-card-hover); }
.post-nav .dir{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; }
.post-nav .next{ text-align:right; }
.post-nav h4{ font-family:'Fraunces', serif; font-weight:500; font-size:17px; line-height:1.3; }

/* newsletter */
.newsletter{
  border-radius:4px; padding:42px 46px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.newsletter--broderie{ background:var(--broderie); color:#F0E9D9; }
.newsletter--collages{ background:var(--collages); color:#F2EAEF; }
.newsletter h3{ font-family:'Fraunces', serif; font-style:italic; font-weight:400; font-size:24px; max-width:32ch; }
.newsletter .sib-form, .newsletter .sib-form-container, .newsletter .sib-container--large{ display:contents; }
.newsletter form{ display:flex; flex-wrap:wrap; gap:14px; min-width:300px; border-bottom:1px solid rgba(255,255,255,0.4); padding-bottom:9px; }
.newsletter .sib-input, .newsletter .form__entry, .newsletter .form__label-row, .newsletter .entry__field, .newsletter .sib-form-block{ display:contents; }
.newsletter input{ background:transparent; border:none; outline:none; color:inherit; font-family:'IBM Plex Mono', monospace; font-size:13px; flex:1; min-width:0; }
.newsletter input::placeholder{ color:inherit; opacity:0.55; }
.newsletter input:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }
.newsletter button{ background:none; border:none; color:inherit; font-family:'IBM Plex Mono', monospace; font-size:12.5px; letter-spacing:0.06em; text-transform:uppercase; cursor:pointer; display:inline-flex; align-items:center; }
.newsletter button svg{ width:13px; height:13px; margin-right:6px; fill:currentColor; }
.newsletter .sib-hide-loader-icon{ display:none; }
.newsletter .entry__error{ order:3; flex-basis:100%; font-size:12px; color:inherit; opacity:0.9; margin-top:2px; }
.newsletter .entry__error:empty{ display:none; }
.newsletter .entry__specification{ display:none; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.sib-form-message-panel{ display:none; }
.sib-form-message-panel.sib-form-message-panel--active{ display:block; }
.input--hidden{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.newsletter-msg{ margin-top:12px; font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:inherit; opacity:0.85; }

/* footer */
footer{ padding:36px 0 56px; }
.footer-row{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:20px; }
.footer-nav{ display:flex; gap:22px; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--ink-soft); }
.footer-nav a:hover{ color:var(--ink); }
.copyright{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--ink-soft); margin-top:20px; }

@media (max-width:900px){
  .featured{ grid-template-columns:1fr; padding:26px; }
  .post-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery{ column-count:2; }
  .about{ grid-template-columns:1fr; }
  .portrait{ max-width:320px; }
  .info-grid{ grid-template-columns:1fr; }
  .post-nav{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .wrap, .wrap-narrow{ padding:0 20px; }
  .post-grid{ grid-template-columns:1fr; }
  .gallery{ column-count:1; }
  nav{ display:none; }
  .newsletter{ padding:30px 22px; }
}
