/* Tone: calm desk-tool UI with warm paper neutrals and restrained red accents. */
:root {
    color-scheme: light;
    --bg: linear-gradient(160deg, #f7f1e8 0%, #efe3d2 100%);
    --card: rgba(255, 250, 242, 0.88);
    --border: rgba(102, 69, 44, 0.14);
    --text: #2a211b;
    --muted: #6f5a49;
    --accent: #b84d38;
    --accent-strong: #94351f;
    --accent-soft: #f4d6c8;
    --shadow: 0 20px 50px rgba(86, 56, 34, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Yu Gothic UI", sans-serif;
}

.app {
    width: min(100%, 480px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--muted);
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 1;
}

.subtitle {
    margin: 14px auto 0;
    max-width: 32ch;
    color: var(--muted);
    line-height: 1.6;
}

.timer-card {
    margin-top: 28px;
    padding: 28px 22px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.mode-label {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.timer {
    margin: 16px 0 12px;
    font-size: clamp(4rem, 16vw, 6.25rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.session-hint,
.status {
    margin: 0;
    color: var(--muted);
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

button {
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 600;
    color: #fffaf5;
    background: var(--accent);
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
    box-shadow: 0 12px 24px rgba(148, 53, 31, 0.18);
}

button:hover,
button:focus-visible {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

button:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
}

.status {
    margin-top: 18px;
    min-height: 1.5em;
}

@media (max-width: 520px) {
    .controls {
        grid-template-columns: 1fr;
    }

    .timer-card {
        padding: 24px 18px;
    }
}
