/* TunnelUIWP Theme - Main Stylesheet */

@font-face {
    font-family: 'Noto Sans Devanagari';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/TuG7UUFzXI5FBtUq5a8bjKYTZjtRU6Sgv3NaV_SNmI0b8QQCQmHN5TV_9qo.woff2') format('woff2');
    unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
    font-family: 'TunnelUIWP';
    font-style: normal;
    font-weight: 100 900;
    src: url('../fonts/UcCo3FwrK3iLTcviYwY.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;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    src: url('../fonts/tDbV2o-flEEny0FZhsfKu5WU4xD7OwE.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;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    src: url('../fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.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;
}


:root {
    --font-primary: "TunnelUIWP", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-secondary: "Space Grotesk", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --container-width: 1200px;
    --container-narrow: 780px;
    --container-padding: 16px;

    /*main colors*/
    --color-primary: #1D4ED8;
    --color-primary-hover: #2563EB;
    --color-link: #194BD4;
    --color-link-hover: #1E40AF;
    --color-secondary: #7C3AED;
    --color-secondary-hover: #6D28D9;
    --color-accent: #06B6D4;
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-hover: #f1f5f9;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #0284c7;
    --color-rating: #f5b900;

    /*BG Colors*/
    --color-grid-bg: #e5efff;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index */
    --z-index-dropdown: 1000;

    /* Fonts */
    --font-size-4xs: 8px;
    --font-size-2xs: 10px;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;

    /* Font Weight */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Height */
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
}

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

html {
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    min-height: 100%;
}

.container {
    width: min(calc(100% - (var(--container-padding) * 2)), var(--container-width));
    margin-inline: auto;
}

.site-main {
    flex: 1;
}

/* Global Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    margin-bottom: var(--space-3);
    line-height: var(--line-height-snug);
    font-family: var(--font-primary);
    color: var(--color-text);
}

h1 {
    font-family: var(--font-secondary);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1rem, 3vw, 1.25rem);
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1rem);
}

/* Global Paragraph */
p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    margin-top: 0;
}

@media (max-width: 768px) {
    p {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-normal);
    }
}

/* Global Image Styles */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;

}

body.menu-open {
    overflow: hidden;
}

/* Accessibility: Skip to main content */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 10px 14px;
    transform: translateY(-160%);
    background: var(--color-background);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    transform: translateY(0);
}