/* ============================================================
   LAYOUT
   Page structure, grid, spacing between sections
   ============================================================ */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 15px 80px;
}
@media (min-width: 1024px) {
  .wrap { padding: 48px 40px 120px; }
}

/* TOP BAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .topbar { margin-bottom: 60px; }
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* HERO */
.hero {
  margin-bottom: 40px;
  max-width: 880px;
  animation: fadeUp 600ms var(--ease) both;
}
@media (min-width: 1024px) {
  .hero { margin-bottom: 56px; }
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 1024px) {
  .row-2 { gap: 16px; }
}

/* FOOTER */
.site-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
@media (min-width: 640px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  font-size: 12px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-text); }
.footer-links span { color: var(--text-subtle); }

/* Kept for backward compatibility */
footer:not(.site-footer) {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
