:root {
  --bg: #f6f6f4;
  --text: #1a1a1a;
  --caption: #6b6b6b;
  --rule: #dcdcd8;
  --accent: #1f8a4c;
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ededed;
    --caption: #9a9a9a;
    --rule: #2c2c2c;
    --accent: #4cc97a;
    --card: #1e1e1e;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

header.site, main, footer.site {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
}

header.site a, footer.site a { color: var(--caption); text-decoration: none; }
header.site a:first-child { color: var(--text); font-weight: 600; }

main { padding-top: 24px; padding-bottom: 40px; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 24px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 4px; }
a { color: var(--accent); }

.meta, time, code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--caption);
}

.meta { margin-bottom: 8px; }
.meta a { color: var(--caption); }

kbd {
  color: var(--text);
  white-space: nowrap;
}

.note {
  border-left: 3px solid var(--rule);
  padding-left: 16px;
  color: var(--caption);
}

.cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
}

.cta p { margin-bottom: 8px; }
.cta-name { font-weight: 600; }

.cta-button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .cta-button { color: #0b1f12; }
}

ul.posts { list-style: none; padding: 0; }
ul.posts li { margin-bottom: 16px; }
ul.posts time { display: block; }

footer.site {
  padding-top: 16px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

figure.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

figure.shots.single { grid-template-columns: 1fr; max-width: 360px; }
figure.shots.wide { grid-template-columns: 1fr; }

figure.shots img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

figure.shots figcaption {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--caption);
}

table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.9rem;
}

th, td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; color: var(--caption); font-weight: 500; }

.cta-more { margin-left: 16px; font-size: 0.9rem; }

.icon {
  flex: none;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--rule);
}

ul.apps { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 24px; }
ul.apps a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
}
ul.apps a:hover strong { color: var(--accent); }
ul.apps .tagline { display: block; color: var(--caption); font-size: 0.95rem; }

.app-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.app-head h1 { margin: 0; }
.app-head .tagline { color: var(--caption); margin: 4px 0 8px; }
.app-head .cta-button { margin: 0 0 12px; }

.shots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  margin: 0 -4px 8px;
}
.shots-row img {
  flex: none;
  height: 440px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .app-head .icon { width: 72px; height: 72px; }
  .shots-row img { height: 380px; }
}
