:root {
    /* Gruvbox Dark Hard (Obsidian-style) */
    --base: #1d2021;
    --surface: #282828;
    --overlay: #32302f;
    --muted: #928374;   /* grey */
    --subtle: #a89984;  /* grey 2 */
    --text: #ebdbb2;    /* fg1 */
    --love: #fb4934;    /* red */
    --gold: #fabd2f;    /* yellow */
    --rose: #d3869b;    /* purple */
    --pine: #83a598;    /* blue */
    --foam: #8ec07c;    /* aqua */
    --iris: #d3869b;    /* purple */
    --orange: #fe8019;  /* orange */
    --highlight-low: #282828;
    --highlight-med: #3c3836;
    --highlight-high: #504945;

    --font-serif: 'Newsreader', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Iosevka', 'SF Mono', 'Courier New', monospace;
}

[data-theme="light"] {
    /* Gruvbox Light Soft */
    --base: #f2e5bc;
    --surface: #ebdbb2;
    --overlay: #d5c4a1;
    --muted: #928374;
    --subtle: #7c6f64;
    --text: #3c3836;
    --love: #9d0006;
    --gold: #b57614;
    --rose: #8f3f71;
    --pine: #076678;
    --foam: #427b58;
    --iris: #8f3f71;
    --orange: #af3a03;
    --highlight-low: #ebdbb2;
    --highlight-med: #d5c4a1;
    --highlight-high: #bdae93;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--base);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Layout */
.layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    font-family: var(--font-sans);
}

.header-left {
    display: flex;
    flex-direction: column;
}

.site-logo-container {
    display: flex;
    align-items: center;
    border: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text);
}

.spiral-logo {
    transition: transform 0.5s ease;
}

.site-logo-container:hover .spiral-logo {
    transform: rotate(180deg);
}

.prompt-user { color: var(--foam); font-weight: 600; }
.prompt-at { color: var(--text); }
.prompt-host { color: var(--love); font-weight: 600; }
.prompt-sep { color: var(--text); }
.prompt-path { color: var(--pine); font-weight: 600; }
.prompt-char { color: var(--text); }

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav a {
    margin-left: 1.25rem;
    color: var(--subtle);
    border: none;
    font-size: 0.9rem;
}

.site-nav a:hover {
    color: var(--text);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1.25rem;
    padding: 0;
    color: var(--muted);
    display: flex;
    align-items: center;
}

/* Content Area */
.note-header {
    margin-bottom: 3rem;
}

.note-header h1 {
    font-weight: 600;
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    color: var(--gold); /* H1 Yellow in image */
}

/* Properties Block (Obsidian-style) */
.properties-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1.5rem 0 2.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.property-row {
    display: flex;
    gap: 1.5rem;
}

.property-key {
    color: var(--muted);
    width: 100px;
}

.property-value {
    color: var(--orange);
}

/* Markdown Typography */
.markdown-body h2 {
    color: var(--love); /* Orange-red H2 */
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.markdown-body h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-top: 2rem;
}

.markdown-body p {
    margin-bottom: 1.2rem;
}

.markdown-body ul {
    list-style: none;
    padding-left: 1rem;
}

.markdown-body ul li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--love);
    background-color: var(--surface);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    color: var(--text);
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--overlay);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

.markdown-body pre {
    background-color: var(--surface);
    padding: 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--highlight-med);
    overflow-x: auto;
    margin: 2rem 0;
}

.markdown-body pre code {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Footer & Backlinks */
.note-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--highlight-low);
}

.backlinks h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.backlinks ul {
    list-style: none;
    padding: 0;
}

.backlinks ul li::before { content: none; }

.backlinks a {
    font-size: 1rem;
    color: var(--pine);
}

/* Seasonal Effect Adjustment */
#seasonal-effect {
    opacity: 0.3 !important;
}

@media (max-width: 600px) {
    .layout { padding: 2rem 1rem; }
    .note-header h1 { font-size: 2rem; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .site-nav { margin-left: 0; }
    .site-nav a { margin-left: 0; margin-right: 1rem; }
}
