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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #202020;
    background: #ffffff;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin-top: 0; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}
.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    gap: 30px;
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo-image {
    display: block;
    width: auto;
    max-width: 260px;
    height: 54px;
    object-fit: contain;
}

/* Desktop nav */
.main-navigation { display: block; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; }
.main-navigation li { position: relative; }
.main-navigation a {
    position: relative;
    display: block;
    padding: 31px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color .25s ease;
}
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 0;
    height: 2px;
    background: #111;
    transition: width .25s ease;
}
.main-navigation a:hover { color: #000; }
.main-navigation a:hover::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.56) 45%, rgba(0,0,0,.15) 100%),
        url("https://www.highschoolofperformingarts.com/home/images/hero-performing-arts.webp") center center / cover no-repeat;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; color: #fff; }
.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}
.hero h1 {
    max-width: 800px;
    margin-bottom: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -2px;
    color: #fff;
}
.hero p {
    max-width: 650px;
    margin-bottom: 34px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,.88);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.button:hover { background: transparent; color: #111; transform: translateY(-2px); }
.hero .button { border-color: #fff; background: #fff; color: #111; }
.hero .button:hover { background: transparent; color: #fff; }

/* Sections */
section { padding: 90px 0; }
.section-header { max-width: 720px; margin-bottom: 45px; }
.section-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}
.section-header h2,
.historical-introduction h2,
.archive-section h2,
.about-publication h2 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.18;
    color: #151515;
}
.section-header p,
.historical-introduction p,
.archive-section p,
.about-publication p { font-size: 17px; color: #626262; }

/* Intro */
.historical-introduction { background: #f7f5f1; }
.historical-introduction .container { max-width: 900px; }
.historical-introduction p { max-width: 800px; }
.historical-introduction a:not(.button) {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #222;
    font-weight: 700;
}

/* Topic cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.topic-card {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
}
.topic-card-image { position: absolute; inset: 0; }
.topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.topic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.30) 62%, rgba(0,0,0,.05) 100%);
}
.topic-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px;
    color: #fff;
}
.topic-card h3 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.2;
}
.topic-card p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.8);
}
.topic-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.topic-card-link::after { content: "→"; transition: transform .25s ease; }
.topic-card:hover .topic-card-image img { transform: scale(1.06); }
.topic-card:hover .topic-card-link::after { transform: translateX(5px); }

/* Article cards */

/* Four-card editorial grids */
.article-grid .article-card h3 {
    font-size: 21px;
}

.article-grid .article-card p {
    font-size: 14px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 30px;
}
.article-card { background: #fff; }
.article-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    overflow: hidden;
    background: #eee;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.045); }
.article-category {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #777;
}
.article-card h3 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.35;
    color: #181818;
}
.article-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-card p { margin-bottom: 0; font-size: 15px; line-height: 1.7; color: #666; }

.alumni-section { background: #f6f6f4; }
.alumni-section .button { margin-top: 38px; }

/* Feature */
.cultural-legacy {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35)),
        url("https://www.highschoolofperformingarts.com/home/images/fame-performing-arts.webp") center / cover no-repeat;
}
.cultural-legacy .content { max-width: 640px; color: #fff; }
.cultural-legacy .section-label { color: rgba(255,255,255,.72); }
.cultural-legacy h2 {
    margin-bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
}
.cultural-legacy p { font-size: 17px; color: rgba(255,255,255,.82); }
.cultural-legacy a {
    display: inline-block;
    margin-top: 14px;
    padding-bottom: 5px;
    border-bottom: 1px solid #fff;
    font-weight: 700;
}

.archive-section { text-align: center; background: #171717; color: #fff; }
.archive-section .container { max-width: 760px; }
.archive-section h2 { color: #fff; }
.archive-section p { color: rgba(255,255,255,.72); }
.archive-section .button { margin-top: 15px; border-color: #fff; background: #fff; color: #111; }
.archive-section .button:hover { background: transparent; color: #fff; }

.about-publication { padding: 75px 0; background: #f4f1eb; }
.about-publication .container { max-width: 850px; }

/* Footer */
.site-footer { padding: 70px 0 25px; background: #0d0d0d; color: #fff; }
.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.site-footer h2,.site-footer h3 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; }
.site-footer h2 { font-size: 27px; }
.site-footer h3 { font-size: 17px; }
.site-footer p { max-width: 450px; color: #a9a9a9; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { font-size: 14px; color: #bcbcbc; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 55px; padding-top: 24px; border-top: 1px solid #292929;display: flex;justify-content: center; }
.copyright p { margin: 0; font-size: 13px; }

/* Tablet */
@media (max-width: 1024px) {
    .header-container { min-height: 76px; flex-direction: row; padding-top: 0; padding-bottom: 0; }
    .site-logo-image { max-width: 220px; height: 48px; }
    .menu-toggle { display: flex; position: relative; z-index: 1002; margin-left: auto; }

    .main-navigation {
        position: absolute;
        top: 100%;

        left: 50%;
        right: auto;

        width: 100vw;
        max-width: none;

        transform: translateX(-50%);

        max-height: 0;
        overflow: hidden;
        visibility: hidden;

        background: #ffffff;

        border-top: 1px solid #eeeeee;
        border-bottom: 1px solid #eeeeee;

        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);

        transition:
            max-height 0.4s ease,
            visibility 0.4s ease;
    }
    .main-navigation.active { 
         width: 100vw;
        max-width: none;
        max-height: 650px;
        visibility: visible;
    }
    .main-navigation ul {
        display: block;
        min-width: 0;
        width: min(100% - 40px, 1180px);
        margin: 0 auto;
        padding: 15px 0 20px;
    }
    .main-navigation li { display: block; border-bottom: 1px solid #eee; }
    .main-navigation li:last-child { border-bottom: 0; }
    .main-navigation a { display: block; padding: 15px 4px; font-size: 15px; line-height: 1.4; color: #222; }
    .main-navigation a::after { display: none; }

    .hero { min-height: 570px; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .topic-card:last-child { grid-column: span 2; }
    .article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-columns { grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }
}

/* Mobile */
@media (max-width: 767px) {
    .container { width: min(100% - 30px, 1180px); }
    section { padding: 65px 0; }
    .header-container { min-height: 70px; }
    .site-logo-image { max-width: 190px; height: 43px; }
    .menu-toggle { width: 42px; height: 42px; }
    .menu-toggle span { width: 24px; }
      .main-navigation,
    .main-navigation.active {
        width: 100vw;
        max-width: none;
    }

    .main-navigation ul {
        width: calc(100% - 30px);
    }
    .main-navigation a { padding: 14px 2px; font-size: 14px; }

    .hero {
        min-height: 600px;
        align-items: flex-end;
        padding: 90px 0 60px;
        background-position: 62% center;
    }
    .hero h1 { margin-bottom: 20px; font-size: clamp(42px, 13vw, 58px); letter-spacing: -1.2px; }
    .hero p { font-size: 16px; line-height: 1.65; }

    .topic-grid { grid-template-columns: 1fr; }
    .topic-card, .topic-card:last-child { grid-column: auto; min-height: 420px; }
    .topic-card-content { padding: 26px; }
    .topic-card h3 { font-size: 27px; }

    .article-grid { grid-template-columns: 1fr; gap: 40px; }
    .article-card h3 { font-size: 22px; }

    .cultural-legacy { min-height: 530px; background-position: 60% center; }
    .footer-columns { grid-template-columns: 1fr; gap: 35px; }
    .copyright { margin-top: 35px; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 24px); }
    .site-logo-image { max-width: 165px; height: 40px; }
    .hero { min-height: 540px; }
    .hero-label { margin-bottom: 14px; font-size: 11px; }
    .hero h1 { font-size: 40px; }
    .button { width: 100%; }
    .topic-card { min-height: 370px; }
    .topic-card-content { padding: 22px; }
}
