/* BrainTile Studio - one stylesheet for every page. Colors from Pixel Pause's
   cozy day scheme (ui/cozy.gd in the game). The font is self-hosted: no
   request to Google, nothing to declare in the privacy policy. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #eef0e4;
  --blob-sage: #e8ecdc;
  --blob-warm: #f2eee1;
  --blob-rose: #f4e5dd;
  --surface: #fbfaf4;
  --divider: #e2e5d8;
  --text: #2f3a2f;
  --muted: #5f6858;
  --eyebrow: #5c6b55;
  --primary: #3f6b4e;
  --primary-hover: #36603f;
  --accent: #e9a66b;
  --accent-soft: #fbebd3;
  --shadow: 0 10px 30px rgba(47, 58, 47, 0.09), 0 2px 6px rgba(47, 58, 47, 0.06);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 8%, var(--blob-sage) 0 22rem, transparent 22rem),
    radial-gradient(circle at 6% 92%, var(--blob-warm) 0 20rem, transparent 20rem),
    radial-gradient(circle at 96% 96%, var(--blob-rose) 0 16rem, transparent 16rem),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* Header: the studio's mark and name in a pill. */
.site-header { padding: 28px 0 8px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 12px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px;
}
.brand:hover { color: var(--text); }
/* Four tiles, the studio's mark. */
.mark { display: grid; grid-template-columns: 14px 14px; gap: 3px; }
.mark i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.mark i:nth-child(1) { background: #ef5b5b; }
.mark i:nth-child(2) { background: #ffc531; }
.mark i:nth-child(3) { background: #2ec4c4; }
.mark i:nth-child(4) { background: var(--primary); }

main { padding: 32px 0 48px; }

.eyebrow {
  margin: 0 0 6px; font-size: 14px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow);
}
h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px); line-height: 1.1; font-weight: 900; }
h2 { margin: 36px 0 8px; font-size: 24px; font-weight: 900; }
h3 { margin: 24px 0 4px; font-size: 19px; font-weight: 800; }
.lead { margin: 0 0 32px; font-size: 21px; color: var(--muted); max-width: 640px; }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px 28px 28px; }

/* The project card: capsule art on top, text and store links below. */
.project img.art { display: block; width: 100%; height: auto; }
.project h2 { margin-top: 4px; }
.project p { margin: 0 0 16px; color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
  background: var(--primary); color: #fff;
}
.button:hover { background: var(--primary-hover); color: #fff; }
.button.quiet { background: var(--accent-soft); color: #6b4a22; }
.button.quiet:hover { background: #f6dfbd; color: #6b4a22; }

/* Text pages (privacy, imprint). */
.text { padding: 28px 32px 32px; }
.text h1 { font-size: clamp(30px, 5vw, 42px); }
.text p, .text li { color: var(--text); }
.text ul { padding-left: 1.2em; }
.text dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; }
.text dt { font-weight: 800; color: var(--muted); }
.text dd { margin: 0; }
.updated { color: var(--muted); font-size: 15px; }
/* Placeholders still to fill in - visible on purpose, so none is missed. */
.todo { background: #ffe08a; padding: 0 4px; border-radius: 4px; }

.site-footer { padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 6px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .card-body, .text { padding: 20px; }
  .text dl { grid-template-columns: 1fr; gap: 2px; }
  .text dd { margin-bottom: 10px; }
}

/* --- pixelpause.app ------------------------------------------------------- */

/* The hero: a band of a painted scene with the logo over it. */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero img.band { display: block; width: 100%; height: 300px; object-fit: cover; image-rendering: pixelated; }
.hero img.logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, 70%); height: auto;
}
.intro { text-align: center; margin: 32px auto 8px; max-width: 680px; }
.intro .lead { margin: 0 auto 24px; }
.intro .buttons { justify-content: center; }
.claim { font-weight: 900; font-size: 22px; margin: 0 0 18px; }

section { margin-top: 56px; }
section > h2 { margin: 0 0 6px; font-size: 30px; }
section > p.sub { margin: 0 0 22px; color: var(--muted); }

/* Screenshots, two across. */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 8px; font-weight: 800; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 22px 24px; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); }

/* Where to get it. */
.stores { display: grid; gap: 18px; }
.store { display: flex; gap: 18px; align-items: center; padding: 20px 24px; }
.store img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.store h3 { margin: 0; }
.store p { margin: 2px 0 10px; color: var(--muted); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app { padding: 20px; text-align: center; }
.app img { width: 72px; height: 72px; border-radius: 18px; }
.app h3 { margin: 10px 0 2px; font-size: 18px; }
.app p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.app .button { padding: 9px 18px; font-size: 16px; }

@media (max-width: 720px) {
  .hero img.band { height: 200px; }
  .shots, .features, .apps { grid-template-columns: 1fr; }
  .store { flex-direction: column; align-items: flex-start; }
}

/* A store not open yet (the Steam page before it goes public): looks like a
   button, is no link. Swap back to an <a class="button"> once it is live. */
.button.soon { background: var(--divider); color: var(--muted); cursor: default; }
