/*
Theme Name: Lily Zuckerman Press
Theme URI: https://lilyzuckerman.press
Author: Lily Zuckerman
Description: Editorial portfolio theme for journalism, multimedia, and design work. Broadsheet-inspired layout with a Featured Work grid and a Multimedia & Design gallery, both driven by native WordPress content.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lzp
*/

/* Fonts are enqueued in functions.php rather than @imported here,
   so they aren't loaded twice. */


:root {
    --black:      #1a1a1a;
    --white:      #ffffff;
    --off-white:  #fafafa;
    --crimson:    #7e0505;
    --gray-light: #ebebeb;
    --gray-mid:   #999;
    --gray-dark:  #444;
    --max-width:  1100px;
    --col-main:   680px;
}

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

body {
    background: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

/* ── Top bar ── */
.top-bar {
    border-bottom: 1px solid var(--gray-light);
    background: var(--black);
    text-align: center;
    padding: 7px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* ── Header / Nav ── */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

header .header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 48px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 0;
}

header nav.right {
    justify-content: flex-end;
}

header a {
    position: relative;
    display: inline-block;
    padding: 10px 16px;
    color: var(--black);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

header a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    right: 16px;
    height: 1.5px;
    background: var(--crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header a:hover { color: var(--crimson); }
header a:hover::after { transform: scaleX(1); }

/* Masthead wordmark */
.masthead {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    transition: color 0.2s ease;
}

.masthead:hover { color: var(--crimson); }

.masthead em {
    font-style: normal;
    font-weight: 400;
}

/* ── Page layout ── */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px 100px;
}

/* ── Article header ── */
.article-header {
    padding: 40px 0 40px;
    margin-bottom: 40px;
    border-bottom: 3px solid #000;
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 0;
    color: #000000;
    background: none;
    -webkit-text-fill-color: #000000;
}

/* ── Two-column layout ── */
.article-body {
    display: grid;
    grid-template-columns: var(--col-main) 1fr;
    gap: 60px;
    align-items: start;
}

/* (headshot/photo-block styling removed — site is text-only, no photos) */

/* ── Author byline ── */
.byline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-light);
}

.byline-monogram {
    width: 44px;
    height: 44px;
    background: var(--black);
    color: var(--white);
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.byline-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-mid);
}

.byline-text strong {
    color: var(--black);
    font-weight: 600;
}

/* ── Typography ── */
h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: var(--black);
    margin: 0 0 16px;
}

h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: var(--gray-mid);
    margin:40px 0 32px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    margin: 36px 0 6px;
    padding: 0;
    border: none;
}

p {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--black);
    font-size: 16px;
    margin: 0 0 22px;
    max-width: 100%;
}

/* ── Blockquote ── */
blockquote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--black);
    margin: 40px 0;
    padding: 32px 0;
    border-top: 2px solid var(--black);
    border-bottom: 1px solid var(--gray-light);
}

blockquote p {
    font-size: 22px;
    margin: 0;
}

/* ── Sidebar ── */
.sidebar {
    padding-top: 4px;
}

.sidebar-section {
    border-top: 2px solid var(--black);
    padding-top: 16px;
    margin-bottom: 40px;
}

.sidebar-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-label em {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gray-dark);
}

.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-item:last-child {
    border-bottom: none;
}

a.sidebar-item {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.sidebar-item-text {
    flex: 1;
}

.sidebar-item-cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin: 0 0 4px;
    display: block;
}

.sidebar-item-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--black);
    margin: 0;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.article-header   { animation: fadeUp 0.65s 0.05s ease both; }
.byline           { animation: fadeIn 0.6s 0.35s ease both; }
.main-col p:first-of-type { animation: fadeUp 0.6s 0.4s ease both; }
.sidebar          { animation: slideInLeft 0.7s 0.3s ease both; }

/* Sidebar item hover */
.sidebar-item {
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-radius: 4px;
    padding-left: 4px;
}
.sidebar-item:hover {
    background: var(--off-white);
    padding-left: 10px;
}

/* Blockquote entrance */
blockquote {
    animation: fadeUp 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .article-body { grid-template-columns: 1fr; gap: 0; }
    .sidebar { border-top: 1px solid var(--gray-light); padding-top: 40px; margin-top: 40px; }
    header .header-inner { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 12px 24px; }
    header nav { display: none; }
    .page-wrapper { padding: 0 20px 60px; }
    .breadcrumb { padding: 16px 20px 0; }
}

.articlewidth {
    max-width: 600px;
}

/* ══════════════════════════════════════
   Section labels (reused above Featured
   Work and the Multimedia gallery)
   ══════════════════════════════════════ */
.section-block {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 70px 40px;
}

.section-block + .section-block {
    border-top: 1px solid var(--gray-light);
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    border-bottom: 3px solid #000;
    padding-bottom: 18px;
}

.section-heading h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: normal;
    font-weight: 900;
    font-size: 34px;
    letter-spacing: -0.01em;
    color: var(--black);
    margin: 0;
    line-height: 1;
}

.section-heading .section-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-mid);
    white-space: nowrap;
}

/* ══════════════════════════════════════
   Writing grouped by category (Work page)
   ══════════════════════════════════════ */
.category-group {
    margin-bottom: 56px;
}
.category-group:last-child {
    margin-bottom: 0;
}
.category-group-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

/* ══════════════════════════════════════
   Featured Work grid
   ══════════════════════════════════════ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 40px;
}

.featured-card {
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
}

/* No-media card: a crimson rule stands in for the old photo, and
   grows on hover instead of an image zooming/wiping. */
.featured-card.no-media {
    padding-top: 16px;
    border-top: 2px solid var(--gray-light);
    transition: border-color 0.4s ease;
}

.featured-card.no-media:hover {
    border-top-color: var(--crimson);
}

.featured-card-cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--crimson);
    display: block;
    margin-bottom: 8px;
}

.featured-card-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.35;
    color: var(--black);
    margin: 0 0 10px;
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--crimson), var(--crimson));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

.featured-card:hover .featured-card-title {
    background-size: 100% 1.5px;
}

.featured-card-excerpt {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-dark);
    margin: 0 0 10px;
}

.featured-card-pub {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-card-pub::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-card-pub::after {
    transform: translateX(4px);
}

/* ══════════════════════════════════════
   Multimedia / design gallery
   ══════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    text-decoration: none;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
}

/* Text-only card (no image set) — bordered box, text pinned to bottom */
.gallery-item.no-media {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    padding: 20px;
    border: 1px solid var(--gray-light);
    background: var(--off-white);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.gallery-item.no-media:hover {
    border-color: var(--crimson);
    background: #fff;
}

/* Image card — photo fills a square, caption reveals on hover */
.gallery-item:not(.no-media) {
    aspect-ratio: 1 / 1;
}

.gallery-item:not(.no-media) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:not(.no-media):hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .gallery-overlay-cat { color: rgba(255,255,255,0.7); }
.gallery-overlay .gallery-overlay-title { color: #fff; }

.gallery-overlay-cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 4px;
}

.gallery-overlay-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    line-height: 1.35;
    color: var(--black);
    margin: 0;
}

/* Stagger the grid children on scroll-in */
.featured-grid .featured-card:nth-child(1) { animation-delay: 0.05s; }
.featured-grid .featured-card:nth-child(2) { animation-delay: 0.15s; }
.featured-grid .featured-card:nth-child(3) { animation-delay: 0.25s; }
.featured-grid .featured-card:nth-child(4) { animation-delay: 0.35s; }
.gallery-grid .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(3) { animation-delay: 0.25s; }

@media (max-width: 820px) {
    .featured-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .section-block { padding: 50px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .featured-card, .gallery-item,
    .article-header, .byline, .main-col p:first-of-type, .sidebar {
        animation: none !important;
        opacity: 1 !important;
    }
    .featured-card.no-media, .gallery-item {
        transition: none !important;
    }
}
/* ══════════════════════════════════════
   WordPress-specific adjustments
   ══════════════════════════════════════ */

/* wp_nav_menu outputs <ul><li><a>, so restyle the wrapper without
   touching the <a> rules already defined above. */
header nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline-block;
    position: relative;
}

/* Keep the sticky header below the WP admin toolbar when logged in */
.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}


/* Default block-editor image sizing safety net */
.main-col img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════
   Mobile nav toggle (hamburger)
   ══════════════════════════════════════ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.lzp-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.lzp-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
body.lzp-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
    display: none;
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    header .header-inner {
        position: relative;
    }

    /* Hide the desktop left/right nav blocks entirely on mobile —
       the mobile-menu-panel below replaces them */
    header .header-inner nav {
        display: none;
    }

    .mobile-menu-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        border-bottom: 1px solid var(--gray-light);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.lzp-nav-open .mobile-menu-panel {
        max-height: 400px;
    }

    .mobile-menu-panel ul {
        list-style: none;
        margin: 0;
        padding: 8px 24px 20px;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-panel a {
        display: block;
        padding: 14px 0;
        color: var(--black);
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--gray-light);
    }

    .mobile-menu-panel li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-panel a:hover {
        color: var(--crimson);
    }
}

/* ══════════════════════════════════════
   Inline text links (typed into post/page
   body content — bio text, article text, etc.)
   ══════════════════════════════════════ */
.main-col p a,
.main-col li a,
.wp-block-post-content a {
    color: var(--crimson);
    text-decoration: none;
    background-image: linear-gradient(var(--crimson), var(--crimson));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    padding-bottom: 1px;
}

.main-col p a:hover,
.main-col li a:hover,
.wp-block-post-content a:hover {
    background-size: 100% 1.5px;
    color: var(--black);
}

/* Give the sidebar item's headline its own underline sweep too,
   on top of the existing background-tint hover on the whole card */
.sidebar-item-title {
    background-image: linear-gradient(var(--crimson), var(--crimson));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline;
}

.sidebar-item:hover .sidebar-item-title {
    background-size: 100% 1px;
}

/* ══════════════════════════════════════
   About page template
   ══════════════════════════════════════ */
.about-hero {
    padding: 60px 0 56px;
    border-bottom: 3px solid #000;
    margin-bottom: 60px;
}
.about-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: #000;
}
.about-hero h1 em { font-style: italic; }
.about-intro {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--black);
    margin: 0 0 12px;
    max-width: 780px;
}
.about-intro a {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--crimson);
    padding-bottom: 1px;
    transition: color 0.2s;
}
.about-intro a:hover { color: var(--crimson); }
.about-intro em { font-style: italic; }

.resume-btn {
    display: inline-block;
    margin: 20px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--black);
    text-decoration: none;
    padding: 12px 24px;
    transition: background 0.2s;
}
.resume-btn:hover { background: var(--crimson); }

.about-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: start;
}

/* Free-text bio/interviews content — edited from the normal Page editor.
   Styled to match the rest of the About page: plain paragraphs read like
   .about-intro, and any H2 you add reads like a section label.
   Scoped with :not() so nested Experience/Education/Award pattern blocks
   (which carry their own .exp-role / .award-name / etc. classes) aren't
   overridden by these more general rules. */
.about-content-block { margin-bottom: 56px; }
.about-content-block > p,
.about-content-block p:not([class]) {
    font-family: 'Libre Baskerville', serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--black);
    margin: 0 0 16px;
    max-width: 780px;
}
.about-content-block > h2,
.about-content-block h2:not([class]) {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    display: block;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
    margin: 32px 0 24px;
}
.about-content-block p:not([class]) strong,
.about-content-block > p strong { font-weight: 700; }
.about-content-block p:not([class]) em,
.about-content-block > p em { font-style: italic; }
.about-content-block p:not([class]) a,
.about-content-block > p a {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--crimson);
    padding-bottom: 1px;
    transition: color 0.2s;
}
.about-content-block p:not([class]) a:hover,
.about-content-block > p a:hover { color: var(--crimson); }


.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--black);
    display: block;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
    margin: 0 0 24px;
}

.interviews-block { margin-bottom: 56px; }
.interviews-block p {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--black);
    margin: 0;
}
.interviews-block a {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--crimson);
    padding-bottom: 1px;
    transition: color 0.2s;
}
.interviews-block a:hover { color: var(--crimson); }

.exp-block { margin-bottom: 56px; }
.exp-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
}
.exp-item:last-child { border-bottom: none; }
.exp-left { flex: 1; }
.exp-org {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin: 0 0 4px;
    text-decoration: none;
    display: block;
}
a.exp-org:hover { color: var(--crimson); }
.exp-role {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--gray-dark);
    margin: 0 0 2px;
}
.exp-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-mid);
    white-space: nowrap;
    padding-top: 4px;
}

.skills-block { margin-bottom: 56px; }
.skills-list {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    line-height: 1.85;
    color: var(--black);
    margin: 0;
}

.awards-block { margin-bottom: 56px; }
.award-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
}
.award-item:last-child { border-bottom: none; }
.award-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    color: var(--black);
    margin: 0;
}
.award-name strong { font-weight: 700; }
.award-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-mid);
    white-space: nowrap;
    padding-top: 4px;
}

.contact-panel {
    position: sticky;
    top: 90px;
}
.contact-block {
    border-top: 2px solid #000;
    padding-top: 16px;
    margin-bottom: 40px;
}
.contact-block-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0 0 20px;
}
.contact-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin: 0 0 4px;
    display: block;
}
.contact-item-value {
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    color: var(--black);
    margin: 0;
}
.contact-item-value a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.2s;
}
.contact-item-value a:hover { color: var(--crimson); }

.contact-writing-link {
    text-decoration: none;
    border-bottom: 1px solid var(--gray-light);
    display: block;
    color: var(--black);
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    padding-bottom: 16px;
    margin-bottom: 0;
    transition: color 0.2s;
}
.contact-writing-link:hover { color: var(--crimson); }

@media (max-width: 820px) {
    .about-body { grid-template-columns: 1fr; gap: 40px; }
    .contact-panel { position: static; }
}

/* ══════════════════════════════════════
   Places I've Written For (homepage)
   ══════════════════════════════════════ */
.publication-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.publication-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 2px;
    background: var(--off-white);
    text-decoration: none;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.publication-card:hover {
    border-color: var(--crimson);
    background: #fff;
    transform: translateY(-3px);
}

.publication-card-name {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--black);
}

.publication-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-mid);
    transition: color 0.2s ease;
}

.publication-card:hover .publication-card-link { color: var(--crimson); }

@media (max-width: 820px) {
    .publication-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════
   Publication filter pills (Work page)
   ══════════════════════════════════════ */
.pub-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}

.pub-filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    background: transparent;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pub-filter-btn:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}

.pub-filter-btn.is-active {
    background: var(--black);
    border-color: var(--black);
    color: #fff;
}
