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

@font-face {
    font-family: "SuisseInt-Bold";
    src: url(./font/SuisseIntl-Bold.otf);
}

html,
body {
    font-size: 62.5%;
    width: 100%;
    overflow-x: hidden;
    background: #f4f4f4;
    font-family: "SuisseInt-Bold";
    -webkit-font-smoothing: antialiased;
}

/* ─── Grain overlay ──────────────────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.28;
    mix-blend-mode: multiply;
    z-index: 200;
}

/* ─── About ────────────────────────────── */
.about-page {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: color .3s ease-in;
}

.about-page a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.2);
    transition: color .3s ease-in;
}

.about-page a:hover {
    text-decoration: none;
    color: rgb(0, 0, 0);
    transition: color .3s ease-in;
}

/* ─── Abstract ────────────────────────────── */
.abstract-container {
    position: absolute;
    display: grid;
    margin: 0.5rem 0 0 0.5rem;
    width: 50svw;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .abstract-container {
        margin: 0.5rem;
        width: calc(100svw - 1rem);
    }
}

.section {
    display: grid;
}

/* The <h1> is now a <button class="header">, reset to inherit the same look */
.header {
    font: inherit;
    font-size: 1.2rem;
    text-align: left;
    hyphens: auto;
    margin-bottom: 1.9416rem;
    background-color: white;
    border: none;
    padding: 0;
    width: 100%;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.header::after {
    content: "+";
    font-size: 1.2rem;
    flex-shrink: 0;
}

.header[aria-expanded="true"]::after {
    content: "–";
}

/* Smooth expand/collapse using the grid-rows trick, no JS height calc needed */
.collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
    overflow: hidden;
}

.collapsible.open {
    grid-template-rows: 1fr;
}

.collapsible-inner {
    min-height: 0;
}

.text {
    font-size: 1.2rem;
    text-indent: 10svw;
    text-align: left;
    hyphens: auto;
    margin-bottom: 1.9416rem;
    background-color: white;
}

/* Download button reuses .header for identical look; this just removes
   the +/- indicator since it isn't a collapsible toggle */
.download-activity::after {
    content: none;
}