:root {
  /* Ivory / warm handmade-paper base */
  --ivory: #f5efe8;
  --parchment: #ebe1d7;
  --paper: #faf6f1;
  --warm-paper: #f1e8df;
  /* Muted rose gold / blush metal accents (names kept for stability) */
  --gold: #b98a7d;
  --gold-soft: #d8b6a9;
  --gold-pale: #ecd8cf;
  --bronze: #9d6a5d;
  /* Deep charcoal only where contrast is needed */
  --charcoal: #26201d;
  --ink: #352d29;
  --taupe: #94847a;
  --line: rgba(185, 138, 125, 0.30);
  --shadow: rgba(74, 52, 45, 0.16);
  --deep: #191310;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 251, 247, 0.9), transparent 38rem),
    radial-gradient(circle at bottom right, rgba(206, 168, 155, 0.22), transparent 34rem),
    linear-gradient(135deg, var(--ivory), var(--parchment));
  font-family: var(--sans);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    radial-gradient(rgba(63, 45, 19, 0.075) 0.55px, transparent 0.55px),
    radial-gradient(rgba(255, 255, 255, 0.22) 0.75px, transparent 0.75px),
    linear-gradient(92deg, rgba(185, 138, 125, 0.04), transparent 34%, rgba(255,255,255,0.08));
  background-size: 9px 9px, 13px 13px, 100% 100%;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 44%, rgba(56, 41, 20, 0.12) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
  position: relative;
  z-index: 1;
}

.section-card,
.public-work,
.workspaces {
  position: relative;
}

.hero {
  overflow: hidden;
  min-height: 760px;
  padding: clamp(42px, 7vw, 88px) clamp(24px, 6vw, 74px);
  border: 1px solid rgba(185, 138, 125, 0.35);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.86), rgba(235, 224, 216, 0.83)),
    repeating-linear-gradient(90deg, rgba(185, 138, 125, 0.035) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(0deg, rgba(185, 138, 125, 0.025) 0 1px, transparent 1px 10px);
  box-shadow:
    0 34px 84px rgba(74, 52, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(150, 100, 88, 0.12);
  text-align: center;
}

.paper-edge {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(185, 138, 125, 0.18);
  border-radius: 24px;
  pointer-events: none;
}

.paper-edge::before,
.paper-edge::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 138, 125, 0.45), transparent);
  top: 36px;
}

.paper-edge::before { left: 44px; }
.paper-edge::after { right: 44px; }

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 120%;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(58px, 12vw, 172px);
  color: rgba(185, 138, 125, 0.06);
  letter-spacing: -0.06em;
  white-space: nowrap;
  user-select: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 32px;
  color: var(--bronze);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
}

.logo-plaque {
  width: clamp(210px, 30vw, 318px);
  margin: 0 auto 42px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.88), rgba(236, 224, 216, 0.62));
  border: 1px solid rgba(185, 138, 125, 0.22);
  box-shadow:
    0 20px 50px rgba(74, 52, 45, 0.12),
    inset 6px 6px 15px rgba(150, 105, 92, 0.06),
    inset -8px -8px 16px rgba(255, 255, 255, 0.82),
    0 0 0 10px rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

.logo-plaque::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(185, 138, 125, 0.18);
  border-radius: 15px;
}

.primary-logo {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.8))
    drop-shadow(0 14px 22px rgba(92, 64, 57, 0.14));
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  text-shadow: 0 1px 0 rgba(255,255,255,0.95), 0 20px 34px rgba(61,45,22,0.14);
}

.tagline {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-style: italic;
  color: var(--bronze);
}

.gold-rule {
  width: min(340px, 72%);
  height: 24px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  position: relative;
}

.gold-rule::before,
.gold-rule::after {
  content: "";
  height: 1px;
  width: calc(50% - 16px);
  background: linear-gradient(90deg, transparent, var(--gold));
  position: absolute;
  left: 0;
}

.gold-rule::after {
  left: auto;
  right: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gold-rule span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(185, 138, 125, 0.08);
}

.hero-line {
  max-width: 760px;
  margin: 0 auto 34px;
  color: rgba(52, 45, 36, 0.78);
  font-size: clamp(1.04rem, 2vw, 1.38rem);
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff6f1;
  background:
    linear-gradient(145deg, #d7b0a4, #a26e60 56%, #c69283);
  border: 1px solid rgba(255, 246, 241, 0.55);
  box-shadow:
    0 18px 38px rgba(120, 76, 62, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -2px 0 rgba(96, 54, 44, 0.24);
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(120, 76, 62, 0.30);
}

.quiet-note {
  margin: 24px 0 0;
  color: rgba(52, 45, 36, 0.55);
  letter-spacing: 0.07em;
  font-size: 0.92rem;
}

.public-work {
  padding: 96px 0 70px;
  text-align: center;
}

.open-door-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.58), rgba(242, 233, 225, 0.80)),
    linear-gradient(90deg, rgba(185,138,125,0.08), transparent 33%);
  border: 1px solid rgba(185, 138, 125, 0.32);
  box-shadow:
    0 28px 70px rgba(67, 47, 18, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.open-door-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-left: 1px solid rgba(185, 138, 125, 0.23);
  border-top: 1px solid rgba(185, 138, 125, 0.18);
  pointer-events: none;
}

.open-door-lines {
  position: absolute;
  right: 32px;
  top: 32px;
  width: 160px;
  height: 120px;
  border-top: 1px solid rgba(185,138,125,0.26);
  border-right: 1px solid rgba(185,138,125,0.26);
  opacity: 0.6;
}

.open-door-lines::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 94px;
  height: 92px;
  border-top: 1px solid rgba(185,138,125,0.16);
  border-right: 1px solid rgba(185,138,125,0.16);
}

.status-pill,
.lock-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(185, 138, 125, 0.35);
  border-radius: 999px;
  color: var(--bronze);
  background: rgba(255, 252, 249, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-pill {
  padding: 10px 16px;
  margin-bottom: 24px;
}

.status-pill.open {
  color: #8a5749;
}

.open-door-card h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.open-door-card p {
  max-width: 670px;
  margin: 0 0 32px;
  color: rgba(52,45,36,0.72);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.8;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bronze);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.workspaces {
  padding: 48px 0 10px;
  text-align: center;
}

.workspaces h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.section-intro {
  max-width: 630px;
  margin: 20px auto 44px;
  color: rgba(52,45,36,0.62);
  line-height: 1.65;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.locked-card {
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 32px 28px;
  border-radius: 18px 18px 14px 14px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.94), rgba(236, 225, 217, 0.88));
  border: 1px solid rgba(185, 138, 125, 0.24);
  box-shadow:
    0 24px 54px rgba(74, 52, 45, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.76);
  overflow: hidden;
}

.locked-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: linear-gradient(90deg, rgba(185,138,125,0.1), rgba(185,138,125,0.26), rgba(185,138,125,0.08));
}

.locked-card::after {
  content: "PRIVATE";
  position: absolute;
  right: 22px;
  bottom: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  color: rgba(185, 138, 125, 0.035);
  pointer-events: none;
}

.locked-card:hover,
.locked-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(185, 138, 125, 0.42);
  box-shadow: 0 30px 64px rgba(74, 52, 45, 0.18);
}

.lock-pill {
  position: absolute;
  top: 26px;
  right: 24px;
  padding: 8px 12px;
}

.locked-card h3 {
  max-width: 75%;
  margin: 38px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.locked-card p {
  max-width: 360px;
  margin: 0 0 24px;
  color: rgba(52,45,36,0.66);
  line-height: 1.65;
}

.locked-card strong {
  color: var(--ink);
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
}

.locked-card.future {
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.84), rgba(236, 225, 217, 0.66));
}

.locked-card.future strong {
  color: var(--bronze);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  padding: 72px 24px 64px;
  text-align: center;
  color: rgba(251, 245, 232, 0.82);
  background:
    radial-gradient(circle at 50% 0%, rgba(198,150,136,0.26), transparent 32rem),
    linear-gradient(180deg, #2a201d, var(--deep));
  border-top: 1px solid rgba(210, 178, 165, 0.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.footer-mark {
  width: 138px;
  margin: 0 auto 20px;
  opacity: 0.85;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.25));
}

.footer-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--paper);
}

.footer-tagline {
  margin: 10px 0 24px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.12rem;
}

.footer-line {
  margin: 0 auto;
  max-width: 660px;
  color: rgba(251,245,232,0.62);
  line-height: 1.7;
}

.footer-rule {
  width: 120px;
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 720px);
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .open-door-lines {
    opacity: 0.35;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 34px 18px 44px;
  }

  .paper-edge {
    inset: 9px;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: 0.24em;
    font-size: 0.68rem;
  }

  .logo-plaque {
    width: min(245px, 82vw);
    margin-bottom: 34px;
  }

  .primary-button {
    width: 100%;
    justify-content: center;
    padding: 0 18px;
    letter-spacing: 0.14em;
  }

  .public-work {
    padding: 64px 0 44px;
  }

  .open-door-card,
  .locked-card {
    padding: 28px 22px;
  }

  .locked-card h3 {
    max-width: 72%;
    margin-top: 36px;
  }

  .lock-pill {
    right: 18px;
    top: 22px;
  }

  .footer-mark {
    width: 110px;
  }
}

/* MADHU BRAND OVERRIDE — clean ivory / rose gold / charcoal */
:root {
  --ivory-clean: #fbf8f2;
  --ivory-paper: #f6f1e9;
  --rose-gold: #b98980;
  --rose-gold-deep: #9f6f67;
  --taupe-line: #d8cbc0;
  --charcoal-soft: #2d2927;
  --text-muted: #6f625b;
}

html,
body {
  background: linear-gradient(135deg, #fbf8f2 0%, #f8f3ec 48%, #f2ebe2 100%) !important;
  color: var(--charcoal-soft) !important;
}

body::before,
body::after {
  opacity: 0.18 !important;
  filter: saturate(0.55) brightness(1.08) !important;
}

.hero,
.hero-shell,
.hero-card,
.intro,
header,
main {
  background-color: transparent !important;
}

.hero-card,
.logo-plaque,
.brand-plaque,
.card,
.workspace-card,
.locked-card,
.public-card {
  background: rgba(251, 248, 242, 0.86) !important;
  border-color: rgba(184, 137, 128, 0.28) !important;
  box-shadow:
    0 26px 70px rgba(45, 41, 39, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.75) !important;
}

h1,
h2,
h3,
.brand-name {
  color: var(--charcoal-soft) !important;
}

.tagline,
em,
.subtitle,
.script {
  color: var(--rose-gold-deep) !important;
}

.divider,
.rule,
hr {
  border-color: rgba(184, 137, 128, 0.38) !important;
  background: rgba(184, 137, 128, 0.38) !important;
}

a,
button,
.button,
.btn,
.cta {
  background: linear-gradient(135deg, #c99b92 0%, #a97870 100%) !important;
  color: #fffaf4 !important;
  border-color: rgba(159, 111, 103, 0.55) !important;
  box-shadow: 0 14px 34px rgba(159, 111, 103, 0.20) !important;
}

.pill,
.badge,
.status,
.private,
.locked,
.public {
  color: var(--rose-gold-deep) !important;
  border-color: rgba(184, 137, 128, 0.38) !important;
  background: rgba(251, 248, 242, 0.72) !important;
}

.watermark,
.private-watermark,
[aria-hidden="true"] {
  color: rgba(184, 137, 128, 0.08) !important;
}

footer {
  background: #2d2927 !important;
  color: #fbf8f2 !important;
  border-top-color: rgba(184, 137, 128, 0.35) !important;
}

footer em,
footer .tagline {
  color: #d8aaa0 !important;
}

/* MADHU HOMEPAGE — CTA copy/alignment refinement */
a[href*="smritinsha"],
.hero a,
.hero-card a,
.cta,
.button,
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  min-width: 300px !important;
  text-align: center !important;
  line-height: 1 !important;
  padding-top: 1.05rem !important;
  padding-bottom: 1.05rem !important;
  letter-spacing: 0.16em !important;
}

a[href*="smritinsha"]::after,
.hero a::after,
.hero-card a::after {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* MADHU HOMEPAGE — quiet Smritinsha CTA + public wording fix */
a[href*="smritinsha"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1rem 2.35rem !important;
  line-height: 1 !important;
  text-align: center !important;

  background: linear-gradient(135deg, #efe2d5 0%, #d8b4aa 100%) !important;
  color: #2d2927 !important;
  border: 1px solid rgba(159, 111, 103, 0.38) !important;
  border-radius: 999px !important;
  box-shadow:
    0 12px 30px rgba(45, 41, 39, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.65) !important;

  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

/* remove the arrow / imbalance */
a[href*="smritinsha"]::after {
  content: none !important;
  display: none !important;
}

/* stop inherited button styles making it too heavy */
.hero a[href*="smritinsha"],
.hero-card a[href*="smritinsha"],
.cta[href*="smritinsha"],
.button[href*="smritinsha"],
.btn[href*="smritinsha"] {
  transform: none !important;
}

/* CARD WORDING FIX — quiet ENTER keyplate */
a[href*="smritinsha"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.82rem 1.85rem !important;
  background: rgba(251, 248, 242, 0.82) !important;
  color: #2d2927 !important;
  border: 1px solid rgba(169, 117, 107, 0.42) !important;
  border-radius: 999px !important;
  box-shadow:
    0 10px 24px rgba(45, 41, 39, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  line-height: 1 !important;
  text-align: center !important;
}

a[href*="smritinsha"]::after {
  content: none !important;
  display: none !important;
}

/* FINAL COPY BALANCE — quiet Explore button + tighter locked card spacing */
a[href*="smritinsha"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.78rem 1.9rem !important;
  background: rgba(251, 248, 242, 0.84) !important;
  color: #2d2927 !important;
  border: 1px solid rgba(169, 117, 107, 0.42) !important;
  border-radius: 999px !important;
  box-shadow:
    0 10px 22px rgba(45, 41, 39, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  line-height: 1 !important;
  text-align: center !important;
}

a[href*="smritinsha"]::after {
  content: none !important;
  display: none !important;
}

/* stop long/private cards creating huge vertical gaps */
.locked-card,
.workspace-card,
.archive-card,
.card {
  gap: 0.72rem !important;
}

.locked-card h3,
.workspace-card h3,
.archive-card h3,
.card h3 {
  margin-bottom: 0.35rem !important;
}

.locked-card p:empty,
.workspace-card p:empty,
.archive-card p:empty,
.card p:empty {
  display: none !important;
}

.locked-card p,
.workspace-card p,
.archive-card p,
.card p {
  margin-top: 0.25rem !important;
  margin-bottom: 0.35rem !important;
}

.locked-card .status,
.workspace-card .status,
.archive-card .status,
.card .status,
.locked-card .pill,
.workspace-card .pill,
.archive-card .pill,
.card .pill {
  margin-top: 0.35rem !important;
}

/* CLEAN CARD COPY — hide empty filler lines */
.card p:empty,
.locked-card p:empty,
.workspace-card p:empty,
.archive-card p:empty,
.public-card p:empty {
  display: none !important;
}

.card p,
.locked-card p,
.workspace-card p,
.archive-card p,
.public-card p {
  margin: 0.25rem 0 !important;
}

.card,
.locked-card,
.workspace-card,
.archive-card,
.public-card {
  gap: 0.65rem !important;
}

/* FINAL TOP/BOTTOM BRANDING FIX */

/* hide the large top logo */
header img[src*="madhu-logo"],
.hero img[src*="madhu-logo"],
.hero-card img[src*="madhu-logo"],
.logo-plaque,
.brand-plaque {
  display: none !important;
}

/* start page with text identity, not logo */
.hero h1,
.brand-name,
h1 {
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

/* remove visible repeated private/status clutter */
.pill,
.badge,
.status,
.locked,
.private,
.public,
[class*="pill"],
[class*="badge"],
[class*="status"] {
  display: none !important;
}

/* keep cards compact now that filler text is gone */
.card,
.locked-card,
.workspace-card,
.archive-card,
.public-card {
  gap: 0.55rem !important;
}

.card p:empty,
.locked-card p:empty,
.workspace-card p:empty,
.archive-card p:empty,
.public-card p:empty {
  display: none !important;
}

/* make footer/bottom logo the only logo presence */
footer {
  margin-top: 5rem !important;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

footer img[src*="madhu-logo"] {
  display: block !important;
  margin: 2rem auto 0 auto !important;
  max-width: 120px !important;
  opacity: 0.78 !important;
}

/* FINAL: remove top branding, keep logo only at page end */

/* hide all top/header/hero logos */
header img,
.hero img,
.hero-card img,
.logo-plaque,
.brand-plaque {
  display: none !important;
}

/* hide top brand-title area */
header h1,
header h2,
header .brand-name,
header .tagline,
header .subtitle,
.hero h1,
.hero h2,
.hero .brand-name,
.hero .tagline,
.hero .subtitle,
.hero-card h1,
.hero-card h2,
.hero-card .brand-name,
.hero-card .tagline,
.hero-card .subtitle {
  display: none !important;
}

/* final bottom logo */
.final-logo-bottom {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 4rem !important;
  padding-bottom: 2.5rem !important;
}

.final-logo-bottom img {
  display: block !important;
  width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  opacity: 0.82 !important;
}

/* FINAL REPAIR — clean beige page, top text, bottom logo */

/* beige, not lemon */
html,
body {
  background: #f3eadf !important;
  background-image:
    radial-gradient(circle at top left, rgba(196, 156, 139, 0.16), transparent 34%),
    linear-gradient(135deg, #f7f1e9 0%, #f1e7dc 52%, #eadccd 100%) !important;
  color: #2d2927 !important;
}

/* remove old black footer patch */
footer,
footer * {
  background-color: transparent !important;
}

footer {
  background: transparent !important;
  color: #2d2927 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* keep old top logo hidden */
header img,
.hero img,
.hero-card img,
.logo-plaque,
.brand-plaque {
  display: none !important;
}

/* restore clean top identity */
.mk-clean-top {
  display: block !important;
  text-align: center !important;
  padding: 3.25rem 1.25rem 1.75rem !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.mk-clean-name {
  display: block !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(2.3rem, 6vw, 5rem) !important;
  line-height: 1 !important;
  color: #2d2927 !important;
  letter-spacing: 0.015em !important;
}

.mk-clean-tagline {
  display: block !important;
  margin-top: 0.65rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: #9b7168 !important;
}

/* if older hero text still exists, keep it suppressed */
.hero h1,
.hero h2,
.hero .brand-name,
.hero .tagline,
.hero .subtitle,
.hero-card h1,
.hero-card h2,
.hero-card .brand-name,
.hero-card .tagline,
.hero-card .subtitle {
  display: none !important;
}

/* beige bottom brand block, logo at very end */
.mk-clean-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  margin: 4.5rem auto 0 !important;
  padding: 2.5rem 1rem 3rem !important;
  background: transparent !important;
  color: #2d2927 !important;
  text-align: center !important;
}

.mk-clean-bottom img {
  display: block !important;
  width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  opacity: 0.9 !important;
  margin: 0 auto 0.65rem !important;
}

.mk-clean-studio {
  display: block !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #2d2927 !important;
}

.mk-clean-infra {
  display: block !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: #9b7168 !important;
}

/* FINAL BRAND CLEANUP — beige / rose gold, one bottom logo */

/* beige and rose gold only, no lemon, no pink */
html,
body {
  background: #efe5d8 !important;
  background-image:
    linear-gradient(135deg, #f4ecdf 0%, #eadccb 100%) !important;
  color: #2d2927 !important;
}

/* kill old black footer patch */
footer:not(.mk-bottom-only) {
  display: none !important;
}

/* hide every old logo everywhere */
img[src*="madhu-logo"],
.logo-plaque,
.brand-plaque {
  display: none !important;
}

/* top: only text */
.mk-top-only {
  display: block !important;
  text-align: center !important;
  padding: 3rem 1rem 1.5rem !important;
  background: transparent !important;
}

.mk-top-name {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  line-height: 1 !important;
  color: #2d2927 !important;
}

.mk-top-line {
  margin-top: 0.65rem !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(1.05rem, 2vw, 1.5rem) !important;
  color: #9f7468 !important;
}

/* suppress older hero branding, but not cards */
.hero h1,
.hero .brand-name,
.hero .tagline,
.hero .subtitle,
.hero-card h1,
.hero-card .brand-name,
.hero-card .tagline,
.hero-card .subtitle {
  display: none !important;
}

/* one clean Explore button only */
a[href*="smritinsha"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.8rem 2rem !important;
  background: #eadccb !important;
  color: #2d2927 !important;
  border: 1px solid rgba(159, 116, 104, 0.55) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  line-height: 1 !important;
  text-align: center !important;
}

a[href*="smritinsha"]::after {
  content: none !important;
  display: none !important;
}

/* bottom: one logo, visible, no black patch */
.mk-bottom-only {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 4rem auto 0 !important;
  padding: 2rem 1rem 3rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mk-bottom-only img {
  display: block !important;
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
  opacity: 1 !important;
}

/* TOP TYPE REPAIR — smaller, italic, dark brown */

/* dark brown typography across page */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, div {
  color: #3a2d28 !important;
}

/* top identity: smaller, italic, no Designs/Infra */
.mk-top-only {
  padding: 2.1rem 1rem 1rem !important;
}

.mk-top-name {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem) !important;
  line-height: 1.05 !important;
  color: #3a2d28 !important;
  letter-spacing: 0.01em !important;
}

.mk-top-line {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(0.9rem, 1.7vw, 1.15rem) !important;
  color: #6f5148 !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
}

/* hide any accidental top/header explore link only */
.mk-top-only a,
header a[href*="smritinsha"] {
  display: none !important;
}

/* keep the actual Smritinsha card Explore button visible */
.public-card a[href*="smritinsha"],
.card a[href*="smritinsha"],
article a[href*="smritinsha"] {
  display: inline-flex !important;
}

/* card headings: less huge, dark brown, italic */
.card h2,
.card h3,
.workspace-card h2,
.workspace-card h3,
.locked-card h2,
.locked-card h3,
.public-card h2,
.public-card h3 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(1.35rem, 3vw, 2.15rem) !important;
  color: #3a2d28 !important;
  line-height: 1.12 !important;
}

/* LIVE CLEANUP — replace Designs & Infra panel with logo */
.mk-logo-replacement-panel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 180px !important;
  padding: 2rem 1rem !important;
  background: rgba(244, 236, 224, 0.72) !important;
  border: 1px solid rgba(151, 105, 91, 0.22) !important;
  border-radius: 28px !important;
  box-shadow: none !important;
}

.mk-logo-replacement-panel img,
.mk-logo-replacement-panel img[src*="madhu-logo"] {
  display: block !important;
  width: 190px !important;
  max-width: 60% !important;
  height: auto !important;
  opacity: 0.92 !important;
}

/* The Home I Never Found — reduce size, light brown, italic */
.public-card h2,
.public-card h3,
.card h2,
.card h3 {
  color: #6f5148 !important;
}

.public-card h2,
.public-card h3 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  font-size: clamp(1.65rem, 4vw, 2.65rem) !important;
  line-height: 1.08 !important;
  color: #6f5148 !important;
}

/* Remove leftover filler lines if any remain visually */
p:empty,
span:empty,
div:empty {
  display: none !important;
}

/* FINAL TYPE + BOTTOM LOGO SCALE */

/* Make all card headings italic */
.card h2,
.card h3,
.public-card h2,
.public-card h3,
.locked-card h2,
.locked-card h3,
.workspace-card h2,
.workspace-card h3,
.archive-card h2,
.archive-card h3,
article h2,
article h3 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-style: italic !important;
  color: #6f5148 !important;
  line-height: 1.1 !important;
}

/* Reduce only The Home I Never Found / public card heading */
.public-card h2,
.public-card h3,
article:first-of-type h2,
article:first-of-type h3 {
  font-size: clamp(1.35rem, 3vw, 2rem) !important;
}

/* Make the bottom logo larger */
.mk-bottom-only img,
footer img[src*="madhu-logo"] {
  width: 260px !important;
  max-width: 72vw !important;
  height: auto !important;
  opacity: 1 !important;
}

/* PALETTE TUNE — more beige, less cream/yellow/gold */
html,
body {
  background: #e8dccd !important;
  background-image:
    linear-gradient(135deg, #eee3d4 0%, #e6d8c6 48%, #dccbb8 100%) !important;
  color: #3a2d28 !important;
}

/* soften panels/cards away from lemon cream */
.card,
.public-card,
.locked-card,
.workspace-card,
.archive-card,
section,
article {
  background: rgba(239, 228, 213, 0.86) !important;
  border-color: rgba(139, 101, 87, 0.24) !important;
}

/* rose-brown accents instead of yellow gold */
a[href*="smritinsha"],
button,
.button,
.btn,
.cta {
  background: #e0cfba !important;
  color: #3a2d28 !important;
  border-color: rgba(128, 88, 75, 0.42) !important;
  box-shadow: none !important;
}

/* headings: warm brown, not black/gold */
h1,
h2,
h3,
.card h2,
.card h3,
.public-card h2,
.public-card h3,
.locked-card h2,
.locked-card h3,
.workspace-card h2,
.workspace-card h3 {
  color: #6b4b3f !important;
}

/* reduce yellow cast on logo areas */
.mk-logo-replacement-panel,
.mk-bottom-only {
  background: transparent !important;
}

/* bottom logo slightly warmer but not yellow */
.mk-bottom-only img,
footer img[src*="madhu-logo"] {
  filter: sepia(0.18) saturate(0.78) brightness(0.96) !important;
}

/* SIGNATURE REFINEMENT — Madhu Kamath top name */
.mk-top-name {
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem) !important;
  letter-spacing: 0.015em !important;
  color: #5f4037 !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

.mk-top-line {
  color: #7a5a50 !important;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem) !important;
  letter-spacing: 0.08em !important;
}

/* FINAL PALETTE — white + beige only, no lemon yellow */
html,
body {
  background: #f7f3ee !important;
  background-image:
    linear-gradient(135deg, #ffffff 0%, #f3ece3 48%, #e6d8c8 100%) !important;
  color: #3a2d28 !important;
}

/* Cards and panels: white-beige, not yellow */
section,
article,
.card,
.public-card,
.locked-card,
.workspace-card,
.archive-card,
.mk-logo-replacement-panel {
  background: rgba(255, 252, 247, 0.88) !important;
  border-color: rgba(133, 103, 84, 0.20) !important;
  box-shadow:
    0 18px 44px rgba(58, 45, 40, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* Headings: soft brown */
h1,
h2,
h3,
.card h2,
.card h3,
.public-card h2,
.public-card h3,
.locked-card h2,
.locked-card h3,
.workspace-card h2,
.workspace-card h3 {
  color: #6a4d40 !important;
}

/* Explore button: beige, no gold/yellow */
a[href*="smritinsha"],
button,
.button,
.btn,
.cta {
  background: #eee4d8 !important;
  color: #3a2d28 !important;
  border-color: rgba(111, 82, 65, 0.32) !important;
  box-shadow: none !important;
}

/* Remove yellow/gold cast from logos */
img[src*="madhu-logo"] {
  filter: sepia(0.08) saturate(0.55) brightness(1.02) !important;
}

/* Bottom stays clean, no patch */
footer,
.mk-bottom-only {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* TRUE BEIGE OVERRIDE — remove remaining lemon yellow */
html,
body {
  background: #efe7dc !important;
  background-image: linear-gradient(135deg, #fbf8f3 0%, #efe7dc 52%, #dfd0bf 100%) !important;
}

/* all lines between / around cards: beige, not yellow */
section,
article,
.card,
.public-card,
.locked-card,
.workspace-card,
.archive-card,
.mk-logo-replacement-panel {
  background: rgba(250, 246, 240, 0.92) !important;
  border-color: #d7c6b4 !important;
}

/* any dividers/rules/lines */
hr,
.divider,
.rule,
[class*="line"],
[class*="border"] {
  border-color: #d7c6b4 !important;
  background-color: #d7c6b4 !important;
}

/* Explore button: beige only */
a[href*="smritinsha"],
button,
.button,
.btn,
.cta {
  background: #ded0bf !important;
  color: #3a2d28 !important;
  border: 1px solid #c9b7a4 !important;
  box-shadow: none !important;
}

/* headings: soft brown, no gold */
h1,
h2,
h3,
.card h2,
.card h3,
.public-card h2,
.public-card h3,
.locked-card h2,
.locked-card h3,
.workspace-card h2,
.workspace-card h3 {
  color: #6a4d40 !important;
}

/* remove lemon/gold glow anywhere */
* {
  text-shadow: none !important;
}


/* LINE COLOR FIX — replace bright lemon dividers with light brown */
section,
article,
.card,
.public-card,
.locked-card,
.workspace-card,
.archive-card,
.mk-logo-replacement-panel {
  border-color: #b79b84 !important;
}

/* internal divider lines / card separators */
hr,
.divider,
.rule,
[class*="divider"],
[class*="rule"],
[class*="line"],
[class*="border"] {
  border-color: #b79b84 !important;
  background-color: #b79b84 !important;
}

/* soften any bright gold/lemon strokes */
* {
  outline-color: #b79b84 !important;
}

/* Explore button border also light brown, not yellow */
a[href*="smritinsha"],
button,
.button,
.btn,
.cta {
  border-color: #ad9078 !important;
  background: #e4d7c8 !important;
  color: #3a2d28 !important;
}

/* FIX — remove accidental line/background from Designs on Life */
.mk-top-line {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  color: #6b4b42 !important;
}

.mk-top-line::before,
.mk-top-line::after {
  content: none !important;
  display: none !important;
}
