/*
Theme Name: IMM Senior Show
Theme URI: https://show.immtcnj.com
Description: A theme for the IMM Senior Show at TCNJ, built on GeneratePress. Features per-year visual themes reflecting the style of each cohort's Squarespace site.
Author: TCNJ Department of Design & Creative Technology
Version: 1.0
Template: generatepress
Text Domain: imm-senior-show
*/

/* ═══════════════════════════════════════════════════════════
   GOOGLE FONTS
   All years use Urbanist (headings) + Poppins (body),
   matching the original Squarespace site.
   2026 placeholder uses Inter until students specify theirs.
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* Norwester — used by the 2026 cohort. Not on Google Fonts;
   loaded from cdnfonts which hosts the free version. */
@import url('https://fonts.cdnfonts.com/css/norwester');

/* ═══════════════════════════════════════════════════════════
   SHARED PALETTE
   Colors extracted directly from the live Squarespace site.
   These appear across all years.
═══════════════════════════════════════════════════════════ */
:root {
    /* Base palette — shared across all years */
    --imm-cream:    #fffefa;
    --imm-amber:    #d5a034;
    --imm-terra:    #c85346;
    --imm-teal:     #124037;
    --imm-steel:    #406f9c;
    --imm-dark:     #1a1a1a;
    --imm-mid:      #4a4a4a;
    --imm-light:    #f5f3ee;

    /* Default (2026 placeholder) theme variables */
    --year-bg:          var(--imm-cream);
    --year-surface:     #f0ede6;
    --year-text:        var(--imm-dark);
    --year-heading:     var(--imm-dark);
    --year-accent:      var(--imm-amber);
    --year-accent2:     var(--imm-teal);
    --year-hero-bg:     var(--imm-dark);
    --year-hero-text:   var(--imm-cream);
    --year-font-head:   'Inter', sans-serif;
    --year-font-body:   'Inter', sans-serif;
    --year-border:      rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════════════════
   PER-YEAR THEME OVERRIDES
   Applied via body class: .year-2021, .year-2022, etc.
   The PHP templates add this class automatically.
═══════════════════════════════════════════════════════════ */

/* 2021 — Warm and grounded. Amber on cream, teal accents.
   The original site foregrounded the IMM logo on a light
   background with amber as the primary color throughout. */
body.year-2021 {
    --year-bg:          var(--imm-cream);
    --year-surface:     #f0ede5;
    --year-text:        #2a2318;
    --year-heading:     var(--imm-amber);
    --year-accent:      var(--imm-amber);
    --year-accent2:     var(--imm-teal);
    --year-hero-bg:     var(--imm-teal);
    --year-hero-text:   var(--imm-cream);
    --year-font-head:   'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* 2022 — More varied palette. Steel blue enters as a key
   accent. Darker, slightly more editorial feel. */
body.year-2022 {
    --year-bg:          var(--imm-cream);
    --year-surface:     #eceae2;
    --year-text:        #2a2318;
    --year-heading:     var(--imm-terra);
    --year-accent:      var(--imm-terra);
    --year-accent2:     var(--imm-steel);
    --year-hero-bg:     var(--imm-steel);
    --year-hero-text:   var(--imm-cream);
    --year-font-head:   'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* 2023 — Amber returns as dominant accent.
   Terracotta as secondary. Warmer overall tone. */
body.year-2023 {
    --year-bg:          var(--imm-cream);
    --year-surface:     #f2ede3;
    --year-text:        #2a2318;
    --year-heading:     var(--imm-amber);
    --year-accent:      var(--imm-amber);
    --year-accent2:     var(--imm-terra);
    --year-hero-bg:     #2a1f0e;
    --year-hero-text:   var(--imm-amber);
    --year-font-head:   'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* 2024 — Deep navy hero (darkBlue.png). Amber on dark.
   The most contrast-forward of the years. */
body.year-2024 {
    --year-bg:          var(--imm-cream);
    --year-surface:     #eceae2;
    --year-text:        #1a1a2e;
    --year-heading:     #1a1a2e;
    --year-accent:      var(--imm-amber);
    --year-accent2:     var(--imm-steel);
    --year-hero-bg:     #0f1b35;
    --year-hero-text:   var(--imm-cream);
    --year-font-head:   'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* 2025 — Deep purple hero (darkpurple.png). Amber gold
   on near-off-white. The most recent and polished style. */
body.year-2025 {
    --year-bg:          var(--imm-cream);
    --year-surface:     #eeeae5;
    --year-text:        #1e1520;
    --year-heading:     #1e1520;
    --year-accent:      var(--imm-amber);
    --year-accent2:     #7b5ea7;
    --year-hero-bg:     #2d1b4e;
    --year-hero-text:   var(--imm-cream);
    --year-font-head:   'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* 2026 — Deep forest green with warm parchment surfaces.
   Norwester condensed display heading, Poppins body.
   Extracted directly from the live 2026 Squarespace site. */
body.year-2026 {
    --year-bg:          #f3edda;
    --year-surface:     #ece6d4;
    --year-text:        #1c2422;
    --year-heading:     #0c1a12;
    --year-accent:      var(--imm-amber);
    --year-accent2:     #124037;
    --year-hero-bg:     #0c1a12;
    --year-hero-text:   #fffefa;
    --year-font-head:   'Norwester', 'Urbanist', sans-serif;
    --year-font-body:   'Poppins', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES — apply theme variables site-wide
═══════════════════════════════════════════════════════════ */
body {
    background-color: var(--year-bg);
    color: var(--year-text);
    font-family: var(--year-font-body);
    font-weight: 300;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--year-font-head);
    color: var(--year-heading);
    line-height: 1.15;
    font-weight: 700;
}

a {
    color: var(--year-accent);
    text-decoration: none;
    transition: opacity 0.15s;
}
a:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════
   SITE HEADER / NAV
═══════════════════════════════════════════════════════════ */
.site-header,
.main-navigation {
    background-color: var(--year-hero-bg) !important;
    color: var(--year-hero-text) !important;
}

.main-navigation a,
.site-title a {
    color: var(--year-hero-text) !important;
    font-family: var(--year-font-head);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-navigation a:hover {
    color: var(--year-accent) !important;
    opacity: 1;
}

.site-title {
    font-family: var(--year-font-head);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   YEAR HERO BANNER
   Used at the top of each year's directory page
═══════════════════════════════════════════════════════════ */
.imm-year-hero {
    background-color: var(--year-hero-bg);
    color: var(--year-hero-text);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
}

.imm-year-hero h1 {
    font-family: var(--year-font-head);
    color: var(--year-hero-text);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.imm-year-hero .imm-year-subtitle {
    font-family: var(--year-font-body);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.imm-year-hero .imm-year-count {
    display: inline-block;
    border: 1px solid var(--year-accent);
    color: var(--year-accent);
    font-family: var(--year-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   YEAR NAVIGATION BAR
   Appears below the hero on every year page and project page
═══════════════════════════════════════════════════════════ */
.imm-year-nav {
    background-color: var(--year-surface);
    border-bottom: 1px solid var(--year-border);
    padding: 0.75rem 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.imm-year-nav a {
    font-family: var(--year-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--year-text);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid transparent;
    letter-spacing: 0.05em;
    transition: all 0.15s;
}

.imm-year-nav a:hover,
.imm-year-nav a.current {
    color: var(--year-hero-bg);
    background: var(--year-accent);
    border-color: var(--year-accent);
    opacity: 1;
}

.imm-year-nav .imm-year-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--year-text);
    opacity: 0.5;
    margin-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   Area-of-study filters on directory pages
═══════════════════════════════════════════════════════════ */
.imm-filter-bar {
    padding: 1.5rem 2rem 0.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.imm-filter-btn {
    font-family: var(--year-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    background: none;
    border: 1px solid var(--year-border);
    color: var(--year-text);
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}

.imm-filter-btn:hover,
.imm-filter-btn.active {
    background: var(--year-accent);
    border-color: var(--year-accent);
    color: var(--year-hero-bg);
}

/* ═══════════════════════════════════════════════════════════
   PROJECT GRID — directory listing
═══════════════════════════════════════════════════════════ */
.imm-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--year-border);
    border: 1px solid var(--year-border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 1200px;
    margin: 1.5rem auto 4rem;
    padding: 0 2rem;
}

.imm-project-card {
    background: var(--year-bg);
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
}

.imm-project-card:hover {
    background: var(--year-surface);
    opacity: 1;
}

.imm-project-card .card-name {
    font-family: var(--year-font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--year-heading);
}

.imm-project-card .card-project {
    font-family: var(--year-font-body);
    font-size: 0.875rem;
    color: var(--year-text);
    opacity: 0.7;
    font-style: italic;
}

.imm-project-card .card-area {
    display: inline-block;
    font-family: var(--year-font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--year-accent2);
    border: 1px solid var(--year-accent2);
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    margin-top: 0.3rem;
    width: fit-content;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   INDIVIDUAL PROJECT PAGE
═══════════════════════════════════════════════════════════ */
.imm-project-header {
    background: var(--year-hero-bg);
    color: var(--year-hero-text);
    padding: 3.5rem 2rem 3rem;
}

.imm-project-header h1 {
    font-family: var(--year-font-head);
    color: var(--year-hero-text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.imm-project-header .project-title-sub {
    font-family: var(--year-font-body);
    font-size: 1.1rem;
    opacity: 0.75;
    font-style: italic;
    margin: 0 0 1.25rem;
}

.imm-project-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.imm-meta-pill {
    font-family: var(--year-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--year-hero-text);
}

.imm-meta-pill.year { border-color: var(--year-accent); color: var(--year-accent); }
.imm-meta-pill.area { border-color: rgba(255,255,255,0.4); }

/* Project content area */
.imm-project-content {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.imm-project-content .wp-block-image {
    margin: 1.5rem 0;
}

.imm-project-content .wp-block-image img {
    border-radius: 6px;
    width: 100%;
    height: auto;
}

.imm-project-content h2,
.imm-project-content h3,
.imm-project-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.imm-project-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.75;
}

.imm-project-content blockquote {
    border-left: 3px solid var(--year-accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO
═══════════════════════════════════════════════════════════ */
.imm-home-hero {
    background: var(--year-hero-bg);
    color: var(--year-hero-text);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.imm-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(213,160,52,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.imm-home-hero .imm-eyebrow {
    font-family: var(--year-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--year-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.imm-home-hero h1 {
    font-family: var(--year-font-head);
    color: var(--year-hero-text);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.0;
    margin: 0 0 1.5rem;
}

.imm-home-hero h1 em {
    color: var(--year-accent);
    font-style: normal;
}

.imm-home-hero .imm-home-desc {
    font-family: var(--year-font-body);
    font-size: 1.1rem;
    opacity: 0.75;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.imm-event-box {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid var(--year-accent);
    padding: 1.25rem 2rem;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 2.5rem;
}

.imm-event-box .event-label {
    font-family: var(--year-font-body);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--year-accent);
    font-weight: 500;
}

.imm-event-box .event-value {
    font-family: var(--year-font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--year-hero-text);
}

.imm-home-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.imm-btn {
    font-family: var(--year-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
    border: 2px solid transparent;
}

.imm-btn-primary {
    background: var(--year-accent);
    color: var(--year-hero-bg);
    border-color: var(--year-accent);
}

.imm-btn-primary:hover {
    background: transparent;
    color: var(--year-accent);
    opacity: 1;
}

.imm-btn-secondary {
    background: transparent;
    color: var(--year-hero-text);
    border-color: rgba(255,255,255,0.3);
}

.imm-btn-secondary:hover {
    border-color: var(--year-accent);
    color: var(--year-accent);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE STRIP
   Row of year links on homepage
═══════════════════════════════════════════════════════════ */
.imm-archive-strip {
    background: var(--year-surface);
    border-top: 1px solid var(--year-border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.imm-archive-strip h2 {
    font-family: var(--year-font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--year-text);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.imm-archive-years {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.imm-archive-years a {
    font-family: var(--year-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--year-text);
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--year-border);
    border-radius: 4px;
    transition: all 0.15s;
}

.imm-archive-years a:hover {
    background: var(--year-accent);
    color: var(--year-hero-bg);
    border-color: var(--year-accent);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════════════════════════ */
.imm-search-wrap {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.imm-search-input {
    width: 100%;
    background: var(--year-surface);
    border: 1px solid var(--year-border);
    border-radius: 6px;
    padding: 0.75rem 1.1rem;
    font-family: var(--year-font-body);
    font-size: 0.95rem;
    color: var(--year-text);
    outline: none;
    transition: border-color 0.15s;
}

.imm-search-input:focus {
    border-color: var(--year-accent);
}

.imm-search-input::placeholder {
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--year-hero-bg) !important;
    color: var(--year-hero-text) !important;
    padding: 3rem 2rem !important;
    text-align: center;
    font-family: var(--year-font-body);
    font-size: 0.8rem;
    line-height: 2;
    opacity: 1;
}

.site-footer a {
    color: var(--year-accent) !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .imm-project-grid {
        grid-template-columns: 1fr;
        margin: 1rem 1rem 3rem;
        padding: 0;
    }
    .imm-home-hero { padding: 4rem 1.5rem 3rem; }
    .imm-year-hero { padding: 3rem 1.5rem 2.5rem; }
    .imm-project-content { padding: 0 1.25rem; }
}
