/* ==========================================================================
   Delislim LV — Prelander · "Veselība & Dzīvesveids"
   Palette: linen + dusty rose-clay (locked from DESIGN-BRIEF.html v2)
   Typography: Fraunces (display) + Inter (body)
   ========================================================================== */

:root{
  --pre-bg:        #F1E9DC;   /* linen paper */
  --pre-acc:       #B5786E;   /* dusty rose-clay (CTA + links) */
  --pre-acc-deep:  #98615A;   /* hover state */
  --pre-2nd:       #6B4A56;   /* muted plum */
  --pre-ink:       #2A2018;   /* walnut */
  --pre-soft:      #5A4A3D;   /* body text */
  --pre-line:      rgba(42,32,24,.12);
  --pre-card:      #FBF6EC;   /* slightly lighter card surface */
  --pre-shadow:    0 1px 0 rgba(42,32,24,.04), 0 12px 32px -16px rgba(42,32,24,.18);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--pre-bg);
  color:var(--pre-ink);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--pre-acc);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--pre-acc-deep)}
button{font:inherit;color:inherit;cursor:pointer}
em{font-style:italic}
strong{font-weight:600;color:var(--pre-ink)}

/* layout containers */
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.wrap-narrow{max-width:720px;margin:0 auto;padding:0 24px}

/* ----- header ----- */
.site-header{
  background:var(--pre-bg);
  border-bottom:1px solid var(--pre-line);
  position:sticky;top:0;z-index:20;
  backdrop-filter:saturate(1.1);
}
.site-header .wrap{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding-top:14px;padding-bottom:14px;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--pre-ink)}
.brand-mark{
  width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--pre-acc);color:var(--pre-bg);
  font-family:"Fraunces",serif;font-weight:500;font-size:14px;letter-spacing:.04em;
  border-radius:2px;
}
.brand-name{font-family:"Fraunces",serif;font-weight:400;font-size:18px;letter-spacing:.01em}
.brand-name em{font-style:italic;color:var(--pre-acc);font-weight:400}
.crumbs{
  font-size:12.5px;color:var(--pre-soft);
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.crumbs a{color:var(--pre-soft);text-decoration:none}
.crumbs a:hover{color:var(--pre-acc)}
.crumbs .here{color:var(--pre-ink);font-weight:500}
.crumbs span{opacity:.6}

/* ----- post head ----- */
.post-head{padding:64px 24px 32px}
.kicker{
  font-size:11.5px;font-weight:600;
  text-transform:uppercase;letter-spacing:.18em;
  color:var(--pre-acc);margin:0 0 24px;
}
.masthead{
  font-family:"Fraunces",serif;font-weight:300;font-style:italic;
  font-size:clamp(40px,6vw,72px);line-height:1.02;letter-spacing:-.025em;
  color:var(--pre-ink);
  margin:0 0 24px;
}
.masthead em{font-style:normal;font-weight:500;color:var(--pre-acc)}
.deck{
  font-family:"Fraunces",serif;font-weight:400;font-style:italic;
  font-size:clamp(20px,2.4vw,24px);line-height:1.4;
  color:var(--pre-acc);max-width:38ch;margin:0 0 32px;
}
.byline{display:flex;align-items:center;gap:16px;padding-top:24px;border-top:1px solid var(--pre-line)}
.byline .avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0}
.byname{display:block;font-weight:600;font-size:15px;color:var(--pre-ink)}
.bymeta{display:block;font-size:12.5px;color:var(--pre-soft);letter-spacing:.04em}

/* ----- hero figure ----- */
.hero-figure{
  position:relative;margin:48px 0;
  max-width:1280px;margin-left:auto;margin-right:auto;
}
.hero-figure img{
  width:100%;height:clamp(360px,52vw,620px);object-fit:cover;
  filter:saturate(.97) contrast(1.02);
}
.hero-overlay{
  position:absolute;left:24px;bottom:24px;
  background:rgba(42,32,24,.7);
  color:var(--pre-bg);padding:8px 14px;border-radius:2px;
  font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
  backdrop-filter:blur(6px);
}

/* ----- post body ----- */
.post-body{padding:32px 24px 56px}
.post-body p{margin:0 0 24px;color:var(--pre-soft);font-size:18px;line-height:1.78;max-width:60ch}
.post-body h2{
  font-family:"Fraunces",serif;font-weight:400;
  font-size:clamp(28px,3.2vw,36px);line-height:1.15;letter-spacing:-.015em;
  color:var(--pre-ink);
  margin:48px 0 20px;
}
.lead{font-size:20px !important;color:var(--pre-ink) !important;font-weight:400}

.pull{
  font-family:"Fraunces",serif;font-weight:400;font-style:italic;
  font-size:clamp(24px,2.8vw,32px);line-height:1.32;
  color:var(--pre-2nd);
  border-left:3px solid var(--pre-acc);
  padding:8px 0 8px 28px;margin:40px 0;max-width:30ch;
}

.failures{list-style:none;padding:0;margin:0 0 32px;display:flex;flex-direction:column;gap:14px}
.failures li{
  position:relative;padding-left:28px;
  color:var(--pre-soft);font-size:17.5px;line-height:1.65;
}
.failures li::before{
  content:"—";position:absolute;left:0;top:0;
  color:var(--pre-acc);font-weight:700;
}
.failures strong{color:var(--pre-ink)}

.ingredients{list-style:none;padding:0;margin:0 0 32px;display:flex;flex-direction:column;gap:12px}
.ingredients li{
  padding:14px 18px;background:var(--pre-card);border-left:2px solid var(--pre-acc);
  font-size:16.5px;color:var(--pre-soft);line-height:1.6;
}
.ingredients strong{color:var(--pre-ink);font-weight:600}

.inline-figure{margin:40px -8px;background:var(--pre-card);padding:24px;border-radius:4px}
.inline-figure img{width:100%;max-height:520px;object-fit:contain}
.inline-figure figcaption{
  margin-top:14px;font-style:italic;font-family:"Fraunces",serif;
  color:var(--pre-acc);font-size:15px;text-align:center;
}

/* timeline */
.timeline{
  display:grid;grid-template-columns:repeat(2,1fr);gap:24px;
  margin:32px 0 24px;
}
.tl-step{margin:0;background:var(--pre-card);border-radius:4px;overflow:hidden;box-shadow:var(--pre-shadow)}
.tl-step img{width:100%;aspect-ratio:3/2;object-fit:cover}
.tl-step figcaption{
  padding:16px 18px;font-size:14.5px;color:var(--pre-soft);line-height:1.55;
}
.tl-step strong{color:var(--pre-ink);display:block;margin-bottom:4px;font-family:"Fraunces",serif;font-weight:500;font-size:16px}

.note{
  background:rgba(181,120,110,.08);
  border:1px solid rgba(181,120,110,.24);
  padding:18px 22px;border-radius:4px;
  font-size:15px !important;color:var(--pre-2nd) !important;font-style:italic;
}

/* CTA box */
.cta-box{
  background:var(--pre-card);
  border:1px solid var(--pre-line);
  border-radius:6px;padding:36px 32px;margin:48px 0;
  text-align:left;box-shadow:var(--pre-shadow);
}
.cta-box.bottom{margin-top:64px;margin-left:auto;margin-right:auto}
.cta-kicker{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--pre-acc);font-weight:600;margin:0 0 8px;
}
.cta-box h3{
  font-family:"Fraunces",serif;font-weight:500;font-size:26px;line-height:1.15;
  margin:0 0 12px;color:var(--pre-ink);
}
.cta-box p{font-size:16px;color:var(--pre-soft);margin:0 0 20px}
.cta-fine{font-size:13px !important;color:var(--pre-2nd) !important;margin-top:12px !important;letter-spacing:.02em}
.cta-btn{
  display:inline-block;padding:18px 32px;
  background:#9A5A4F;color:var(--pre-bg);   /* deepened from #B5786E for WCAG AA contrast */
  font-weight:600;font-size:16px;letter-spacing:.02em;
  text-decoration:none;border-radius:4px;
  transition:background .2s, transform .2s, box-shadow .2s;
}
.cta-btn:hover{
  background:var(--pre-2nd);color:var(--pre-bg);
  transform:translateY(-1px);
  box-shadow:0 8px 24px -8px rgba(154,90,79,.5);
}

.disclaimer{
  font-size:13.5px !important;color:var(--pre-2nd) !important;
  font-style:italic;border-top:1px solid var(--pre-line);
  padding-top:24px;margin-top:48px;
}

/* ----- comments ----- */
.comments{padding:64px 24px 48px;border-top:1px solid var(--pre-line);margin-top:48px}
.comments-head h2{
  font-family:"Fraunces",serif;font-weight:400;font-size:30px;margin:0 0 8px;color:var(--pre-ink);
}
.comments-head .count{color:var(--pre-acc);font-weight:400;font-size:18px;margin-left:8px}
.comments-head p{color:var(--pre-soft);font-size:14.5px;margin:0 0 32px}
.comments-list{display:flex;flex-direction:column;gap:24px}
.comment{
  display:grid;grid-template-columns:48px 1fr;gap:16px;
  padding:18px 0;border-bottom:1px solid var(--pre-line);
}
.comment:last-child{border-bottom:0}
.ca{width:48px;height:48px;border-radius:50%;object-fit:cover}
.cmeta{
  margin:0 0 6px;font-size:13.5px;color:var(--pre-soft);letter-spacing:.02em;
}
.cmeta strong{color:var(--pre-ink);font-weight:600;margin-right:4px}
.comment p:not(.cmeta){margin:0;color:var(--pre-soft);font-size:16px;line-height:1.65}
.comment .tag{
  display:inline-block;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  background:rgba(107,74,86,.14);color:var(--pre-2nd);
  padding:2px 8px;border-radius:2px;margin-left:4px;
}
.comment.skeptic{background:rgba(107,74,86,.05);border-radius:4px;padding:18px;margin:6px 0}
.comment.author-reply{background:rgba(181,120,110,.06);border-radius:4px;padding:18px;margin-left:32px;border-left:2px solid var(--pre-acc)}

.ghost-btn{
  display:block;margin:24px auto 0;
  background:transparent;color:var(--pre-acc);
  border:1.5px solid var(--pre-acc);
  padding:12px 24px;border-radius:4px;
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  transition:background .2s,color .2s;
}
.ghost-btn:hover{background:var(--pre-acc);color:var(--pre-bg)}
.ghost-btn[hidden]{display:none}

/* ----- footer ----- */
.site-foot{
  background:var(--pre-ink);color:rgba(241,233,220,.7);
  padding:48px 0 36px;margin-top:48px;
}
.site-foot p{margin:0 0 12px;font-size:13.5px;line-height:1.6}
.site-foot strong{color:var(--pre-bg)}
.site-foot a{color:rgba(241,233,220,.8)}
.site-foot a:hover{color:var(--pre-bg)}
.site-foot .legal{font-size:12px;color:rgba(241,233,220,.55);letter-spacing:.02em}

/* ----- responsive ----- */
@media (max-width:720px){
  .post-head{padding-top:40px}
  .timeline{grid-template-columns:1fr}
  .crumbs{display:none}
  .site-header .wrap{padding-top:10px;padding-bottom:10px}
  .hero-figure{margin:32px 0}
  .post-body p{font-size:17px}
  .pull{padding-left:18px}
  .comment.author-reply{margin-left:12px}
}

/* skip-link (a11y F1.2) */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;padding:8px 16px;background:#1a1a1a;color:#fff;z-index:9999;border-radius:4px;font-size:.875rem;text-decoration:none;outline:2px solid #fff;outline-offset:2px}
