/* =========================
   Global Reset / Base
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

/* =========================
   Layout
========================= */

.container {
    display: block;
}

/* =========================
   Sidebar
========================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #161b22;
    border-right: 1px solid #21262d;
    padding: 40px 20px;
}

.logo h1 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: 1px;
}

.tagline {
    font-size: 14px;
    color: #8b949e;
    margin-top: 4px;
}

/* Navigation */

nav ul {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

nav li {
    margin-bottom: 12px;
}

nav a {
    text-decoration: none;
    color: #c9d1d9;
    font-size: 15px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: #58a6ff;
}

/* Footer note */

.footer-note {
    font-size: 12px;
    color: #6e7681;
}

/* =========================
   Main Content
========================= */

.content {
    margin-left: 260px;
    padding: 60px;
    max-width: 1100px;   /* prevents ultra-wide stretching */
}

/* =========================
   Hero Section
========================= */

.hero h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero p {
    max-width: 550px;
    color: #8b949e;
}

/* =========================
   Highlight Cards
========================= */

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 70px;
}

.card {
    background-color: #161b22;
    border: 1px solid #21262d;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
}

.card h3 {
    margin-top: 0;
    color: #ffffff;
}

.card p {
    color: #8b949e;
    font-size: 14px;
}

/* Buttons */

.button {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    text-decoration: none;
    color: #58a6ff;
    transition: opacity 0.2s ease;
}

.button:hover {
    opacity: 0.7;
}

/* =========================
   Current Section
========================= */

.current {
    margin-top: 80px;
}

.current h3 {
    color: #ffffff;
}

.current p {
    color: #8b949e;
    font-size: 14px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

    .container {
        display: block;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
	box-shadow: 5px 0 20px rgba(0,0,0,0.4);
    }

    nav ul {
        display: flex;
        gap: 20px;
        margin: 0;
    }

    nav li {
        margin-bottom: 0;
    }

    .content {
        padding: 30px;
    }
}

/* =========================
   Project Pages
========================= */

.project-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project h3 {
    margin-bottom: 5px;
    color: #ffffff;
}

.project .meta {
    font-size: 13px;
    color: #58a6ff;
    margin-bottom: 10px;
}

.project p {
    color: #8b949e;
    max-width: 700px;
}

.project-section {
    margin-top: 100px;
}

/* =========================
   Photography
========================= */

.gallery {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.photo-block h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.photo-block .meta {
    font-size: 13px;
    color: #58a6ff;
    margin-bottom: 20px;
}

.astro-image {
    width: 100%;
    max-width: 1100px;   /* prevents huge display */
    height: auto;
    border-radius: 6px;
    border: 1px solid #21262d;
    display: block;
}

.astro-image:hover {
    border-color: #58a6ff;
    cursor: pointer;
}

.description {
    margin-top: 15px;
    color: #8b949e;
    max-width: 700px;
}

/* =========================
   Writing Page
========================= */

.writing-project {
    margin-top: 60px;
    max-width: 800px;
}

.writing-project h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.writing-project .meta {
    font-size: 13px;
    color: #58a6ff;
    margin-bottom: 20px;
}

.logline {
    color: #c9d1d9;
    font-size: 16px;
    margin-bottom: 30px;
}

.classified {
    border: 1px solid #21262d;
    background-color: #161b22;
    padding: 25px;
    border-radius: 6px;
}

.classified .dim {
    color: #8b949e;
    font-size: 14px;
    margin-top: 10px;
}
