/* ilcinque.eu (C-168): the colours of the Il Cinque app (apps/basket/src/theme/tokens.ts, read
   on 3 Dec 2026): the dark theme is the default, as in the app; the light one follows the system.
   System fonts only, no external resources. Mobile first. */
:root {
  --bg: #2b1a10;
  --surface: #352116;
  --raised: #59351f;
  --border: #795333;
  --text: #f5e5cf;
  --muted: #c9aa88;
  --accent: #d17a3d;
  --on-accent: #22160f;
  --gold: #fbb745;
  --link: #fbb745;
  --focus: #fbb745;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #e9d0a3;
    --surface: #f8ebd7;
    --raised: #f0d7c1;
    --border: #9e7950;
    --text: #332317;
    --muted: #74583d;
    --accent: #b95b2a;
    --on-accent: #ffffff;
    --link: #8a3001;
    --focus: #8a3001;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}
a {
  color: var(--link);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.top {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.lang {
  display: flex;
  gap: 4px;
}
.lang a {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.lang a[aria-current='page'] {
  background: var(--raised);
  color: var(--text);
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}
.hero {
  text-align: center;
  padding: 24px 0 8px;
}
.hero .logo {
  border-radius: 36px;
}
h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 16px 0 4px;
}
.tagline {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.lead {
  max-width: 640px;
  margin: 0 auto 16px;
  font-size: 19px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.facts li {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 15px;
}
.note {
  color: var(--muted);
  font-size: 14px;
}
h2 {
  font-size: 26px;
  margin: 32px 0 12px;
}
h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.cards p {
  margin: 0;
  color: var(--muted);
}
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 8px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 8px 0 0;
  color: var(--muted);
}
.doc {
  max-width: 720px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 32px;
}
.doc h2 {
  font-size: 21px;
  margin: 24px 0 6px;
}
.muted {
  color: var(--muted);
  margin-top: 0;
}
.back {
  margin-top: 24px;
}
.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
.contact {
  margin: 8px 0 0;
}
[hidden] {
  display: none !important;
}
