:root {
    --bg-color: #1a1a1a;
    /* Dark charcoal close to black */
    --text-color: #fdfcf8;
    --cursor-color: #fdfcf8;
    --secondary-text: #aaa;
    --font-family: 'Inter', sans-serif;
}

body.light-mode {
    --bg-color: #Fdfcf8;
    /* Beige/White tone */
    --text-color: #1a1a1a;
    --cursor-color: #1a1a1a;
    --secondary-text: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px;
    line-height: 1.6;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    /* Smaller size */
    height: 10px;
    background-color: var(--cursor-color);
    /* Filled */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    /* Drastically reduced from 120px */
    padding-top: 100px;
    /* Added top padding to positioning it nicely from the top */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

h1 {
    font-size: 20px;
    /* Reduced from 24px */
    font-weight: 600;
}

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

nav a {
    text-decoration: none;
    color: var(--secondary-text);
    margin-left: 20px;
    font-size: 13px;
    /* Reduced from 16px */
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

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

nav a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Tooltip Styles */
nav a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Slide up effect */
    background-color: transparent;
    color: var(--text-color);
    padding-bottom: 8px;
    /* Spacing from icon */
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-transform: lowercase;
    font-weight: 500;
}

nav a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Main Content */
main {
    max-width: 800px;
    /* Removed flex-grow to stop pushing footer down */
    margin: 0 auto;
    width: 100%;
    display: block;
}

p {
    margin-bottom: 16px;
    /* Reduced from 24px */
    font-size: 15px;
    /* Reduced from 18px */
    color: var(--text-color);
    max-width: 700px;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
    /* Further reduced from 60px */
    padding-bottom: 40px;
    color: var(--secondary-text);
    font-size: 13px;
    /* Reduced from 14px */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.location-icon {
    margin-right: 5px;
    font-style: normal;
}

.subtle-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    /* Slightly bold */
    cursor: pointer;
    /* Ensure cursor changes */
    transition: text-shadow 0.3s ease;
}

/* Very subtle glow effect */
body .subtle-link {
    text-shadow: 0 0 10px rgba(253, 252, 248, 0.15);
}

body.light-mode .subtle-link {
    text-shadow: 0 0 10px rgba(26, 26, 26, 0.1);
}

.subtle-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 15px rgba(253, 252, 248, 0.3);
}

body.light-mode .subtle-link:hover {
    text-shadow: 0 0 15px rgba(26, 26, 26, 0.15);
}