:root {
  --bg-color: #f4f1ea;
  --text-color: #1c1917;
  --accent-color: #2563eb;
  --border-color: #ea580c;
  --quote-bg: #f5f5f4;
  --quote-border: #d6d3d1;
  --meta-color: #78716c;
  --max-width: 75ch;
}

* {
  box-sizing: border-box;
}

body {
/*  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
*/
  font-family: "Courier New", monospace;
  line-height: 1.45;
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  letter-spacing: 0.2px;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.8);
}

footer {
    padding: 1em;
    font-size: .9em;
    font-style: italic;
}

/* Intestazione e tipografia */

article {
  /* border-bottom: 2px solid var(--border-color); */
  padding-bottom: 1rem;
  margin: 2rem 0;
}

article::before, article::after {
  content: "* * * * * *";
  display: block;
  text-align: center;
  margin: 2em;
}



h1.p-name {
  margin: 0.5rem 0 0 0;
  color: #ea580c;
  text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

.dt-published {
  font-size: 0.875rem;
  color: var(--meta-color);
  font-family: monospace;
}

/* Metadata Box per i commenti (Stile Email) */
.header-meta {
  background-color: var(--quote-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.header-meta p {
  margin: 4px 0;
}

/* Contenuto */
.e-content h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  border-left: 3px solid var(--accent-color);
  padding-left: 8px;
}

.e-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Box per le risposte */
.quoted-context {
  margin: 2.5rem 0;
  padding: 1.25rem;
  background-color: var(--quote-bg);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
}

.context-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--meta-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

blockquote {
  margin: 0;
  font-style: italic;
  color: #44403c;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--meta-color);
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #e7e5e4;
  color: var(--meta-color);
  margin-top: 10px;
}

/* Link e Navigazione */
a {
  text-decoration: none;
}

a:not(:empty) {
  color: var(--accent-color);
  text-transform: lowercase;
}

a:not(:empty)::before {
  content: "[";
} 

a:not(:empty)::after{
  content: "]";
}



a:hover {
  text-decoration: underline;
}

nav {
  margin-top: 3rem;
  padding-top: 1rem;
  /*border-top: 1px solid var(--border-color);*/
  font-size: 0.9rem;
}

div[class=sourceCode] {
    background: #3c5775ed;
    padding: 1em;
    color: aliceblue;
    text-shadow: none;
    letter-spacing: 0px;
    line-height: 1.6;
    font-size: 14px;
}

code {
  text-wrap: auto;
}


.numberSource code > span {
    counter-increment: source-line;
}

.numberSource code {
    counter-reset: source-line;
}

.numberSource code > span::before {
    content: counter(source-line);
    display: inline-block;
    color: #d6ffad;
    width: 3em;
    text-align: right;
    padding-right: 5px;
    background: #3c5775;    
    margin: 3px;
    margin-right:20px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
.sourceCode {
    color: #d6ffad;
}

/* keywords */
.sourceCode .kw {
    color: #d6ffad;
    font-weight: bold;
}

/* punctuation */
.sourceCode .ch,
.sourceCode .op {
    color: #b8d99a;
}

/* strings */
.sourceCode .st {
    color: #fff3a3;
}

/* numbers */
.sourceCode .dv {
    color: #bde7ff;
}

/* units / datatypes */
.sourceCode .dt {
    color: #a8d8ff;
}

/* functions */
.sourceCode .fu {
    color: #ffc58a;
}

/* Basic language style */
.sourceCode.basic .kw {
    text-transform: uppercase;
    font-weight: bold;
}
