@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/fonts/AtkinsonHyperlegibleNext-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/fonts/AtkinsonHyperlegibleNext-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('/fonts/AtkinsonHyperlegibleNext-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    src: url('/fonts/AtkinsonHyperlegibleMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    src: url('/fonts/AtkinsonHyperlegibleMono-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    src: url('/fonts/AtkinsonHyperlegibleMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    src: url('/fonts/AtkinsonHyperlegibleMono-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --ocra-fanzine: #cfa100;
}

body {
    color: #000000;
    font-family: 'Atkinson Hyperlegible Next', 'Courier New', monospace;
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 680px;
    margin: 60px auto;
    padding: 0 24px;
    word-spacing: -0.05em;
    background-color: #f4f1ea !important;
    position: relative;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: transparent;

    background-image: 
        repeating-conic-gradient(from 0deg at 0% 0%, rgba(207, 161, 0, 0.05) 0deg 2deg, transparent 4deg 5.31deg),
        repeating-conic-gradient(from 45deg at 100% 0%, rgba(0, 0, 255, 0.05) 0deg 2deg, transparent 4deg 7.19deg),
        repeating-conic-gradient(from 90deg at 50% 100%, rgba(0, 0, 0, 0.05) 0deg 2deg, transparent 4deg 9.73deg),
        repeating-conic-gradient(from 0deg at 0% 0%,  rgba(207, 161, 0, 0.8) 0deg 0.05deg, transparent 0.06deg 5.31deg),
        repeating-conic-gradient(from 45deg at 100% 0%, rgba(0, 0, 255, 0.5) 0deg 0.05deg, transparent 0.06deg 7.19deg),
        repeating-conic-gradient(from 90deg at 50% 100%, rgba(0, 0, 0, 0.3) 0deg 0.08deg, transparent 0.09deg 9.73deg);
        
    background-size: 100vw 100vh !important;
    background-repeat: no-repeat !important;
    
    mix-blend-mode: multiply;
    opacity: 1;
    pointer-events: none;
}

.audio-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 200px;
    z-index: -1;
    pointer-events: none;
    display: block;
}

.wave-ochre {
    stroke: var(--ocra-fanzine);
    opacity: 0.45;
}

.wave-blue {
    stroke: rgba(0, 0, 255, 0.15);
}

.wave-gray {
    stroke: rgba(0, 0, 0, 0.22);
}

header {
    margin-bottom: 50px;
}

header nav {
    text-align: right;
}

header nav a {
    font-size: 1.2em;
    color: #000000;
    background-color: #ffffff;
}

.embed-video-container {
    margin: 20px auto;
    max-width: 100%;
}

header h1 {
    display: inline-flex;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 3em;
    letter-spacing: 0em;
    background-color: transparent !important;
    line-height: 1.1;
}

.site-claim {
    width: max-content;
    font-style: italic;
    font-size: 1.15em;
    color: #000000;
    background-color: #ffffff;
    margin: 0 0 70px 0;
    padding-left: 10px;
    padding-right: 10px;
    line-height: 1.4;
    text-align: left;
    padding: 5px;
    letter-spacing: 0.02em;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.4);
}

header h1 a {
    display: inline-block;
    color: #ffffff !important;
    background-color: #000000 !important;
    padding: 6px 12px !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-family: 'Atkinson Hyperlegible Mono', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
}

header h1 a:hover {
    background-color: #0000ff !important;
    color: #ffffff !important;
}

.single-post h1, main h2 {
    display: block;
    text-align: left;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    font-family: 'Atkinson Hyperlegible Mono', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #000000 !important;
    background-color: transparent !important;
}

article img, 
article figure {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Impedisce all'immagine di uscire dai bordi del post */
    height: auto;
}

/* Se usi lo shortcode {{< figure >}}, centra anche la didascalia sotto */
article figure figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.single-post h1::before, .single-post h1::after,
main h2::before, main h2::after {
    content: none !important;
}

.single-post h3 {
    margin: 0;
    padding: 0;
}

/* Prepara il tag time per il popup */
.post-header time {
    position: relative;
    cursor: help; /* Cambia il cursore in un punto di domanda */
}

/* Mostra il valore di data-human al passaggio del mouse */
.post-header time:hover::after {
    content: attr(data-human);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

/* Stile per la scritta YYYY.MM.DD */
.date-format-hint {
    font-family: 'Atkinson Hyperlegible Mono', monospace; /* Il tuo bellissimo font mono */
    font-size: 0.65rem;
    color: #555; /* Un grigio scuro che si nota appena */
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.post-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.highlight-alt {
    background-color: var(--ocra-fanzine);
    color: #000000;
    padding: 0 4px;
    font-weight: 700;
}

strong {
    font-weight: 700;
    background-color: #000000;
    color: #ffffff;
    padding: 2px 6px;
}

em {
    background-color: #fdf0f2;
    padding: 2px 6px;
}

a {
    color: #0e0ecd;
    font-weight: 700;
    text-decoration: underline;
    padding: 2pt;
}

a:hover {
    background-color: #0e0ecd;
    color: #ffffff;
    text-decoration: none;
}

a strong, strong a {
    color: inherit !important;
    background-color: transparent !important;
    padding: 0;
}

.posts-list a {
    display: inline-block;
    color: #ffffff !important;
    background-color: #000000 !important;
    text-decoration: none !important;
    padding: 4px 8px;
    font-family: 'Atkinson Hyperlegible Mono', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.posts-list a:hover {
    background-color: #0000ff !important;
    color: #ffffff !important;
}

hr {
    border: 0;
    height: 4px;
    background-color: #000000;
    position: relative;
    margin: 50px 0;
}

hr::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0000ff;
}

.manifesto, .single-post {
    position: relative;
    max-width: 680px;
    margin: 30px auto 60px auto;
    padding: 40px;
    box-sizing: border-box;
    background-color: #ffffff;
    z-index: 1;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.4);
}

.manifesto::before, .single-post::before,
.manifesto::after, .single-post::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-repeat: repeat-y;
}

.manifesto::before, .single-post::before {
    left: 0;
    background-image: linear-gradient(to bottom, var(--ocra-fanzine) 60%, transparent 40%);
    background-size: 2px 52px;
    margin-left: 2px;
    background-position: 0 0px;
}

.manifesto::after, .single-post::after {
    left: 100%;
    margin-left: -5px;
    background-image: linear-gradient(to bottom, var(--ocra-fanzine) 60%, transparent 40%);
    background-size: 2px 50px;
    background-position: 0 40px;
}

.post-content::after {
    content: "■";
    display: block;
    text-align: center;
    margin: 50px auto 10px auto;
    font-size: 0.8em;
    color: #000000;
}

footer {
    margin-top: 120px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.85em;
    margin-bottom: 180px;
}

footer p {
    margin: 0 !important;
    padding: 4px 12px !important;
    color: #ffffff;
    background-color: #000000 !important;
}

.cookie-notice {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    font-size: 1.2em;
    color: var(--ocra-fanzine);
}
details {
    display: block !important;
    margin: 30px -25px !important;
    border: 2px solid #000000 !important;
    background-color: #ffffff !important;
}

summary {
    display: list-item !important;
    background-color: #ffdee6 !important;
    color: #000000 !important;
    padding: 12px 43px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    user-select: none !important;
}

summary:hover {
    background-color: #ffbccc !important;
}

details[open] {
    padding-bottom: 20px !important;
}

details[open] summary {
    border-bottom: 2px solid #000000 !important;
    margin-bottom: 20px !important;
}

blockquote {
    font-style: italic;
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    background-color: rgb(245, 245, 235);
    padding: 0.5em 2em 0.5em 2em;
    margin: 0;
}

blockquote p {
    font-size: 0.8em;
}

details p, details h4 {
    padding: 0 43px !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

/* 2. Correzione Elenchi: extra padding a sinistra (63px) per rimettere i pallini in asse con il testo */
details ul {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 43px !important;
    padding-left: 63px !important; 
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

details > .katex {
    display: block !important;
    padding: 12px 43px !important;
    text-align: left !important;
}

span.katex {
    font-size: 1.3em; 
}

/* Prepariamo il link a contenere il popup */
article a[href] {
    position: relative;
    text-decoration: underline;
}

article a[href]:hover::after {
    content: "URL: " attr(href);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Atkinson Hyperlegible Mono', monospace;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

article a[href]:hover::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    z-index: 999;
}
.post-header {
    display: block !important;
    width: 100% !important;
    margin-bottom: 45px !important;
    background-color: transparent !important;
}

.post-header time {
    float: right !important;
    margin: 0 0 10px 24px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    cursor: help;
    color: #000000 !important;
    background-color: var(--ocra-fanzine) !important;
    padding: 6px 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    font-size: 1rem !important;
    font-family: 'Atkinson Hyperlegible Mono', monospace !important;
    white-space: nowrap;
}

.post-header time small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.post-header time::before {
    content: none !important;
}

.post-header time:hover::after {
    content: attr(data-human) !important;
    position: absolute !important;
    bottom: 130% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 1px solid #555 !important;
    background-color: #222 !important;
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-family: 'Atkinson Hyperlegible Mono', monospace !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    z-index: 999 !important;
}

.post-header::after {
    content: "";
    display: table;
    clear: both;
}

.zoomable-img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}