@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
    --background: #fafafa;
    --text: #202020;
    --muted: #666;
    --border: #e5e5e5;
    --card: #ffffff;
    --hover: #c8c8c8;
}


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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--text);

    font-family: "Fraunces", Georgia, serif;
    line-height: 1.6;
}


article {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}


/* =========================
   Typography
========================= */

h1,
h2 {
    font-weight: 500;
}

h1 {
    margin-top: 0;
}

p {
    margin-top: 0.25rem;
}


/* =========================
   Links
========================= */

a,
a:visited {
    color: inherit;
}

article a:not(.home-tile) {
    text-decoration: underline;
    text-decoration-color: #d4d4d4;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

article a:not(.home-tile):hover {
    text-decoration-color: var(--text);
}

.back-link {
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

article .back-link a {
    color: var(--muted);
    text-decoration: none;
}

article .back-link a:hover {
    color: var(--text);
}


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

ul,
dl {
    padding-left: 1.25rem;
}

dt {
    margin-top: 1.5rem;
    font-weight: 600;
}

dd {
    margin-left: 1rem;
}


/* =========================
   Homepage grid
========================= */

.home-links {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;

    max-width: 850px;
    margin: 5rem auto;
}


/* =========================
   Name tile
========================= */

.home-title-tile {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 1rem;

    text-align: center;
}


.home-title-tile h1 {
    margin: 0;

    font-size: 1.3rem;
    font-weight: 500;
}


/* =========================
   Homepage cards
========================= */

.home-tile {
    position: relative;

    display: block;

    padding: 1rem;
    padding-right: 2.5rem;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 10px;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.home-tile:hover {
    border-color: var(--hover);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.06);
}


.profile-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
}

.home-tile h2 {
    margin: 0 0 0.3rem;

    font-size: 1.1rem;
}


.home-tile p {
    margin: 0;

    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================
   External link indicator
========================= */

.home-tile[href^="http"]::after {
    content: "↗";

    position: absolute;

    right: 1rem;
    top: 1rem;

    font-size: 1rem;
    color: var(--muted);

    transition: transform 0.15s ease;
}


.home-tile[href^="http"]:hover::after {
    transform: translate(2px, -2px);
}


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

footer {
    max-width: 1000px;

    margin: 4rem auto 0;
    padding: 2rem;

    border-top: 1px solid #eee;

    text-align: center;

    color: #888;
    font-size: 0.85rem;
}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    article {
        margin: 2rem auto;
        padding: 0 1.25rem;
    }


    .home-links {
        display: flex;

        flex-direction: column;

        margin: 2rem auto;
    }


    .home-title-tile {
        padding: 1rem;
    }


    .home-title-tile h1 {
        font-size: 1.5rem;
    }


    .home-tile {
        width: 100%;
    }
}
/* =========================
   Name/photo header
========================= */



/* Change these two existing selectors — add :not(.project-tile) so the
/* Replace the existing .home-header block with: */

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.site-header .profile-pic {
    margin-bottom: 0.75rem;
}

.site-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.site-header-name {
    text-decoration: none;
}

.site-header-name:hover {
    text-decoration: underline;
}

.site-header .profile-pic {
    margin-bottom: 0.75rem;
}

.site-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.site-header-name {
    text-decoration: none;
}

.site-header-name:hover {
    text-decoration: underline;
}

article a:not(.home-tile):not(.project-tile) {
    text-decoration: underline;
    text-decoration-color: #d4d4d4;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

article a:not(.home-tile):not(.project-tile):hover {
    text-decoration-color: var(--text);
}


/* Add this new block anywhere (e.g. right after the "Homepage cards"
   section) — mirrors .home-tile's look, in its own grid: */

/* =========================
   Project tiles (wip.php)
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.project-tile {
    position: relative;
    display: block;
    padding: 1rem;
    padding-right: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.project-tile:hover {
    border-color: var(--hover);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
}

.project-tile h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
}

.project-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.project-tile[href^="http"]::after {
    content: "↗";
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1rem;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.project-tile[href^="http"]:hover::after {
    transform: translate(2px, -2px);
}

/* Add this near the .project-grid rules in style.css */

.project-section-heading {
    margin-top: 2.5rem;
}

/* =========================
   Contact button (contact.php)
========================= */

.contact-button {
    display: inline-block;

    margin: 1rem 0 1.5rem;
    padding: 0.75rem 1.5rem;

    background: var(--text);
    color: var(--background);

    border-radius: 8px;

    font-weight: 500;
    text-decoration: none !important;

    transition: opacity 0.15s ease;
}

.contact-button:hover {
    opacity: 0.85;
}


/* =========================
   Video pages
========================= */

.video-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.video-sources-heading {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.video-sources {
    padding-left: 1.25rem;
}

/* ========================= Top contact link
========================= */

.top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: -1rem auto 2rem;
}

.top-contact-link {
    display: block;
    width: fit-content;
    padding: 0.45rem 1.1rem;

    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);

    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.top-contact-link:hover {
    border-color: var(--hover);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}



/* =========================
   Contact page (centered)
========================= */

.contact-page {
    text-align: center;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-list li {
    margin-bottom: 0.75rem;
}


.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.orcid-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.cc-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
}

.cc-icon + .cc-icon {
    margin-left: 0.1em;
}

.copyright-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.copyright-link:hover {
    text-decoration: underline;
}

.copyright-mark {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.site-quote {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}
/* =========================
   Web clippings (clippings.php)
========================= */

.clip-intro {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.clip-filters,
.clip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clip-pill,
.clip-tag {
    padding: 0.3rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: border-color 0.15s ease;
}

.clip-tag {
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
    color: var(--muted) !important;
}

.clip-tag span {
    opacity: 0.6;
}

.clip-pill:hover,
.clip-tag:hover {
    border-color: var(--hover);
}

.clip-pill.is-active,
.clip-tag.is-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--background) !important;
}

.clip-active-filter,
.clip-empty {
    color: var(--muted);
    font-size: 0.9rem;
}

.clip-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.clip {
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
}

.clip-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.clip-type {
    flex-shrink: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    min-width: 3.2rem;
}

.clip-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.clip-meta,
.clip-note,
.clip-inline-tags {
    margin-left: 3.8rem;
}

.clip-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.clip-note {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.clip-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.clip-inline-tags a {
    color: var(--muted) !important;
    text-decoration: none !important;
}

.clip-inline-tags a:hover {
    color: var(--text) !important;
}

@media (max-width: 768px) {
    .clip-head {
        flex-direction: column;
        gap: 0.1rem;
    }

    .clip-meta,
    .clip-note,
    .clip-inline-tags {
        margin-left: 0;
    }
}

/* =========================
   Video feed (videos.php) and video pages (video.php)
========================= */

.video-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 640px;
    margin: 2rem auto;
}

.video-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.video-card-title {
    margin: 0;
    font-size: 1.2rem;
}

.video-card-title a {
    text-decoration: none !important;
}

.video-card-title a:hover {
    text-decoration: underline !important;
}

.video-card-meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.video-card-desc {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.video-card-tags,
.video-page-tags {
    margin-left: 0;
    margin-top: 0.75rem;
}

.video-container .video-player {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .video-feed {
        gap: 1.5rem;
    }

    .video-card-body {
        padding: 0.85rem 1rem 1rem;
    }
}

.attribution {
    color: #bbb;
    font-size: 0.8rem;
}

/* Links shown as their own URL; let long ones wrap on narrow screens */
.bare-links a {
    overflow-wrap: anywhere;
}
