/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #FFF7EE;
    --foreground: oklch(0.1 0 0);
    --muted: oklch(0.95 0 0);
    --muted-foreground: oklch(0.45 0 0);
    --cupcake: #f8b65b;
}

body {
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 72rem; /* 1152px - max-w-6xl */
    margin: 0 auto;
    padding: 5rem 1.5rem; /* py-20 px-6 */
}

/* Header */
header {
    margin-bottom: 6rem; /* mb-24 */
}

.logo {
    margin-bottom: 2rem; /* mb-8 */
}

h1 {
    font-size: 3.75rem; /* text-6xl = 60px */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.025em; /* tracking-tight */
    line-height: 1;
    margin-bottom: 0.5rem; /* mb-2 */
}

.location-links {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* gap-6 */
    margin-bottom: 2.5rem; /* mb-10 */
    flex-wrap: wrap;
}

.location-links p {
    font-size: 1.125rem; /* text-lg */
    font-weight: 500; /* font-medium */
}

.separator {
    color: var(--muted-foreground);
}

.location-links a {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: var(--foreground);
    text-decoration: none;
    transition: color 150ms; /* transition-colors */
}

.location-links a:hover {
    color: var(--cupcake); /* hover:text-cupcake */
}

.bio {
    font-size: 1.25rem; /* text-xl */
    line-height: 1.625; /* leading-relaxed */
    max-width: 56rem; /* max-w-4xl */
    font-weight: 500; /* font-medium */
}

/* Sections */
.projects-section {
    margin-bottom: 5rem; /* mb-20 */
}

section {
    margin-bottom: 5rem; /* mb-20 */
}

h2 {
    font-size: 1.875rem; /* text-3xl = 30px */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.025em; /* tracking-tight */
    margin-bottom: 2.5rem; /* mb-10 */
}

/* Projects - Grid Layout matching Tailwind */
.project {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr)); /* grid-cols-12 */
    gap: 1.5rem; /* gap-6 */
    padding: 2rem 0; /* py-8 */
    border-top: 2px solid var(--foreground); /* border-t-2 border-foreground */
}

.project-col-1 {
    grid-column: span 12 / span 12; /* col-span-12 on mobile */
}

.project-col-2 {
    grid-column: span 12 / span 12;
}

.project-col-3 {
    grid-column: span 12 / span 12;
}

h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.25rem; /* mb-1 */
}

.subtitle {
    font-size: 0.875rem; /* text-sm */
    color: var(--muted-foreground);
    margin-bottom: 0.5rem; /* mb-2 */
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 700; /* font-bold */
    text-transform: uppercase; /* uppercase */
    letter-spacing: 0.05em; /* tracking-wider */
}

.badge-active {
    background-color: var(--foreground);
    color: var(--background);
}

.badge-exited,
.badge-discontinued,
.badge-construction {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.description {
    font-size: 1rem; /* text-base */
    line-height: 1.625; /* leading-relaxed */
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* gap-1 */
}

.links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500; /* font-medium */
    transition: color 150ms; /* transition-colors */
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* gap-1 between arrow and text */
}

.links a:hover {
    color: var(--cupcake); /* hover:text-cupcake */
}

.note {
    font-size: 0.875rem; /* text-sm */
    color: var(--muted-foreground);
    margin-left: 0.25rem; /* ml-1 */
}

/* Contact section */
.contact-section {
    padding-top: 3rem; /* pt-12 */
    border-top: 2px solid var(--foreground); /* border-t-2 border-foreground */
}

.contact-text {
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    margin-bottom: 2rem; /* mb-8 */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 32rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    font-family: "Geist", sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--foreground);
    background-color: var(--background);
    color: var(--foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cupcake);
}

.contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.submit-button {
    padding: 1.5rem 2.5rem; /* px-10 py-6 */
    font-size: 1rem; /* text-base */
    font-weight: 700; /* font-bold */
    text-transform: uppercase; /* uppercase */
    letter-spacing: 0.05em; /* tracking-wider */
    background-color: var(--foreground);
    color: var(--background);
    border: none;
    cursor: pointer;
    transition: background-color 150ms, color 150ms;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: var(--cupcake);
    color: var(--foreground);
}

/* Responsive - md breakpoint (768px) */
@media (min-width: 768px) {
    .container {
        padding: 8rem 1.5rem; /* py-32 px-6 */
    }

    header {
        margin-bottom: 8rem; /* mb-32 */
    }

    h1 {
        font-size: 6rem; /* text-8xl = 96px */
    }

    .bio {
        font-size: 1.5rem; /* text-2xl */
    }

    h2 {
        font-size: 2.25rem; /* text-4xl = 36px */
    }

    .projects-section {
        margin-bottom: 7rem; /* mb-28 */
    }

    section {
        margin-bottom: 7rem; /* mb-28 */
    }

    /* 3-5-4 column layout on desktop */
    .project-col-1 {
        grid-column: span 3 / span 3; /* md:col-span-3 */
    }

    .project-col-2 {
        grid-column: span 5 / span 5; /* md:col-span-5 */
    }

    .project-col-3 {
        grid-column: span 4 / span 4; /* md:col-span-4 */
    }
}

/* Print styles */
@media print {
    /* Hide contact form */
    .contact-section {
        display: none;
    }

    /* Optimize spacing for print */
    .container {
        padding: 1rem 0.5rem;
        max-width: 100%;
    }

    header {
        margin-bottom: 2rem;
    }

    .projects-section,
    section {
        margin-bottom: 2rem;
    }

    .project {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    /* Simplify colors for B&W printing */
    body {
        background-color: white;
        color: black;
    }

    .badge-active {
        background-color: black;
        color: white;
        border: 1px solid black;
    }

    .badge-exited,
    .badge-discontinued,
    .badge-construction {
        background-color: white;
        color: black;
        border: 1px solid black;
    }

    /* Show link URLs after the text */
    .links a::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }

    /* Remove hover effects */
    a:hover {
        color: inherit;
    }
}
