/* ==========================================================================
   layout.css — page container, header, sections, footer
   ========================================================================== */

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  animation: fadeInUp 0.6s ease-out;
}

/* Header ----------------------------------------------------------------- */
.header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Animate the gradient's colour stops with the theme. */
  transition: color var(--theme-duration) var(--theme-easing);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  transition: color var(--theme-duration) var(--theme-easing);
}

/* Sections --------------------------------------------------------------- */
.section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out backwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-left: 0.125rem;
  transition: color var(--theme-duration) var(--theme-easing);
}

/* Grids ------------------------------------------------------------------ */
.links-grid {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer ----------------------------------------------------------------- */
.footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition:
    color var(--theme-duration) var(--theme-easing),
    border-color var(--theme-duration) var(--theme-easing);
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}
