/* Diario: testo semplice in monospace. Nessun font, immagine o script esterno. */
:root {
  color-scheme: dark;
  --bg: #0f1110;
  --fg: #d0d3cc;
  --dim: #8a8f86;
  --acc: #8fd694;
  --link: #8dbfdc;
  --line: #2c302b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
main { max-width: 78ch; margin: 0 auto; padding: 36px 18px 70px; }
h1 { font-size: 20px; margin: 0 0 14px; color: var(--acc); font-weight: bold; }
h2 { font-size: 16px; margin: 0 0 8px; font-weight: bold; }
p { margin: 0 0 12px; }
a { color: var(--link); }
a:hover { color: var(--acc); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: #0f1110; }
.dim { color: var(--dim); font-size: 13px; }
code, pre { font: inherit; }
code { color: var(--acc); }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--acc); color: #000; padding: 6px 10px; z-index: 9; }
.skip-link:focus { top: 8px; }

header { padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; }
nav a[aria-current] { color: var(--fg); text-decoration: none; font-weight: bold; }

.filters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 20px; font-size: 13px; }
.filters[hidden], #more[hidden] { display: none; }
.filters button, #more {
  font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline;
}
.filters button[aria-pressed="true"] { color: var(--acc); font-weight: bold; text-decoration: none; }
.filters button[aria-pressed="true"]::before { content: "["; }
.filters button[aria-pressed="true"]::after { content: "]"; }
#more { font-size: 14px; }

article { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px dashed var(--line); scroll-margin-top: 14px; }
.meta { font-size: 13px; color: var(--dim); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 0 10px; }
.meta .tag { color: var(--acc); }
.permalink { color: var(--dim); text-decoration: none; margin-left: 6px; }
.permalink:hover { color: var(--acc); }
article pre { margin: 0 0 12px; padding: 8px 10px; background: #161917; border-left: 2px solid var(--acc); overflow-x: auto; white-space: pre; font-size: 13.5px; }
article p { overflow-wrap: anywhere; white-space: pre-line; }

footer { padding-top: 6px; }

@media (max-width: 520px) {
  body { font-size: 14px; }
  main { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* BEGIN CP EDITORIALE V1 */
/*
 * claudioperrone.it | taccuino tecnico, novembre 2026
 * La pagina non è un terminale né una dashboard: si legge prima di tutto.
 * Solo font di sistema, nessuna risorsa esterna.
 */
:root {
  color-scheme: light;
  --bg: #f7f8f9;
  --fg: #23313b;
  --dim: #586a76;
  --acc: #2b5871;
  --link: #205b7d;
  --line: #d5dee3;
  --paper: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --reading: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.67 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 790px;
  margin: 0 auto;
  padding: 48px 30px 88px;
  border-top: 3px solid #344f61;
}
h1, h2, p { margin-top: 0; }
h1 {
  font: 650 27px/1.25 var(--sans);
  letter-spacing: -.045em;
  color: #203746;
  margin: 0 0 23px;
}
h2 { color: var(--fg); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #163f5a; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #225e80;
  outline-offset: 4px;
}
::selection { background: #c8dae6; color: #1d303d; }
.dim { color: var(--dim); font: 13px/1.6 var(--sans); }
code { color: #284c61; background: #edf1f3; padding: .08em .22em; border-radius: 2px; }
.skip-link { background: #203c4f; color: #fff; border: 0; }
header { border-bottom: 1px solid var(--line); padding-bottom: 27px; margin-bottom: 31px; }
header > p { font: 15.5px/1.7 var(--sans); max-width: 70ch; color: #3d4d58; margin: 0 0 13px; }
header > p:first-of-type { color: var(--fg); }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 23px;
  margin-top: 26px;
  font: 14px/1.5 var(--sans);
}
nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav a:hover { border-bottom-color: currentColor; }
nav a[aria-current] { color: #1d3443; font-weight: 700; border-bottom-color: #344f61; }
.filters {
  gap: 5px 17px;
  padding-bottom: 16px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--line);
  font: 13px/1.6 var(--sans);
}
.filters button, #more { font: inherit; color: var(--link); background: none; border: 0; cursor: pointer; }
.filters button { padding: 1px 0; text-decoration: none; }
.filters button:hover { text-decoration: underline; text-underline-offset: 3px; }
.filters button[aria-pressed="true"] { color: #203847; border-bottom: 2px solid #344f61; font-weight: 700; }
.filters button[aria-pressed="true"]::before, .filters button[aria-pressed="true"]::after { content: none; }
article {
  margin: 0 0 39px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.meta { font: 12px/1.6 var(--mono); letter-spacing: .005em; color: #60717c; gap: 0 12px; margin-bottom: 9px; }
.meta .tag { color: #2c5e7a; }
article h2 {
  font: 600 25px/1.27 var(--reading);
  letter-spacing: -.025em;
  margin: 0 0 17px;
}
article p {
  font: 17px/1.75 var(--reading);
  color: #26343d;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  white-space: pre-line;
}
article p a { overflow-wrap: anywhere; }
.permalink { font: 14px var(--mono); color: #82919a; text-decoration: none; padding-left: 6px; }
.permalink:hover { color: var(--link); }
article pre {
  background: #edf1f3;
  color: #253844;
  border: 1px solid #dce3e8;
  border-left: 3px solid #67869b;
  padding: 15px 17px;
  margin: 12px 0 21px;
  font: 13px/1.6 var(--mono);
  overflow-x: auto;
}
article code { font: .85em/1.35 var(--mono); }
#more { font: 14px var(--sans); text-underline-offset: 3px; padding: 5px 0; }
footer { padding: 10px 0 0; }
footer p { margin: 0 0 12px; }
footer code { font-size: 12px; }
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  main { border-top-width: 3px; padding: 29px 20px 56px; }
  h1 { font-size: 25px; margin-bottom: 20px; }
  header > p { font-size: 15px; }
  nav { gap: 10px 19px; }
  article h2 { font-size: 23px; }
  article p { font-size: 16.5px; }
  .meta { gap: 2px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* END CP EDITORIALE V1 */
