/* Sonification of You — Miso design, based on the greyisgood font definitions.
   Shared by the updated archive pages; legacy stylesheets remain unchanged.
   First try same-origin fonts, then greyisgood's existing font directory.
   A domain alias may need CORS enabled or a local font directory. */
@font-face {
    font-family: 'MisoLight';
    src: url('fontface/miso/miso-light-webfont.woff') format('woff'),
         url('../fontface/miso/miso-light-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-light-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-light-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MisoRegular';
    src: url('fontface/miso/miso-webfont.woff') format('woff'),
         url('../fontface/miso/miso-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MisoBold';
    src: url('fontface/miso/miso-bold-webfont.woff') format('woff'),
         url('../fontface/miso/miso-bold-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-bold-webfont.woff') format('woff'),
         url('https://greyisgood.eu/fontface/miso/miso-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --c-bg1: #f2f2f2;
    --c-bg2: #dedede;
    --c-bg3: #bfbfbf;
    --c-text-strong: #181818;
    --c-muted: #484848;
    --c-border: #777;
    --c-border-hover: #333;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--c-bg1) 0%, var(--c-bg2) 45%, var(--c-bg3) 100%);
    background-attachment: fixed;
    color: var(--c-muted);
    font-family: 'MisoRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(22px, 1.6vw + 12px, 26px);
    line-height: 1.35;
    font-weight: normal;
}
.site {
    max-width: 960px;
    margin: 0;
    padding: 30px;
}
.site-header { margin-bottom: 72px; }
.site-name {
    font-family: 'MisoLight', 'MisoRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.6em;
    line-height: 1.1;
    letter-spacing: .5px;
    margin: 0;
}
.site-name a { border: 0; }
.subtitle { margin: 5px 0 20px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88em; }
a {
    color: var(--c-text-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--c-border);
    overflow-wrap: anywhere;
}
a:hover { background-color: rgba(0,0,0,.06); border-bottom-color: var(--c-border-hover); }
a:focus-visible { outline: 2px solid var(--c-text-strong); outline-offset: 4px; }
h1, h2, h3 {
    color: var(--c-text-strong);
    font-family: 'MisoLight', 'MisoRegular', 'Arial Narrow', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: .5px;
    line-height: 1.15;
    margin: 0 0 20px;
}
h1 { font-size: 1.6em; margin-bottom: 5px; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; margin: 34px 0 14px; }
strong, b { font-family: 'MisoBold', 'MisoRegular', Arial, sans-serif; font-weight: normal; }
p { margin: 0 0 16px; }
.byline { margin-bottom: 24px; }
.lead { font-size: 1.2em; line-height: 1.2; color: var(--c-text-strong); }
.muted, .small, figcaption { color: var(--c-muted); }
.small, figcaption { font-size: .85em; }
section { margin-bottom: 76px; }
.images { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 26px 0 40px; }
figure { margin: 0; }
figure img { display: block; max-width: 100%; height: auto; }
figcaption { margin-top: 8px; }
iframe { display: block; border: 0; margin: 16px 0; max-width: 100%; }
.historical { color: var(--c-text-strong); }
.timeline { display: grid; grid-template-columns: 3.4em minmax(0,1fr); gap: 10px 12px; margin: 20px 0; }
.timeline dt { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; }
.records { list-style: none; margin: 0 0 24px; padding: 0; }
.records li { margin: 0 0 10px; }
.bibliography li { margin-bottom: 15px; }
.bibliography li > span, .notes-list .muted { margin-right: .5em; }
.notes-list .muted { font-size: .85em; font-variant-numeric: tabular-nums; }
footer { margin-top: 60px; font-size: .85em; }
@media (max-width: 599px) {
    .site { padding: 15px; }
    .site-header { margin-bottom: 46px; }
    section { margin-bottom: 55px; }
    .images { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 2.6em minmax(0,1fr); gap: 10px 8px; }
}
@media print {
    body { background: white; color: black; font-size: 12pt; }
    .site { max-width: none; padding: 0; }
    .section-nav, iframe { display: none; }
    section { margin-bottom: 2rem; }
    figure, h2, h3 { break-inside: avoid; }
}

/* Historical archive — same typography and spacing, no decorative rules. */
.archive-page h1 { margin-bottom: 24px; }
.archive-content { margin: 34px 0 50px; }
.archive-block { margin: 0 0 30px; overflow-wrap: break-word; }
.archive-block .archive-block { margin-top: 30px; }
.archive-images { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 15px; }
.archive-images img, .archive-block img { max-width: 100%; height: auto; }
.archive-images img { display: block; }
.archive-images a { border: 0; }
.archive-content img { max-width: 100%; height: auto; }
.media-item { margin: 22px 0 32px; }
.media-item p { margin-bottom: 6px; }
audio { display: block; width: 100%; max-width: 600px; margin: 8px 0; }
video { display: block; max-width: 100%; height: auto; width: 352px; margin: 12px 0; background: #181818; }
@media print { audio, video { display: none; } }
