/* ==========================================================================
   Philosophy & Technology — site.css
   Design tokens/nav/footer patterns match michaelreno.org (style.css)
   so this subdomain reads as part of the same site.
   ========================================================================== */

:root {
    --color-primary: #1a202c;    /* Deep slate */
    --color-secondary: #4a5568;  /* Lighter slate */
    --color-accent: #3182ce;     /* Academic blue */
    --color-background: #f7fafc; /* Very light gray */
    --color-surface: #ffffff;    /* White cards */
    --color-border: #e2e8f0;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Merriweather', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .nav-links a, button, .btn {
    font-family: var(--font-heading);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Nav (matches michaelreno.org) ---------- */
.site-nav {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a.active {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.3rem;
}

/* Stack the nav on narrow screens so the logo and links don't collide. */
@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1.25rem;
    }
    .logo { font-size: 1.25rem; }
    .nav-links { gap: 1.25rem; }
}

/* ---------- Page header (matches michaelreno.org internal pages) ---------- */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: 5rem 2rem 4rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-border);
}

.page-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-header .subtitle {
    color: #cbd5e0;
    font-size: 1.15rem;
    font-weight: 300;
}

/* ---------- Generic content blocks ---------- */
main {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

main.wide {
    max-width: 1200px;
}

section { margin-bottom: 3rem; }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------- Syllabus / weekly schedule ---------- */
.week-block {
    border-left: 3px solid var(--color-accent);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin-bottom: 2rem;
}

.week-block h3 {
    margin-bottom: 0.5rem;
}

.week-block .day {
    font-weight: 700;
    color: var(--color-primary);
}

/* ---------- Archive list ---------- */
.archive-year {
    margin-bottom: 2.5rem;
}

.archive-list {
    list-style: none;
}

.archive-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.archive-list a {
    text-decoration: none;
    font-weight: 600;
}

.archive-list .meta {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

/* ---------- Student feed grid ---------- */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feed-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.feed-card .student-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.feed-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feed-card h4 a {
    text-decoration: none;
    color: var(--color-primary);
}

.feed-card h4 a:hover { color: var(--color-accent); }

.feed-card p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.feed-card .date {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #a0aec0;
}

.feed-status {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    padding: 2rem 0;
    text-align: center;
}

/* ---------- Syllabus units + schedule tables (option 2b) ---------- */
.syllabus-unit {
    margin-bottom: 3rem;
}

.syllabus-unit .unit-title {
    font-size: 1.35rem;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-border);
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.schedule th,
.schedule td {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.schedule tr:last-child td { border-bottom: none; }

.schedule thead th {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
}

/* Full-width week header row inside a unit's table */
.schedule .week-row th {
    background-color: var(--color-background);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.schedule .date-cell {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    white-space: nowrap;
    width: 1%;
}

/* ---------- The Docket (option 5a) ---------- */
.docket-entry {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.docket-entry .docket-date {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}

.docket-entry h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.docket-entry .docket-reading {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.docket-entry .docket-note {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-top: 0.6rem;
}

/* ---------- Student feeds: sidebar + post pane (option 3b) ---------- */
.feeds-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.student-sidebar {
    position: sticky;
    top: 6rem;
}

.student-list {
    list-style: none;
}

.student-list button {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.student-list button:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.student-list button.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

.student-list .post-count {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.8;
    float: right;
}

.post-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.post-item .student-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.post-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.post-item h4 a {
    text-decoration: none;
    color: var(--color-primary);
}

.post-item h4 a:hover { color: var(--color-accent); }

.post-item .date {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 0.6rem;
}

.post-item p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-item .read-more {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 700px) {
    .feeds-layout {
        grid-template-columns: 1fr;
    }
    .student-sidebar {
        position: static;
    }
    .student-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .student-list li { flex: 0 1 auto; }
    .student-list button { margin-bottom: 0; }
    .student-list .post-count { display: none; }
}

/* ---------- Blog post prompts, grouped by week (option 4b) ---------- */
.prompt-week {
    margin-bottom: 2.5rem;
}

.prompt-week h2 {
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.prompt-list {
    list-style: none;
}

.prompt-list li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

/* ---------- Editor's note (placeholder guidance in-page) ---------- */
.editor-note {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* ---------- Footer (matches michaelreno.org) ---------- */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
}
