/* ==========================================================================
   Tasc — tema Ghost. Testata centrata, una colonna di lettura, scuro.
   Palette ufficiale "TASCOLORS" (grafite + verde Tasc).
   Caratteri (OFL, self-hosted, nessuna richiesta a servizi esterni):
   - Schibsted Grotesk per il testo: grottesco nato per le testate del gruppo Schibsted;
   - Source Serif 4 per titoli, capolettera e citazioni;
   - Chakra Petch per il logotipo TASC.
   ========================================================================== */

@font-face {
    font-family: "Source Serif 4";
    font-style: normal; font-weight: 200 900; font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic; font-weight: 200 900; font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal; font-weight: 200 900; font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic; font-weight: 200 900; font-display: swap;
    src: url("../fonts/source-serif-4-latin-ext-opsz-italic.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: italic; font-weight: 400 900; font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: italic; font-weight: 400 900; font-display: swap;
    src: url("../fonts/schibsted-grotesk-latin-ext-wght-italic.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Chakra Petch";
    font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Chakra Petch";
    font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --dark-grafite: #1a1a1a;     /* sfondo */
    --grafite: #232323;          /* superfici */
    --rule: #383838;             /* filetti */
    --rule-soft: #2c2c2c;
    --text: #cfcfcf;             /* testo corrente (contrasto ~11:1 sullo sfondo) */
    --text-strong: #f6f6f6;      /* tasc pure: titoli */
    --muted: #949494;            /* metadati (AA) */
    --smoke: #b8b8b8;
    --green: #36b809;            /* tasc green */
    --green-light: #97e334;      /* tasc light green */

    /* i font scelti in Ghost Admin > Design, se impostati, hanno la precedenza */
    --serif: "Source Serif 4", Charter, Georgia, serif;
    --serif-head: var(--gh-font-heading, var(--serif));
    --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --body: var(--gh-font-body, var(--sans));
    --logo: "Chakra Petch", var(--sans);
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --measure: 660px;            /* colonna di lettura */
    --wide: 860px;               /* immagini e testata articolo */
}

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

html {
    background: var(--dark-grafite);
    color: var(--text);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--dark-grafite);
    font: 400 18.5px/1.66 var(--body);
    font-optical-sizing: auto;
    font-feature-settings: "kern", "liga";
    letter-spacing: -.003em;
}

a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover, a:focus-visible { color: var(--green-light); }
:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* etichette: maiuscoletto spaziato, sans, discreto */
.kicker, .byline, .site-nav a, .pagination, .article-tags, .footer-links, .brand-tagline {
    font-family: var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Testata
   -------------------------------------------------------------------------- */
.masthead {
    max-width: calc(var(--wide) + 48px);
    margin: 0 auto;
    padding: 46px 24px 0;
    text-align: center;
}

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand:hover .logo-mark { color: var(--green-light); }
.logo-mark { width: 58px; height: auto; display: block; transition: color .2s; }
.brand-logo { width: 58px; }
.brand-name {
    font: 600 54px/1 var(--logo);
    letter-spacing: .24em;
    margin-right: -.24em;                 /* compensa la spaziatura dell'ultima lettera: centratura ottica */
    text-transform: uppercase;
}
.brand-tagline {
    margin: 14px 0 0;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .28em;
}

.site-nav {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 24px;
    margin-top: 30px;
    padding: 13px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 3px 0 -2px var(--rule);   /* doppio filetto sotto, da testata stampata */
}
.site-nav ul { display: contents; }      /* le voci e la lente di ricerca scorrono sulla stessa riga */
.site-nav li { list-style: none; }
.site-nav a { font-size: 11.5px; font-weight: 500; color: var(--smoke); }
.site-nav a:hover, .site-nav .nav-current a { color: var(--green-light); }
.search-button {
    display: inline-flex; padding: 2px; margin: 0; border: 0; background: none;
    color: var(--smoke); cursor: pointer;
}
.search-button:hover { color: var(--green-light); }

/* --------------------------------------------------------------------------
   Colonna principale
   -------------------------------------------------------------------------- */
.main {
    max-width: calc(var(--measure) + 48px);
    margin: 0 auto;
    padding: 56px 24px 72px;
}

/* --- elenco articoli ------------------------------------------------------- */
.entry { padding: 34px 0; border-bottom: 1px solid var(--rule-soft); }
.entry:first-child { padding-top: 0; }

.kicker { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; color: var(--green); }
.kicker a { color: var(--green); }
.kicker a:hover { color: var(--green-light); }

.entry-title {
    margin: 0;
    font: 650 28px/1.2 var(--serif-head);
    font-variation-settings: "opsz" 40;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.entry-title a { color: var(--text-strong); }
.entry-title a:hover { color: var(--green-light); }
.entry-excerpt { margin: 12px 0 0; color: var(--text); }

.byline { margin: 14px 0 0; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.byline a { color: var(--smoke); }
.byline a:hover { color: var(--green-light); }
.byline-sep { margin: 0 .7em; }

/* articolo d'apertura */
.entry-lead { text-align: center; padding-bottom: 46px; border-bottom: 1px solid var(--rule); }
.entry-lead .entry-title { font-size: clamp(34px, 5.4vw, 46px); line-height: 1.1; font-weight: 700; font-variation-settings: "opsz" 60; }
.entry-lead .entry-excerpt { font-family: var(--serif); font-size: 22px; line-height: 1.5; font-style: italic; color: var(--smoke); margin-top: 18px; text-wrap: pretty; }
.entry-lead .byline { margin-top: 20px; }

.empty { color: var(--muted); text-align: center; }

/* --- testate di archivio, tag, autore -------------------------------------- */
.archive-header { text-align: center; margin-bottom: 20px; padding-bottom: 38px; border-bottom: 1px solid var(--rule); }
.archive-header .kicker { color: var(--muted); }
.archive-header h1 { margin: 0; font: 700 44px/1.1 var(--serif-head); font-variation-settings: "opsz" 60; color: var(--text-strong); letter-spacing: -.01em; }
.archive-desc { margin: 14px auto 0; max-width: 520px; color: var(--smoke); font-family: var(--serif); font-style: italic; }
.author-header .avatar-l { margin: 0 auto 18px; display: block; }
.author-links { margin: 12px 0 0; font: 13px/1.5 var(--sans); }

.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--rule); }
.avatar-l { width: 104px; height: 104px; }

.archive-list { list-style: none; margin: 0; padding: 0; font: 19px/1.35 var(--serif-head); }
.archive-list li { display: grid; grid-template-columns: 104px 1fr; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.archive-list time { font: 12.5px/1.8 var(--mono); color: var(--muted); }
.archive-list a { color: var(--text-strong); }
.archive-list a:hover { color: var(--green-light); }
.archive-list .muted { grid-column: 2; font: 12px/1.4 var(--sans); color: var(--muted); letter-spacing: .06em; }

.authors-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.authors-list li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.authors-list a { color: var(--text-strong); font: 19px/1.35 var(--serif-head); }
.authors-list a:hover { color: var(--green-light); }
.authors-list .avatar { display: none; }
.authors-list .muted { font: 12px var(--sans); color: var(--muted); white-space: nowrap; }

/* --- paginazione ----------------------------------------------------------- */
.pagination {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 44px; font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.pagination a { color: var(--smoke); }
.pagination a:hover { color: var(--green-light); }

/* --------------------------------------------------------------------------
   Articolo
   -------------------------------------------------------------------------- */
.article-header { text-align: center; margin: 0 auto 44px; max-width: var(--wide); }
.article-title {
    margin: 0 auto;
    font: 700 clamp(34px, 5.6vw, 54px)/1.08 var(--serif-head);
    font-variation-settings: "opsz" 60;
    letter-spacing: -.015em;
    color: var(--text-strong);
    text-wrap: balance;
}
.article-dek {
    margin: 22px auto 0; max-width: 600px; font-family: var(--serif);
    font-size: 23px; line-height: 1.45; font-style: italic; color: var(--smoke);
    text-wrap: pretty;
}
.article-header .byline {
    display: inline-block; margin-top: 26px; padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.main:has(.article) { max-width: calc(var(--wide) + 48px); }
.article .gh-content, .article-tags, .author-cards, .comments, .prev-next { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.article-image { margin: 0 0 48px; }
.article-image img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
figcaption {
    margin-top: 10px;
    font: 13px/1.5 var(--sans); color: var(--muted); text-align: center;
}

/* --- nota d'archivio sui pezzi del vecchio Tasc -------------------------- */
.legacy-note {
    display: flex; gap: 14px; align-items: flex-start;
    max-width: var(--measure); margin: 0 auto 40px;
    padding: 16px 20px;
    border: 1px solid var(--rule); border-left: 3px solid var(--green);
    background: var(--grafite);
    font: 14.5px/1.55 var(--sans); color: var(--smoke);
}
.legacy-note p { margin: 0; }
.legacy-note strong { color: var(--text-strong); font-weight: 600; }
.legacy-mark { color: var(--green); font-size: 11px; line-height: 2; }
.legacy-badge { color: var(--muted); border: 1px solid var(--rule); padding: 2px 6px; font-size: 10px; }

/* --- corpo del testo ------------------------------------------------------- */
.gh-content { overflow-wrap: break-word; hyphens: auto; }
.gh-content > * { margin: 0 0 1.2em; }

/* ciò che non è testo non deve affiancarsi al capolettera */
.gh-content > :not(p) { clear: both; }

/* capolettera sul primo paragrafo */
.gh-content > p:first-of-type::first-letter {
    float: left;
    font: 700 4.1em/.82 var(--serif-head);
    font-variation-settings: "opsz" 60;
    margin: .07em .09em 0 -.02em;
    color: var(--text-strong);
}

.gh-content h2, .gh-content h3 { color: var(--text-strong); font-family: var(--serif-head); line-height: 1.25; margin: 1.9em 0 .6em; }
.gh-content h2 { font-size: 27px; font-weight: 650; }
.gh-content h3 { font-size: 22px; font-weight: 650; }
.gh-content h4, .gh-content h5, .gh-content h6 {
    font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); margin: 2em 0 .8em;
}
.gh-content a { text-decoration: underline; text-decoration-color: rgba(54, 184, 9, .5); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content a:hover { text-decoration-color: var(--green-light); }
.gh-content strong { color: #ececec; font-weight: 600; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li { margin-bottom: .45em; }
.gh-content li::marker { color: var(--muted); }
.gh-content hr { border: 0; text-align: center; margin: 2.6em 0; }
.gh-content hr::before { content: "▲ ▲ ▲"; color: #555; font-size: 10px; letter-spacing: .8em; }

.gh-content blockquote:not(.kg-blockquote-alt) {
    margin-left: 0; padding: 0 0 0 24px;
    border-left: 2px solid var(--green);
    color: var(--smoke); font-family: var(--serif); font-style: italic; font-size: 1.05em;
}
/* citazione in evidenza (ex shortcode [quote]) */
.gh-content .kg-blockquote-alt {
    margin: 1.8em 0; padding: 26px 4%;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    text-align: center;
    font-family: var(--serif); font-size: 27px; line-height: 1.35; font-style: italic; font-weight: 500;
    font-variation-settings: "opsz" 40;
    color: var(--text-strong);
}

.gh-content code { font: .82em var(--mono); background: #151515; padding: .12em .38em; border-radius: 3px; }
.gh-content pre { background: #151515; border: 1px solid var(--rule-soft); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.gh-content pre code { background: none; padding: 0; }
.gh-content table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; }

/* fine articolo: la vetta di Tasc, omaggio alla stella di Daring Fireball */
.gh-content > p:last-child::after {
    content: "\00a0\00a0▲";
    font-size: .6em; color: var(--green); vertical-align: .14em;
}

/* --- card Koenig ----------------------------------------------------------- */
.gh-content .kg-card { margin: 2em 0; }
.kg-image { display: block; margin: 0 auto; }
.kg-width-wide { width: min(var(--wide), 100vw - 48px); margin-left: 50% !important; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50% !important; transform: translateX(-50%); }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.kg-callout-card.kg-callout-card-grey { background: var(--grafite) !important; border: 1px solid var(--rule); border-radius: 0 !important; }
.kg-callout-card .kg-callout-text { font: 16px/1.55 var(--sans); }
.kg-callout-emoji { color: var(--green); }
.kg-bookmark-card a.kg-bookmark-container { color: var(--text); border-color: var(--rule) !important; text-decoration: none; }
.kg-bookmark-title { color: var(--text-strong) !important; }

/* --- pagina Manifesto ----------------------------------------------------- */
.manifesto .gh-content { hyphens: manual; }                /* tesi brevi: niente sillabazione */
.manifesto-mark { display: inline-block; color: var(--smoke); margin-bottom: 18px; }
.manifesto-mark .logo-mark { width: 44px; }
.manifesto .article-title { font-size: clamp(44px, 7vw, 72px); }
.manifesto .gh-content > p:first-of-type::first-letter { all: unset; }   /* niente capolettera qui */
.manifesto .gh-content > p:first-of-type { font: 500 28px/1.38 var(--serif); font-variation-settings: "opsz" 40; color: var(--text-strong); text-align: center; text-wrap: balance; margin-bottom: 1.6em; }
.manifesto .gh-content > p:last-child::after { content: none; }

/* le tesi: numeri grandi in serif verde, filetto tra una e l'altra */
.manifesto .gh-content ol { list-style: none; counter-reset: tesi; padding: 0; margin: 2.4em 0; border-top: 1px solid var(--rule); }
.manifesto .gh-content ol > li {
    counter-increment: tesi;
    display: grid; grid-template-columns: 64px 1fr; column-gap: 18px;
    margin: 0; padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.manifesto .gh-content ol > li::before {
    content: counter(tesi, decimal-leading-zero);
    grid-row: span 2;
    font: 300 40px/1 var(--serif-head); font-variation-settings: "opsz" 60;
    color: var(--green);
}
.manifesto .gh-content ol > li strong {
    display: block; margin-bottom: 6px;
    font: 650 23px/1.25 var(--serif-head); color: var(--text-strong);
}
.manifesto .gh-content h2 { text-align: center; }

/* --- manifesto: testo continuo, giustificato e centrato, essenziale ------- */
/* Usato sia in /manifesto/ sia in apertura di home. Un solo accento: le parole con
   class="m-green m-strong" vanno in verde. Tutto il resto è testo pieno, senza effetti. */
.tasc-manifesto {
    max-width: 620px; margin: 0 auto;
    font: 400 22px/1.7 var(--serif); font-variation-settings: "opsz" 28;
    color: var(--text);
    text-align: justify; text-align-last: center;
    hyphens: auto; -webkit-hyphens: auto;
}
.tasc-manifesto p { margin: 0; }
/* neutralizza qualsiasi enfasi residua: dimensioni, corsivi, grassetti, grigi */
.tasc-manifesto span, .tasc-manifesto em, .tasc-manifesto strong {
    font: inherit; color: inherit; letter-spacing: inherit;
    hyphens: manual; -webkit-hyphens: manual;
}
.tasc-manifesto > p > strong:first-child, .tasc-manifesto > p > .m-strong:first-child { font-weight: 650; color: var(--text-strong); }
.tasc-manifesto .m-green.m-strong { color: var(--green-light); }

.home-manifesto { text-align: center; margin: 0 0 52px; padding-bottom: 50px; border-bottom: 1px solid var(--rule); }
.home-manifesto .kicker { margin: 0 0 22px; }
.home-manifesto .tasc-manifesto { font-size: 21px; }
.home-manifesto + .entries .entry-lead { padding-top: 0; }

/* --- categorie in fondo ------------------------------------------------------ */
.footer-categories { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 44px 24px 40px; border-top: 1px solid var(--rule); }
.footer-categories .kicker { text-align: center; color: var(--muted); margin-bottom: 22px; }
.footer-categories ul { list-style: none; margin: 0; padding: 0; columns: 4 160px; column-gap: 32px; }
.footer-categories li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.footer-categories a { font: 600 17px/1.3 var(--serif-head); color: var(--text-strong); }
.footer-categories a:hover { color: var(--green-light); }
.footer-categories .count { font: 12px/1.9 var(--mono); color: var(--muted); }

/* --- newsletter -------------------------------------------------------------- */
.subscribe { max-width: 520px; margin: 0 auto; text-align: center; }
.subscribe-title { margin: 0 0 6px; font: 650 22px/1.25 var(--serif-head); color: var(--text-strong); }
.subscribe-text { margin: 0 0 16px; font-size: 15.5px; color: var(--smoke); }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.subscribe-form input {
    flex: 1 1 240px; min-width: 0; padding: 12px 14px;
    font: 16px/1.2 var(--sans); color: var(--text-strong);
    background: var(--dark-grafite); border: 1px solid var(--rule); border-radius: 0;
}
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form input:focus { outline: none; border-color: var(--green); }
.subscribe-form button {
    flex: 0 0 auto; padding: 12px 20px; cursor: pointer;
    font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    color: var(--dark-grafite); background: var(--green); border: 0; border-radius: 0;
}
.subscribe-form button:hover { background: var(--green-light); }
.subscribe-form .wait, .subscribe-msg { display: none; }
.subscribe-form.loading .label { display: none; }
.subscribe-form.loading .wait { display: inline; }
.subscribe-msg { flex: 1 1 100%; margin: 6px 0 0; font: 14px/1.5 var(--sans); }
.subscribe-form.success .ok { display: block; color: var(--green-light); }
.subscribe-form.error .ko { display: block; color: #e58a8a; }
.subscribe-form.success input, .subscribe-form.success button { display: none; }
.subscribe-fine { margin: 10px 0 0; font: 12.5px/1.5 var(--sans); color: var(--muted); }

.home-manifesto .subscribe { margin-top: 36px; }
.home-manifesto .subscribe-title { font: 600 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.article .subscribe { max-width: var(--measure); margin-top: 56px; padding: 30px 24px; border: 1px solid var(--rule); background: var(--grafite); }
.footer-subscribe { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 36px 24px 40px; border-top: 1px solid var(--rule); }
.footer-subscribe .subscribe-title { font: 600 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --- coda dell'articolo ---------------------------------------------------- */
.article-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 52px; font-size: 11px; font-weight: 500; }
.article-tags a { color: var(--smoke); border: 1px solid var(--rule); padding: 7px 11px; }
.article-tags a:hover { color: var(--green-light); border-color: var(--green); }

.author-cards { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; gap: 20px; }
.author-card { display: flex; gap: 16px; align-items: flex-start; }
.author-card .author-name { font: 650 18px/1.3 var(--serif-head); color: var(--text-strong); }
.author-card .author-name:hover { color: var(--green-light); }
.author-card p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.comments { margin-top: 48px; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.prev-next a { display: block; color: var(--text-strong); }
.prev-next a:hover { color: var(--green-light); }
.prev-next .kicker { display: block; color: var(--muted); }
.pn-title { font: 600 18px/1.3 var(--serif-head); }
.prev-next .next { text-align: right; grid-column: 2; }

/* --------------------------------------------------------------------------
   Piè di pagina
   -------------------------------------------------------------------------- */
.site-footer {
    max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 40px 24px 56px;
    border-top: 1px solid var(--rule);
    text-align: center; font: 13px/1.6 var(--sans); color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.footer-mark { display: inline-block; color: #4a4a4a; }
.footer-mark .logo-mark { width: 30px; }
.footer-name { font: 600 16px/1 var(--logo) !important; letter-spacing: .24em; text-transform: uppercase; color: var(--smoke); margin: 10px 0 8px !important; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px !important; font-size: 11px; }
.footer-links a { color: var(--smoke); }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { color: #6a6a6a; margin-top: 16px !important; }

/* --- errori ---------------------------------------------------------------- */
.error-page { max-width: 560px; margin: 14vh auto; padding: 0 24px; text-align: center; }
.error-page .logo-mark { margin: 0 auto; color: var(--smoke); }
.error-page h1 { font: 700 80px/1 var(--serif-head); color: var(--text-strong); margin: 28px 0 10px; }

/* --------------------------------------------------------------------------
   Telefono
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    body { font-size: 17.5px; }
    .masthead { padding: 30px 16px 0; }
    .logo-mark, .brand-logo { width: 44px; }
    .brand { gap: 10px; }
    .brand-name { font-size: 38px; }
    .brand-tagline { font-size: 10px; letter-spacing: .2em; }
    .site-nav { margin-top: 22px; padding: 11px 0; gap: 6px 16px; }
    .site-nav a { font-size: 11px; }
    .main { padding: 36px 16px 56px; }
    .entry { padding: 28px 0; }
    .entry-title { font-size: 24px; }
    .entry-lead .entry-excerpt, .article-dek { font-size: 19.5px; }
    .archive-header h1 { font-size: 34px; }
    .article-image { margin: 0 -16px 36px; }
    .kg-width-wide { width: 100vw; }
    .archive-list li { grid-template-columns: 1fr; }
    .archive-list .muted { grid-column: 1; }
    .authors-list { columns: 1; }
    .prev-next { grid-template-columns: 1fr; gap: 20px; }
    .prev-next .next { grid-column: 1; text-align: left; }
    .gh-content .kg-blockquote-alt { font-size: 23px; }
    .manifesto .gh-content ol > li { grid-template-columns: 44px 1fr; column-gap: 12px; }
    .manifesto .gh-content ol > li::before { font-size: 30px; }
    .manifesto .gh-content > p:first-of-type { font-size: 23px; }
    /* colonna stretta: la sillabazione su tutte le parole evita i buchi della giustificazione */
    .tasc-manifesto, .home-manifesto .tasc-manifesto { font-size: 17.5px; line-height: 1.65; }
    .tasc-manifesto span, .tasc-manifesto em, .tasc-manifesto strong { hyphens: auto; -webkit-hyphens: auto; }
    .footer-categories { padding: 36px 16px 32px; }
}
