:root {
    color-scheme: light;
    --bg: #f6f4ec;
    --surface: #ffffff;
    --surface-strong: #f0eee4;
    --surface-muted: #faf9f4;
    --text: #1d211b;
    --muted: #686b61;
    --border: #dfd9cc;
    --border-strong: #c9c1b2;
    --accent: #273321;
    --accent-strong: #172013;
    --accent-soft: #e4ecdf;
    --accent-ring: rgba(39, 51, 33, 0.16);
    --danger: #8b2525;
    --danger-bg: #f9e1df;
    --success: #276238;
    --success-bg: #def3e4;
    --warning: #745314;
    --warning-bg: #f6ebcb;
    --shadow: 0 16px 40px rgba(38, 36, 25, 0.08);
    --shadow-soft: 0 8px 22px rgba(38, 36, 25, 0.06);
    --radius: 18px;
    --radius-sm: 12px;
    --tap-size: 2.75rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 34rem),
        linear-gradient(180deg, var(--bg), #f2efe5 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

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

code {
    padding: 0.12rem 0.32rem;
    border: 1px solid rgba(39, 51, 33, 0.08);
    border-radius: 0.45rem;
    background: var(--surface-strong);
    color: var(--accent-strong);
    font-size: 0.92em;
}
