:root {
  --navy: #0A1128;
  --blue: #0066FF;
  --ink: #0A1128;
  --muted: #5A6275;
  --line: #E6E8EE;
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  background: var(--navy);
  color: #fff;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand img {
  width: 28px;
  height: 28px;
  display: block;
}
.brand span { font-size: 1.05rem; }

main { flex: 1; padding: 40px 0 64px; }
h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.lede {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.grid a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-shadow: 0 1px 2px rgba(10, 17, 40, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.grid a:hover,
.grid a:focus-visible {
  transform: translateY(-3px);
  border-color: #c9d4ee;
  box-shadow: 0 10px 24px rgba(10, 17, 40, 0.10);
  outline: none;
}
.thumb {
  aspect-ratio: 16 / 10;
  background: #dfe3ea;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease;
}
.grid a:hover .thumb img,
.grid a:focus-visible .thumb img {
  transform: scale(1.03);
}
.meta {
  padding: 14px 16px 16px;
}
.meta h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 550;
}
footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  main { padding: 28px 0 48px; }
}
