:root {
    --gold-color: gold;
    --acc-color: #f7293d;
}

html{
    font-size: 1.125em;
}

body {
    margin: 0;

    line-height: 1.5;
    font-family: leaguemono;

    /* border: .5em solid var(--gold-color);
    box-sizing: border-box; */
    min-height: 100vh;
}

header {
    display: flex;
    padding: 1rem;

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

    border-bottom: .5px solid black;
}
main {
    padding: 0 1rem;
    position: relative;

    /* max-width: 48em;
    margin: 0 auto; */
}
footer {
    padding: 1rem;
    border-top: .5px solid black;
}

/* header, main, footer{
    background: linear-gradient(to bottom, 
    transparent, transparent calc(100% - 2em), var(--gold-color) 100%);
} */

.info {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    background: white;
    padding: 1rem;

}
small {
    background: lime;
}

/*  HTML LOGO 
    ==================================================  */
/* 
    the IBAN becomes part of the identity
    reminding the material aspect of those fight
    and how ressources collectivisation is a tool

    it also plays on the silly fact FMJ name has nearly
    the same amount of char than an IBAM, making them perfectly
    aligned with the monospace: it's a fund, it's a box of money.
*/

/* remove link styling */
.logo a{
    background-color: initial;
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
.logo a:hover{
    border: none;
}

.logo{
    font-stretch: expanded;
    font-weight: bold;

    white-space: nowrap;
    line-height: 1;
    font-size: 1.3rem;
}
.logo .iban{
    font-weight: normal;
}

/*  TYPO
    ==================================================  */

/* 
    playing on the stretch level
*/

h1, h2, h3, h4, h5, h6{
    font-stretch: expanded;
    font-size: 1.3rem;
}

strong{
    font-weight: normal;
    background-color: var(--gold-color);
}

.summary{
    font-size: 1.3rem;
    max-width: 42rem;
    margin: 0 auto;
}

/*  LINK & INTERACTION
    ==================================================  */

a{
    color: inherit;
    text-decoration: none;
    border-bottom: 3px solid var(--acc-color);
}
a:hover{
    border-bottom-color: black;
}

[aria-current="page"] {
    font-weight: bold;
}

/*  NAV
    ==================================================  */

nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1em;
}

/*  HOME MENU
    ==================================================  */

.home-menu{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.home-menu > *:not(:last-child){
    border-right: .5px solid black;
}
.home-menu h2{
    border-top: .5px solid black;
    border-bottom: .5px solid black;
    margin: 0;
    padding: 1rem;
}
.home-menu ul{
    padding: 1rem;
}
.home-menu li{
    padding: 1rem;
    background-color: var(--gold-color);
    border-radius: .5em;
}



/* ACAB specific grid list */


.acab {
    text-align: center;
}

.acab ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 0;
}

.acab li {
    padding: 0.5rem;
    border: 0.5px solid black;
    margin: -0.25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    aspect-ratio: 1;
    overflow: hidden;
}

.acab li:nth-child(4n + 1) {
    border-left: none;
}

.acab li:nth-child(4n) {
    border-right: none;
}


.acab h4 {
    font-size: 1rem;
    line-height: 1.2;
}

.acab img {
    max-width: 60%;
    max-height: 60%;
    margin: auto;
    min-height: 0;
}

.acab li a {
    margin-top: auto;
    font-size: 0.8rem;
    display: block;
    width: fit-content;
}


.acab nav {
    margin-bottom: 2rem;
}

.acab nav div {
    background-color: var(--gold-color);
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline;
}