* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: 'Kalam', cursive, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.55;
    transition: background-color 0.25s ease, color 0.25s ease;
    touch-action: manipulation;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    overscroll-behavior-y: none;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    min-height: 100vh;
    min-height: 100dvh;
}

input, textarea, select { font-size: 16px !important; }

button, a, [role="button"] {
    min-height: 40px;
    min-width: 40px;
    touch-action: manipulation;
}

.fluid-container {
    width: 100%;
    max-width: min(44rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.75rem, 3vw, 1.25rem);
    padding-right: clamp(0.75rem, 3vw, 1.25rem);
}

.t-title { font-size: var(--fs-3xl); line-height: 1.15; }
.t-h1 { font-size: var(--fs-2xl); line-height: 1.2; }
.t-h2 { font-size: var(--fs-xl); line-height: 1.25; }
.t-h3 { font-size: var(--fs-lg); line-height: 1.3; }
.t-body { font-size: var(--fs-base); }
.t-small { font-size: var(--fs-sm); }
.t-tiny { font-size: var(--fs-xs); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--paper-border); border-radius: 10px; }