/* ================= Custom Utilities ================= */
.writing-vertical-rl {
    writing-mode: vertical-rl;
}

.stroke-text {
    -webkit-text-stroke: 2px black;
    color: transparent; 
}

/* Hide scrollbar for clean horizontal scroll */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none; 
}

/* ================= Global Styles ================= */
:root {
    --color-primary: #dc2626;
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
}

/* ================= Typography ================= */
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--color-slate-900);
    background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
}

.font-display {
    font-family: 'Oswald', 'Noto Sans SC', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ================= Buttons ================= */
button, a.button {
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover, a.button:hover {
    transform: translateY(-2px);
}

/* ================= Links ================= */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* ================= Sections ================= */
section {
    position: relative;
}

/* ================= Container ================= */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= Grid Utilities ================= */
.grid-cols-1 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ================= Responsive Images ================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= Form Elements ================= */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--color-slate-300);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ================= Accessibility ================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================= Print Styles ================= */
@media print {
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
