:root {
  color-scheme: light;
  --paper: #fbf4e5;
  --paper-deep: #efe4cd;
  --fir: #112d28;
  --fir-dark: #0e2522;
  --ink: #152c27;
  --muted: #4f5c4e;
  --red: #8a3637;
  --gold: #efb85b;
  --gold-dark: #79501b;
  --line: #c9aa6b;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5.1vw, 5.55rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing: -.025em; }
h4 { font-size: 1.23rem; }
img { display: block; max-width: 100%; }
button, input, textarea, select { color: inherit; font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b46d1f; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .45rem .8rem; background: var(--gold); color: var(--fir); transform: translateY(-170%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 5.5rem, 82rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); justify-content: space-between; }
.header-row { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; font: bold 1.35rem/1 var(--display); text-decoration: none; }
.brand-mark { display: grid; width: 2.25rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--fir); color: var(--gold); font: 1.4rem/1 var(--display); }
.header-row nav { display: flex; flex-wrap: wrap; margin-left: auto; gap: clamp(.8rem, 2.6vw, 2.4rem); }
.header-row nav a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.header-row nav a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; border-radius: .3rem; border: 1px solid transparent; padding: .55rem 1rem; font-size: .93rem; line-height: 1.25; text-decoration: none; font-weight: 710; text-align: center; }
.button:hover { text-decoration: none; filter: brightness(1.07); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .54; cursor: not-allowed; }
.primary { background: var(--gold); color: #282311; }
.red { background: var(--red); color: #fff5e8; }
.light-button { border-color: currentColor; background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.intro { display: grid; grid-template-columns: .86fr 1fr; align-items: stretch; min-height: 36rem; }
.intro-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.55rem; padding: 2.9rem 1rem 3.4rem 0; position: relative; z-index: 1; }
.intro-copy em { display: block; color: var(--red); font-style: normal; }
.intro-copy p { max-width: 29rem; color: var(--muted); font-family: var(--display); font-size: clamp(1.17rem, 1.8vw, 1.63rem); line-height: 1.38; }
.intro-art { min-width: 0; position: relative; }
.intro-art img { height: 100%; width: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 55% center; }
.chapter { padding-block: clamp(2.6rem, 6vw, 5.6rem); }
.intro + .chapter { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .8fr 1fr; gap: 1.35rem 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: 35rem; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.2rem, 3vw, 2.6rem); }
.adventure-entry { display: grid; grid-template-columns: minmax(4rem, 30%) minmax(0, 1fr); align-items: start; gap: .7rem; border-top: 1px solid var(--line); padding-block: 1.3rem 1.6rem; }
.adventure-entry h3 { margin: .3rem 0 .55rem; font-size: 1.55rem; overflow-wrap: anywhere; }
.adventure-entry p + details { margin-top: .65rem; }
.adventure-entry details { font-size: .88rem; }
.adventure-entry details p { margin-top: .3rem; }
.eyeline { color: var(--gold-dark); font-size: .84rem; letter-spacing: .025em; font-weight: 750; }
.eyeline span { padding-inline: .18rem; }
.spot { aspect-ratio: 1; background-image: url("assets/oggetti.webp"); background-size: 300% 200%; mix-blend-mode: multiply; border-radius: .3rem; }
.spot-fiocco { background-position: 0 0; }
.spot-forno { background-position: 50% 0; }
.spot-lettera { background-position: 100% 0; }
.spot-slitta { background-position: 0 100%; }
.spot-magazzino { background-position: 50% 100%; }
.spot-locanda { background-position: 100% 100%; }
.entry-links { display: flex; flex-wrap: wrap; column-gap: .8rem; margin-top: .6rem; font-size: .87rem; font-weight: 680; color: var(--red); }
.rules-band { background: var(--fir); color: #fff3d8; }
.rules-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.8rem, 6vw, 6rem); }
.rules-layout h2 { margin-bottom: 1rem; }
.rules-layout .steps { margin: 1.25rem 0; padding-left: 1.35rem; }
.steps li { padding-left: .3rem; margin-block: .65rem; }
.steps li::marker { color: var(--gold); font-weight: 750; }
.combat-rules { border-top: 1px solid #8e835c; margin-top: 1rem; padding-top: .75rem; }
.combat-rules p { margin-top: .5rem; }
.combat-rules summary { font-weight: 700; }
.example { align-self: start; padding: 1.5rem; border: 1px solid #8e835c; border-radius: .42rem; }
.example p { margin-top: .55rem; }
.example .button { margin-top: 1rem; }
.roll-example { display: flex; gap: .5rem; align-items: center; margin-block: .85rem; color: var(--gold); font-size: 1.29rem; font-weight: 740; }
.roll-example span, .roll-example strong { border: 1px solid #9c8152; min-width: 2.25rem; padding: .22rem; text-align: center; border-radius: .25rem; }
.roll-example strong { background: var(--gold); color: var(--fir-dark); }
.heroes-grid, .material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem clamp(1.1rem, 3vw, 3rem); }
.hero-entry { border-top: 1px solid var(--line); padding-block: .75rem; }
.hero-entry summary { display: flex; align-items: center; gap: .7rem; list-style: none; }
.hero-entry summary::-webkit-details-marker { display: none; }
.hero-entry summary::after { content: '+'; color: var(--red); margin-left: auto; font-size: 1.3rem; }
.hero-entry[open] summary::after { content: '−'; }
.hero-entry summary > span:nth-child(2) { display: grid; }
.hero-entry summary strong { font: bold 1.25rem var(--display); }
.hero-entry summary span span { font-size: .87rem; color: var(--muted); }
.hero-entry div p { margin-top: .55rem; }
.sigil { display: grid; place-items: center; flex: 0 0 2.55rem; width: 2.55rem; height: 2.55rem; border: 1px solid var(--line); border-radius: 50%; font: bold 1.2rem var(--display); color: var(--red); }
.materials-band { background: var(--paper-deep); }
.material-grid > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.material-grid p { margin: .6rem 0 .5rem; }
.material-grid a { display: block; width: fit-content; color: var(--red); font-weight: 710; }
.campaign { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.campaign summary { font-weight: 740; }
.campaign p { max-width: 54rem; margin-top: .6rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 4.2rem; padding-block: .85rem; font-size: .87rem; }
@media (max-width: 1000px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { min-height: 29rem; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 2rem); }
  .header-row { flex-wrap: wrap; gap: .65rem; padding-block: .7rem; }
  .guide .header-row .brand { font-size: 1.15rem; }
  .guide .header-row > .button { padding-inline: .78rem; }
  .header-row nav { width: 100%; order: 3; margin-left: 0; gap: 1rem; }
  .intro { display: flex; flex-direction: column-reverse; }
  .intro-copy { padding: 1.55rem 0 1.9rem; gap: .85rem; }
  .intro-art { width: calc(100% + 2rem); margin-inline: -1rem; height: clamp(11.5rem, 47vw, 22rem); }
  .section-head, .rules-layout { grid-template-columns: 1fr; }
  .section-head { gap: .65rem; margin-bottom: 1.1rem; }
  .heroes-grid, .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .catalog, .heroes-grid, .material-grid { grid-template-columns: 1fr; }
  .adventure-entry { grid-template-columns: clamp(5rem, 24%, 7rem) minmax(0, 1fr); }
  .footer-row { align-items: start; flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
