/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --card: #ffffff;
    --text: #16181d;
    --muted: #5c6470;
    --accent: #1d4ed8;
    --accent-soft: #e8effc;
    --border: #e4e7ec;
    --radius: 18px;
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.hero {
    padding: 110px 20px 90px;
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
}

.subheadline {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Main */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 20px;
}

main > section {
    margin-bottom: 88px;
}

main > section:last-of-type {
    margin-bottom: 0;
}

/* Section headers */
section h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 16px;
}

/* Photo Section */
.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-card {
    position: relative;
    width: min(920px, 100%);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin: 0;
}

.photo-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface);
    animation: skeleton-pulse 1.8s ease-in-out infinite;
    z-index: 0;
}

.skeleton-icon {
    font-size: 40px;
}

.skeleton-text {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

#class-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.photo-skeleton {
    display: none !important;
}

#class-photo {
    opacity: 1 !important;
}

#class-photo.loaded {
    opacity: 1;
}

.photo-caption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #c9d4f0;
}

.card .icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.card p {
    color: var(--muted);
    font-size: 14.5px;
}

/* Journey */
.journey-list {
    list-style: none;
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.journey-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.step-marker {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
}

.journey-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.journey-step p {
    color: var(--muted);
    font-size: 14.5px;
}

/* Quotes */
.quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.quote p {
    font-style: italic;
    font-size: 15.5px;
    color: var(--text);
}

.quote footer {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

/* Notes */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.notes ul {
    margin-top: 14px;
    padding-left: 20px;
    color: var(--muted);
    display: grid;
    gap: 10px;
    font-size: 14.5px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 36px 20px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.footer-line {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.timestamp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 72px 16px 56px;
    }

    main {
        padding: 48px 16px;
    }

    main > section {
        margin-bottom: 64px;
    }

    .journey-step {
        flex-direction: column;
        gap: 12px;
    }
}
