/*
 * La Bibliotechina: the public Siena guide is the design reference.
 * Colour values match the three solid logo inks, converted from its embedded ICC profile to sRGB.
 * Keep the original logo and playlist artwork unchanged.
 */
@font-face {
  font-family: "Lucidity";
  src: url("/assets/fonts/lucidity-condensed.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --serif: Georgia, "Times New Roman", serif;
  --section-font: "Lucidity", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.58 system-ui, -apple-system, sans-serif; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.shell { width: min(100% - 40px, 1060px); margin-inline: auto; }
body > header { background: var(--paper); border: 0; }
.topbar, .top { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 165px; height: auto; }
header nav, .right { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
header a { text-decoration: none; }
.lang { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 400; letter-spacing: .08em; }
.lang button { padding: 7px 2px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--teal); font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: 1.02; letter-spacing: -.048em; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--teal); font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.section-kicker, .section-title { font-family: var(--section-font); font-weight: 400; }
.section-title { margin: 0; color: var(--teal); font-size: clamp(31px, 4vw, 43px); line-height: 1.15; letter-spacing: -.025em; }
.cta, .book { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 17px; color: var(--paper); background: var(--teal); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cta:hover, .book:hover { background: var(--hover); }
.text-link { font-size: 13px; font-weight: 650; }
footer { border-top: 1px solid var(--divider); padding: 24px 20px 30px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-line, .footer { display: flex; justify-content: space-between; gap: 20px; }
footer a { color: inherit; }
[data-copy="it"] { display: none; }
html[lang="it"] [data-copy="it"] { display: inline; }
html[lang="it"] [data-copy="en"] { display: none; }
@media (max-width: 760px) {
  header nav > a:not(.book) { display: none; }
  header nav, .right { gap: 14px; }
}
@media (max-width: 570px) {
  .shell { width: min(100% - 32px, 1060px); }
  .topbar, .top { min-height: 67px; gap: 14px; }
  .brand img { width: 130px; }
  h1 { font-size: clamp(43px, 12vw, 65px); }
  .footer-line, .footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .brand img { width: 116px; }
  .topbar { gap: 10px; }
  header nav { gap: 10px; }
  header .book { padding-inline: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
