/* ---- CSS Variables (colors in one place) ---- */
:root {
    --bg:        #fafaf7;   /* warm off-white */
    --surface:   #ffffff;   /* card background */
    --ink:       #0a2540;   /* deep navy text */
    --ink-soft:  #4a5d75;   /* secondary text */
    --line:      #e8e6df;   /* subtle dividers */
    --accent:    #006d77;   /* ocean teal */
    --accent-2:  #83c5be;   /* lighter teal */
    --shadow:    0 1px 3px rgba(10, 37, 64, 0.04),
                 0 8px 24px rgba(10, 37, 64, 0.06);
}

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

/* ---- Body & Background ---- */
body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    /* subtle gradient background for atmosphere */
    background-image:
        radial-gradient(circle at 10% 0%, rgba(131, 197, 190, 0.15), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(0, 109, 119, 0.08), transparent 40%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

/* ====================================================
   HEADER + NAVIGATION
   ==================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

/* Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

/* Underline animation on hover */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--ink);
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================================
   BIO
   ==================================================== */
.bio {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.bio-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.bio h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.bio h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.bio h3:first-of-type {
    margin-top: 0;
}

.bio p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.bio strong {
    color: var(--ink);
    font-weight: 600;
}

/* ====================================================
   ASSIGNMENTS TABLE
   ==================================================== */
.assignments {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.assignments h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.assignments-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.assignments-table thead {
    background: linear-gradient(180deg, #f5f4ef 0%, #ecebe4 100%);
}

.assignments-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.assignments-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.assignments-table tbody tr:last-child td {
    border-bottom: none;
}

.assignments-table tbody tr {
    transition: background 0.2s ease;
}

.assignments-table tbody tr:hover {
    background: rgba(131, 197, 190, 0.08);
}

.assignments-table td:first-child {
    font-family: 'Fraunces', serif;
    color: var(--accent);
    font-weight: 600;
    width: 60px;
}

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

.assignments-table a:hover {
    color: var(--ink);
}

.assignments-table a.muted {
    color: #b8b5ab;
    font-weight: 400;
    font-style: italic;
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background: var(--ink);
    color: #d4dce6;
    margin-top: 6rem;
    padding: 4rem 3rem 2rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.site-footer p {
    color: #9aa8b8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #9aa8b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.copyright {
    max-width: 900px;
    margin: 1.5rem auto 0;
    color: #6b7989 !important;
    font-size: 0.85rem;
    text-align: center;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 700px) {
    .site-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1.25rem;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .bio-card {
        padding: 2rem 1.5rem;
    }

    .assignments-table th,
    .assignments-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
