/* ==========================================
   DESIGN TOKENS
   Change these values to re-theme the site
========================================== */

:root {

    --primary: #1d3557;
    --secondary: #457b9d;

    --text: #222;
    --muted: #666;

    --background: #ffffff;
    --surface: #f8f9fa;

    --derder: #dddddd;

    --max-width: 1200px;

    --radius: 8px;

    --shadow:
        0 2px 8px rgba(0,0,0,.08);

}

/* ==========================================
   RESET
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ==========================================
   TYPOGRAPHY
========================================== */

body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: var(--text);
    background: var(--background);

}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--primary);
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================
   LAYOUT
========================================== */

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

main {
    display: block;
}

section {
    padding: 4rem 0;
}

/* ==========================================
   SITE TITLE LINK
========================================== */

.site-title a {
    color: #ebc634;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 700;
    font-size: 1.75em;
}

.site-title a:visited {
    color: #ebc634;
}

.site-title a:hover {
    color: #fff;
    text-decoration: none;
}

.site-title a:active {
    color: #fff;
    text-decoration: none;
}

/* ==========================================
   HEADER
========================================== */

header {
    z-index: 1000;
    background: rgba(29, 53, 87, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    box-shadow:
        0 3px 12px rgba(0,0,0,.20);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition:
        background .25s ease,
        box-shadow .25s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

header h1,
header h2,
header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: #fff;
    font-weight: 600;
}

header nav a:hover {
    opacity: .8;
    text-decoration: none;
}

/* ==========================================
   HERO
========================================== */

.hero {
    background: rgba(255,255,255,.5);
    text-align: center;
    padding: 10rem 0;
    height: 800px;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--muted);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(255,255,255,.25),
        rgba(255,255,255,.55),
        rgba(255,255,255,.85)
    );
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* ==========================================
   TIMELINE / LEGACY
========================================== */

.timeline-section {
    margin-top: 0;
}

.timeline-section,
.school-year-section {
    position: relative;
    z-index: 2;
    background: #fff;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.timeline-horizontal {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.timeline-row {
    padding: 1.25rem 0;
}

.timeline-row + .timeline-row {
    border-top: 1px solid var(--border);
}

.timeline-row h3 {
    display: block;
    margin: 0 0 .75rem;
    font-size: .5em;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
}

.timeline-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.timeline-node {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .02em;
    padding: .4rem .8rem;
    border-radius: 10px;
    border-bottom: 0;
    text-decoration: none;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.timeline-node.active {
    color: #fff;
    background: var(--navigator-color);
    text-decoration: none;
}

.timeline-node:hover,
.timeline-node.active:hover {
    color: #fff;
    background: var(--highlight-color);
    text-decoration: none;
}

/* ==========================================
   v0.4 PRESENTATION POLISH
   Legacy narrative sections
========================================== */

.school-year-section {
    position: relative;
    z-index: 20;
    padding: 20px 0 0;
    background: #fff;
}

.school-year-section h2 {
    text-align: center;
    margin: 0;
    font-size: 3rem;
    line-height: 1.15;
}

.school-year-divider {
    display: flex;
    align-items: center;
    width: 25%;
    margin: 6px auto 40px;
    color: var(--highlight-color);
}

.school-year-content {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

.school-year-divider::before,
.school-year-divider::after {
    content: "";
    flex: 1;
    height: 4px;
    background: var(--highlight-color);
}

.year-block {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: 0;
}

.year-block:last-child {
    border-bottom: 0;
}

.year-block h3 {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin: 0;
    padding: 5px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.year-block h3::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--highlight-color);
    margin-bottom: .25em;
}

.year-item {
    display: grid;
    grid-template-columns: 352px 1fr;
    gap: 28px;
    align-items: stretch;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.year-item:last-child {
    margin-bottom: 0;
}

.year-item-image {
    text-align: center;
}

.lightbox-trigger {
    display: inline-block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.year-item-image img {
    display: block;
    width: 100%;
    max-width: 352px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

.year-item-image img:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.year-item-content {
    padding: 22px 24px;
}

.year-item-content h4 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.year-item-content .caption {
    margin: 0 0 12px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
}

.year-item-content p {
    line-height: 1.65;
}

.year-item-body {
    line-height: 1.65;
}

/* ==========================================
   IMAGE LIGHTBOX
========================================== */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.88);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    display: block;
    width: auto;
    max-width: 95vw;
    max-height: 92vh;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    cursor: default;
}

body.lightbox-open {
    overflow: hidden;
}

/* ==========================================
   v0.4 RESPONSIVE NARRATIVE LAYOUT
========================================== */

@media (max-width: 800px) {

    .school-year-section {
        padding: 42px 0;
    }

    .school-year-content {
        width: min(100% - 2rem, 1100px);
    }

    .year-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .year-item-image {
        text-align: center;
    }

    .year-item-image img {
        max-width: 352px;
    }

    .year-block {
        margin-bottom: 42px;
        padding-bottom: 32px;
    }

    .image-lightbox {
        padding: 16px;
    }

    .image-lightbox img {
        max-width: 100%;
        max-height: 90vh;
    }
}

/* ==========================================
   SCHOOL YEAR
========================================== */

/* v0.4 */

/* ==========================================
   FOOTER
========================================== */

footer {
    width: 100%;
    padding: 2rem 1rem;
    background: var(--primary);
    color: #fff;
    text-align: center;
}

footer .container {
    width: 100%;
    max-width: none;
}

footer p {
    margin: 0;
    color: #fff;
}

