/* Layout */
.home-page{
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 18px 0;
}

.home-title{
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 56px);
  letter-spacing: -0.02em;
}

/* Hero */
.hero.hero-centered{
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 18px 0;
  text-align: center;
}

.hero.hero-centered .hero-name{
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.hero.hero-centered .hero-subtitle{
  margin: 0 auto;
  /* max-width: 52ch; */
  line-height: 1.55;
}

.hero-subtitle-strong{
  font-size: 18px;
  color: var(--text);
}

.hero-subtitle-strong .accent{
  color: var(--accent);
  white-space: nowrap;
}

.hero-subtitle-small{
  margin-top: 12px !important;
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}

/* Buttons */
.home-page .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-page .btn:hover{
  background: var(--surfaceHover);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.home-page .btn-primary{
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.home-page .btn-quiet{
  color: var(--muted);
}

.section-divider{
  margin-top: 64px; /* tighter for home */
}

/* Shared section header */
.section-head{
  display: grid;
  gap: 6px;
  margin-top: 0;
}

.section-head-row{
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.section-title{
  margin: 0;
  font-size: 20px;
}

.section-note{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Hero header ===== */
.hero{
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 18px 0;
  text-align: left;
}

.hero-name{
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 56px);
  letter-spacing: -0.02em;
}

.hero-subtitle{
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.55;
}

.hero-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-links a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-links a:hover{
  border-bottom-color: var(--accent);
}

/* Featured cards (JSON injected) */
.row-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card{
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-align: left;
}

.card:hover{
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}

.card-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title{
  margin: 0;
  font-size: 18px;
}

.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3,208,208,0.08);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
  white-space: nowrap;
}

.card-desc{
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.tag-row{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  font-size: 12px;
  background: rgba(3,208,208,0.08);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
}

.actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Prevent purple visited links in cards */
.actions a:visited{
  color: inherit;
}

.what-i-do,
.skills{
  margin-top: 64px;
  text-align: center;
}

.what-i-do .section-subtitle,
.skills .section-subtitle{
  margin-top: 10px;
}

.focus-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.focus-card{
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
}

.focus-card h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.focus-card p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.skills-grid{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid span{
  font-size: 13px;
  background: rgba(3,208,208,0.08);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 8px 12px;
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 720px){
  .home-hero{ text-align: center; }
  .home-subtitle{ margin-inline: auto; }
  .home-cta{ justify-content: center; }

  .section-head-row{
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
