/* FIRMA QUI — scrapbook landing page */
:root {
  color-scheme: light;
  --ink: #3c291e;
  --brown: #4b3021;
  --brown-soft: #75553c;
  --paper: #f5e6cb;
  --paper-light: #fff8e9;
  --paper-deep: #e7c994;
  --red: #c62231;
  --red-dark: #991b29;
  --gold: #e6b739;
  --teal: #159992;
  --line: rgba(83, 51, 31, .22);
  --shadow: 0 16px 40px rgba(61, 37, 20, .17);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.48;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 15% 7%, rgba(255,255,255,.48), transparent 31%),
    radial-gradient(ellipse at 85% 30%, rgba(191,135,65,.10), transparent 34%),
    radial-gradient(ellipse at 20% 85%, rgba(167,109,48,.08), transparent 32%),
    repeating-linear-gradient(18deg, rgba(104,72,39,.014) 0 1px, transparent 1px 5px);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
::selection { background: #eec354; color: #362318; }

.wrap { width: min(100% - 44px, 1260px); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 20; top: -80px; left: 12px;
  padding: 9px 15px; background: #fff; color: var(--ink);
}
.skip-link:focus { top: 12px; }

/* The small patterned strip and paper logo echo the game's printed box. */
.topbar {
  position: relative; z-index: 4;
  background-color: var(--brown);
  background-image:
    repeating-linear-gradient(56deg, transparent 0 22px, rgba(255,245,218,.09) 22px 23px, transparent 23px 46px),
    repeating-linear-gradient(-56deg, transparent 0 22px, rgba(255,245,218,.06) 22px 23px, transparent 23px 46px);
  color: #fff7e9;
  box-shadow: 0 4px 14px rgba(57,35,22,.16);
}
.topbar-inner {
  min-height: 116px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand-paper {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  position: relative; isolation: isolate;
  min-width: 240px;
  padding: 13px 36px 16px 32px;
  text-decoration: none;
  background: #fff9ec;
  color: var(--red);
  transform: rotate(-3deg) translateY(10px);
  clip-path: polygon(0 5%, 15% 3%, 27% 1%, 39% 4%, 54% 2%, 69% 3%, 81% 0, 97% 3%, 100% 17%, 98% 32%, 100% 48%, 97% 63%, 99% 80%, 96% 96%, 78% 99%, 65% 97%, 50% 100%, 31% 97%, 16% 99%, 2% 95%, 1% 78%, 3% 62%, 0 44%, 2% 27%);
  filter: drop-shadow(2px 7px 1px rgba(21,12,8,.28));
}
.brand-main {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .9;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-main strong { font-weight: 900; }
.brand-tag {
  display: block; margin-top: 5px;
  font-size: .76rem; font-weight: 700; line-height: 1.1;
  letter-spacing: -.015em;
}
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-nav > a:not(.nav-cta) { font: 700 .95rem/1.2 Arial, Helvetica, sans-serif; text-decoration: none; }
.site-nav > a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta,
.big-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 19px;
  border: 2px solid #fff2d9; border-radius: 999px;
  color: #fff; background: var(--red);
  font: 800 .9rem/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none; text-align: center;
  box-shadow: 0 5px 0 rgba(50,26,20,.35);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.nav-cta:hover, .big-cta:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 7px 0 rgba(50,26,20,.35); }
.lang-pill {
  display: inline-flex; align-items: center;
  padding: 5px;
  border: 2px solid rgba(117,79,52,.22);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(34,18,10,.15);
}
.lang-pill a, .lang-pill span {
  min-width: 54px; padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink); text-align: center; text-decoration: none;
  font: 800 .88rem/1 Arial, Helvetica, sans-serif;
}
.lang-pill .is-active { background: var(--red); color: #fff; }
.lang-pill a:not(.is-active):hover { background: #f4e3cb; }

/* Hero: words, a product image at its natural ratio, and ink annotations. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center; gap: clamp(26px, 4vw, 70px);
  padding-block: clamp(58px, 6vw, 94px) clamp(55px, 5vw, 82px);
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 13px;
  color: var(--red-dark);
  font: 900 .78rem/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.display,
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900; letter-spacing: -.057em; line-height: .99;
}
.display { max-width: 12ch; font-size: clamp(3.6rem, 6.6vw, 7rem); }
.display em { color: var(--red); font-style: normal; }
.hero-lead {
  max-width: 27ch; margin: 21px 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.25;
}
.hand-note,
.scribble,
.box-caption,
.deck-labels,
.score-note {
  font-family: 'Bradley Hand', 'Chalkboard SE', 'Comic Sans MS', cursive;
  letter-spacing: .015em;
}
.hand-note {
  width: max-content; max-width: 93%;
  margin: 17px 0 0 8px;
  color: var(--brown); font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.16; transform: rotate(-3deg);
}
.hand-note::after,
.scribble::after {
  content: ''; display: block; width: 70%; height: 2px; margin: 7px 0 0 12%;
  background: currentColor; transform: rotate(-4deg);
}
.stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 28px 0 25px; padding: 0;
  list-style: none;
}
.stat {
  display: flex; align-items: center; gap: 9px;
  min-width: 125px; padding: 4px 15px 4px 0; margin-right: 15px;
  border-right: 1px solid var(--line);
  font-size: .96rem; line-height: 1.12;
}
.stat:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.stat-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 33px; height: 33px; color: #241b16; }
.stat-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stat strong { display: block; font-size: 1.15rem; }

.signup {
  width: min(100%, 555px); margin-top: 26px; padding: 20px 23px 19px;
  border: 2px solid rgba(103,64,38,.52); border-radius: 8px;
  background: rgba(255,250,239,.87);
  box-shadow: 6px 7px 0 rgba(103,64,38,.16);
}
.signup-title { margin: 0 0 4px; font-size: 1.55rem; line-height: 1.08; letter-spacing: -.04em; }
.signup-intro { margin: 0 0 12px; font-size: .95rem; }
.signup-row { display: flex; gap: 9px; }
.signup-row input[type='email'], .signup-row .email-input {
  min-width: 0; flex: 1; height: 47px; padding: 10px 13px;
  border: 2px solid #a4886a; border-radius: 4px;
  color: var(--ink); background: #fffdf7;
  font: 400 1rem/1.2 Arial, Helvetica, sans-serif;
}
.signup-row input[type='email']::placeholder { color: #79695b; opacity: 1; }
.signup-row button, .signup-row .submit-button {
  min-width: 130px; min-height: 47px; padding: 10px 14px;
  border: 2px solid var(--red-dark); border-radius: 4px;
  color: #fff; background: var(--red);
  font: 800 .94rem/1.2 Arial, Helvetica, sans-serif;
  transition: transform .16s ease, background .16s ease;
}
.signup-row button:hover, .signup-row .submit-button:hover { transform: translateY(-2px); background: var(--red-dark); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font: .79rem/1.4 Arial, Helvetica, sans-serif; }
.consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--red); }
.consent a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.hidden-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edition-note { margin: 16px 0 0; color: var(--brown-soft); font: 700 .84rem/1.35 Arial, Helvetica, sans-serif; }
.local-form-notice { margin: 13px 0 0; padding: 9px 11px; border-left: 3px solid var(--teal); background: #eaf5f0; color: var(--ink); font: 700 .82rem/1.35 Arial, Helvetica, sans-serif; }

.hero-visual { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; padding-block: 70px 30px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 12% 3% 10% 8%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(191,145,76,.19), transparent 64%);
}
.box-object { width: min(100%, 460px); margin: 0 auto; transform: rotate(-1.5deg); filter: drop-shadow(16px 21px 14px rgba(59,34,17,.26)); }
.box-object img, .box-cover { display: block; width: 100%; max-width: 460px; height: auto; object-fit: contain; }
.box-caption { align-self: flex-end; max-width: 230px; margin: -5px 3% 0 0; font-size: 1.25rem; line-height: 1.1; transform: rotate(-3deg); }
.scribble { position: absolute; z-index: 1; max-width: 170px; color: var(--brown); font-size: clamp(1rem, 1.6vw, 1.36rem); line-height: 1.13; }
.scribble-top { top: 1%; right: 0; transform: rotate(-7deg); }
.scribble-bottom { bottom: 0; left: 0; transform: rotate(5deg); }

/* Cards are glimpses of the game, so they remain readable and bounded. */
.sample, .pillars, .how, .finale { position: relative; }
.sample { padding-block: clamp(68px, 7vw, 105px); border-top: 1px solid var(--line); }
.sample-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(30px, 6vw, 100px); }
.sample-cards { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); min-width: 0; padding: 20px 0; }
.sample-card { display: block; flex: none; width: min(37%, 170px); max-width: 170px; height: auto; object-fit: contain; filter: drop-shadow(8px 13px 7px rgba(67,39,21,.25)); }
.sample-card:first-child { transform: rotate(-6deg) translateY(6px); }
.sample-card:nth-child(2) { transform: rotate(5deg) translateY(-4px); }
.sample-card img { width: 100%; height: auto; object-fit: contain; }
.sample-copy { max-width: 570px; }
.section-title { font-size: clamp(2.8rem, 4.6vw, 5rem); }
.section-intro { max-width: 49ch; margin: 17px 0 0; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.deck-labels { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 17px 0; padding: 0; list-style: none; color: var(--brown-soft); font-size: 1.05rem; }
.deck-labels > *::before { content: '✦ '; color: var(--red); }
.draw-box { margin-top: 24px; padding: 15px 18px 16px; border-left: 4px solid var(--red); background: rgba(255,249,236,.68); }
.draw-result { min-height: 3.1em; margin: 0 0 12px; font: 1.05rem/1.37 Georgia, 'Times New Roman', serif; }
.draw-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 2px solid var(--brown); border-radius: 999px;
  color: var(--ink); background: var(--gold);
  font: 800 .9rem/1.15 Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 0 rgba(83,51,31,.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.draw-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(83,51,31,.32); }

.pillars { padding-block: clamp(62px, 7vw, 105px); background: rgba(238,210,166,.36); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars .section-title { max-width: 18ch; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 2.2vw, 28px); margin-top: 38px; }
.pillar { min-width: 0; padding: 7px 12px 15px; text-align: center; }
.pillar-icon {
  display: flex; align-items: center; justify-content: center;
  width: clamp(92px, 10vw, 142px); aspect-ratio: 1;
  margin: 0 auto 18px;
  border: 4px solid rgba(255,255,255,.58); border-radius: 50%;
  color: #fff; box-shadow: 0 0 0 2px rgba(70,42,27,.25), 0 9px 12px rgba(74,43,25,.17);
}
.pillar-icon svg { width: 58%; height: 58%; stroke: currentColor; stroke-width: 1.8; fill: none; }
.pillar-icon.freedom, .pillar-icon.liberta { background: var(--teal); }
.pillar-icon.health, .pillar-icon.salute { background: var(--red); }
.pillar-icon.reputation, .pillar-icon.reputazione { background: var(--gold); color: var(--ink); }
.pillar-icon.serenity, .pillar-icon.serenita { background: #39332d; }
.pillar-number { color: var(--brown-soft); font: 800 .73rem/1 Arial, Helvetica, sans-serif; letter-spacing: .16em; }
.pillar h3 { margin: 6px 0 7px; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; }
.pillar p { max-width: 22ch; margin: 0 auto; font-size: .98rem; line-height: 1.4; }
.score-note { max-width: 600px; margin: 26px 0 0 auto; font-size: 1.18rem; line-height: 1.25; transform: rotate(-1deg); }

.how { padding-block: clamp(68px, 7vw, 112px); }
.how-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: clamp(30px, 6vw, 92px); }
.how-art { min-width: 0; }
.how-art img { display: block; width: min(100%, 430px); height: auto; max-height: 390px; object-fit: contain; margin: 0 auto; filter: drop-shadow(6px 14px 13px rgba(66,41,21,.15)); }
.how-art p { max-width: 260px; margin: -8px auto 0; font: 1.3rem/1.15 'Bradley Hand', 'Chalkboard SE', 'Comic Sans MS', cursive; text-align: center; transform: rotate(-4deg); }
.how-copy { min-width: 0; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 22px; margin-top: 25px; }
.step { border-top: 2px solid rgba(95,58,34,.45); padding-top: 9px; }
.step > b { display: block; margin-bottom: 6px; color: var(--red); font: 900 .77rem/1 Arial, Helvetica, sans-serif; letter-spacing: .13em; }
.step strong, .step h3 { display: block; margin: 0 0 6px; font: 900 1.12rem/1.15 Arial, Helvetica, sans-serif; }
.step p { margin: 0; font-size: .97rem; line-height: 1.36; }
.step-number { display: block; margin-bottom: 6px; color: var(--red); font: 900 .77rem/1 Arial, Helvetica, sans-serif; letter-spacing: .13em; }

.finale { overflow: hidden; padding-block: clamp(57px, 6vw, 88px); color: #fff9ec; background: var(--brown); }
.finale::before {
  content: ''; position: absolute; inset: 0; opacity: .3;
  background-image: repeating-linear-gradient(55deg, transparent 0 30px, rgba(255,245,218,.1) 30px 31px, transparent 31px 60px);
  pointer-events: none;
}
.finale-inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; }
.finale .section-kicker, .finale .section-title { color: #fff9ec; }
.finale .section-title { max-width: 15ch; }
.finale p { max-width: 52ch; margin: 15px 0 0; font-size: 1.1rem; }
.finale-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.big-cta { min-width: 205px; padding: 15px 24px; font-size: 1.02rem; }
.finale-arrow { font-family: 'Bradley Hand', 'Chalkboard SE', cursive; font-size: 1rem; transform: rotate(-5deg); }

.footer { padding-block: 25px 35px; color: #6d4c33; font: .85rem/1.4 Arial, Helvetica, sans-serif; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.footer a { text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .topbar-inner { min-height: 105px; }
  .site-nav { gap: 13px; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .display { font-size: clamp(3.7rem, 7.3vw, 6rem); }
  .hero-grid { gap: 22px; }
  .scribble { max-width: 145px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 600px); }
  .topbar-inner { min-height: 92px; gap: 12px; }
  .brand-paper { min-width: 166px; padding: 11px 19px 13px; }
  .brand-main { font-size: 2.5rem; }
  .brand-tag { font-size: .59rem; }
  .nav-cta { display: none; }
  .lang-pill a, .lang-pill span { min-width: 44px; padding: 8px 9px; }
  .hero-grid, .sample-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 57px; padding-bottom: 50px; gap: 14px; }
  .display { max-width: 12ch; font-size: clamp(3.8rem, 10vw, 6rem); }
  .hero-lead { max-width: 34ch; }
  .hero-visual { min-height: 345px; padding: 44px 0 35px; }
  .box-object, .box-object img, .box-cover { max-width: 400px; }
  .scribble-top { top: 0; right: 0; }
  .scribble-bottom { bottom: 0; left: 2%; }
  .sample-grid { gap: 12px; }
  .sample-cards { order: 2; }
  .sample-copy { order: 1; }
  .sample-card { width: min(38%, 170px); }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 10px; }
  .how-art { order: 2; }
  .how-copy { order: 1; }
  .how-art img { max-width: 390px; }
  .finale-inner { grid-template-columns: 1fr; }
  .finale-action { align-items: flex-start; }
}
@media (max-width: 450px) {
  .topbar-inner { min-height: 84px; }
  .brand-paper { min-width: 142px; padding: 10px 14px; }
  .brand-main { font-size: 2.03rem; }
  .brand-tag { font-size: .51rem; }
  .lang-pill a, .lang-pill span { min-width: 39px; padding: 8px 7px; font-size: .78rem; }
  .display { font-size: clamp(3.35rem, 13vw, 4.8rem); }
  .hero-lead { font-size: 1.25rem; }
  .stat { min-width: 0; width: calc(50% - 10px); margin: 0 0 13px; padding-right: 8px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:last-child { width: 100%; }
  .signup { padding: 18px 15px; }
  .signup-row { flex-direction: column; }
  .signup-row button, .signup-row .submit-button { width: 100%; }
  .hero-visual { min-height: 295px; padding: 43px 0 30px; }
  .box-object, .box-object img, .box-cover { max-width: 310px; }
  .scribble { max-width: 105px; font-size: .97rem; }
  .scribble-top { right: -3px; }
  .scribble-bottom { left: -1px; }
  .box-caption { font-size: 1rem; }
  .sample-card { width: min(42%, 152px); }
  .pillar { padding-inline: 2px; }
  .pillar-icon { width: 85px; }
  .pillar h3 { font-size: 1.33rem; }
  .pillar p { font-size: .91rem; }
  .step-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
