:root {
    --bg: #f6f4ee;
    --bg-elev: rgba(255, 255, 255, 0.72);
    --text: #2b241f;
    --muted: #65584f;
    --accent: #b5523f;
    --accent-soft: rgba(181, 82, 63, 0.2);
    --bg-spot-a: rgba(198, 141, 112, 0.18);
    --bg-spot-b: rgba(113, 126, 158, 0.16);
    --card-shadow: 0 20px 50px rgba(56, 41, 32, 0.14);
}

html[data-theme="dark"] {
    --bg: #121113;
    --bg-elev: rgba(25, 22, 28, 0.72);
    --text: #ece4dd;
    --muted: #b9aea5;
    --accent: #ffa36a;
    --accent-soft: rgba(255, 163, 106, 0.2);
    --bg-spot-a: rgba(198, 141, 112, 0.18);
    --bg-spot-b: rgba(113, 126, 158, 0.14);
    --card-shadow: 0 26px 64px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% -10%, var(--bg-spot-a) 0%, transparent 50%),
        radial-gradient(circle at 85% 8%, var(--bg-spot-b) 0%, transparent 52%),
        var(--bg);
    transition: background 280ms ease, color 180ms ease;
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.heading {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.015em;
}

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

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    border: 1px solid var(--accent-soft);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: 999px;
    font: 600 0.9rem "Manrope", sans-serif;
    padding: 10px 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease;
}

button:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

button:active {
    transform: translateY(0);
}

#theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
}

.theme-icon {
    display: block;
}

html[data-theme="dark"] .theme-icon.sun-mode {
    filter: brightness(0) invert(1);
}
