/* Base Reset & Globals */
@import "./tokens.css";

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: var(--text-base);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Center the app container */
}

/* App Container for Mobile View */
#app {
    width: 100%;
    max-width: 430px;
    /* iPhone Max width approx */
    height: 100vh;
    /* Changed from min-height to fix sticky */
    background-color: var(--bg-surface);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    /* Enable internal scrolling */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for desktop view */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

h1 {
    font-size: var(--text-2xl);
}

h2 {
    font-size: var(--text-xl);
}

h3 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-3);
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Elements Reset */
button,
input,
textarea,
select {
    font: inherit;
    border: none;
    background: none;
    color: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}