@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap");

/*
   DESIGN GRAMMAR
   ---------------------

   WEIGHTS:
   - 300: headers
   - 400: text

   SPACING:
   - 0.02em: Currently uniform for all text to improve dark mode readability

   COLORS:
   - --heading: Sand (warm beige)
   - --heading-hover: Shift towards brighter gold
   - --text: Blue-grey
   - --text-fade: Dimmed text color
   - --text-hover: Shift towards heading color
   - --*-hover-glow: Semi-transparent glow of the hover color
*/

:root {
    /* Background & surface */
    --background: rgba(20, 29, 46, 1);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --surface-subtle: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.1);

    /* Layout */
    --radius-main: 8px;
    --transition-hover: 0.2s;
    --container-width-wide: 1000px;
    --container-width-content: 700px;

    /* Typography */
    --font-main: "Geist", system-ui, sans-serif;
    /* Other cool fonts: Inter, Nunito , Figtree */
    --heading: rgba(245, 230, 211, 1);
    --rgb-heading-hover: 249, 207, 106;
    --heading-hover: rgba(var(--rgb-heading-hover), 1);
    --heading-hover-glow: rgba(var(--rgb-heading-hover), 0.6);
    --text-fade: rgba(117, 130, 154, 1);
    --text: rgba(154, 169, 193, 1);
    --rgb-text-hover: 194, 188, 182;
    --text-hover: rgba(var(--rgb-text-hover), 1);
    --text-hover-glow: rgba(var(--rgb-text-hover), 0.6);
}

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

body {
    background-color: var(--background);
    background-image: radial-gradient(
        circle at center,
        #212c3b 0%,
        #141d2e 100%
    );
    color: var(--text);
    font-family: var(--font-main);
    letter-spacing: 0.02em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2rem;
    width: 100%;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: var(--container-width-wide);
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--heading);
    transition: color var(--transition-hover) ease;
}

a:hover {
    color: var(--heading-hover);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0 0.15rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--heading);
    opacity: 0.5;
    transition: width var(--transition-hover) ease;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--heading);
}

.nav-links a:hover,
.nav-links a.force-hover {
    color: var(--heading-hover);
    filter: drop-shadow(0 0 12px var(--heading-hover-glow));
}

.nav-links a:hover::after {
    background: var(--heading-hover);
    opacity: 1;
}

main {
    flex: 1;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Shared layout for internal pages (about, thoughts) */

.about-main {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

.content-container {
    max-width: var(--container-width-content);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 2rem;
    display: block;
    line-height: 1.2;
    cursor: default;
}

.content-container > p,
.bio > p,
.page-content p,
.company-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: var(--text);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .content-container {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }
}
