/* Il brillio — stile "libro sobrio": carta, inchiostro, un solo tocco di luce */
:root {
  --paper: #F6F1E9;
  --ink: #241A12;
  --muted: #6b6258;
  --rule: #ddd5c8;
  --light: #b5832a;      /* oro del brillio */
  --terra: #7A3A22;      /* la fascia, dal marchio */
  --measure: 36rem;
  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --text: "Source Serif 4", "Georgia", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #191714; --ink: #ece6dc; --muted: #a59b8e; --rule: #3a342d; --light: #d8a84e; --terra: #c98a5e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.125rem; line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--light); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--light); }
::selection { background: color-mix(in srgb, var(--light) 30%, transparent); }

/* testata */
header.site {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 2rem; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1.5rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.brand .mark { width: 2rem; height: 2rem; }
header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .95rem; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--ink); }

.mark { width: 1.6rem; height: 1.6rem; vertical-align: middle; overflow: visible; }
.mark .ring { stroke: var(--terra); }
.mark .ringdot { fill: var(--terra); }

main { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
.text { max-width: var(--measure); margin: 0 auto; }

/* apertura */
.hero { text-align: center; padding: 6rem 0 3.5rem; }
.hero .mark.big { width: 8.5rem; height: 8.5rem; }
.hero .mark.big path:last-child { transform-origin: 160px 237px; animation: glint 6s ease-in-out infinite; }
.hero h1 { margin-top: .6rem !important; font-family: var(--display); font-weight: 500; font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 1; margin: 1rem 0 .4rem; letter-spacing: -.01em; }
.hero .tag { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--terra); margin: 0 0 2rem; }
.hero .def { max-width: 28rem; margin: 0 auto; font-size: 1rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 1.2rem; }
@keyframes glint { 0%, 100% { transform: scaleY(.96); opacity: .9; } 50% { transform: scaleY(1.03); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero .mark path { animation: none !important; } }

/* testi */
article.text, main > section.text:first-child { padding-top: 3.5rem; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.1; margin: .3rem 0 .6rem; }
.subtitle { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: 0 0 2.5rem; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.25; margin: 2.8rem 0 .8rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: 2rem 0 .5rem; }
.prose p { margin: 0 0 1.1rem; hyphens: auto; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { margin: 2rem 0; padding: 0; border: 0; text-align: center;
  font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1.45; }
.prose blockquote p { margin: 0 0 .3rem; }
.prose strong { font-weight: 600; }
.sep { text-align: center; color: var(--light); letter-spacing: .5em; margin: 2.5rem 0 !important; }
h2.small { font-family: var(--text); font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); margin: 3rem 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--light); margin: 0; }
.back { font-size: .9rem; margin: 0 0 2rem; }
.back a { text-decoration: none; color: var(--muted); }
.aside { font-size: .95rem; color: var(--muted); margin-top: 2rem; }
.draftnote { font-size: .9rem; color: var(--muted); border-left: 2px solid var(--light); padding-left: .8rem; margin: .5rem 0 2.5rem; }
.worknote { font-family: var(--text); font-size: .8em; color: var(--light); white-space: nowrap; }
.worknote::before { content: "["; } .worknote::after { content: "]"; }
.prose .worknote { white-space: normal; }

/* elenchi */
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); }
.list a { display: block; padding: 1.1rem 0; text-decoration: none; }
.list .t { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.list .summary { display: block; color: var(--muted); font-size: .98rem; margin-top: .2rem; }
.list a:hover .t { color: var(--light); }

/* piede */
footer.site { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule); font-size: .85rem; color: var(--muted); text-align: center; }
footer.site p { margin: .2rem 0; }
footer.site .mark { width: 1rem; height: 1rem; }

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .hero { padding: 4rem 0 2.5rem; }
  header.site { padding-top: 1.1rem; }
}
@media print {
  header.site nav, footer.site, .back { display: none; }
  body { background: #fff; color: #000; }
}
