/* Layout: a single parchment column standing in a tiled pixel meadow, like a game's title screen.
   Every frame, button, ribbon and cursor is cut from the Tiny Farm RPG pack (EmanuelleDev) and stretched with border-image at 3x. */
:root {
  --meadow: #79bf56;
  --ink: #3b2412;
  --ink-soft: #6e4a2a;
  --parchment: #f8dcc8;
  --cream: #fde3c4;
  --leaf: #4f9a3a;
  --sun: #f2b632;
  --display: "Pixelify Sans", "Courier New", monospace;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --px: 3px; /* one art pixel on screen */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--meadow); }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55;
  background-color: var(--meadow); background-size: 288px 288px; image-rendering: pixelated;
  padding-inline: 16px; padding-block: 28px 48px;
  cursor: url("ui/cursor-arrow.png") 4 2, auto;
}
a, button, .btn { cursor: url("ui/cursor-hand.png") 18 2, pointer; }
.col { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

/* Pack UI pieces as stretchable frames */
.cloud { border: solid transparent; border-width: 30px; border-image: url("ui/panel-cloud.png") 10 fill / 30px stretch; image-rendering: pixelated; }
.parch { border: solid transparent; border-width: 42px; border-image: url("ui/panel-parchment.png") 14 fill / 42px stretch; image-rendering: pixelated; }
.plain { border: solid transparent; border-width: 18px; border-image: url("ui/panel-plain.png") 6 fill / 18px stretch; image-rendering: pixelated; }
.frame { border: solid transparent; border-width: 30px; border-image: url("ui/frame-parchment.png") 10 / 30px stretch; background: var(--parchment); image-rendering: pixelated; padding: 0; }
.frame img { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: .02em;
  border: solid transparent; border-width: 15px 15px 18px; padding: 2px 18px;
  border-image: url("ui/btn-green.png") 5 5 6 fill / 15px 15px 18px stretch; image-rendering: pixelated;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { border-image-source: url("ui/btn-green-down.png"); transform: translateY(3px); }
.btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 6px; }
.btn.wood { color: var(--cream); border-image-source: url("ui/btn-wood.png"); font-size: 18px; }
.btn.wood:active { border-image-source: url("ui/btn-wood-down.png"); }

.pill { display: inline-block; font-family: var(--display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  border: solid transparent; border-width: 9px 18px; border-image: url("ui/pill-light.png") 3 6 fill / 9px 18px stretch; image-rendering: pixelated; padding: 0 4px; }

/* Hero */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.logo { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 13vw, 76px); line-height: .95; color: #fff6dc; letter-spacing: .03em;
  text-shadow: 0 var(--px) 0 var(--ink), var(--px) 0 0 var(--ink), calc(var(--px) * -1) 0 0 var(--ink), 0 calc(var(--px) * -1) 0 var(--ink),
               var(--px) var(--px) 0 var(--ink), calc(var(--px) * -1) var(--px) 0 var(--ink), 0 calc(var(--px) * 3) 0 #a4532b; }
.tagline { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.3; max-width: 26ch; text-wrap: balance; }
.sub { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Little animated characters cut from the pack */
.sprite { width: 96px; height: 96px; image-rendering: pixelated; display: block; }
.talk { display: flex; align-items: flex-end; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bubble { font-family: var(--display); font-size: 18px; line-height: 1.25; max-width: 240px; text-align: left; margin-bottom: 26px; }
.onframe { position: relative; }
.onframe .sprite { position: absolute; bottom: -30px; }
.onframe .cat { left: -14px; }
.onframe .dog { right: -14px; }

/* Sections */
.sec { display: flex; flex-direction: column; gap: 14px; }
.ribbon { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; text-wrap: balance; }
.ribbon img { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.sec p { margin: 0; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.list canvas { width: 36px; height: 36px; image-rendering: pixelated; }
.shot { max-width: 300px; width: 100%; margin: 0 auto; }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta h2 { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.1; text-wrap: balance; }
footer { text-align: center; font-size: 14px; color: var(--ink); }
footer a { color: var(--ink); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
