/*
Theme Name: ENG 307 Writing Fiction
Theme URI: https://eng307.taltyliterary.com
Author: Morgan Talty
Author URI: https://morgantalty.com
Description: Course site for ENG 307: Writing Fiction — University of Maine, Spring 2026
Version: 1.0.0
License: Private
Text Domain: eng307
*/

:root {
    --ink: #1a1a1a;
    --paper: #faf8f5;
    --wine: #722f37;
    --wine-light: #8b3a42;
    --gold: #c9a227;
    --gold-muted: #b8973d;
    --cream: #f5f0e8;
    --slate: #4a4a4a;
    --mist: #e8e4dc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--gold-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    color: white;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.hero h1 em {
    font-style: italic;
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.5);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-quote cite {
    display: block;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 1rem;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* ===== SUBPAGE HERO ===== */
.hero-sub {
    background: var(--ink);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-sub .hero-tag {
    margin-bottom: 1.5rem;
}

.hero-sub h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: white;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-sub h1 em {
    font-style: italic;
}

.hero-sub p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.45);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.nav-container {
    background: var(--cream);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--mist);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nav-tab {
    padding: 1.25rem 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ===== CONTENT SECTIONS ===== */
.about-section,
.readings-section,
.schedule-section-inner,
.workshop-section,
.policies-section {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--slate);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Six Tendencies */
.tendencies {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
}

.tendencies h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.tendencies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.tendencies-list span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
}

/* Quote blocks */
.quote-block {
    margin: 3rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--mist);
}

.quote-block blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.quote-block cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--wine);
}

/* ===== READINGS ===== */
.reading-list {
    margin-top: 2rem;
}

.reading-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mist);
    transition: all 0.2s ease;
}

.reading-item:hover {
    padding-left: 0.5rem;
}

.reading-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--ink);
}

.reading-author {
    font-size: 0.9rem;
    color: var(--slate);
}

.reading-note {
    font-size: 0.8rem;
    color: var(--wine);
    font-style: italic;
    margin-top: 0.25rem;
}

.reading-context {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.reading-week {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wine);
    margin-right: 0.5rem;
}

.reading-category {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink);
    margin: 3rem 0 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mist);
}

.reading-category:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 2rem;
}

.reading-category-note {
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 1rem;
}

/* ===== SCHEDULE ===== */
.schedule-outer {
    background: var(--cream);
    padding: 0 2rem;
}

.schedule-section-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.phase-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-top: 4rem;
    margin-bottom: 0.5rem;
}

.phase-label:first-of-type {
    margin-top: 2rem;
}

.phase-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2rem;
}

.week-block {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--mist);
    transition: border-color 0.3s ease;
}

.week-block:hover {
    border-left-color: var(--wine);
}

.week-block.current {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(201,162,39,0.06), transparent);
    padding: 1.5rem;
    margin-left: -0.5rem;
    border-radius: 0 4px 4px 0;
}

.week-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.week-label .badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--ink);
    padding: 2px 10px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.day-row {
    margin: 0.5rem 0;
    line-height: 1.7;
}

.day-date {
    font-weight: 600;
    color: var(--ink);
    min-width: 85px;
    display: inline-block;
}

.day-topic {
    color: var(--slate);
}

.day-reading {
    display: block;
    color: var(--slate);
    font-size: 0.85rem;
    padding-left: 85px;
    font-style: italic;
    opacity: 0.8;
}

.day-exercise {
    display: block;
    color: var(--wine);
    font-size: 0.8rem;
    padding-left: 85px;
    margin-top: 2px;
}

.break-banner {
    background: var(--ink);
    color: var(--gold);
    text-align: center;
    padding: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin: 2rem 0;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.schedule-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.phase {
    text-align: center;
}

.phase-weeks {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.phase h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.phase p {
    font-size: 0.9rem;
    color: var(--slate);
}

/* ===== WORKSHOP ===== */
.protocol-box {
    background: var(--ink);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.protocol-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.protocol-box p {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
}

.rule {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--mist);
}

.rule:last-child {
    border-bottom: none;
}

.rule-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--wine);
    min-width: 45px;
    line-height: 1;
}

.rule h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.rule p {
    color: var(--slate);
    line-height: 1.7;
    font-size: 0.95rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 2rem 0;
}

.guide-card {
    background: var(--cream);
    padding: 25px;
    border-radius: 4px;
}

.guide-card.do {
    border-left: 3px solid var(--gold);
}

.guide-card.dont {
    border-left: 3px solid var(--wine);
}

.guide-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.guide-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--slate);
    line-height: 1.8;
}

.guide-card ul li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.submission-box {
    background: var(--paper);
    border: 2px solid var(--mist);
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.submission-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--wine);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.submission-box ul {
    margin: 0;
    padding-left: 18px;
    color: var(--slate);
    line-height: 1.9;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink);
    margin: 3rem 0 1.5rem;
    font-weight: 400;
}

/* ===== POLICIES ===== */
.policy-block {
    margin: 3rem 0;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--mist);
}

.policy-block:last-child {
    border-bottom: none;
}

.policy-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
}

.policy-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin: 2rem 0 0.75rem;
}

.policy-block p {
    color: var(--slate);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.highlight-box {
    background: var(--cream);
    border-left: 3px solid var(--gold);
    padding: 1.75rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--slate);
    line-height: 1.8;
    font-size: 0.95rem;
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.grade-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--mist);
    color: var(--slate);
    font-size: 0.95rem;
}

.grade-table td:first-child {
    font-weight: 600;
    color: var(--ink);
    width: 65%;
}

.grade-table td:last-child {
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--wine);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 1.5rem 0;
}

.contact-card {
    background: var(--paper);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--mist);
}

.contact-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate);
    margin-bottom: 4px;
}

.contact-card .value {
    color: var(--ink);
    font-size: 0.95rem;
}

/* ===== CLOSING SECTION ===== */
.closing {
    padding: 6rem 2rem;
    background: var(--ink);
    text-align: center;
}

.closing-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.closing cite {
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0d0d0d;
    padding: 2rem;
    text-align: center;
}

.site-footer p {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.site-footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.site-footer a:hover {
    color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .schedule-phases {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tab {
        padding: 1rem 1.25rem;
        font-size: 0.8rem;
    }

    .tendencies-list {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .rule {
        flex-direction: column;
        gap: 10px;
    }

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

    .day-reading,
    .day-exercise {
        padding-left: 0;
    }

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