@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --blue: #3d7ec9;
  --blue-dark: #2b5f9a;
  --header: #e3eef8;
  --yellow: #ffd100;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --row: #f7f9fc;
  --hover: #e8eefc;
  font-family: "Inter Variable", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
}

.app-header {
  display: flex;
  align-items: center;
  background: var(--header);
  color: var(--blue-dark);
  padding: 14px 16px;
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 400;
}

main {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 16px;
}

main > h1 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--blue-dark);
}

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

.listing-intro {
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.listing-intro > :first-child {
  margin-top: 0;
}

.listing-intro > :last-child {
  margin-bottom: 0;
}

a.app-store {
  display: inline-block;
  line-height: 0;
}

a.app-store img,
.listing-intro a.app-store img,
article a.app-store img {
  display: block;
  width: 120px;
  height: 40px;
  margin: 0;
  border: none;
  border-radius: 0;
}

.listing-intro a.app-store {
  margin: 2px 0 4px;
}

.screenshot-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}

.screenshot-row a {
  flex: 1;
  min-width: 0;
}

.screenshot-row img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.screenshot-row a:hover img,
.screenshot-row a:focus-visible img {
  border-color: var(--blue);
}

.screenshot-row a:focus-visible {
  outline: none;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-list li {
  margin: 0;
}

.post-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.post-list a:hover,
.post-list a:focus-visible {
  background: var(--hover);
  outline: none;
}

.post-list time {
  flex: 0 0 auto;
  min-width: 6.75em;
  font-size: 0.95rem;
  color: var(--blue-dark);
  padding-top: 2px;
  white-space: nowrap;
}

.post-list span {
  flex: 1;
  min-width: 0;
  font-size: 1.15rem;
}

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

article h1 {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--text);
}

article time {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

article h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
  color: var(--text);
}

article > :last-child {
  margin-bottom: 0;
}

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

article img {
  display: block;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--text);
  background: var(--row);
  padding: 0.12em 0.35em;
  border-radius: 0.2em;
  overflow-wrap: break-word;
}

pre {
  margin: 1.25em 0;
  padding: 0.85em 1em;
  overflow-x: auto;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--text);
}

pre code {
  background: none;
  padding: 0;
  font-size: 1em;
  border-radius: 0;
  overflow-wrap: normal;
}

blockquote {
  margin: 1.25em 0;
  padding: 0.15em 0 0.15em 1em;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.app-footer p {
  margin: 0;
}

.app-footer .credit {
  justify-self: end;
  text-align: right;
}

.app-footer a {
  color: var(--blue);
  text-decoration: none;
}

.app-footer a:hover,
.app-footer a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 480px) {
  html,
  body {
    background: #e8edf2;
  }

  .app {
    box-shadow: 0 0 0 1px var(--line);
  }
}
