/* CatKraft: the game's daytime look (sky blue, meadow green, parchment panels with brown pixel
   borders, wordmark yellow) on the Arcade Night kit's fonts and arcade.js (motion button, signup). */

@font-face { font-family: "Press Start 2P"; src: url(kit/fonts/PressStart2P.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik"; src: url(kit/fonts/Rubik.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root { --bg: #7cc4f0; --sky: #6fbdf0; --haze: #d8eef8; --grass: #5fae3c; --grass2: #3f8a2a; --grass3: #33761f; --soil: #8a5a32; --paper: #f6e6bf; --paper2: #fbf2da; --wood: #7a4a21; --ink: #3b2410; --sun: #ffd24a; --turnip: #a14fb5; --px: 4px; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--grass); }
body { margin: 0; color: var(--ink); font: 400 18px/1.6 "Rubik", system-ui, sans-serif; overflow-x: hidden; background: linear-gradient(var(--sky), var(--haze) 690px, var(--grass) 690px); }
h1, h2, h3, .btn, .tag, .menu a, .form-msg { font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 60; background: var(--sun); color: var(--ink); font-weight: 600; padding: 12px; }
.skip:focus { top: 12px; }

/* A pixel border: square notches at the corners, like the game's panels. */
.px, .card, .pic, .board, .screen, .intro, .btn, .platforms .btn { box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink); }

/* Nav: the wordmark, links, the motion button and the signup button. */
nav { position: sticky; top: 0; z-index: 20; background: rgba(246,230,191,.94); border-bottom: var(--px) solid var(--ink); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.brand img { height: 34px; width: auto; image-rendering: pixelated; }
.menu { display: flex; gap: 6px; align-items: center; }
.menu a:not(.btn) { text-decoration: none; white-space: nowrap; padding: 8px 6px; font-size: 11px; color: var(--wood); }
.menu a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu .btn { padding: 11px 14px; font-size: 11px; white-space: nowrap; }
@media (max-width: 1260px) { .menu a:not(.btn) { display: none; } }
.menu a.hub { display: inline-block; }
.menu .btn .short { display: none; }
@media (max-width: 760px) { .menu .btn .long { display: none; } .menu .btn .short { display: inline; } }
@media (max-width: 420px) { .brand img { height: 26px; } .menu .btn { padding: 10px 10px; } }

.motion-toggle { font: 600 14px "Rubik", sans-serif; color: var(--wood); background: transparent; border: 3px solid var(--wood); border-radius: 0; padding: 8px 12px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.motion-toggle:hover { background: rgba(122,74,33,.1); }
.motion-toggle .icon { width: 12px; height: 12px; display: inline-block; background: currentColor; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.motion-toggle[aria-pressed="true"] .icon { clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 520px) { .motion-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* Buttons: wordmark yellow on a dark step, pressed down when clicked. */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sun); color: var(--ink); text-decoration: none; padding: 16px 20px; border: 0; border-radius: 0; font-size: 13px; line-height: 1.3; cursor: pointer; margin: var(--px); position: relative; top: 0; transition: top .08s; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 6px; background: rgba(59,36,16,.35); transition: bottom .08s; }
.btn:hover { top: -2px; }
.btn:active { top: 3px; }
.btn:active::after { bottom: -6px; }
.btn.leaf { background: #8fd16a; }
.btn.off { background: var(--paper2); color: var(--wood); cursor: not-allowed; top: 0; }
.btn.off::after { display: none; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Hero: the title screen in a frame under drifting clouds, the intro on a parchment card below. */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; width: 120px; height: 28px; background: #fff; opacity: .9; animation: cloud 70s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; }
.cloud::before { left: 20px; top: -16px; width: 48px; height: 16px; }
.cloud::after { left: 56px; top: -28px; width: 36px; height: 28px; }
.c1 { top: 70px; animation-delay: -10s; }
.c2 { top: 190px; transform: scale(.7); animation-duration: 95s; animation-delay: -60s; }
.c3 { top: 420px; transform: scale(1.3); animation-duration: 120s; animation-delay: -30s; }
@keyframes cloud { from { left: -200px; } to { left: 100%; } }
.hero .wrap { position: relative; z-index: 2; display: grid; justify-items: center; }
.screen { margin: 0; width: 100%; background: var(--sky); border: var(--px) solid var(--paper); }
.screen img { width: 100%; }
.intro { position: relative; margin: -60px 20px 0; max-width: 860px; background: var(--paper); padding: 32px clamp(20px, 4vw, 44px) 34px; text-align: center; }
.intro h1 { font-size: clamp(18px, 2.5vw, 30px); }
.intro h1 em { font-style: normal; color: var(--turnip); display: inline-block; animation: hop 2.6s steps(2) infinite; }
@keyframes hop { 0%, 80%, 100% { transform: translateY(0); } 90% { transform: translateY(-6px); } }
.intro p { font-size: 20px; margin: 18px auto 24px; max-width: 58ch; }
.ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.grass { height: 48px; margin-top: 56px; background: linear-gradient(var(--grass), var(--grass)) 0 16px / 100% 32px no-repeat, repeating-linear-gradient(90deg, var(--grass) 0 8px, transparent 8px 16px, var(--grass) 16px 20px, transparent 20px 28px) 0 0 / 100% 16px no-repeat; }
@media (max-width: 700px) { .intro { margin: -24px 0 0; } .intro p { font-size: 18px; } }

/* Section titles. */
section { padding: 70px 0; }
.title { font-size: clamp(18px, 2.4vw, 28px); color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.lede { font-size: 20px; max-width: 60ch; margin: 16px 0 40px; color: #fff; text-shadow: 2px 2px 0 rgba(59,36,16,.5); }

/* The trailer: one framed video on the grass, loaded only when someone presses play. */
.trailer { background: var(--grass); padding: 30px 0 0; }
.trailer .wrap { width: min(848px, 100% - 40px); }
.trailer .lede { max-width: none; margin-bottom: 0; }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); image-rendering: pixelated; }

/* Features: a framed shot beside a parchment card, sides swapping down the page. */
.features { background: var(--grass); padding: 30px 0 20px; }
.features.more { padding: 20px 0; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin: 0; }
.feature.flip .pic { order: 2; }
.pic { background: var(--wood); border: 6px solid var(--wood); margin: var(--px); }
.pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card { background: var(--paper); padding: 26px 28px; margin: var(--px); }
.card h3 { font-size: 16px; margin: 14px 0 10px; }
.card p { margin: 0; }
.tag { display: inline-block; font-size: 10px; background: var(--soil); color: #fff; padding: 6px 8px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 16px; } .feature.flip .pic { order: 0; } }

/* Play together, and the family section: soil and parchment bands. */
.together { background: var(--soil); color: #fff; }
.together .wrap, .family .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.together p { font-size: 19px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.family { background: var(--paper2); }
.family .title { color: var(--ink); text-shadow: 3px 3px 0 var(--sun); }
.family p { font-size: 19px; }
.family .wrap { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 900px) { .together .wrap, .family .wrap { grid-template-columns: 1fr; } }

/* The FAQ: answers on cards. Buyer questions get their own section, three across. */
.faq { background: var(--grass); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.faq .card p { font-size: 18px; }
.faq.more { background: var(--grass2); }
.faq.more .lede { margin: 10px 0 0; max-width: none; }
.faq.more .answers { margin-top: 22px; }
#faq-before .play-now { margin: 32px 0 0; color: var(--ink); }
#faq-before .play-now a { white-space: nowrap; }
.faq.more2 { padding-top: 0; }
.answers.three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.answers.one { grid-template-columns: 1fr; }
.answers.one .card p { max-width: 70ch; }
.answers.three .card { padding: 22px 24px; }
@media (max-width: 1100px) { .answers.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .answers, .answers.three { grid-template-columns: 1fr; } }

/* Downloads (coming soon) and the signup, on a notice board. */
.download { background: var(--grass2); }
.board { background: var(--paper); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin: var(--px); }
.board .title { color: var(--ink); text-shadow: 3px 3px 0 var(--sun); }
.board p { font-size: 19px; }
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 22px 0 10px; }
.signup form { display: grid; gap: 14px; }
.signup label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.signup input { font: 500 18px "Rubik", sans-serif; padding: 13px 16px; border: var(--px) solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.signup input:focus { outline: 3px solid var(--turnip); outline-offset: 2px; }
.signup .btn { justify-self: start; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .notice { font-size: 15px; margin: 18px 0 0; }
.signup .notice a { font-weight: 600; }
.form-msg { font-size: 14px; line-height: 1.7; margin: 18px 0 0; }
.form-msg:empty { display: none; }
.form-msg.ok { background: #8fd16a; padding: 14px 16px; }
.form-msg.err { font: 600 18px "Rubik", sans-serif; background: #ffd9d2; color: #7a1a0a; padding: 12px 16px; border: 3px solid #7a1a0a; }
.sent form, .sent .notice { display: none; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }

/* Footer. */
/* The footer sits a shade under --grass2, so its cream text reads at 5:1. */
footer { background: var(--grass3); color: #eaf6e0; padding: 24px 0 60px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
footer span:first-child { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
footer img { image-rendering: pixelated; }
footer .studio-links { flex-basis: 100%; }
footer .studio-links a { white-space: nowrap; }

/* The privacy page. */
.prose { padding: 50px 0 70px; }
.prose > * { max-width: 70ch; }
.prose h1 { font-size: 24px; margin-bottom: 20px; }
.prose h2 { font-size: 15px; margin: 30px 0 8px; }
.prose-page { background: var(--paper2); }
.prose-page footer { background: var(--soil); }

/* Motion: the button pauses the clouds and hops (html.still); reduced motion stops them unless
   the visitor presses play for this visit. */
.still .cloud, .still .intro h1 em { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.motion-opt-in) .cloud, html:not(.motion-opt-in) .intro h1 em { animation: none; }
  .btn { transition: none; }
}

/* The press kit: the fact sheet, logo and icon downloads, and the screenshots. */
.press { padding: 50px 0 70px; }
.press section { padding: 30px 0 0; }
.press h1 { font-size: 24px; }
.press h2 { font-size: 16px; margin: 40px 0 14px; }
.press section > p, .press .lede-dark, .press .ticks { max-width: 70ch; }
.lede-dark { font-size: 20px; margin: 16px 0 0; }
.press a { font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; padding: 22px 26px; background: var(--paper); max-width: 760px; box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink); }
.facts dt { font-weight: 700; color: var(--wood); }
.facts dd { margin: 0; }
.press .ticks li::before { top: 8px; }
.assets, .shots { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.assets { grid-template-columns: 2fr 1fr; align-items: end; }
.shots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.assets li, .shots li { display: grid; gap: 10px; font-size: 16px; }
.assets img, .shots img { width: 100%; image-rendering: pixelated; }
.swatch { display: grid; place-items: center; padding: 20px; background: var(--paper); }
.swatch.blue { background: var(--sky); padding: 40px 30px; min-height: 100%; }
.assets li:last-child img { max-width: 240px; }
.shots a:has(img) { display: block; border: 6px solid var(--wood); }
.small { font-size: 15px; }
@media (max-width: 760px) { .assets { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* Guides (stardew-valley-split-screen.html): a parchment answer box, numbered steps, a table and
   game picks as cards, then the signup board on the grass. */
.article h1 { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.5; }
.article section { padding: 20px 0 0; scroll-margin-top: 80px; }
.prose-page #signup { scroll-margin-top: 66px; }
.article h2 { font-size: 16px; margin: 36px 0 12px; }
.article h3 { font-size: 13px; margin: 26px 0 8px; }
.article a { font-weight: 600; }
.kicker { font-size: 15px; color: var(--wood); margin: 0 0 12px; }
.answer { background: var(--paper); padding: 22px 26px; margin: 32px var(--px) 10px; box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink); }
.answer h2 { margin: 0 0 6px; font-size: 14px; }
.article .ticks li::before { top: 8px; }
.steps { padding-left: 1.4em; display: grid; gap: 6px; }
.steps li::marker { font-weight: 700; color: var(--wood); }
.table-wrap { overflow-x: auto; }
.article table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: 17px; }
.article caption { text-align: left; font-size: 15px; color: var(--wood); padding-bottom: 8px; }
.article th, .article td { text-align: left; padding: 10px 14px; border: 2px solid var(--wood); vertical-align: top; }
.article thead th { background: var(--soil); color: #fff; }
@media (max-width: 700px) {
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; }
  .stack-table caption { display: block; }
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article .stack-table { background: none; }
  .stack-table tr { border: 2px solid var(--wood); margin-bottom: 14px; background: var(--paper); }
  .article .stack-table th, .article .stack-table td { border: 0; padding: 8px 14px; }
  .stack-table tbody th { background: var(--soil); color: #fff; }
  .stack-table td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; color: var(--wood); }
}
.article.prose > .pick, .article .pick { max-width: none; }
.article #games { max-width: none; }
.article #games > p { max-width: 70ch; }
.cat-games #others, .cat-games #ours, .cat-games #compare, .cat-games #faq { max-width: none; }
.cat-games #others > .answers, .cat-games #faq > .answers { margin-top: 18px; }
.cat-games .answers .card h3 { margin: 12px 0 8px; }
.pick { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; margin: 26px 0; }
.pick.text-only { grid-template-columns: 1fr; max-width: 70ch; }
.pick .card h3 { font-size: 15px; }
.pick .card p + p, .pick .card .ticks + p { margin-top: 14px; }
.pick .card .ticks { margin: 14px 0 0; }
.sources { margin-top: 40px; color: var(--wood); }
.prose-page .download { padding: 50px 0 60px; }
@media (min-width: 901px) { .pick > .pic { position: sticky; top: 90px; } }
@media (max-width: 900px) { .pick { grid-template-columns: 1fr; gap: 12px; } }

/* Compare page (stardew-valley-alternatives): a full-width table that stacks into labelled cards on a phone,
   game cards in the FAQ card style, and a two-column FAQ. */
.article .wide { max-width: none; }
.article .wide > p { max-width: 70ch; }
.article .compare th, .article .compare td { padding: 7px 12px; font-size: 16px; line-height: 1.45; }
.article .compare tbody th { font-weight: 600; }
.article .compare tr.ours th, .article .compare tr.ours td { background: var(--paper2); font-weight: 600; }
/* The 13-row split screen table keeps each row to one line on desktop, so it stays close to one screen. */
@media (min-width: 1101px) { .article .compare.dense td, .article .compare.dense thead th { white-space: nowrap; } .article .compare.dense th, .article .compare.dense td { padding-top: 5px; padding-bottom: 5px; } }
.article .answers { margin-top: 18px; }
.article .answers .card { margin: var(--px); }
.article .answers .card h3 { margin: 10px 0 8px; font-size: 14px; }
.article .answers .card p { font-size: 16px; line-height: 1.55; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.qa h3 { margin-top: 18px; }
.qa p { font-size: 16px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .qa { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .article .compare caption { display: block; }
  .article .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article .compare, .article .compare tbody, .article .compare tr, .article .compare th, .article .compare td { display: block; }
  .article .compare tr { border: 2px solid var(--wood); margin-bottom: 16px; background: var(--paper); }
  .article .compare th, .article .compare td { border: 0; }
  .article .compare tbody th { background: var(--soil); color: #fff; font-size: 17px; }
  .article .compare td { padding: 8px 14px; border-top: 1px solid var(--wood); }
  .article .compare td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--wood); }
  .article .compare tr.ours th { background: var(--soil); color: #fff; }
  /* The long list: two fields a row, so each game is a short card. */
  .article .compare.dense tr { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; }
  .article .compare.dense tbody th, .article .compare.dense td:nth-of-type(2) { grid-column: 1 / -1; }
}

/* Guides from markdown (guides-content/*.md, built into /guides/): the list as parchment cards, and a
   post's body, which is plain markdown HTML (headings, lists, links, figures, quotes, tables, code). */
.guide-list { list-style: none; padding: 0; margin: 32px var(--px) 0; display: grid; gap: 28px; }
.guide-list .card { background: var(--paper); padding: 22px 26px; }
.guide-list h2 { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.guide-list h2 a { text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-list .small { margin: 0 0 6px; color: var(--wood); }
.guide-list p:last-child { margin-bottom: 0; }
/* "More from CatKraft" (guides-content/templates/more.html): links to the site's other pages, at the end of each page. */
.more-from { margin-top: 48px; }
.more-from h2 { margin-top: 0; }
.article .more-from { max-width: 90ch; }
.more-from a { font-weight: 600; }
.more-from .more { padding-left: 1.2em; }
.more-from .more li + li { margin-top: 8px; }
/* On wide screens the long list runs in two columns, so the block stays close to one screen. */
@media (min-width: 1101px) { .article .more-from { max-width: none; } .more-from .more { columns: 2; column-gap: 48px; } .more-from .more li { break-inside: avoid; } .more-from .more li + li { margin-top: 0; } .more-from .more li { padding-bottom: 8px; } }
@media (min-width: 1300px) { .more-from .more { columns: 3; column-gap: 40px; } }
.more-band { background: var(--paper2); }
.more-band .prose { padding: 0 0 56px; }
.more-band .more-from, .more-band .more-from h2 { margin-top: 0; }
.kicker a { font-weight: 400; }
.post-body > * { max-width: 70ch; }
.post-body figure, .article figure.shot { margin: 28px 0; max-width: none; }
.post-body figure img, .article figure.shot img { width: 100%; max-width: 900px; border: 6px solid var(--wood); image-rendering: pixelated; }
.post-body figcaption { font-size: 15px; color: var(--wood); margin-top: 8px; }
.post-body p > img { margin: 20px 0; }
.post-body li + li { margin-top: 6px; }
.post-body ol li::marker { font-weight: 700; color: var(--wood); }
.post-body blockquote { margin: 24px 0; padding: 14px 22px; background: var(--paper); border-left: 6px solid var(--wood); }
.post-body blockquote > :first-child { margin-top: 0; }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body code { font: 15px ui-monospace, monospace; background: var(--paper); padding: 1px 5px; }
.post-body pre { background: var(--paper); padding: 14px 18px; overflow-x: auto; }
.post-body pre code { padding: 0; }
.post-body hr { border: 0; border-top: var(--px) solid var(--wood); margin: 36px 0; }
.post-body h2 { scroll-margin-top: 80px; }
.byline { margin-top: 40px; color: var(--wood); }
