/* antonioguerrieri.it — single stylesheet, no external resources */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1b1f22;
  --muted: #5b6368;
  --line: #dcdad3;
  --accent: #0f5e63;
  --accent-ink: #ffffff;
  --wrap: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --surface: #1c2225;
    --text: #e8eaea;
    --muted: #a3abae;
    --line: #2e3639;
    --accent: #5fb8b4;
    --accent-ink: #0b1213;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--surface); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { font-weight: 650; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.lang-switch { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; }

/* Sections */
main section { padding-top: 56px; }
section[id], h1[id] { scroll-margin-top: 80px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 4px; }
h2 { font-size: 24px; margin: 0 0 20px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.intro { display: flex; align-items: center; gap: 28px; padding-top: 48px; }
.portrait { flex: none; width: 160px; height: 160px; border-radius: 50%; }
.intro h1 { margin-bottom: 12px; }
.lead { margin: 0 0 20px; font-size: 20px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.facts { margin: 0; padding-left: 20px; }
.facts li { margin-bottom: 8px; }
.subhead { margin-top: 32px; margin-bottom: 12px; }

.contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Privacy page */
.prose { padding-top: 40px; }
.prose h2 { margin: 32px 0 8px; font-size: 20px; }
.prose p, .prose li { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 6px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .intro { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 32px; }
  .portrait { width: 112px; height: 112px; }
  .lead { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 10px; }
}
