/* Pugdoku website. Same palette and type as the game. */
:root {
  --sky: #3C98D4; --sky-deep: #2A86C4; --sky-light: #62B6E4;
  --ink: #2A2238; --muted: #6B6280; --paper: #FFFDF8; --card: #FFFFFF;
  --accent: #F2763E; --accent-deep: #C2551F; --line: #E7E0D6;
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
a { color: var(--sky-deep); font-weight: 700; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { background: linear-gradient(170deg, var(--sky-deep), var(--sky) 55%, var(--sky-light)); color: #FFFFFF; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.nav-links { display: flex; gap: 18px; font-weight: 800; }
.nav-links a { color: #FFFFFF; text-decoration: none; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: 36px 64px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; margin: 0 0 14px; text-wrap: balance; }
.hero p { font-size: 1.15rem; margin: 0 0 22px; max-width: 34ch; opacity: .95; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #111111; color: #FFFFFF; border-radius: 12px; padding: 10px 18px; font-weight: 800; }
.badge small { display: block; font-weight: 600; font-size: .72rem; opacity: .75; }
.hero-art { justify-self: center; width: min(320px, 80%); aspect-ratio: 1; border-radius: 28%; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(10, 30, 60, .6); transform: rotate(-4deg); }
.hero-art img { width: 100%; height: 100%; display: block; }

/* Home features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-block: 48px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-weight: 600; }
.feature .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; color: #FFFFFF; }
.support { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.support h2 { font-family: var(--font-display); font-weight: 400; margin: 0; font-size: 1.5rem; }
.support p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.button { display: inline-block; background: var(--accent); color: #FFFFFF; text-decoration: none; padding: 12px 20px; border-radius: 12px; font-weight: 800; box-shadow: 0 4px 0 var(--accent-deep); }

/* Legal pages */
.doc-head { padding-block: 28px 40px; }
.doc-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); margin: 0; line-height: 1.05; }
.doc-head p { margin: 8px 0 0; opacity: .9; font-weight: 700; }
.doc { max-width: 70ch; margin: 0 auto; padding: 36px 20px 56px; }
.doc h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 2em 0 .4em; }
.doc h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc .summary { background: #F3F9FD; border: 1px solid #CFE6F5; border-radius: 14px; padding: 16px 20px; }
.doc .summary p { margin: .4em 0; }
.draft { background: #FFF4E5; border: 1px solid #F5C98F; color: #7A4A12; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .9rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-weight: 600; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.nav { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 420px) {
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 1.3rem; }
  .nav-links { gap: 10px; font-size: .85rem; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 12px 48px; }
  .hero-art { width: 200px; order: -1; }
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; font-size: .92rem; }
}
