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

:root {
    --background: #f8f7f4;
    --text: #1a1a1a; 
    --accent: #4a6c8c;  
    --border: #e0e0e0;
    --tag-bg: hsla(211, 31%, 42%, 0.1); 

    --font-main: 'inter', sans-serif;

    --width-max: 700px;
}

body.dark-mode {
    --background: #1e2025; 
    --text: #c8cddc;       
    --accent: #82aaff;    
    --border: #3a3f4b;
    --tag-bg: hsla(220, 24%, 65%, 0.1); 
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.notebook {
    max-width: var(--width-max);
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem; 
}

.entry {
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.entry p:last-child {
    margin-bottom: 0;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

h2 a {
    text-decoration: none;
    color: inherit; 
    font-weight: inherit;
}

strong {
    font-weight: 700;
    color: var(--text);
}

.principle h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.principle + .principle {
    margin-top: 2.5rem;
}


.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.setup-list h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.setup-list dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.5rem;
}
.setup-list dt {
    font-weight: 500;
    text-align: right;
    color: var(--text);
    opacity: 0.7;
}
.setup-list dd {
    margin: 0;
}

.connect-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.connect-list li span {
    color: var(--text);
    opacity: 0.8;
}

@media (max-width: 600px) {
    .notebook {
        padding: 4rem 1.5rem;
        gap: 4rem;
    }
    h1 { font-size: 2.5rem; }

    
    .setup-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .setup-list dt {
        text-align: left;
    }
}
    
#project-spotlight h3 {
    font-size: 1.75rem; 
    margin-bottom: 0.25rem;
}

.project-status {
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.9;
    font-family: var(--font-main); 
    margin-bottom: 2rem;
}

.project-description p {
    margin-bottom: 1rem;
}

.project-tech {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.project-tech h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-tech ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-tech li {
    background-color: hsla(211, 31%, 42%, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem 2rem;
}

.hobby-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.hobby-item li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.hobby-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    opacity: 0.8;
}


.skills-category {
    margin-bottom: 2.5rem;
}
.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.skills-list li {
    background-color: hsla(211, 31%, 42%, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

#notes p {
    max-width: 90%;
}

.coming-soon {
    margin-top: 2rem;
}

.coming-soon span {
    display: inline-block; 
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0.5;
    font-weight: 500;
    border-radius: 4px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.coming-soon span:hover {
    opacity: 0.6;
    border-color: #ccc; 
}

.substack-link {
    margin-top: 2rem;
}

.substack-link span {
    display: inline-block; 
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 1;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.substack-link span:hover {
    opacity: 0.6;
    border-color: #4a6c8c;
}

/* --- theme toggle button --- */
#theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    
    background: none;
    border: 1px solid var(--border);
    color: var(--accent);
    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#theme-toggle:hover {
    background-color: var(--tag-bg);
    border-color: var(--accent);
}