/* Minimal Tailwind-compatible utilities - extracted from site usage */
/* Replaces ~300KB Tailwind CDN with ~8KB custom CSS */

:root {
    --muted-lilac: #A189BF;
    --rich-black: #1A0E2E;
    --oxford-blue: #251642;
    --yinmn-blue: #412A68;
    --silver-lake-blue: #F6D799;
    --platinum: #EAE1F3;
}

/* === Self-hosted Montserrat Font === */
/* cyrillic-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -moz-tab-size: 4; tab-size: 4; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { line-height: inherit; font-family: 'Montserrat', sans-serif; background: var(--rich-black); color: var(--platinum); position: relative; }
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--oxford-blue) 0%, var(--rich-black) 100%);
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

/* Antialiased */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.heading-font { font-family: 'Montserrat', sans-serif; font-weight: 700; }

/* === CLS Prevention === */
#navigation-placeholder { min-height: 72px; }
#footer-placeholder { min-height: 200px; }

/* === Responsive Site Background === */
.site-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('../assets/images/dreamsy-background-mobile.webp') center / cover no-repeat;
}
@media (min-width: 768px) {
    .site-background {
        background-image: url('../assets/images/dreamsy-background-desktop.webp');
    }
}

/* === Layout === */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Positioning */
.top-1\/2 { top: 50%; }
.-top-2 { top: -0.5rem; }
.right-2 { right: 0.5rem; }
.-right-2 { right: -0.5rem; }
.right-4 { right: 1rem; }
.left-2 { left: 0.5rem; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* === Flexbox === */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Space */
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* === Grid === */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* === Sizing === */
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }

/* === Spacing === */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-4 { padding-right: 1rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }
.my-20 { margin-top: 5rem; margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

/* === Typography === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.leading-relaxed { line-height: 1.625; }

/* Text colors */
.text-white { color: #fff; }

/* === Backgrounds === */
.bg-gray-800 { background-color: #1f2937; }
.bg-opacity-20 { --tw-bg-opacity: 0.2; }
.bg-gray-800.bg-opacity-20 { background-color: rgba(31, 41, 55, 0.2); }
.bg-red-500 { background-color: #ef4444; }

/* === Borders === */
.border-t { border-top-width: 1px; border-top-style: solid; border-color: #e5e7eb; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* === Effects === */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }

/* === Transforms === */
.transform { transform: translateX(0); /* enable transforms */ }
.-translate-y-1\/2 { transform: translateY(-50%); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* === Transitions === */
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* === Interactivity === */
.cursor-pointer { cursor: pointer; }
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:underline:hover { text-decoration: underline; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(246, 215, 153, 0.5); }

/* === Lists === */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }

/* === Prose (basic) === */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1rem; }
.prose-lg { font-size: 1.125rem; }

/* === Mobile Menu === */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }
.mobile-menu a { min-height: 48px; display: flex; align-items: center; }
#mobileMenuBtn { min-width: 48px; min-height: 48px; display: grid; place-items: center; }

/* === Responsive: md (768px+) === */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:gap-4 { gap: 1rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:left-4 { left: 1rem; }
    .md\:right-4 { right: 1rem; }
    .md\:right-8 { right: 2rem; }
}

/* === Blog Hero Image === */
.blog-hero-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.5rem auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(246, 215, 153, 0.2);
    aspect-ratio: 3/4;
    object-fit: cover;
}
@media (min-width: 768px) {
    .blog-hero-image {
        max-width: none;
        width: 38%;
        float: left;
        margin-right: 2rem;
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }
}

/* === Dreamsy English Blog === */
.blog-shell { color: var(--platinum); }
.blog-reading-column { max-width: 820px; margin: 0 auto; }
.blog-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: 2rem; color: rgba(246, 215, 153, .68); font-size: .85rem; }
.blog-breadcrumb a:hover { color: var(--silver-lake-blue); }
.blog-header { margin-bottom: 1.5rem; }
.blog-kicker, .blog-card-kicker { color: var(--silver-lake-blue); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.blog-header h1, .blog-index-header h1 { color: var(--platinum); font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.18; font-size: clamp(2rem, 5vw, 3.4rem); margin: .65rem 0 1rem; }
.blog-meta { color: rgba(246, 215, 153, .68); font-size: .9rem; }
.blog-author { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; margin: 1.5rem 0 2.25rem; border: 1px solid rgba(246, 215, 153, .2); border-radius: 1rem; background: rgba(65, 42, 104, .25); }
.blog-author-mark { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #241533; background: var(--silver-lake-blue); font-weight: 700; }
.blog-author strong { color: var(--silver-lake-blue); }
.blog-author p { margin: .15rem 0 0; color: rgba(246, 215, 153, .7); font-size: .82rem; }
.blog-article { font-size: 1.06rem; line-height: 1.78; }
.blog-article::after { content: ''; display: block; clear: both; }
.blog-article .blog-hero-image { height: auto; aspect-ratio: 1; margin-bottom: 2rem; }
.blog-article section { clear: both; }
.blog-article p, .blog-article ul, .blog-article ol { margin-bottom: 1.2rem; }
.blog-article ul, .blog-article ol { padding-left: 1.4rem; }
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin-bottom: .45rem; }
.blog-article h2 { color: var(--silver-lake-blue); font-family: 'Montserrat', sans-serif; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.3; font-weight: 700; margin: 2.25rem 0 .9rem; }
.blog-lead { color: var(--platinum); font-size: 1.2rem; line-height: 1.7; }
.blog-note, .blog-disclaimer { display: flex; flex-direction: column; gap: .35rem; margin: 2rem 0; padding: 1.1rem 1.25rem; border-left: 3px solid var(--silver-lake-blue); border-radius: .5rem; background: rgba(65, 42, 104, .3); }
.blog-note strong, .blog-disclaimer strong { color: var(--silver-lake-blue); }
.blog-note p, .blog-disclaimer span { margin: 0; font-size: .9rem; opacity: .82; }
.blog-cta { margin: 3rem 0 1rem; padding: 2rem; text-align: center; border: 1px solid rgba(246, 215, 153, .25); border-radius: 1.25rem; background: linear-gradient(135deg, rgba(65, 42, 104, .42), rgba(246, 215, 153, .09)); }
.blog-cta h2 { color: var(--silver-lake-blue); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.55rem; margin-bottom: .5rem; }
.blog-cta p { margin-bottom: 1.2rem; opacity: .86; }
.blog-cta a { display: inline-block; padding: .75rem 1.5rem; border-radius: 999px; color: #241533; background: var(--silver-lake-blue); font-weight: 700; transition: transform .15s ease, opacity .15s ease; }
.blog-cta a:hover { transform: translateY(-2px); opacity: .9; }
.blog-index-header { max-width: 760px; margin: 1rem auto 2rem; text-align: center; }
.blog-index-header h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.blog-index-header > p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; opacity: .86; }
.blog-disclaimer { max-width: 760px; margin: 2rem auto 3rem; }
.blog-category { margin: 0 auto 3rem; }
.blog-category > h2 { color: var(--silver-lake-blue); font-family: 'Montserrat', sans-serif; font-size: 1.65rem; font-weight: 700; margin-bottom: 1rem; }
.blog-card-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
.blog-card { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; min-height: 150px; padding: .85rem; border: 1px solid rgba(246, 215, 153, .18); border-radius: 1rem; background: rgba(37, 22, 66, .56); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: rgba(246, 215, 153, .45); background: rgba(65, 42, 104, .62); }
.blog-card img { width: 110px; height: 145px; object-fit: cover; border-radius: .7rem; }
.blog-card h3 { color: var(--platinum); font-family: 'Montserrat', sans-serif; font-size: 1.05rem; line-height: 1.35; font-weight: 700; margin: .35rem 0 .45rem; }
.blog-card p:not(.blog-card-kicker) { color: rgba(246, 215, 153, .75); font-size: .88rem; line-height: 1.5; }
.blog-card span { display: inline-block; margin-top: .6rem; color: var(--silver-lake-blue); font-size: .82rem; font-weight: 700; }
.blog-article a, .blog-author a, .blog-editorial a { color: var(--silver-lake-blue); text-decoration: underline; text-underline-offset: .18em; }
.blog-article a:hover, .blog-author a:hover { text-decoration-thickness: 2px; }
.blog-table-wrap { clear: both; max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border: 1px solid rgba(246, 215, 153, .25); border-radius: .7rem; }
.blog-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; line-height: 1.6; }
.blog-table-wrap caption { padding: .85rem 1rem; text-align: left; color: var(--silver-lake-blue); font-weight: 700; background: rgba(65, 42, 104, .4); }
.blog-table-wrap th, .blog-table-wrap td { padding: .8rem 1rem; vertical-align: top; border-top: 1px solid rgba(246, 215, 153, .18); }
.blog-table-wrap thead th { background: rgba(65, 42, 104, .3); }
.blog-table-wrap tbody th { font-weight: 600; min-width: 8rem; }
.blog-table-wrap tbody tr:nth-child(even) { background: rgba(65, 42, 104, .15); }
.blog-editorial { margin-top: 3rem; line-height: 1.75; }
.blog-editorial h2 { color: var(--silver-lake-blue); font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; }
.blog-editorial p { margin-bottom: 1rem; }
.blog-shell a:focus-visible, .blog-table-wrap:focus-visible { outline: 2px solid var(--silver-lake-blue); outline-offset: 4px; }
@media (max-width: 480px) {
    .blog-card { grid-template-columns: 72px minmax(0, 1fr); gap: .75rem; }
    .blog-card img { width: 72px; height: 96px; }
    .blog-table-wrap th, .blog-table-wrap td { padding: .65rem; }
    .blog-header h1, .blog-index-header h1 { overflow-wrap: anywhere; }
}
@media (min-width: 768px) {
    .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-card { grid-template-columns: 92px 1fr; }
    .blog-card img { width: 92px; height: 125px; }
}
