/* Arimo — metric-compatible with Arial (OFL, see fonts/OFL.txt) */
@font-face {
  font-display: swap;
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/arimo-latin-400.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/arimo-latin-700.woff2') format('woff2');
}

:root {
  --highlight_color: rgba(204, 229, 255, 0.8);
}

body {
  font-family: 'Arimo', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #111;
}

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

.article {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.archive-error {
  grid-column: 1 / -1;
  color: #666;
  text-align: center;
  padding: 2rem;
}

.thumbnail {
  height: 200px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  padding: 20px;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #111;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 10px;
}

.date {
  font-size: 0.9rem;
  color: #999;
}

/*  HOVER & FOCUS */
.article:hover img {
  opacity: 0.8;
}

.article:hover,
.article:focus-visible {
  box-shadow: 0 0 1px 2px var(--highlight_color);
  outline: none;
}

.article:focus-visible {
  outline: 2px solid var(--highlight_color);
  outline-offset: 2px;
}
