/* Kocur Studio – a tiny indie studio that makes games about black cats.
   Palette: moonlit paper, cat ink, amber eyes, plum, paw pink. */
:root {
  --paper: #EDE9F2;
  --paper-deep: #E2DCEA;
  --ink: #16131C;
  --plum: #4E3A63;
  --plum-soft: #6B5683;
  --amber: #F4B63A;
  --pink: #E7A3B1;
  --night: #221B33;
  --night-text: #D9D2E6;
  --radius-big: 28px;
  --radius-small: 14px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.site-head { padding: 1.4rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
.nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 500; text-decoration: none; color: var(--ink);
  padding: .45rem .95rem; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-deep); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 2.5rem 0 1rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 2rem; }
.hero h1 {
  font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.025em;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem); margin: 0 0 1.2rem;
}
.hero p { font-size: 1.2rem; max-width: 34ch; margin: 0 0 1.8rem; color: var(--plum); }
.hero-cat { position: relative; }
.hero-cat img, .hero-cat svg { display: block; width: min(100%, 360px); margin-left: auto; }

.button {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: .85rem 1.4rem; border-radius: 999px;
}
.button:hover { color: var(--amber); }
.button img { width: 20px; height: 20px; filter: invert(1); }

/* the blink – the only motion on the page */
.cat-eyes { transform-origin: 180px 206px; animation: blink 7s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .cat-eyes { animation: none; } }

/* paw prints walking across the page */
.trail { position: absolute; inset: 0; pointer-events: none; }
.trail img { position: absolute; width: 26px; opacity: .13; }

/* ---------------------------------------------------------------- sections */
.section { padding: 4.5rem 0 1rem; }
.section h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .5rem;
}
.section .lead { color: var(--plum); max-width: 60ch; margin: 0 0 2.2rem; }

/* big games */
.feature {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.6rem; align-items: center;
  padding: 1.6rem; border-radius: var(--radius-big); background: var(--paper-deep);
  margin-bottom: 1.1rem;
}
.feature img { width: 160px; height: 160px; border-radius: 26px; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 0 0 .3rem; }
.feature p { margin: 0 0 .8rem; max-width: 62ch; }
.feature .where { font-size: .95rem; color: var(--plum-soft); }
.feature.night { background: var(--night); color: var(--night-text); }
.feature.night h3 { color: #fff; }
.feature.night a { color: var(--amber); }
.feature.night .where { color: #B7ADC9; }

/* TOP Kocur Games: three big cards side by side */
.top-section .kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .6rem;
  padding: .35rem .85rem; border-radius: 999px; background: var(--amber); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase;
}
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.top-card {
  display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--radius-big);
  background: var(--night); color: var(--night-text); --accent: var(--amber);
  box-shadow: inset 0 8px 0 var(--accent), 0 14px 34px rgba(34, 27, 51, .18);
}
.top-card.farm { --accent: #7CC35A; }
.top-card.cards { --accent: #A88BE0; }
.top-card.cafe { --accent: #E9C9A0; }
.top-card.fishing { --accent: #5FB3C9; }
.top-card.shelter { --accent: #6FBF9A; }
.top-card.detective { --accent: #FF6AB0; }
.top-card.lighthouse { --accent: #FFD27A; }
.top-card.survivors { --accent: #E8743B; }
.top-card { position: relative; }
.top-card .badge {
  position: absolute; top: 1rem; right: 1rem; padding: .25rem .7rem; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 600;
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
/* five TOP games: the two newest side by side, then the trilogy in a row of three */
@media (min-width: 961px) {
  .top-grid.top5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .top-grid.top5 .top-card { grid-column: span 2; }
  .top-grid.top5 .top-card.new { grid-column: span 3; }
}
/* six TOP games: the three newest in a row, then the trilogy in a row of three */
@media (min-width: 961px) {
  .top-grid.top6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.top-card img { width: 200px; height: 200px; border-radius: 34px; margin: 0 auto 1.2rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.top-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .2rem; color: #fff; }
.top-card .genre { margin: 0 0 .8rem; color: var(--amber); font-family: var(--display); font-weight: 500; }
.top-card p { margin: 0 0 .9rem; }
.top-card .where { margin-top: auto; margin-bottom: 0; font-size: .95rem; color: #B7ADC9; }
.top-card .where strong { color: var(--amber); }
.top-card .where.stores { margin-top: .35rem; }
/* Coming soon: the next two big games, side by side above the TOP games */
.soon-block { margin: 0 0 2.4rem; padding: 1.4rem; border-radius: var(--radius-big); border: 2px dashed var(--plum-soft); background: var(--paper-deep); }
.soon-title { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 0 0 1.1rem; color: var(--plum); }
@media (min-width: 961px) {
  .soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.top-card.soon .badge { background: var(--pink); color: var(--ink); }
/* only one game left in Coming soon: one card in the middle */
@media (min-width: 961px) {
  .soon-grid.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
}
/* seven TOP games: the newest one across the whole row, then two rows of three */
@media (min-width: 961px) {
  .top-grid.top7 .top-card.featured {
    grid-column: 1 / -1; display: grid; grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 2.2rem; align-items: center; text-align: left;
  }
  .top-grid.top7 .top-card.featured img { grid-row: 1 / span 4; margin: 0; }
  .top-grid.top7 .top-card.featured .where { margin-top: .2rem; }
}
.top-card a { color: var(--amber); }

/* the arcade shelf: small icons, no cards */
.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem 2rem; }
.shelf li { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; }
.shelf img { width: 72px; height: 72px; border-radius: 16px; image-rendering: pixelated; }
.shelf img.smooth { image-rendering: auto; }
.shelf h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin: .1rem 0 .2rem; line-height: 1.25; }
.shelf p { margin: 0; font-size: .97rem; color: var(--plum); }

.about { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.about img { width: 120px; }
.about p { max-width: 60ch; margin: 0 0 .8rem; }

/* ---------------------------------------------------------------- text pages */
.page { padding: 2rem 0 3rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .6rem; }
.page .updated { color: var(--plum-soft); margin: 0 0 2rem; }
.page h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 2.4rem 0 .5rem; }
.page h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 1.6rem 0 .3rem; }
.page p, .page li { max-width: 68ch; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: .35rem; }
.summary {
  background: var(--night); color: var(--night-text); border-radius: var(--radius-big);
  padding: 1.5rem 1.7rem; margin: 0 0 2rem; display: grid; grid-template-columns: 54px 1fr; gap: 1.1rem; align-items: center;
}
.summary img { width: 54px; filter: invert(1); opacity: .9; }
.summary p { margin: 0; font-size: 1.12rem; color: #fff; }
.contact { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
table.saves { border-collapse: collapse; width: 100%; margin: .6rem 0 1rem; font-size: .97rem; }
table.saves th, table.saves td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid #CFC6DB; vertical-align: top; }
table.saves th { font-family: var(--display); font-weight: 600; }
code { font-size: .92em; background: var(--paper-deep); padding: .1em .35em; border-radius: 6px; word-break: break-word; }
details { border-bottom: 1px solid #CFC6DB; padding: .9rem 0; }
details summary { font-family: var(--display); font-weight: 600; font-size: 1.12rem; cursor: pointer; }
details p { margin: .6rem 0 0; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--night); color: var(--night-text); margin-top: 5rem; padding: 2.6rem 0 2.2rem; position: relative; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-foot a { color: #fff; }
.site-foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-foot .paws { display: flex; gap: .6rem; position: absolute; top: -18px; right: 8%; }
.site-foot .paws img { width: 22px; opacity: .35; }
.site-foot .paws img:nth-child(odd) { transform: translateY(-10px) rotate(-12deg); }
.site-foot .paws img:nth-child(even) { transform: rotate(10deg); }

/* ---------------------------------------------------------------- 404 */
.lost { text-align: center; padding: 3rem 0 1rem; }
.lost img { width: 200px; margin: 0 auto 1.5rem; }
.lost h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-cat img, .hero-cat svg { width: 230px; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; text-align: left; }
  .feature img { width: 120px; height: 120px; }
  .top-card img { width: 160px; height: 160px; }
  .about { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Kocur Software */
.soft-hero { padding-bottom: 2rem; }
.soft-hero .kicker, .tool-kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  padding: .35rem .85rem; border-radius: 999px; background: var(--amber); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase;
}
.soft-hero .kicker img { width: 18px; height: 18px; }
.hero-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 1.2rem; justify-content: end; }
.hero-tools img { width: 150px; height: 150px; border-radius: 32px; box-shadow: 0 12px 28px rgba(34, 27, 51, .28); }
.hero-tools img:nth-child(1) { transform: rotate(-5deg); }
.hero-tools img:nth-child(2) { transform: rotate(4deg) translateY(14px); }
.hero-tools img:nth-child(3) { transform: rotate(3deg); }
.hero-tools img:nth-child(4) { transform: rotate(-4deg) translateY(14px); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 1.6rem; }
.tool {
  display: flex; flex-direction: column; padding: 1.7rem; border-radius: var(--radius-big);
  background: var(--night); color: var(--night-text); --accent: var(--amber);
  box-shadow: inset 0 8px 0 var(--accent), 0 14px 34px rgba(34, 27, 51, .18);
}
.tool.paws { --accent: #EE7D8C; }
.tool.dupes { --accent: #F4B63A; }
.tool.sniffer { --accent: #5CC8C0; }
.tool.renamer { --accent: #A88BE0; }
.tool.toolbox { --accent: #F4B63A; position: relative; }
.tool .tool-badge { position: absolute; top: 1rem; right: 1rem; padding: .25rem .7rem; border-radius: 999px; background: var(--pink); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.tool .where strong { color: var(--amber); }
@media (max-width: 640px) { .tool.soon { padding-top: 3.4rem; } }
.tool-head { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.tool-head img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.tool h3 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.15; margin: 0 0 .2rem; color: #fff; }
.tool .genre { margin: 0; color: var(--accent); font-family: var(--display); font-weight: 500; }
.tool p { margin: 0 0 .9rem; }
.tool ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.tool li { margin-bottom: .35rem; }
.tool li::marker { color: var(--accent); }
.tool .where { margin-top: auto; margin-bottom: 0; font-size: .95rem; color: #B7ADC9; }
.tool a { color: var(--amber); }
.promise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.promise li { background: var(--paper-deep); border-radius: var(--radius-small); padding: 1.2rem 1.4rem; }
.promise h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 .35rem; }
.promise p { margin: 0; color: var(--plum); }
@media (max-width: 760px) {
  .hero-tools { justify-content: center; grid-template-columns: repeat(5, minmax(0, 60px)); gap: .6rem; }
  .hero-tools img:nth-child(5) { grid-column: auto; }
  .hero-tools img { width: 60px; height: 60px; border-radius: 14px; }
  .tool-head { grid-template-columns: 88px 1fr; }
  .tool-head img { width: 88px; height: 88px; border-radius: 20px; }
}
.tool.shrink { --accent: #8FD16A; }
.tool.longpath { --accent: #EE7D8C; }
.hero-tools img:nth-child(5) { transform: rotate(3deg); }
.hero-tools img:nth-child(6) { transform: rotate(-3deg) translateY(14px); }
@media (max-width: 760px) {
  .hero-tools { grid-template-columns: repeat(6, minmax(0, 52px)); }
  .hero-tools img { width: 52px; height: 52px; border-radius: 12px; }
  .hero-tools img:nth-child(5) { transform: rotate(3deg); }
}
