/* ===== MAIN ===== */
main { animation: fadeUp .35s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION WRAPPER ===== */
.section { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.25rem; }
.section--text { max-width: var(--max-w-text); margin: 0 auto; padding: 3rem 1.25rem; }

/* ===== SECTION TITLE ===== */
.section-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subheading {
  font-family: "DM Mono", monospace;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* ===== RED RULE DIVIDER ===== */
.red-rule { width: 100%; height: 1px; background: var(--red); margin: 0; }
.red-rule-short { width: 60px; height: 2px; background: var(--red); margin-bottom: 1.25rem; }

/* ===== PAGE HEADER ===== */
.page-header { max-width: var(--max-w-text); margin: 0 auto; padding: 3rem 1.25rem 2rem; }

.page-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: .75rem;
}

.page-header .page-sub {
  font-family: "DM Mono", monospace;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}

/* ===== GENERIC CONTENT AREA ===== */
.content-wrap { max-width: var(--max-w-text); margin: 0 auto; padding: 0 1.25rem; }

.content-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 3rem 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--red);
}
.content-section-title:first-child { margin-top: 0; }

/* ===== NARRATIVE / REFLECTION ===== */
.narrative {
  background: rgba(130,155,215,0.07);
  border-left: 3px solid var(--blue);
  padding: 2rem 2.25rem;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
}
.narrative p + p { margin-top: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: rgba(8,8,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .section, .section--text { padding: 5rem 2rem; }
  .page-header { padding: 4rem 2rem 3rem; }
  .content-wrap,
  .timeline-wrap, .coursework-strip,
  .projects-grid, .skills-columns, .activities-list,
  .learning-list, .goals-list, .contact-layout,
  .links-row, .response-note, .bridge-cta { padding-left: 2rem; padding-right: 2rem; }

  .skills-columns { grid-template-columns: 1fr 1fr; }

  .now-card { padding: 3rem; }
  .learning-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
  .skills-columns { grid-template-columns: repeat(3, 1fr); }
}
