/* Piste-marker palette: the blue/red/black discs every Italian slope is graded with. */
:root { --snow: #f2f5f8; --card: #fff; --ink: #10243a; --ink-2: #51637a; --line: #d5dde6; --blue: #1763c4; --red: #d3302f; --black: #15181c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 18px/1.65 Assistant, system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: Rubik, system-ui, sans-serif; line-height: 1.15; margin: 0; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 14px; }
.brand { font-weight: 800; font-size: 26px; color: #fff; text-decoration: none; margin-inline-end: auto; }
.brand small { font: 400 15px Assistant, sans-serif; opacity: 0.75; margin-inline-start: 8px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.top nav a[aria-current] { border-color: #fff; font-weight: 600; }

/* Hero: a ridge line cut from plain CSS, so the page carries no image files. */
.hero { background: linear-gradient(#cfe1f3, #eef4fa 70%); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 150px; background: var(--card);
  clip-path: polygon(0 100%, 0 62%, 9% 40%, 17% 58%, 28% 14%, 36% 44%, 45% 30%, 54% 62%, 66% 6%, 76% 46%, 85% 28%, 93% 52%, 100% 36%, 100% 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 190px; }
.hero h1 { font-size: clamp(38px, 9vw, 68px); font-weight: 800; max-width: 12ch; }
.hero p { max-width: 46ch; font-size: 20px; margin: 18px 0 0; }
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-size: clamp(32px, 7vw, 50px); font-weight: 800; }
.page-head p { color: var(--ink-2); max-width: 60ch; margin: 12px 0 0; }

main { padding-block: 28px 56px; }
h2 { font-size: 26px; font-weight: 700; margin: 36px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-2); }
.tile a { font-weight: 600; }
.fact { font-family: Rubik, sans-serif; font-weight: 700; color: var(--ink); }

/* Rules: the disc colour grades how costly breaking the rule is, like a piste grade. */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.blue { background: var(--blue); } .red { background: var(--red); } .black { background: var(--black); }
.rules { list-style: none; padding: 0; margin: 0; counter-reset: rule; }
.rules li { counter-increment: rule; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-top: 12px;
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; }
.rules li::before { content: counter(rule); grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font: 800 24px Rubik, sans-serif; background: var(--blue); }
.rules li.red::before { background: var(--red); } .rules li.black::before { background: var(--black); }
.rules li.blue, .rules li.red, .rules li.black { background: var(--card); }
.rules h3 { font-size: 21px; font-weight: 700; align-self: center; }
.rules p { margin: 0; grid-column: 2; }
.fine { grid-column: 2; font-weight: 700; color: var(--red); }

footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
footer .wrap { padding-block: 20px 32px; }
@media (max-width: 520px) { .brand small { display: none; } .top nav { gap: 14px; font-size: 16px; } }
