/* Sito di Mio Orto Felice (C7): colori A13, nessuna risorsa esterna (CSP di C9.5). */
:root {
  color-scheme: light dark;
  --leaf: #2e7d32;
  --text: #1b1b1b;
  --background: #ffffff;
  --surface: #f2f5f1;
  --rule: #d5dcd3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --leaf: #81c784;
    --text: #f2f2f2;
    --background: #121412;
    --surface: #1e231e;
    --rule: #3a423a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-header,
main,
.site-footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  color: var(--leaf);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.languages { display: flex; gap: 1rem; }

.languages a[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

main { padding-top: 1.5rem; padding-bottom: 2.5rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }

a { color: var(--leaf); text-underline-offset: 0.15em; }

ul, ol { padding-left: 1.5rem; }
li { margin: 0.35rem 0; }

.updated { font-weight: 600; }

.lead { font-size: 1.1875rem; }

.note {
  background: var(--surface);
  border-left: 4px solid var(--leaf);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.site-footer p { margin: 0; }
