:root {
    --bg: #f8f1eb;
    --surface: #fffaf6;
    --surface-soft: #f1e6de;
    --text: #171717;
    --text-soft: #65605d;
    --accent: #dc6848;
    --accent-hover: #c95537;
    --border: rgba(23, 23, 23, .14);
    --shadow: 0 20px 50px rgba(90, 55, 40, .12);
    --radius: 28px;
    --transition: .3s ease;
}

[data-theme="dark"] {
    --bg: #171514;
    --surface: #211e1c;
    --surface-soft: #2b2623;
    --text: #f8f3ef;
    --text-soft: #b9b0aa;
    --accent: #ee7957;
    --accent-hover: #ff8967;
    --border: rgba(255, 255, 255, .13);
    --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

/* ================================
   DARK MODE — BACKGROUND
================================ */

[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 82% 18%, rgba(238, 121, 87, .10), transparent 24%),
        radial-gradient(circle at 12% 78%, rgba(238, 121, 87, .055), transparent 22%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        42px 42px,
        42px 42px;
}

[data-theme="dark"] body::after {
    background: rgba(238, 121, 87, .045);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    transition: background var(--transition), color var(--transition);
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 104, 72, .09), transparent 24%),
        radial-gradient(circle at 12% 78%, rgba(220, 104, 72, .055), transparent 22%),
        linear-gradient(rgba(23, 23, 23, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 23, 23, .025) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        42px 42px,
        42px 42px;
    opacity: .9;
}

body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    top: 20%;
    right: -180px;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(220, 104, 72, .055);
    filter: blur(100px);
}

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

button {
    font: inherit;
}

main {
    min-height: 100vh;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

html.has-custom-cursor .cursor-dot,
html.has-custom-cursor .cursor-outline {
    display: block;
    opacity: 1;
}

html.has-custom-cursor,
html.has-custom-cursor * {
    cursor: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transition: transform .15s ease, background var(--transition);
}

.cursor-dot.is-clicking {
    transform: translate(-50%, -50%) scale(.7);
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent);
    transition:
        width .3s ease,
        height .3s ease,
        background .3s ease,
        border-color var(--transition),
        opacity .3s ease;
}

.cursor-outline.is-active {
    width: 58px;
    height: 58px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}