/* Salary Cat — salarycat.com */

@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/PressStart2P-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+25B6, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/PressStart2P-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pink: #ff9bfc;
  --yellow: #ffff00;
  --ink: #000;
  --link: #0000ff;
  --link-hover: #0000b0;
  --street: #2c2623;
  --pixel: "Press Start 2P", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--pixel); font-size: 12px; line-height: 2; color: var(--ink); }
img { max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px dashed currentColor; outline-offset: 2px; }
h1, h2, h3 { font-weight: normal; line-height: 1.6; margin: 0 0 12px; }

.socials { display: flex; gap: 8px; justify-content: center; }
.socials a { display: block; width: 40px; height: 40px; }
.socials img { width: 40px; height: 40px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge img { display: block; width: 182px; height: 51px; }

/* ---------- Home: the city scene ---------- */

body.home-body {
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  background: var(--pink) url(/images/sky.png) repeat-x center bottom / 512px 640px fixed;
}
.home {
  position: relative; z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  min-height: 100vh; min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 16px 0;
  text-align: center;
}
.home .logo { width: min(364px, 80vw); }
.home .tagline { margin: 0; color: #fff; font-size: 11px; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; }
.home .socials { margin-top: 4px; }
.home .footer { margin-top: auto; }
.home .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: #fff; font-size: 8px; text-transform: uppercase; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.home .footer a { color: var(--yellow); }
.home .footer a:hover { color: #ffff99; }

.scene { position: fixed; inset: auto 0 0 0; height: 360px; z-index: 1; pointer-events: none; }
.scene > div { position: absolute; left: 0; right: 0; background-repeat: repeat-x; image-rendering: pixelated; }
.trees  { bottom: 100px; height: 52px;  background-image: url(/images/trees.png);  background-size: 112px 52px; z-index: 1; }
.houses { bottom: 100px; height: 210px; background-image: url(/images/houses.png); background-size: 1050px 210px; background-position: bottom center; z-index: 2; }
.street { bottom: 20px;  height: 80px;  background: var(--street) url(/images/street.png) repeat-x; background-size: 240px 80px; z-index: 3; }
.bushes { bottom: -12px; height: 52px;  background-image: url(/images/trees.png);  background-size: 112px 52px; z-index: 5; }
.neko   { position: absolute; bottom: 92px; left: 50%; width: 64px; height: 64px; margin-left: -32px; z-index: 4; animation: hop 1.2s steps(2) infinite; }
@keyframes hop { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .neko { animation: none; } }

/* On short screens, put the footer on the street instead of above the skyline. */
@media (max-height: 640px) {
  .scene { height: 220px; }
  .houses { height: 140px; background-size: 700px 140px; }
}

/* ---------- Inner pages: press, legal, 404 ---------- */

body.inner-body { background: var(--yellow); }
.inner-page, .press-page { min-height: 100vh; display: flex; flex-direction: column; }
.inner-header, .press-header {
  padding: 24px 16px;
  background: var(--pink) url(/images/sky.png) repeat-x center -16px / 160px 200px;
  border-bottom: 4px solid var(--ink);
  text-align: center;
}
.inner-header img { width: 200px; }
.press-header { display: grid; justify-items: center; gap: 8px; }
.press-header .press-logo img { width: 240px; }
.press-header h1 { margin: 0; font-size: 16px; text-transform: uppercase; }
.press-header .lang { font-size: 10px; }

.prose, .press { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; background: #fff; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.prose { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
.prose h1, .prose h2 { font-family: var(--pixel); line-height: 1.6; }
.prose h1 { font-size: 18px; }
.prose h2 { font-size: 13px; margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.prose th, .prose td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 2px solid #eee; }
.prose th { border-bottom-color: var(--ink); }
@media (max-width: 560px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 2px 0; }
  .prose td:first-child { font-weight: bold; padding-top: 10px; }
  .prose tr { border-bottom: 2px solid #eee; padding-bottom: 8px; }
}

.press { display: grid; gap: 32px; grid-template-columns: 1fr; font-size: 11px; }
.press h2 { font-size: 12px; text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.press p { margin: 0 0 12px; }
.press dl { margin: 0; }
.press dt { font-size: 9px; text-transform: uppercase; color: #555; }
.press dd { margin: 0 0 14px; }
.icon-text { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.icon-text img { width: 32px; height: 32px; }
.ratings { display: flex; gap: 6px; }
.ratings img { width: 32px; height: 32px; }
.features { margin: 0; padding-left: 20px; }
.press-main section + section { margin-top: 28px; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.video { display: block; color: var(--ink); }
.video img { display: block; width: 100%; border: 2px solid var(--ink); image-rendering: auto; }
.video span { display: block; padding-top: 6px; }
.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.shots img { display: block; width: 100%; border: 2px solid var(--ink); image-rendering: auto; }
.logos { display: flex; flex-wrap: wrap; gap: 16px; }
.logos img { width: 120px; height: 120px; image-rendering: auto; }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; align-items: baseline; }
.contact dd { margin: 0; }
@media (min-width: 720px) {
  .press { grid-template-columns: 260px 1fr; }
  .press .wide { grid-column: 1 / -1; }
}

.inner-body .footer { display: grid; gap: 12px; justify-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 9px; text-transform: uppercase; border-top: 4px solid var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.copyright { margin: 6px 0 0; }
.press > *, .press-main { min-width: 0; }
.press dd, .prose { overflow-wrap: anywhere; }
