/* Foglio di stile minimale, senza build step. Sostituibile con Tailwind (vedi README). */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #6b6760;
  --accent: #b7410e;
  --accent-contrast: #ffffff;
  --card: #ffffff;
  --border: #e6e2da;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --fg: #ece8df;
    --muted: #a39e93;
    --accent: #f0813f;
    --accent-contrast: #14130f;
    --card: #1d1b16;
    --border: #2d2a24;
  }
}

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

html {
  font-family: var(--font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
}

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

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.container,
.site-header,
.site-footer {
  width: min(100% - 2rem, 44rem);
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.brand .tld {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--fg);
}

main {
  flex: 1;
  padding-block: 2rem 4rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h2 {
  margin-top: 0;
}

button,
.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  filter: brightness(1.08);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* HTMX aggiunge .htmx-request all'elemento che ha lanciato la richiesta, finché non arriva la risposta. */
button.htmx-request {
  opacity: 0.6;
  cursor: progress;
}

.uptime {
  margin: 1rem 0 0;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
