/* Matt A. Game — local assets, system fonts, no build step. */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --bg: #f5f3ed; --surface: #fffefa; --fg: #1b302b; --muted: #5b665f;
  --line: #d7dcd3; --accent: #255e49; --accent-fg: #fffef8; --soft: #e8eee5;
  --hero-card: #e6eaf0; --pt-card: #e8eddf; --support: #f0e5c8;
  --support-line: #dfd1a9; --focus: #2463b5;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #142321; --surface: #1b2c28; --fg: #f1f2e7; --muted: #b0beb5;
    --line: #3a4d44; --accent: #b5d6b5; --accent-fg: #172820; --soft: #263c32;
    --hero-card: #25333e; --pt-card: #293a2e; --support: #3c3526;
    --support-line: #5b5138; --focus: #a3c8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #142321; --surface: #1b2c28; --fg: #f1f2e7; --muted: #b0beb5;
  --line: #3a4d44; --accent: #b5d6b5; --accent-fg: #172820; --soft: #263c32;
  --hero-card: #25333e; --pt-card: #293a2e; --support: #3c3526;
  --support-line: #5b5138; --focus: #a3c8ff;
  color-scheme: dark;
}
html[lang="en"] body [lang="it"], html[lang="it"] body [lang="en"] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; font: 16px/1.6 var(--font); color: var(--fg); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 650; }
.section-wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 12px 16px; background: var(--accent); color: var(--accent-fg); border-radius: 6px; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.site-header { width: min(1320px, calc(100% - 64px)); margin: auto; padding-block: 24px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--fg); text-decoration: none; letter-spacing: -.035em; white-space: nowrap; }
.wordmark img { border-radius: 8px; }
.wordmark-dot { color: var(--accent); margin-left: -10px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--fg); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.preferences { display: flex; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.preferences button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; font-weight: 700; font-size: 13px; }
.preferences button:hover { background: var(--soft); }
.language-selector { display: flex; align-items: center; }
.language-select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.language-select:hover { border-color: var(--accent); }
html:not(.js) .preferences { display: none; }

.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; padding-block: 74px 68px; }
.eyebrow { display: flex; gap: 8px; align-items: center; font: 500 11px/1.5 var(--mono); letter-spacing: .065em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 4.8vw, 64px); font-weight: 700; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-intro { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; max-width: 28em; margin-bottom: 16px; }
.hero-description { color: var(--muted); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 650; color: var(--fg); background: var(--surface); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn { transition: transform 180ms ease, box-shadow 180ms ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 16%, transparent); }
.btn:active { transform: translateY(0); box-shadow: none; }
.release-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { min-width: 0; padding-top: 4px; }
.visual-heading { display: flex; gap: 20px; justify-content: center; align-items: center; margin-bottom: 25px; font: 12px/1.5 var(--mono); color: var(--muted); }
.visual-heading::before, .visual-heading::after { content: ""; width: 30px; height: 1px; background: var(--line); }
.screen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.phone-preview { margin: 0; min-width: 0; }
.preview-hero { transform: rotate(-4deg); }
.preview-pt { transform: rotate(4deg); margin-top: 44px; }
.phone-screen { border: 7px solid #23342f; border-radius: 24px; overflow: hidden; background: #23342f; box-shadow: 0 18px 36px #162c221a; }
.phone-screen img { width: 100%; height: auto; }
.phone-preview figcaption { margin-top: 14px; text-align: center; font: 600 11px/1.3 var(--mono); color: var(--muted); }
.phone-screen { transition: transform 320ms ease, box-shadow 320ms ease; }
@media (hover: hover) {
  .phone-preview:hover .phone-screen { transform: translateY(-7px); box-shadow: 0 26px 40px #162c2229; }
}
.visual-note { margin: 28px 0 0; text-align: center; font: 10px/1.6 var(--mono); color: var(--muted); }

.principles { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-block: 1px solid var(--line); }
.principles p { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 13px; }
.principles p > span:first-child { font-size: 23px; color: var(--accent); line-height: 1; }
.games { padding-block: 88px; }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > p { color: var(--muted); font-size: 15px; margin-bottom: 3px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.game-card { border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3.1vw, 40px); display: flex; flex-direction: column; min-width: 0; }
.game-hero { background: var(--hero-card); }
.game-pt { background: var(--pt-card); }
.game-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.game-card-top img { border-radius: 18px; }
.game-number { font: 300 48px/1 var(--mono); color: var(--muted); opacity: .45; }
.game-card .eyebrow { margin-bottom: 14px; font-size: 10px; }
.game-card h3 { font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.025em; margin-bottom: 24px; }
.game-hook { font-size: clamp(25px, 3vw, 35px); font-weight: 650; line-height: 1.13; letter-spacing: -.035em; margin-bottom: 24px; }
.game-card > p:not(.game-hook):not(.eyebrow):not(.availability) { color: var(--muted); font-size: 15px; }
.game-details { list-style: none; margin: 8px 0 26px; padding: 0; font-size: 13px; }
.game-details li { border-top: 1px solid var(--line); padding-block: 9px; }
.game-privacy { align-self: flex-start; margin-top: 18px; font-size: 12px; }
.availability { display: flex; align-items: center; gap: 9px; margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.store-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; padding-block: 20px 88px; }
.about-mark { margin-top: 30px; border-radius: 20px; }
.large-copy { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.5; letter-spacing: -.015em; }
.about-copy p:not(.large-copy) { color: var(--muted); font-size: 15px; }
.support { display: grid; grid-template-columns: 130px 1fr; gap: 28px; background: var(--support); border: 1px solid var(--support-line); border-radius: 16px; padding: 44px; }
.coffee-symbol { color: var(--accent); align-self: center; }
.coffee-symbol svg { width: 100px; height: auto; }
.support h2 { font-size: clamp(28px, 3.3vw, 40px); margin-bottom: 18px; }
.support-copy > p:not(.eyebrow) { max-width: 50em; font-size: 15px; }
.support-copy .support-note { color: var(--muted); font-size: 13px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--support-line); }
.press { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 80px; }
.press h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.press p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.press-files { list-style: none; padding: 0; margin: 0; align-self: center; }
.press-files li { border-bottom: 1px solid var(--line); }
.press-files li:first-child { border-top: 1px solid var(--line); }
.press-files a { display: flex; gap: 20px; justify-content: space-between; padding: 16px 0; font-size: 14px; color: var(--fg); text-decoration: none; }
.press-files a:hover > span:first-child { text-decoration: underline; }
.press-files a > span:last-child { font: 11px/2 var(--mono); color: var(--muted); white-space: nowrap; }
.site-footer { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px 32px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer .footer-note { width: 100%; font: 10px/1.5 var(--mono); }

/* Keep the privacy policy readable with the same preferences and navigation. */
.doc-shell { width: min(800px, calc(100% - 64px)); margin: 50px auto; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.win-bar { padding: 12px 28px; display: flex; gap: 10px; align-items: center; background: var(--soft); border-bottom: 1px solid var(--line); }
.win-title { margin: 0; font: 12px/1.4 var(--mono); color: var(--muted); }
.win-body { padding: 32px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.doc h2 { font-size: 20px; letter-spacing: -.015em; margin: 28px 0 12px; }
.doc .meta { color: var(--muted); font-size: 13px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc a { overflow-wrap: anywhere; }
.summary-box { background: var(--soft); border-radius: 8px; padding: 12px 20px; margin-block: 20px; }
.summary-box ul { margin-block: 6px; }
.win-status { display: flex; justify-content: space-between; gap: 12px; font: 11px/1.4 var(--mono); color: var(--muted); background: var(--soft); padding: 10px 28px; margin: 0; }
.doc-footer { max-width: 800px; }
.doc-footer > p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.policy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 24px; }
.policy-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); text-decoration: none; }
.policy-card:hover { background: var(--soft); border-color: var(--accent); }
.policy-card strong, .policy-card span { display: block; }
.policy-card span { color: var(--muted); font-size: 13px; margin-top: 8px; }
.policy-card:hover strong { text-decoration: underline; }

/* Short entrances, no perpetual motion. Every element has a static fallback. */
@keyframes copy-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-enter { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes steam-rise { 0%, 100% { opacity: .45; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-5px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: copy-enter 650ms ease-out both; }
  .preview-hero { animation: phone-enter 850ms cubic-bezier(.2,.7,.2,1) 120ms both; }
  .preview-pt { animation: phone-enter 850ms cubic-bezier(.2,.7,.2,1) 260ms both; }
  .will-reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
  .will-reveal.is-revealed, .will-reveal:focus-within { opacity: 1; transform: none; }
  .game-pt.will-reveal { transition-delay: 100ms; }
  .support.is-revealed .coffee-steam { animation: steam-rise 1600ms ease-in-out 2; }
}

@media (max-width: 1040px) {
  .hero { gap: 40px; padding-block: 60px; }
  .hero h1 { font-size: clamp(40px, 5vw, 56px); }
  .hero-intro { font-size: 18px; }
  .hero-description { font-size: 15px; }
  .screen-pair { gap: 16px; }
  .phone-screen { border-width: 5px; border-radius: 20px; }
  .about { gap: 50px; }
}
@media (max-width: 760px) {
  .section-wrap { width: calc(100% - 40px); }
  .site-header { width: calc(100% - 40px); flex-wrap: wrap; gap: 12px; padding-block: 16px 10px; }
  .wordmark { font-size: 16px; }
  .preferences { margin-left: auto; border: 0; padding: 0; }
  .site-nav { width: 100%; margin: 0; justify-content: space-between; order: 3; }
  .hero { grid-template-columns: 1fr; padding-block: 44px 38px; gap: 36px; }
  .hero h1 { font-size: clamp(40px, 8vw, 60px); }
  .hero-intro { font-size: 20px; }
  .hero-description { max-width: 35em; }
  .hero-visual { max-width: 440px; width: 90%; justify-self: center; }
  .screen-pair { gap: 24px; }
  .visual-heading { margin-bottom: 22px; }
  .preview-pt { margin-top: 28px; }
  .visual-note { margin-top: 22px; }
  .principles { justify-content: flex-start; gap: 14px 24px; padding-block: 20px; }
  .principles p { font-size: 12px; }
  .games { padding-block: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .game-grid { grid-template-columns: 1fr; gap: 20px; }
  .game-card { padding: 28px; }
  .game-card h3 { font-size: 27px; }
  .game-hook { font-size: 34px; }
  .about { grid-template-columns: 1fr; gap: 28px; padding-block: 10px 50px; }
  .about-mark { display: none; }
  .support { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .coffee-symbol svg { width: 54px; }
  .support .eyebrow { margin-bottom: 14px; }
  .press { grid-template-columns: 1fr; gap: 16px; padding-block: 50px; }
  .site-footer { gap: 18px; }
  .site-footer nav { gap: 20px; }
  .doc-shell { width: calc(100% - 32px); margin-block: 28px; }
  .policy-links { grid-template-columns: 1fr; }
  .win-body { padding: 24px 20px; }
  .win-bar, .win-status { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .section-wrap, .site-header { width: calc(100% - 32px); }
  .hero h1 { font-size: 36px; }
  .wordmark img { width: 26px; height: 26px; }
  .wordmark { gap: 7px; font-size: 15px; }
  .preferences { gap: 0; }
  .preferences button { min-width: 40px; }
  .hero-intro { font-size: 18px; }
  .game-card { padding: 24px; }
  .game-card h3 { font-size: 24px; }
  .game-hook { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .phone-preview:hover .phone-screen { transform: none; }
}
@media print {
  .will-reveal { opacity: 1; transform: none; }
  .site-header, .skip, .hero-visual { display: none; }
  body { color: #000; background: #fff; }
  .section-wrap { width: 100%; }
  .hero, .about, .press { display: block; padding-block: 20px; }
  .game-card, .support, .doc { background: #fff; box-shadow: none; break-inside: avoid; }
  .game-grid { display: block; }
  .game-card { margin-bottom: 20px; }
  .doc-shell { width: 100%; margin: 0; }
}
