/* ============================================================
   Lena Larkin — faculty site  ·  V2 "Financial Newspaper"
   FT-style pink paper, black serif, one claret accent.
   Masthead nameplate, section rules, article layout, drop cap.
   Clean and uncluttered.
   ============================================================ */

:root {
    --paper:     #fff1e5;   /* financial-press pink               */
    --paper-2:   #fbe7d6;   /* slightly deeper tint               */
    --ink:       #1a1a1a;   /* near-black text & rules            */
    --muted:     #6c635b;   /* secondary text                     */
    --rule:      #e2d3c1;   /* soft hairline                      */
    --rule-dark: #1a1a1a;   /* strong newspaper rule              */
    --accent:    #990f3d;   /* claret — the one accent            */
    --accent-dk: #6f0a2c;

    --maxw: 960px;

    --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --serif:         "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--serif-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

/* ---- Masthead ---- */
.masthead { padding: 1.4rem 0 1rem; border-bottom: 3px solid var(--rule-dark); text-align: center; }
.dateline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--serif);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.55rem;
    margin-bottom: 1.25rem;
}
.dateline__edition { color: var(--ink); font-weight: 600; letter-spacing: 0.12em; }
.nameplate {
    display: block;
    font-family: var(--serif-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 7.5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.nameplate:hover { color: var(--ink); text-decoration: none; }
.nameplate__sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.08rem;
    color: var(--muted);
    margin: 0.65rem 0 0;
}

/* ---- Section navigation bar ---- */
.sections { border-bottom: 1px solid var(--rule-dark); }
.sections__inner { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.5rem 1.5rem; position: relative; }
.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.7rem;
    margin: 0;
    padding: 0;
}
.site-nav a {
    font-family: var(--serif);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink);
    padding: 0.2rem 0;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.is-active { color: var(--accent); border-bottom: 2px solid var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

/* ---- Main / article ---- */
.site-main { padding: 2.75rem 1.5rem 3rem; }

.eyebrow {
    font-family: var(--serif);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.page-head { margin-bottom: 2.25rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule-dark); }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); margin: 0.1rem 0 0.7rem; }
.lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.22rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    max-width: 48ch;
}

h2 { font-size: 1.55rem; margin: 0 0 1rem; }

.rule { border: 0; border-top: 1px solid var(--rule-dark); margin: 2.75rem 0; }

/* ---- Home hero: a "profile" lead ---- */
.hero {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 2rem 2.75rem;
    align-items: start;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--rule-dark);
}
.hero__name { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0.15rem 0 0.5rem; }
.hero__role {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 1.2rem;
}
.hero__bio { margin: 0 0 1.5rem; max-width: 54ch; }
/* Drop cap — a newspaper staple. */
.hero__bio::first-letter {
    float: left;
    font-family: var(--serif-display);
    font-weight: 800;
    font-size: 3.6em;
    line-height: 0.72;
    padding: 0.06em 0.1em 0 0;
    color: var(--accent);
}

.hero__photo { margin: 0; }
.hero__photo img { width: 290px; border: 1px solid var(--ink); background: #fff; }
.hero__photo figcaption {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--rule);
}

/* ---- Buttons ---- */
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0; }
.btn {
    display: inline-block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.7rem 1.35rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.more {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.more::after { content: " \2192"; }

/* ---- Focus list (Home) ---- */
ul.focus { list-style: none; padding: 0; margin: 0 0 1.1rem; border-top: 1px solid var(--rule); }
ul.focus li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 1.18rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
}
ul.focus li::before { content: "\25AA"; color: var(--accent); font-size: 0.7em; }

/* ---- Cards as newspaper columns ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.9rem; counter-reset: col; }
.card { border-top: 3px solid var(--ink); padding-top: 0.85rem; }
.card::before {
    counter-increment: col;
    content: "No. " counter(col, decimal-leading-zero);
    display: block;
    font-family: var(--serif);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}
.card h2 { font-size: 1.24rem; margin: 0 0 0.5rem; }
.card p { margin: 0; font-size: 0.99rem; }
.tag {
    display: inline-block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

/* ---- Timeline as a dated record (awards / grants) ---- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1.3rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.timeline__year {
    font-family: var(--serif-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1.2;
}

/* ---- Publications ---- */
.pubs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.pubs li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0 1.3rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--rule);
}
.pubs__year { font-family: var(--serif-display); font-weight: 800; font-size: 1.4rem; color: var(--accent); line-height: 1.15; }
.pubs__title { display: block; font-family: var(--serif-display); font-weight: 600; font-size: 1.1rem; }
.pubs__venue { display: block; font-style: italic; color: var(--muted); font-size: 0.96rem; margin-top: 0.15rem; }

/* ---- Note / placeholder ---- */
.note {
    border-left: 3px solid var(--accent);
    padding: 0.6rem 1rem;
    font-style: italic;
    color: var(--muted);
    margin: 0 0 1.25rem;
}
.note code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.85em; font-style: normal; color: var(--accent-dk); }

/* ---- Contact ---- */
.contact { margin: 0 0 1.75rem; border-top: 1px solid var(--ink); }
.contact > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
}
.contact dt {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
    padding-top: 0.2rem;
}
.contact dd { margin: 0; font-family: var(--serif-display); font-size: 1.08rem; }

/* ---- Colophon (footer) ---- */
.colophon { margin-top: 3rem; border-top: 3px solid var(--rule-dark); text-align: center; padding: 1.75rem 0 2.5rem; }
.colophon__name { font-family: var(--serif-display); font-weight: 800; font-size: 1.45rem; margin: 0 0 0.3rem; }
.colophon__meta { font-family: var(--serif); font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .hero { grid-template-columns: 1fr; }
    .hero__photo img { width: 100%; max-width: 320px; }
    .cards { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 620px) {
    /* Stack the page so the menu bar can be pulled to the very top. */
    body { font-size: 17px; display: flex; flex-direction: column; }
    .sections { order: -1; }

    /* Compact masthead on mobile. */
    .masthead { padding: 0.85rem 0 0.75rem; }
    .dateline { font-size: 0.62rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; padding-bottom: 0.45rem; }
    .dateline__edition { display: none; }
    .nameplate { font-size: 2rem; line-height: 1; }
    .nameplate__sub { font-size: 0.88rem; margin-top: 0.4rem; }
    .nameplate__aff { display: none; }

    .nav-toggle { display: block; }
    .sections__inner { justify-content: flex-start; }
    .site-nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
    }
    .site-nav.is-open { max-height: 24rem; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.4rem 0 0.6rem; }
    .site-nav a { display: block; padding: 0.45rem 0; }
    .contact > div { grid-template-columns: 1fr; gap: 0.1rem; }
}
