@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Newsreader:ital,opsz,wght@0,6..72,200;0,6..72,300;1,6..72,200&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* Embed KrutiDev 010 local web font */
@font-face {
    font-family: 'Kruti Dev 010';
    src: local('Kruti Dev 010'), local('KrutiDev010'),
         url('../fonts/krutidev-010.woff2') format('woff2'),
         url('/assets/fonts/krutidev-010.woff2') format('woff2'),
         url('https://www.rajtool.com/webfonts/k10/krutidev-010.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Embed Chanakya and Walkman-Chanakya web font */
@font-face {
    font-family: 'Chanakya';
    src: local('Chanakya'), local('Walkman-Chanakya 901'), local('Walkman-Chanakya 905'), local('Walkman-Chanakya'),
         url('/assets/fonts/chanakya.woff2') format('woff2'),
         url('https://www.rajtool.com/webfonts/chanakya/chanakya.woff2') format('woff2'),
         url('https://www.rajtool.com/webfonts/chanakya.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Walkman-Chanakya';
    src: local('Walkman-Chanakya 901'), local('Walkman-Chanakya 905'), local('Walkman-Chanakya'), local('Chanakya'),
         url('/assets/fonts/chanakya.woff2') format('woff2'),
         url('https://www.rajtool.com/webfonts/chanakya/chanakya.woff2') format('woff2'),
         url('https://www.rajtool.com/webfonts/chanakya.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Embed Shree Lipi / Shree Dev 0714 web font */
@font-face {
    font-family: 'Shree Dev 0714';
    src: local('Shree Dev 0714'), local('SHREE-DEV-0714'), local('SHREE-DEV-0708'), local('SHREE714'), local('Shree-Lipi'),
         url('https://www.rajtool.com/webfonts/shreelipi/SHREE714.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SHREE-DEV-0714';
    src: local('SHREE-DEV-0714'), local('Shree Dev 0714'), local('SHREE714'),
         url('https://www.rajtool.com/webfonts/shreelipi/SHREE714.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-kruti {
    font-family: 'Kruti Dev 010', 'DevLys 010', sans-serif !important;
}

.font-chanakya {
    font-family: 'Chanakya', 'Walkman-Chanakya', 'Walkman-Chanakya 901', 'Walkman-Chanakya 905', sans-serif !important;
}

.font-shree-lipi {
    font-family: 'Shree Dev 0714', 'SHREE-DEV-0714', 'SHREE-DEV-0708', 'Shree-Lipi', sans-serif !important;
}

.font-hindi {
    font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif !important;
}

:root {
    /* Design Tokens from Style Guide */
    --color-ember-orange: #ff4f00;
    --color-iris-ink: #2b2358;
    --color-cream-paper: #fffefb;
    --color-parchment: #f8f4f0;
    --color-stone-linen: #eceae3;
    --color-driftwood: #c5c0b1;
    --color-ash-mist: #b7b6b3;
    --color-ink-brown: #201515;
    --color-bark: #36342e;
    --color-coffee-stone: #413735;
    --color-stone-gray: #939084;
    --color-obsidian: #000000;

    /* Fonts */
    --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Degular Display', ui-sans-serif, sans-serif;
    --font-editorial: 'Newsreader', 'GT Alpina', serif;

    /* Theme Aliases */
    --bg-page: var(--color-cream-paper);
    --surface-card: var(--color-parchment);
    --surface-inset: var(--color-stone-linen);
    --surface-border: var(--color-stone-linen);
    --text-primary: var(--color-ink-brown);
    --text-secondary: var(--color-bark);
    --text-muted: var(--color-stone-gray);
    --accent: var(--color-ember-orange);
}

.dark {
    --bg-page: #191414;
    --surface-card: #201b1b;
    --surface-inset: #2c2525;
    --surface-border: #3b3232;
    --text-primary: #fffefb;
    --text-secondary: #eceae3;
    --text-muted: #b7b6b3;
}

/* Base Body Styling */
body {
    font-family: var(--font-inter);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Font helpers - Independent of Tailwind runtime */
.font-sans, html, body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.font-display {
    font-family: 'Bricolage Grotesque', 'Degular Display', ui-sans-serif, system-ui, sans-serif !important;
    letter-spacing: 0.02em;
}

.font-editorial {
    font-family: 'Newsreader', 'GT Alpina', Georgia, Cambria, "Times New Roman", Times, serif !important;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
}

.font-kruti {
    font-family: 'Kruti Dev 010', 'DevLys 010', sans-serif !important;
}

.font-hindi {
    font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Inter', sans-serif !important;
}

.font-chanakya {
    font-family: 'Chanakya', 'Walkman-Chanakya', 'Walkman-Chanakya 901', 'Walkman-Chanakya 905', sans-serif !important;
}

.font-shree-lipi {
    font-family: 'Shree Dev 0714', 'SHREE-DEV-0714', 'SHREE-DEV-0708', 'Shree-Lipi', sans-serif !important;
}

/* Eyebrow tag */
.eyebrow-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.042em;
    color: var(--color-ember-orange);
}

/* Pill buttons */
.btn-ember {
    background-color: var(--color-ember-orange);
    color: #fffefb !important;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 22px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-ember:hover {
    background-color: #e54700;
}
.btn-ember:active {
    transform: scale(0.98);
}

.btn-outlined {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 20px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 15px;
    padding: 9px 20px;
    transition: all 0.15s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.btn-outlined:hover {
    background-color: var(--surface-inset);
}

/* Ghost links */
.ghost-link {
    color: var(--color-coffee-stone);
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.15px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.dark .ghost-link {
    color: #c5c0b1;
}
.ghost-link:hover {
    color: var(--color-ember-orange);
    text-decoration: underline;
}
.dark .ghost-link:hover {
    color: #ff4f00;
}

/* Warm paper cards */
.paper-card {
    background-color: var(--color-cream-paper);
    border: 1px solid var(--color-stone-linen);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.dark .paper-card {
    background-color: var(--surface-card);
    border-color: var(--surface-border);
}
.paper-card:hover {
    border-color: var(--color-driftwood);
}

/* Subtle warm divider */
.hairline-border {
    border-color: var(--color-stone-linen) !important;
}
.dark .hairline-border {
    border-color: var(--surface-border) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-driftwood);
    border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #473e3e;
}

/* Rich Text Formatting Styles for Contenteditable elements */
#editorInput, #editorOutput {
    word-break: break-word;
}

#editorInput p, #editorOutput p {
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.6 !important;
}

#editorInput ul, #editorOutput ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}

#editorInput ol, #editorOutput ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}

#editorInput li, #editorOutput li {
    display: list-item !important;
    margin-bottom: 0.2rem !important;
}

#editorInput table, #editorOutput table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
}

#editorInput td, #editorInput th, #editorOutput td, #editorOutput th {
    border: 1px solid var(--color-driftwood) !important;
    padding: 0.4rem 0.6rem !important;
}

#editorInput b, #editorInput strong, #editorOutput b, #editorOutput strong {
    font-weight: 700 !important;
}

#editorInput i, #editorInput em, #editorOutput i, #editorOutput em {
    font-style: italic !important;
}

#editorInput u, #editorOutput u {
    text-decoration: underline !important;
}

#editorInput s, #editorInput strike, #editorOutput s, #editorOutput strike {
    text-decoration: line-through !important;
}

#editorInput h1, #editorOutput h1 { font-size: 1.5rem !important; font-weight: 800 !important; margin: 0.5rem 0 0.25rem 0 !important; }
#editorInput h2, #editorOutput h2 { font-size: 1.3rem !important; font-weight: 700 !important; margin: 0.45rem 0 0.25rem 0 !important; }
#editorInput h3, #editorOutput h3 { font-size: 1.15rem !important; font-weight: 600 !important; margin: 0.4rem 0 0.2rem 0 !important; }

#sourceHtmlInput, #targetHtmlOutput {
    resize: none;
    box-sizing: border-box;
    outline: none;
}

/* Ambient Background Animations */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}
@keyframes heroFloatRev {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(-1.5deg); }
}
.hero-float {
    animation: heroFloat 14s ease-in-out infinite;
}
.hero-float-rev {
    animation: heroFloatRev 16s ease-in-out infinite;
}

/* Theme Toggle Icons - Pure CSS Fallback & Immediate Paint */
#themeSunIcon {
    display: none !important;
}
#themeMoonIcon {
    display: inline-block !important;
}
html.dark #themeSunIcon {
    display: inline-block !important;
}
html.dark #themeMoonIcon {
    display: none !important;
}


