/* saudamini.in, direction B "Sunflower bold" (chosen 20 Oct 2026).
   Sunflower yellow leads: a full-width band on the home page, a slim yellow header elsewhere.
   Playfair Display for headings, Source Serif 4 for reading, Karla for small UI text,
   Tiro Devanagari Hindi for Hindi words (छाया, करोना) wherever they appear. */
:root {
  --sun: #f7c531;
  --sun-soft: #fff4cc;
  --sun-deep: #b97a00;
  --ink: #1f1c18;
  --ink-soft: #5f574b;
  --bg: #ffffff;
  --surface: #faf6ea;
  --rule: #ece4cf;
  --life: #b45309;
  --money: #23675a;
  --link: #8a5a00;
  --head: "Playfair Display", "Tiro Devanagari Hindi", Georgia, serif;
  --body: "Source Serif 4", "Tiro Devanagari Hindi", Georgia, serif;
  --ui: "Karla", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3eee3; --ink-soft: #bdb3a2; --bg: #16140f; --surface: #211e16; --rule: #37322568;
    --sun-soft: #3a3013; --life: #f4a259; --money: #6fc3ad; --link: #f7c531; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 70rem; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 44rem; }
.t-life { --tc: var(--life); }
.t-money { --tc: var(--money); }
.topic { font-family: var(--ui); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tc, var(--sun-deep)); text-decoration: none; }
a.topic:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { font-family: var(--ui); font-size: 0.85rem; color: var(--ink-soft); }
.draft { font-family: var(--ui); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bg); background: var(--ink-soft); border-radius: 4px; padding: 1px 7px; margin-right: 8px; }
.draft-note { display: inline-block; font-family: var(--ui); font-size: 0.85rem; color: var(--ink-soft); border: 1px dashed var(--ink-soft); border-radius: 6px; padding: 4px 12px; }

/* Header: the slim yellow bar on inner pages, and the nav inside the home band */
.site-head { background: var(--sun); color: #1f1c18; }
.site-head .wrap, .band-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.wordmark { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; text-decoration: none; color: #1f1c18; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-family: var(--ui); font-weight: 600; font-size: 0.98rem; }
nav a { text-decoration: none; color: #1f1c18; padding-block: 4px; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: #1f1c18; }

/* Home band */
.band { background: var(--sun); color: #1f1c18; }
.band-top { padding-block: 18px 0; }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; padding-block: clamp(28px, 6vw, 64px) clamp(36px, 7vw, 76px); }
.portrait { width: clamp(108px, 18vw, 176px); height: clamp(108px, 18vw, 176px); border-radius: 50%; object-fit: cover; border: 5px solid #1f1c18; background: var(--sun-soft); }
.headline { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.titleline { font-family: var(--ui); font-weight: 600; font-size: clamp(0.95rem, 1.8vw, 1.15rem); margin: 14px 0 0; }

/* Home: newest post large, the next three beside it */
.lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding-block: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.feature { text-decoration: none; display: block; }
.feature .cover { margin-bottom: 18px; }
.feature h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 8px 0 10px; }
.feature p { margin: 0 0 10px; color: var(--ink-soft); }
.feature:hover h2 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--rule); }
.side-list li:first-child { border-top: 4px solid var(--sun); }
.side-list a { display: block; padding: 16px 0; text-decoration: none; }
.side-list h3 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 4px 0 6px; }
.side-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.empty { font-family: var(--head); font-size: 1.5rem; padding-block: 56px; }

/* Cards and grids */
.archive, .more, .year { padding-block: clamp(28px, 4vw, 44px); }
.archive h2, .more h2, .year h2 { font-family: var(--head); font-weight: 700; font-size: 1.6rem; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.card { text-decoration: none; display: block; }
.card .row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px; }
.card h3 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 6px 0 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.cover { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a:hover .cover img { transform: scale(1.03); }
.cover.placeholder { background: var(--sun); }
.all { margin: 24px 0 0; font-family: var(--ui); font-weight: 600; }
.all a { text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Listing pages */
.list-head { padding-block: clamp(32px, 5vw, 56px) 8px; }
.list-head h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 10px; }
.list-head p { margin: 0; color: var(--ink-soft); font-family: var(--ui); }
.list-head a { color: var(--ink); font-weight: 600; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Posts */
.post-head { padding-block: clamp(32px, 6vw, 64px) 24px; }
.post-head h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.01em; margin: 10px 0 14px; text-wrap: balance; }
.post-cover { margin: 0 0 32px; }
.post-cover img { width: auto; max-width: 100%; max-height: 72vh; margin-inline: auto; border-radius: 10px; }
.prose { font-size: 1.12rem; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--head); font-weight: 700; line-height: 1.25; margin: 1.6em 0 0.5em; }
.prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.1rem; }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--sun); font-style: italic; }
.prose figure { margin: 1.8em 0; }
.prose figure img { margin-inline: auto; border-radius: 8px; max-height: 80vh; width: auto; }
.prose figcaption { font-family: var(--ui); font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.prose figure.gallery ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.prose figure.gallery figure { margin: 0; }
.prose figure.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 0.9rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose tr:first-child td { background: var(--sun-soft); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-end { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 24px; font-family: var(--ui); }
.tags { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 14px; }
.share { font-size: 0.95rem; margin-bottom: 28px; }
.share a { margin-left: 12px; font-weight: 600; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--sun-soft); border-radius: 12px; padding: 16px; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; font-size: 0.95rem; }
.more { background: var(--surface); margin-top: 48px; }

/* About */
.about { padding-block: clamp(32px, 6vw, 64px); }
.about .me { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--sun); }
.about h1 { font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); margin: 20px 0 16px; }
.contact { font-family: var(--ui); font-weight: 600; }
.contact a { text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Footer */
footer { background: #1f1c18; color: #f3eee3; margin-top: 56px; font-family: var(--ui); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 24px; }
footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
footer a { color: var(--sun); }
.more + footer { margin-top: 0; }

@media (max-width: 720px) {
  .lead { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; justify-items: start; }
}
