/* Shared styles for the squishlogic.com home pages (index, about, contact, privacy). */

:root {
  --text: #222222;
  --muted: #999999;
  --link: #1a55d6;
  --gutter: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Calibri, "Segoe UI", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; }

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

/* Header: logo on the left, text links and social icons on the right; wraps on narrow phones. */
.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-header .logo img { display: block; width: 106px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.site-nav a {
  color: var(--text);
  font-weight: bold;
  text-decoration: none;
}
.site-nav .social { display: flex; gap: 8px; }
.site-nav .social img { display: block; width: 32px; height: 32px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
}

/* Home page app grid: alphabetical, left to right, top to bottom. */
.app-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px 12px;
  text-align: center;
}
.app-grid img { width: 100%; max-width: 150px; }
.app-grid a { text-decoration: none; }
.appname {
  display: block;
  margin-top: 4px;
  font-family: Nunito, "Avenir Next", Avenir, "Segoe UI", Calibri, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.updated {
  margin-top: 32px;
  text-align: center;
  font-size: small;
  color: var(--muted);
}

/* About and Privacy: text with the compass beside it on wide screens, above it on narrow ones. */
.side-art { float: right; width: 205px; margin: 0 0 16px 24px; }
@media (max-width: 560px) {
  .side-art { float: none; display: block; width: 160px; margin: 0 auto 16px; }
}

/* Contact: screenshot links in a wrapping row. */
.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.shots img { display: block; height: 300px; width: auto; }
@media (max-width: 560px) {
  .shots img { height: 220px; }
}
