/* Bento's website (GitHub Pages), in the app's own colours. */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #2b2420;
  --muted: #7a6d64;
  --border: #e6ddd3;
  --accent: #b4532a;
  --accent-soft: #f6e4da;
  --jade-soft: #e2efeb;
  --accent-text: #ffffff;
  --radius: 12px;
  color-scheme: light;
}

/* Dark mode is "pond at night", like the app (The Koi Pond's BRAND.md). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141b1b;
    --surface: #202928;
    --text: #f1ebe5;
    --muted: #a89a8f;
    --border: #34403e;
    --accent: #e07a4f;
    --accent-soft: #302a25;
    --jade-soft: #1d3330;
    --accent-text: #141b1b;
    color-scheme: dark;
  }
}

/* Pond Pebbles, The Koi Pond's display font (built in the studio repo,
   the-koi-pond.github.io/font; copied here so this site stands alone). */
@font-face {
  font-family: "Pond Pebbles";
  src: url("PondPebbles.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* About 70 characters a line on desktop: easy reading. */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

a {
  color: var(--accent);
}

h1,
h2 {
  line-height: 1.25;
}

h2 {
  margin-top: 40px;
}

/* Home page headings: centred, in Pond Pebbles. (The privacy policy keeps
   plain, left-aligned headings, which are easier to scan.) */
.home h2 {
  text-align: center;
  font: 400 2.1rem/1.15 "Pond Pebbles", system-ui, sans-serif;
  margin-bottom: 16px;
  scroll-margin-top: 24px; /* a jump link stops a little above the heading */
}

/* Ben, in a mood that suits the section, sitting on top of its heading. */
.home h2 .mood {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 6px;
}

/* A quiet aside on its own line under a heading. */
h2 .aside {
  display: block;
  font: 400 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted);
}

/* Where the app stands, right under the tagline, with a jump to the
   "Getting Bentotachi" section. */
.status {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--jade-soft);
  font-size: 0.9rem;
}

/* On a phone, break only between the phrases, never inside one. */
.status > * {
  white-space: nowrap;
}

.hero {
  text-align: center;
  padding: 16px 0 8px;
}

.hero .logo {
  width: 160px;
  height: auto;
}

.hero .title {
  display: block;
  width: min(380px, 90%);
  height: auto;
  margin: 8px auto 0;
}

.title-dark {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .title-light {
    display: none !important;
  }
  .title-dark {
    display: block !important;
  }
}

.tagline {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  text-align: center;
  margin: 24px auto 0;
  max-width: 34em;
}

.lead + .lead {
  margin-top: 12px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

/* A last box left on its own in a row stretches across it, so there's no
   empty gap next to it (with an odd number of boxes, two to a row). */
@media (min-width: 600px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .features li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.features strong {
  display: block;
}

.note {
  background: var(--jade-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.muted {
  color: var(--muted);
}

/* The Ko-fi button and its note, centred under the centred heading. */
.cta {
  text-align: center;
  margin-top: 24px;
}

.cta p {
  margin: 10px 0 0;
}

/* The Ko-fi link: an orange pill, like the app's buttons. */
.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

/* "Made by The Koi Pond", with a tiny Deki: on its own line at the end. */
footer .made-by {
  flex-basis: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

footer .made-by img {
  width: 26px;
  height: auto;
}
