/* ============================================================
   MIND YOUR FOOD · The Myth Journal
   Self-contained newspaper/editorial stylesheet for
   blogs.mindyourfood.co.in. Brand tokens mirror assets/css/main.css
   so the blog matches the marketing site (Cormorant Garamond + Jost,
   beige paper, espresso ink, dusty rose accent) but stands alone.
   ============================================================ */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #211A15;
  --ink-soft: #4D4138;
  --brown: #7A6253;
  --bg: #F4EBDD;
  --bg-deep: #ECE0CD;
  --paper: #FFFDF8;
  --rose: #C68B91;
  --rose-deep: #A35C66;
  --rose-wash: #F3DEDF;
  --line: rgba(33, 26, 21, .14);
  --line-soft: rgba(33, 26, 21, .08);
  --rule: rgba(33, 26, 21, .85);
  --shadow: rgba(33, 26, 21, .18);
  --serif: "Cormorant Garamond", "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EFE6D6;
  --ink-soft: #B6A994;
  --brown: #A98C76;
  --bg: #18120E;
  --bg-deep: #211913;
  --paper: #241C16;
  --rose: #D49AA0;
  --rose-deep: #D9959E;
  --rose-wash: #3A2A2C;
  --line: rgba(239, 230, 214, .14);
  --line-soft: rgba(239, 230, 214, .07);
  --rule: rgba(239, 230, 214, .82);
  --shadow: rgba(0, 0, 0, .5);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; transition: background .5s var(--ease); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  /* faint paper grain */
  background-image: radial-gradient(rgba(33, 26, 21, .035) 1px, transparent 1px);
  background-size: 4px 4px;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 clamp(18px, 4vw, 54px);
  box-shadow: 0 0 60px var(--shadow);
  min-height: 100vh;
}

/* ---------- MASTHEAD ---------- */
.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 14px 0 12px;
}
/* horizontal slide switch — light <-> dark; the knob tracks the active theme */
.mast-top .theme-toggle {
  position: relative;
  flex: none;
  width: 60px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: background .6s var(--ease), border-color .25s var(--ease);
}
.mast-top .theme-toggle:hover { border-color: var(--rose); }
.mast-top .theme-toggle svg {
  position: relative;
  z-index: 2;
  width: 13px;
  height: 13px;
  margin: 0 8px;
  color: var(--brown);
  opacity: .5;
  transition: opacity .6s var(--ease), color .6s var(--ease);
}
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 1; color: var(--rose-deep); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; color: var(--rose-deep); }
.mast-top .theme-toggle .knob {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px var(--shadow);
  /* slow, buttery glide — smooth ease-in-out so the knob eases off and settles */
  transition: transform .6s cubic-bezier(.65, .05, .36, 1), background .6s var(--ease);
}
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(32px); }

.mast {
  text-align: center;
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  padding: 22px 0 18px;
}
.mast a.title {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: .96;
  letter-spacing: -.01em;
  color: var(--ink);
}
.mast a.title i { font-style: italic; font-weight: 500; color: var(--rose-deep); }
.mast .sub {
  margin-top: 10px;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brown);
}

/* kicker nav row under masthead */
.kicker-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker-nav a { position: relative; padding-bottom: 2px; transition: color .2s var(--ease); }
.kicker-nav a:hover { color: var(--rose-deep); }

/* dateline strip */
.dateline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 9px 0;
  border-bottom: 2px solid var(--rule);
}

/* ---------- FRONT-PAGE GRID ---------- */
.edition {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 26px 0 8px;
}
@media (min-width: 900px) {
  .edition { grid-template-columns: 2.1fr 1fr; gap: 0 34px; }
  .edition .rail { border-left: 1px solid var(--line); padding-left: 34px; }
}

/* lead story */
.lead .label, .kicker-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
}
.lead h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 8px 0 6px;
}
.lead h1 a:hover { color: var(--rose-deep); }
.lead .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.32;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.byline {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  margin-bottom: 16px;
}
.byline b { color: var(--ink); font-weight: 500; }

/* lead body with newspaper columns */
.lead-body { font-family: var(--serif); font-size: 1.16rem; line-height: 1.5; color: var(--ink); }
@media (min-width: 620px) {
  .lead-body { column-count: 2; column-gap: 28px; column-rule: 1px solid var(--line); text-align: justify; hyphens: auto; }
}
.lead-body p { margin-bottom: .9em; }
.lead-body p:first-of-type::first-letter {
  font-weight: 600;
  float: left;
  font-size: 3.4em;
  line-height: .76;
  padding: 6px 10px 0 0;
  color: var(--rose-deep);
}
.continue {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  border-bottom: 1px solid var(--rose);
  padding-bottom: 2px;
}
.continue:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- RIGHT RAIL ---------- */
.rail-head {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--rule);
}
.rail-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-item .no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-deep);
  font-size: .92rem;
}
.rail-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.42rem;
  line-height: 1.08;
  margin: 3px 0 5px;
  transition: color .2s var(--ease);
}
.rail-item:hover h3 { color: var(--rose-deep); }
.rail-item p { font-size: .9rem; color: var(--ink-soft); }

/* promo / newsletter box */
.promo {
  margin-top: 22px;
  background: var(--rose-wash);
  border: 1px solid var(--line);
  padding: 20px;
  text-align: center;
}
.promo .label { color: var(--rose-deep); }
.promo h4 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 6px 0 8px; }
.promo p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: .92; }

/* below-the-fold teaser row */
.more-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 30px;
  border-top: 2px solid var(--rule);
  margin-top: 18px;
  padding-top: 20px;
}
@media (min-width: 760px) { .more-row { grid-template-columns: 1fr 1fr; } }
.teaser { padding: 6px 0 18px; }
.teaser + .teaser { border-left: none; }
@media (min-width: 760px) { .teaser:nth-child(2) { padding-left: 30px; border-left: 1px solid var(--line); } }
.teaser h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.06;
  margin: 5px 0 7px;
  transition: color .2s var(--ease);
}
.teaser:hover h2 { color: var(--rose-deep); }
.teaser p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- ARTICLE PAGE ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 30px 0 10px; }
.article .back {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brown); display: inline-block; margin-bottom: 16px;
}
.article .back:hover { color: var(--rose-deep); }
.article h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 8px 0 12px;
}
.article .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.34;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.article-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 8px; }
@media (min-width: 940px) { .article-grid { grid-template-columns: 1fr 280px; gap: 44px; } }

.prose { font-family: var(--serif); font-size: 1.24rem; line-height: 1.62; color: var(--ink); }
.prose > p:first-of-type::first-letter {
  font-weight: 600; float: left; font-size: 3.6em; line-height: .74;
  padding: 8px 12px 0 0; color: var(--rose-deep);
}
.prose p { margin-bottom: 1em; }
.prose h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  margin: 1.1em 0 .4em; line-height: 1.1;
}
.prose .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.28;
  color: var(--rose-deep);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 18px 0;
  margin: 22px 0;
  text-align: center;
}
.prose ul { list-style: none; margin: .4em 0 1em; }
.prose ul li {
  position: relative; padding-left: 22px; margin-bottom: .5em; font-size: 1.12rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--rose); border-radius: 50%;
}
.disclaimer {
  font-family: var(--sans); font-size: .82rem; color: var(--brown);
  border-left: 3px solid var(--rose); padding: 8px 0 8px 14px; margin-top: 24px;
}

/* article sidebar */
.aside .rail-head { margin-top: 0; }

/* ---------- FOOTER ---------- */
.foot {
  border-top: 3px double var(--rule);
  margin-top: 40px;
  padding: 26px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--brown);
}
.foot .links a { text-transform: uppercase; letter-spacing: .14em; margin-right: 16px; }
.foot .links a:hover { color: var(--rose-deep); }
.foot b { color: var(--ink); font-weight: 500; }

/* ---------- FLOATING CONTACT — same style as the homepage .float-btn ---------- */
.floats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 12px 30px -10px rgba(33, 26, 21, .5);
  transition: .35s var(--ease);
}
.float-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-3px) scale(1.05);
}
.float-btn svg { width: 26px; height: 26px; }

@media print { .mast-top .theme-toggle, .kicker-nav, .floats { display: none; } .wrap { box-shadow: none; } }
