/* =========================================
   CLASSIC MACINTOSH — PERSONAL WEBSITE
   System 7 / Platinum inspired
========================================= */

/* ---------- VARIABLES ---------- */

:root {
    --background: #DDDDDD;
    --window: #EEEEEE;
    --window-dark: #CCCCCC;

    --black: #111111;
    --grey: #666666;
    --white: #FFFFFF;

    --border: #222222;

    --font-title: "Chicago", "Geneva", Helvetica, sans-serif;
    --font-body: "Geneva", Helvetica, Arial, sans-serif;
    --font-mono: "Monaco", "Courier New", monospace;

    --border-width: 1px;
    --shadow: 3px 3px 0px #222222;
}

/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--black);

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;

    -webkit-font-smoothing: none;
}

p {
    white-space: pre-line;
}

/* ---------- GLOBAL LAYOUT ---------- */

.page {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 60px;
}

section {
    margin-bottom: 32px;
}

/* ---------- TOP NAVIGATION ---------- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;
    margin-bottom: 40px;

    border-top: 2px solid var(--black);
    border-bottom: 1px solid var(--black);
}

.nav-logo {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 13px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* ---------- WINDOW COMPONENT ---------- */

.window {
    background: var(--window);
    border: var(--border-width) solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.window-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 7px 12px;

    background: var(--window-dark);
    border-bottom: 1px solid var(--border);

    font-family: var(--font-title);
    font-size: 13px;
    font-weight: bold;
}

.window-content {
    padding: 24px;
}

/* ---------- INTRODUCTION ---------- */

.hero {
    padding: 60px 40px;
}

.hero h1 {
    margin: 0 0 20px;

    font-family: var(--font-title);
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.05;
    font-weight: normal;
    letter-spacing: -2px;
}

.hero h2 {
    margin: 0 0 24px;

    font-size: clamp(18px, 3vw, 26px);
    font-weight: normal;
}

.hero p {
    max-width: 600px;
    color: var(--grey);
}

/* ---------- SECTION HEADINGS ---------- */

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    font-family: var(--font-title);
    font-size: 18px;
    font-weight: normal;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--black);
}

/* ---------- PROJECT GRID ---------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project {
    background: var(--window);
    border: 1px solid var(--border);
    padding: 20px;

    transition: transform 120ms ease,
        box-shadow 120ms ease;
}

.project:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow);
}

.project h3 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 17px;
}

.project p {
    margin: 0;
    color: var(--grey);
    font-size: 14px;
}

/* ---------- BUTTONS ---------- */

.button {
    display: inline-block;

    padding: 8px 18px;

    background: var(--window);
    color: var(--black);

    border: 1px solid var(--black);
    box-shadow: 2px 2px 0 var(--black);

    font-family: var(--font-body);
    font-size: 13px;
    text-decoration: none;

    cursor: pointer;
}

.button:hover {
    background: var(--black);
    color: var(--white);
}

.button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* ---------- LINKS ---------- */

a {
    color: var(--black);
}

a:hover {
    text-decoration-thickness: 2px;
}

/* ---------- TAGS / LABELS ---------- */

.tag {
    display: inline-block;

    padding: 3px 8px;

    border: 1px solid var(--black);

    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
}

/* ---------- CONTACT ---------- */

.contact {
    padding: 32px;
    text-align: center;
}

.contact h2 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: normal;
}

/* ---------- FOOTER ---------- */

.footer {
    display: flex;
    justify-content: space-between;

    padding-top: 16px;
    margin-top: 50px;

    border-top: 1px solid var(--black);

    color: var(--grey);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 700px) {

    .page {
        width: calc(100% - 24px);
        padding-top: 12px;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero {
        padding: 36px 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .window-content {
        padding: 16px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
    }

    .project-link {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .project-link:hover {
        color: inherit;
    }
}

/* ---------- HEADER / FOOTER ---------- */


.site-header {
    width: 100%;
}

.site-footer {
    width: 100%;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
}



/* ---------- FOLD ---------- */
.fold-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font: inherit;
    text-align: left;
    margin: 0;
}

.fold-icon {
    font-family: var(--font-mono);
}

.fold-content {
    display: block;
    margin: 0;
}

.fold-content.collapsed {
    display: none;
}

.window-content {
    overflow: hidden;
  height: auto;
    overflow: hidden;
    transition: max-height 0.3s linear;
}

.window-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sun-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}