/* Jacob Harrison — main page */

:root {
  --bg: #ffffff;
  --ink: #15171a;
  --muted: #626d79;
  --line: #e6e8eb;
  --soft: #f4f5f6;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.topbar-links a { text-decoration: none; }
.topbar-links a:hover { color: var(--muted); }
.topbar-links .pill {
  padding: 9px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}
.topbar-links .pill:hover { color: #fff; background: #33373d; }

/* ---------- Hero ---------- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 40px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero p {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 20px;
  color: var(--muted);
}

/* ---------- Catalog ---------- */
.catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 8px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--soft); }

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

.card {
  display: block;
  text-decoration: none;
}
.card[hidden] { display: none; }

.thumb {
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: 0 0 0 1px rgba(21, 23, 26, .06), 0 8px 24px -8px rgba(21, 23, 26, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.thumb svg { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; }
.card:hover .thumb {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(21, 23, 26, .06), 0 18px 36px -12px rgba(21, 23, 26, .28);
}

.meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}
.meta h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.meta p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.tag {
  flex: none;
  margin-top: 2px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.footer-links a { color: #aeb5bd; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer a:focus-visible { outline-color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .topbar { padding: 16px 20px; }
  .topbar-links { gap: 16px; font-size: 14px; }
  .topbar-links .pill { display: none; }
  .hero { padding: 48px 20px 32px; }
  .hero p { font-size: 18px; }
  .catalog { padding: 0 20px 72px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .thumb { transition: none; }
}
