/*
Theme Name: Fire Pension Fund
Description: Theme for the NYC Fire Pension Fund website.
Version: 1.0.0
Requires PHP: 8.1
*/

/* ================================================================
   Fonts and colors
   ================================================================ */

@font-face {
    font-family: "IBM Plex Sans";
    src: url("assets/fonts/IBMPlexSans-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Zilla Slab";
    src: url("assets/fonts/ZillaSlab-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Mono";
    src: url("assets/fonts/RobotoMono-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #0b1f33;
    --brick: #a13d2e;
    --brick-dark: #7e2f23;
    --line: #d9d0bc;
    --sky: #b8d4e8;
}

/* ================================================================
   Base
   ================================================================ */

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

html { scrollbar-gutter: stable; }

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.5;
}

h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.dark a:focus-visible { outline-color: #fff; }

.font-display { font-family: "Zilla Slab", sans-serif; }
.font-mono { font-family: "Roboto Mono", sans-serif; }
.underline, .hover-underline:hover { text-decoration: underline; }
.hover-brick:hover { color: var(--brick); }

/* ================================================================
   Layout
   ================================================================ */

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem 10rem; }
.max-3xl { max-width: 48rem; }
.page { margin-top: 7.5rem; margin-bottom: 17.5rem; }
.dark { background: var(--ink); color: #fff; }

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ================================================================
   Text
   ================================================================ */

.page-title { margin-top: 0.75rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--ink); }
.lead { margin-top: 1.5rem; max-width: 48rem; font-size: 1.125rem; line-height: 1.625; }

.label {
    font-family: "Roboto Mono", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--brick);
}

.label-rule { margin: 3rem 0 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--line); }

.display {
    font-family: "Zilla Slab", sans-serif;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}

@media (min-width: 1024px) { .display { font-size: 3.75rem; } }

/* ================================================================
   Buttons
   ================================================================ */

.btn {
    display: block;
    width: 100%;
    max-width: 15rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--ink);
    font-weight: 500;
    text-align: center;
}

.btn-brick { border-color: var(--brick); background: var(--brick); color: #fff; }
.btn-brick:hover { background: var(--brick-dark); }
.btn-outline { color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-black { border-color: #000; background: #000; color: #fff; }

.btn-row { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.25rem; }

@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* ================================================================
   Header
   ================================================================ */

.nav-alert .container { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav-alert { background: var(--brick); }

.topbar .container { display: flex; align-items: center; justify-content: flex-end; height: 3.5rem; }

.site-nav { border-bottom: 2px solid var(--line); }
.site-nav nav { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; line-height: 1.25; }
.brand img { height: 3.5rem; width: auto; }
.brand-name { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.brand-est { display: block; font-size: 0.75rem; letter-spacing: 0.18em; }

.nav-links { display: none; gap: 2rem; font-weight: 500; color: var(--ink); }
.nav-links a { padding: 1.75rem 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.nav-links a[aria-current="page"], #mobile-menu a[aria-current="page"] { color: var(--brick); }

#menu-toggle { padding: 0.5rem; border: 0; background: none; color: var(--ink); cursor: pointer; }
#menu-toggle svg { display: block; width: 1.75rem; height: 1.75rem; }

#mobile-menu { border-top: 1px solid var(--line); }
#mobile-menu a { display: block; padding: 1rem; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
#mobile-menu a:last-child { border-bottom: 0; }
#mobile-menu a:hover { background: #f3f4f6; }

@media (min-width: 768px) {
    .site-nav nav { padding-top: 0; padding-bottom: 0; }
    .nav-links { display: flex; }
    #menu-toggle, #mobile-menu { display: none !important; }
}

/* ================================================================
   Home
   ================================================================ */

.intro { margin-bottom: 7.5rem; padding-top: 4rem; padding-bottom: 4rem; }
.intro .display { max-width: 52rem; }
.intro p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; }

.banner .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.stat { font-size: 1.875rem; font-weight: 700; }
.stat-label { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; }

.upcoming { padding: 10rem 0 12.5rem; border-bottom: 1px solid var(--line); }
.eyebrow { margin-bottom: 0.75rem; letter-spacing: 0.2em; }
.upcoming h2 { margin-bottom: 2rem; font-size: 1.875rem; font-weight: 700; color: var(--ink); }
.more-link { display: inline-block; margin-top: 2rem; font-weight: 500; color: var(--ink); }

@media (min-width: 1024px) { .intro { padding-top: 6rem; padding-bottom: 6rem; } }

/* ================================================================
   Lists
   ================================================================ */

.empty { padding: 1.25rem; border: 1px solid var(--line); color: var(--ink); }

.event-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.25rem; border: 1px solid var(--line); background: #fff; }
.event-list time { flex-shrink: 0; width: 3.5rem; text-align: center; }
.event-month { display: block; font-weight: 600; text-transform: uppercase; color: var(--brick); }
.event-day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.event-list h3 { font-size: 1.25rem; font-weight: 500; color: var(--ink); }

.file-list li { border-bottom: 1px solid var(--line); }
.file-list a { display: block; padding: 1.25rem 0; font-size: 1.125rem; font-weight: 500; color: var(--ink); text-decoration: underline 1px; }
.file-list a:hover { color: var(--brick); text-decoration-thickness: 2px; }

.link-list { margin-top: 3rem; }
.link-list li { padding: 1.5rem 0; border-top: 2px solid var(--line); }
.link-list li:last-child { border-bottom: 2px solid var(--line); }
.link-list h2 { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.link-list p { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.625; }

.news-list li { padding: 3rem 0; }
.news-list h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.375; color: var(--ink); }
.news-list time { display: block; margin-top: 0.5rem; font-weight: 600; color: var(--brick); }
.news-list p { margin-top: 1rem; font-size: 1.125rem; line-height: 1.75rem; }
.news-list time + p { margin-top: 1.25rem; }
.news-list .main-alert-label { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.25rem; }

@media (min-width: 640px) { .link-list h2, .news-list h2 { font-size: 1.5rem; } }

/* ================================================================
   Contact
   ================================================================ */

.contact-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.contact-row { padding: 1.5rem 0; border-top: 2px solid var(--line); font-size: 1.125rem; line-height: 1.625; color: var(--ink); }
.contact-row:last-of-type { border-bottom: 2px solid var(--line); }
.contact-row .label { margin-bottom: 0.25rem; }
.contact-grid .btn { margin-top: 2rem; }
.map { aspect-ratio: 4 / 3; border: 2px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

/* ================================================================
   Prose pages (portal, guide, accessibility)
   ================================================================ */

.prose header { margin: 7.5rem 0 3.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid #d1d5db; }
.prose h1 { margin-bottom: 1.25rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; }
.prose h2 { margin: 5rem 0 1.25rem; font-size: 1.5rem; font-weight: 600; }
.prose header + h2 { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.25rem; font-size: 1.25rem; line-height: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.75rem; }
.prose figure { margin-top: 3.75rem; border: 1px solid; }
.prose figure img { width: 100%; }
.prose hr { margin: 5rem 0 0; border: 0; border-bottom: 6px solid; }
.prose ol a { font-weight: 500; text-decoration: underline; }
.prose .btn { margin: 7.5rem 0 3.75rem; }

@media (min-width: 640px) { .prose h1 { font-size: 2.25rem; line-height: 2.5rem; } }

.alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid #000; background: #f3f4f6; }
.alert-portal { border-color: var(--brick); background: #fef2f2; }
.prose .alert p { margin: 0; font-size: 1.125rem; }
.prose .alert .alert-title { margin-bottom: 0.25rem; font-size: 1.25rem; font-weight: 700; }

/* ================================================================
   404
   ================================================================ */

.not-found { margin-top: 7.5rem; margin-bottom: 25rem; padding-top: 4rem; padding-bottom: 4rem; }
.not-found h1 { margin-top: 1rem; font-weight: 700; }
.not-found p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; }

/* ================================================================
   Footer
   ================================================================ */

.site-footer .columns { display: grid; gap: 3rem; padding-top: 3.75rem; padding-bottom: 3.75rem; }
.site-footer h2 { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--sky); }
.site-footer address { line-height: 1.625; }
.site-footer p + p, .site-footer li + li { margin-top: 0.5rem; }
.site-footer a:hover { color: var(--sky); }
.site-footer .copyright { padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.3); }

@media (min-width: 640px) { .site-footer .columns { grid-template-columns: 1fr 1fr; } }
