/* from https://fonts.googleapis.com — kept minimal, one face */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap");

:root {
  --bg: #fafaf8;
  --fg: #111;
  --muted: #6b6b6b;
  --line: #e8e6e1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 128px;
}

.header {
  margin-bottom: 72px;
}

.header h1 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--fg);
}

.header p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 32px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 200ms ease, transform 400ms cubic-bezier(.2,.7,.2,1);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1),
              filter 400ms ease;
}

.card:hover .thumb,
.card:focus-visible .thumb {
  border-color: #c9c6bf;
}

.card:hover .thumb img,
.card:focus-visible .thumb img {
  transform: scale(1.03);
}

.meta {
  margin-top: 16px;
}

.host {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 540px) {
  .page { padding: 64px 20px 96px; }
  .header { margin-bottom: 48px; }
  .grid { gap: 40px 20px; }
}
