/* Froggies, froggies.app
   Static CSS, no framework, no external requests.

   The one self-hosted font is BD Cartoon Shout (2011, used on the original
   tutorial cards), freeware: "may be freely used for any personal and commercial
   purposes without a fee". FroggiesComic.ttf is the same font with accented
   Latin and Cyrillic glyphs drawn in and the family renamed, built by
   froggies-ios/tools/l10n/build_comic_font.py. Keep the file name. */

@font-face {
  font-family: "Froggies Comic";
  src: url("/fonts/FroggiesComic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pond: #bed200;
  --pond-deep: #a8bd00;
  --pond-shade: #b3c700;
  --ink: #24400a;
  --ink-soft: #3d5c17;
  --cream: #f7f8ea;
  --cream-line: #e2e6c2;
  --red: #c4242b;
  --red-deep: #9c1a20;
  --leaf: #497c05;
  --radius: 18px;
  --max: 62rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pond);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); }
a:hover { color: var(--red); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.display {
  font-family: "Froggies Comic", "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* ---------------------------------------------------------------- hero --- */

header.hero {
  padding: 40px 0 8px;
  text-align: center;
}

.logo {
  width: min(380px, 78vw);
  margin: 0 auto;
}

.tagline {
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  margin: 22px 0 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(36, 64, 10, 0.35);
}

.lede {
  max-width: 34rem;
  margin: 14px auto 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta {
  margin: 26px auto 0;
  display: inline-block;
  background: var(--cream);
  border: 2px solid rgba(36, 64, 10, 0.18);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

a.cta:hover { background: #fff; color: var(--ink); }

.cta-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-art {
  margin: 28px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 44rem;
  box-shadow: 0 8px 26px rgba(36, 64, 10, 0.18);
}

/* ------------------------------------------------------------ sections --- */

main { padding-bottom: 8px; }

section { padding: 44px 0; }

section.band { background: var(--pond-shade); }

h2 {
  font-family: "Froggies Comic", "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  font-weight: 400;
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  margin: 0 0 18px;
  color: var(--ink);
}

h3 {
  font-size: 1.05rem;
  margin: 26px 0 6px;
}

p { margin: 0 0 14px; }

.prose { max-width: 38rem; }

/* ----------------------------------------------------------- the frogs --- */

.frogs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.frogs li {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.frogs img {
  width: 76px;
  flex: 0 0 76px;
}

.frogs b {
  display: block;
  font-size: 1.05rem;
}

.frogs span { color: var(--ink-soft); }

/* --------------------------------------------------------- screenshots --- */

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.shots figure { margin: 0; }

.shots img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 6px 18px rgba(36, 64, 10, 0.16);
}

.shots figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- lists --- */

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 38rem;
}

.ticks li {
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid rgba(36, 64, 10, 0.12);
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
}

.ticks li:last-child { border-bottom: 0; }

.langs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.langs li {
  background: var(--cream);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.93rem;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.facts li {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- trailer --- */

.trailer {
  max-width: 40rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(36, 64, 10, 0.18);
}

.trailer video { width: 100%; }

.caption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 40rem;
}

/* -------------------------------------------------------------- footer --- */

footer {
  background: var(--ink);
  color: #dfe8c8;
  padding: 30px 0;
  font-size: 0.95rem;
}

footer a { color: #fff; text-decoration: underline; }
footer a:hover { color: #ffe08a; }

.foot-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-frog {
  width: 54px;
  margin-bottom: 14px;
}

/* --------------------------------------------------------- inner pages --- */

.page {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin: 28px auto 40px;
  max-width: 44rem;
}

.page h1 {
  font-family: "Froggies Comic", "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  font-weight: 400;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  margin: 0 0 4px;
}

.page .updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.page ul { padding-left: 20px; }
.page li { margin-bottom: 8px; }

.back {
  display: inline-block;
  margin-top: 26px;
  padding-top: 20px;
}

.topbar { padding: 22px 0 0; }
.topbar img { width: 150px; }

/* --------------------------------------------------------------- 640px --- */

@media (min-width: 640px) {
  body { font-size: 18px; }
  .frogs { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .page { padding: 34px 38px; }
}

@media (min-width: 900px) {
  .frogs { grid-template-columns: repeat(3, 1fr); }
}
