/* Homepage-only styles. Tokens, base, grain, brand, theme switcher and footer come
   from /blog/blog.css; this adds the hero and the section blocks. */

.home { max-width: 860px; }

.site { padding-bottom: clamp(32px, 8vw, 72px); }

.hero { margin-bottom: clamp(32px, 6vw, 56px); }
.hero__title {
  font-size: clamp(3rem, 13vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 62%, var(--bg)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tag {
  margin-top: 18px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
}

.blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 620px) { .blocks { grid-template-columns: 1fr; } }

.block {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-grad), transparent 55%), var(--bg-card);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.block:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.block:hover::after { opacity: 1; }

.block__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.block__kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.block__arrow {
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.block:hover .block__arrow { transform: translate(4px, -4px); color: var(--accent); }

.block__title {
  margin-top: auto;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.block__desc { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.block__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--faint);
}
