
.site-header {
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 24px;
}
.site-title {
    font-size: 33.6px;   /* 32px + 5% (2026-11-21) */
    font-weight: normal;
    margin: 0;
    font-family: arial, sans-serif;
}
.site-title a {
    color: var(--fg-strong);
    text-decoration: none;
}
.site-title a:hover {
    color: var(--fg-soft);
}
.top-nav {
    display: block !important;
}
.top-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--fg-soft);
    font-size: 16px;
    font-family: arial, sans-serif;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.top-nav li:last-child a {
    padding-right: 0;
}
.top-nav li a:hover {
    color: var(--fg-strong);
    border-bottom-color: var(--fg-soft);
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;   /* top was 40px until 2026-11-20: a little less air under the header line */
}
/* the last box on a page gives up its own bottom margin, so the space above the footer line is the same on every page
   (2026-11-22: catalog entries, the catalog overview and Talks had 60px there, the other pages 40px) */
.site-main > :last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Soften the social icons and fade to full on hover, as on freefalldatasystems.com */
.site-footer img {
    opacity: 0.82;
    transition: opacity 0.15s ease;
}
.site-footer a:hover img {
    opacity: 1;
}

@media only screen and (max-width: 500px) {
    .site-title {
        font-size: 29.4px;   /* 28px + 5% */
    }
    .top-nav ul {
        gap: 0 20px;
    }
    .top-nav li a {
        padding: 8px 0;
        font-size: 15px;
    }
    .site-main {
        padding: 20px 15px;
    }
}

/* ------------------------------------------------------------------ front page */
/* the portrait (now on the biography page) */
#box_bio article {
    font-size: 17px;
    line-height: 1.65;
    max-width: 76ch;   /* was 60ch until 2026-11-21: with the wider photo the text now fills the tile */
}
#box_bio article p + p {
    margin-top: 1.1em;
}
.bio-top {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);   /* photo was 320px */
    gap: 36px;
    align-items: start;
}
.portrait {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #14110d;
}
.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 2.5s ease;
}
/* the day portrait sits on top and fades away when the visitor's sun has set */
:root[data-sky-mode="dark"] .portrait-day {
    opacity: 0;
}
.home-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 28px;
    font-size: 14px;
    color: var(--muted);
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.home-condition b {
    color: var(--fg-soft);
    margin-right: 6px;
}
.home-blurb {
    font-size: 17px;
    line-height: 1.65;
    max-width: 62ch;
}
.home-blurb p + p {
    margin-top: 1.1em;
}
.home-signature {
    display: block;
    margin-top: 26px;
    opacity: 0.65;
    filter: grayscale(1) brightness(0.35);
}
:root[data-sky-mode="dark"] .home-signature {
    filter: grayscale(1) brightness(0.35) invert(1);
}
/* timeline of works finished per month */
.timeline-heading {
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-soft);
    margin-bottom: 14px;
}
.timeline-heading span {
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 10px;
}
.timeline-bars {
    display: flex;
    align-items: flex-end;
    height: 180px;
    border-bottom: 1px solid var(--line-strong);
}
.timeline-month {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 0.5px;
}
.timeline-month i {
    display: block;
    width: 100%;
    background: var(--fg);
    opacity: 0.85;
}
.timeline-month:hover {
    background: var(--line-soft);
}
a.timeline-month {
    cursor: pointer;
}
a.timeline-month:focus-visible {
    outline: 1px solid var(--red);
}
.timeline-month:hover i {
    background: var(--red);
    opacity: 1;
}
.timeline-years {
    display: flex;
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}
.timeline-years span {
    flex: 1 1 0;
    overflow: hidden;
    border-left: 1px solid var(--line);
    padding-left: 3px;
    white-space: nowrap;
}
.timeline-caption {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}
@media only screen and (max-width: 900px) {
    .timeline-bars { height: 120px; }
    .timeline-years span { font-size: 0; }
    .timeline-years span:nth-child(5n+3) { font-size: 11px; overflow: visible; }
}
/* maps of where the works were written */
.places {
    margin-top: 44px;
}
.places-maps {
    display: grid;
    grid-template-columns: 640fr 520fr;
    gap: 24px;
    align-items: end;
}
.map {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    /* land that runs off the edge fades out instead of being cut off straight */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
}
.map-land {
    fill: color-mix(in srgb, var(--fg) 7%, transparent);
    stroke: color-mix(in srgb, var(--fg) 26%, transparent);
    stroke-width: 0.6;
    stroke-linejoin: round;
}
.map-states {
    fill: none;
    stroke: color-mix(in srgb, var(--fg) 12%, transparent);
    stroke-width: 0.5;
}
.map-dot {
    fill: color-mix(in srgb, var(--red) 38%, transparent);
    stroke: var(--red);
    stroke-width: 0.8;
}
.map-dot.lit {
    fill: var(--fg-strong);
    stroke: var(--fg-strong);
}
.places-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 22px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}
.places-list a {
    color: inherit;
    text-decoration: none;
}
.places-list a:hover b {
    text-decoration: underline;
}
.map a {
    cursor: pointer;
}
.places-list b {
    font-weight: normal;
    color: var(--fg-soft);
}
.places-list span {
    font-size: 12px;
}
.places-list li.lit, .places-list li.lit b {
    color: var(--red);
}
@media only screen and (max-width: 760px) {
    .places-maps { grid-template-columns: 1fr; }
}
.home-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 44px;
}
.home-card {
    background: var(--panel);
    border-radius: 8px;
    padding: 20px 22px;
    position: relative;   /* for the stretched catalog-entry link below */
}
/* the whole card is a link to the catalog entry: that link's hit area covers the card, the other links and the player sit above it */
.home-card-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
}
.home-card:has(.home-card-entry:hover) {
    outline: 1px solid var(--line-strong);
}
.home-card-links a:not(.home-card-entry), .home-card-player {
    position: relative;
    z-index: 1;
}
/* the word "download" after a link that can't play in the page */
.home-card-download {
    color: var(--muted);
    font-size: 13px;
    margin-left: 3px;
}
.home-card-player {
    margin-top: 14px;
}
.home-card-player audio {
    width: 100%;
    height: 40px;
    display: block;
}
.home-card-player video {
    width: 100%;
    display: block;
    background: #000;
}
.home-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.home-card-label {
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-card-number {
    font-size: 26px;
    line-height: 1;
    color: var(--red);
}
.home-card-title {
    font-size: 19px;
    margin-top: 10px;
    color: var(--fg-strong);
}
.home-card-meta {
    font-size: 15px;
    color: var(--muted);
}
.home-card-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    font-size: 15px;
}

@media only screen and (max-width: 760px) {
    .bio-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .portrait {
        aspect-ratio: 4 / 5;
        max-width: 420px;
    }
    .portrait img {
        object-position: 50% 20%;
    }
    .home-works {
        grid-template-columns: 1fr;
        margin-bottom: 32px;
    }
}

/* preview only (index.php?cards=black / ?cards=blackline): the Latest and Random tiles on pure black */
body.cards-black .home-card, body.cards-blackline .home-card { background: #fff; }
:root[data-sky-mode="dark"] body.cards-black .home-card, :root[data-sky-mode="dark"] body.cards-blackline .home-card { background: #000; }
body.cards-blackline .home-card { border: 1px solid var(--line); }
