:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --line: #9c9c9c;
  --card-bg: #ffffff;
  --max-width: 900px;
  --gap: 14px;
  --tile-height: 360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar a {
  text-transform: uppercase;
}

.topbar a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar .clock {
  white-space: nowrap;
}

.page {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 160px auto 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.tile {
  border: 1px solid var(--line);
  background: var(--card-bg);
  padding: 10px;

  display: flex;
  flex-direction: column;
}

.tile__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #ddd;
}

.tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 0px;
  min-height: 40px;
}

.tile__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.tile__date {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.tile__link {
  font-size: 11px;
  text-transform: lowercase;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .page {
    margin-top: 110px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .page {
    width: min(calc(100% - 24px), var(--max-width));
    margin-top: 72px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
