:root {
  --bg: #f7f4ef;
  --ink: #161310;
  --muted: #66635e;
  --line: rgb(22 19 16 / 0.12);
  --tile: #141518;
  --tile-ink: #fbfaf8;
  --focus: #2263ab;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --ink: #f2f1ee;
    --muted: #9e9e9e;
    --line: rgb(242 241 238 / 0.14);
    --tile: #222222;
    --tile-ink: #f2f1ee;
    --focus: #3aa0f0;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--tile);
  color: var(--tile-ink);
  display: grid;
  place-items: center;
  margin-bottom: 2rem;
}
.mark svg { width: 2rem; height: 2rem; display: block; }
section + section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5rem; text-wrap: balance; }
p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
footer { padding: 1.5rem; text-align: center; font-size: 0.875rem; }
footer a { color: var(--muted); text-decoration: none; border-radius: 0.25rem; padding: 0.25rem 0.375rem; }
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; color: var(--ink); }
footer a + a { margin-left: 0.25rem; }
/* With JavaScript only the visitor's language shows. */
html[data-lang="it"] [lang="en"], html[data-lang="en"] [lang="it"] { display: none; }
html[data-lang] section + section { margin-top: 0; padding-top: 0; border-top: 0; }
main.page { justify-content: flex-start; max-width: 40rem; }
h2 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
p + p { margin-top: 0.75rem; }
a { color: var(--ink); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.button { display: inline-block; margin-top: 1.25rem; padding: 0.625rem 1rem; border-radius: 0.625rem; background: var(--tile); color: var(--tile-ink);
  font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: 0.375rem; font-weight: 600; font-size: 0.9375rem; }
input, select, textarea { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.5rem 0.625rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: 0.625rem; border: 1px solid var(--line); color: var(--ink); }
.status[hidden] { display: none; }
