/* Layout and components shared by both themes. Colors come from the --tk-* tokens in light.scss / dark.scss. */

main.content { max-width: 760px; }

#title-block-header { margin-top: 1.5rem; margin-bottom: 0.9rem; }
#title-block-header .title { font-size: 2.6rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
#title-block-header .subtitle { font-size: 1.1rem; color: var(--tk-muted); font-family: inherit; line-height: 1.5; }
#title-block-header .description { display: none; }
.hero { margin: 0 0 1.5rem; }
.hero .hero-links a {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--tk-rule);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}
.hero .hero-links a:hover { border-color: currentColor; }

h2 { margin-top: 2.4rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--tk-rule); font-size: 1.45rem; }

.muted { color: var(--tk-muted); }

.project-card {
  background: var(--tk-card);
  border: 1px solid var(--tk-rule);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.grid .project-card { height: calc(100% - 1rem); }
.project-card h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.project-card p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.project-card .links a { font-size: 0.9rem; margin-right: 0.9rem; }

.tag {
  display: inline-block;
  background: var(--tk-tag-bg);
  color: var(--tk-tag-fg);
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  margin: 0 0.3rem 0.3rem 0;
  font-size: 0.78rem;
  font-weight: 500;
}

.entry { margin-bottom: 1.2rem; }
.entry .entry-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.entry .entry-title { font-weight: 600; }
.entry .entry-date { color: var(--tk-muted); font-size: 0.92rem; white-space: nowrap; }
.entry p { margin: 0.2rem 0 0; }

@media (max-width: 576px) {
  #title-block-header .title { font-size: 2.1rem; }
}
