/* npcorner.in - the front door. Parchment, maroon and antique gold by day; ink and amber by night.
   Fonts are served from the site itself. Each app keeps its own stylesheet inside its lane. */
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("fonts/mukta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; src: url("fonts/mukta-600.woff2") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8E0-A8FF; }

:root {
  --paper: #f7f0e1; --card: #fffcf5; --ink: #2a2118; --muted: #76664f; --rule: #e3d6ba;
  --accent: #7b2d3b; --accent-soft: #f3e1e0; --gold: #b8893b; --gold-soft: #f5e8cc;
  --live: #3d6b4a; --live-soft: #e3eedf;
  --t-writing: #7b2d3b; --t-books: #a8742a; --t-artha: #2f6b5e; --t-markets: #3d4f86; --t-shop: #a4522f; --t-code: #4f5d52;
  --serif: "Lora", "Mukta", Georgia, serif; --display: "Playfair Display", "Mukta", Georgia, serif; --sans: "Inter", "Mukta", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(60,40,20,.06), 0 8px 24px -12px rgba(60,40,20,.18);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14161f; --card: #1c2030; --ink: #ece4d3; --muted: #a39a88; --rule: #30364d;
          --accent: #e0a458; --accent-soft: #3a2f24; --gold: #e0a458; --gold-soft: #3a3020;
          --live: #8cc79a; --live-soft: #21332a;
          --t-writing: #e58f9c; --t-books: #e0b460; --t-artha: #7cc7b4; --t-markets: #9fb0ea; --t-shop: #eb9a76; --t-code: #a9bba9;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6); }
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.7; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
[lang="mr"], [lang="hi"] { font-family: "Mukta", var(--serif); }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 11px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.brand small { font-family: "Mukta", var(--sans); font-size: .8rem; color: var(--muted); }
.brand-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .6rem; }
.brand-tag { font-family: "Mukta", var(--serif); font-size: 1.08rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.brand-tag::before { content: "—"; color: var(--gold); margin-right: .6rem; }
.sections { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-family: var(--sans); font-size: .88rem; }
.sections a { color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--accent); border-bottom-color: var(--gold); }

/* hero */
.hero { position: relative; text-align: center; padding: 4.5rem 0 3rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38rem 20rem at 50% 0%, var(--gold-soft), transparent 70%); opacity: .9; }
.hero > * { position: relative; }
.hero-mark { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; color: var(--gold); margin: 1.2rem 0 .5rem; }
.kicker [lang="mr"] { text-transform: none; letter-spacing: .02em; font-size: .95rem; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 6.5vw, 4rem); line-height: 1.08; margin: 0 auto; max-width: 16ch; }
.hero h1 em { color: var(--accent); }
.lede { font-style: italic; color: var(--muted); font-size: 1.15rem; margin: 1rem auto 0; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.8rem; font-family: var(--sans); font-size: .92rem; }
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: 99px; text-decoration: none; font-weight: 600; border: 1px solid var(--accent); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--accent); color: var(--card); }
.btn-ghost { color: var(--accent); background: transparent; }
.langs { margin-top: 1.6rem; font-family: var(--sans); font-size: .8rem; color: var(--muted); display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.langs span { border: 1px solid var(--rule); border-radius: 99px; padding: .15rem .75rem; background: var(--card); }

/* section heading */
.rule { display: flex; align-items: center; gap: 1rem; font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 3.2rem 0 .4rem; font-weight: 600; }
.rule::before, .rule::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.section-lede { text-align: center; color: var(--muted); font-style: italic; margin: 0 auto 1.6rem; max-width: 34rem; }

/* ventures */
.ventures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; }
.venture { --tint: var(--accent); position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.2rem; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; overflow: hidden; }
.venture::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tint); }
a.venture:hover { transform: translateY(-3px); border-color: var(--tint); }
.venture-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, transparent); }
.icon svg { width: 24px; height: 24px; }
.status { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: middle; }
.s-live { color: var(--live); background: var(--live-soft); }
.s-soon { color: var(--accent); background: var(--accent-soft); }
.s-workshop { color: var(--gold); background: var(--gold-soft); }
.s-later { color: var(--muted); background: color-mix(in srgb, var(--rule) 55%, transparent); }
.venture h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin: .5rem 0 0; }
.venture h3 [lang="mr"] { font-weight: 500; font-size: 1.1rem; color: var(--muted); margin-left: .35rem; }
.venture p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; font-family: var(--sans); font-size: .74rem; }
.chips span { border: 1px solid var(--rule); border-radius: 99px; padding: .1rem .6rem; color: var(--muted); }
.venture-foot { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--rule); font-family: var(--sans); font-size: .82rem; color: var(--tint); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.venture-foot small { color: var(--muted); font-weight: 400; }
.t-writing { --tint: var(--t-writing); } .t-books { --tint: var(--t-books); } .t-artha { --tint: var(--t-artha); }
.t-markets { --tint: var(--t-markets); } .t-shop { --tint: var(--t-shop); } .t-code { --tint: var(--t-code); }
.venture-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; align-items: center; }
.venture-feature .venture-body { display: flex; flex-direction: column; gap: .5rem; }
.venture-feature h3 { font-size: 1.9rem; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.pillar { border: 1px solid var(--rule); border-radius: 12px; padding: .75rem .9rem; background: var(--paper); }
.pillar b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.pillar span { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.venture-next { border-style: dashed; box-shadow: none; background: transparent; align-items: center; justify-content: center; text-align: center; min-height: 220px; }
.venture-next::before { display: none; }
.venture-next .icon { --tint: var(--muted); }

/* desk to door */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.step { padding: 1.5rem 1.4rem; position: relative; }
.step + .step { border-left: 1px solid var(--rule); }
.step-no { font-family: var(--display); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.step h4 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: .5rem 0 .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.step .chips { margin-top: .7rem; }

/* bookshelf */
.shelf { display: flex; align-items: flex-end; gap: .45rem; padding: 1.4rem 1.2rem 0; overflow-x: auto; scrollbar-width: thin; }
.spine { flex: 0 0 auto; width: 54px; border-radius: 4px 4px 2px 2px; padding: .8rem .2rem; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: .9rem; line-height: 1.2; color: #fbf3df; display: flex; align-items: center; justify-content: flex-start; box-shadow: inset -4px 0 0 rgba(0,0,0,.14), inset 3px 0 0 rgba(255,255,255,.08); }
.spine[lang="mr"] { font-family: "Mukta", var(--display); font-size: .95rem; }
.spine small { font-family: var(--sans); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: .6rem; }
.plank { height: 12px; margin: 0 .4rem; border-radius: 3px; background: linear-gradient(#b08a55, #7d5c33); box-shadow: 0 6px 12px -6px rgba(60,40,20,.5); }
.shelf-note { font-family: var(--sans); font-size: .8rem; color: var(--muted); text-align: center; margin-top: .9rem; }

/* subscribe */
.subscribe { margin: 3.4rem auto 0; max-width: 44rem; text-align: center; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 16px; padding: 2rem 1.4rem; box-shadow: var(--shadow); }
.subscribe h2 { font-family: var(--display); font-weight: 600; margin: 0; font-size: 1.6rem; }
.subscribe p { color: var(--muted); margin: .4rem 0 1.2rem; }
.subscribe form { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; font-family: var(--sans); }
.subscribe input { flex: 1 1 220px; max-width: 320px; padding: .7rem 1rem; border-radius: 99px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; }
.subscribe button { cursor: pointer; font: inherit; }

.colophon { margin-top: 4rem; border-top: 1px solid var(--rule); background: var(--card); padding: 1.6rem 0 2rem; font-family: var(--sans); font-size: .84rem; color: var(--muted); }
.colophon-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.colophon a { color: var(--muted); }

@media (max-width: 760px) {
  .venture-feature { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--rule); }
  .hero { padding-top: 3rem; }
  .sections { gap: .2rem .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* fresh from the lanes */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.entry { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.entry:hover { border-color: var(--accent); transform: translateY(-2px); }
.entry-kicker { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.entry-title { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.entry[lang="mr"] .entry-title, .entry[lang="hi"] .entry-title { font-family: "Mukta", var(--display); }
.entry-summary { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.entry-meta { font-family: var(--sans); font-size: .76rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }

a.spine { text-decoration: none; transition: transform .15s; }
a.spine:hover { transform: rotate(180deg) translateY(6px); }

/* plain pages */
.page { max-width: 42rem; margin: 0 auto; padding: 3rem 0 1rem; }
.page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; text-align: center; }
.page .kicker { text-align: center; }
.prose { font-size: 1.1rem; line-height: 1.85; }
.prose p { margin: 0 0 1.1em; }
.hidden-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quiet { font-size: .8rem; color: var(--muted); margin: 1rem 0 0 !important; font-family: var(--sans); }
.spine { white-space: nowrap; overflow: hidden; }
.shelf { justify-content: safe center; }
