@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap");

:root {
  --bg: #fff6eb;
  --bg-elevated: #fffdf8;
  --ink: #1b2a4a;
  --muted: #5c6b86;
  --line: #f0d9c4;
  --coral: #ff5a5f;
  --teal: #1aa6a0;
  --gold: #f0b429;
  --accent: var(--coral);
  --accent-soft: #ffe3e4;
  --max: 42rem;
  --wide: 52rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 90, 95, 0.22) 0%, transparent 55%),
    radial-gradient(820px 480px at 92% 0%, rgba(26, 166, 160, 0.2) 0%, transparent 52%),
    radial-gradient(700px 420px at 70% 110%, rgba(240, 180, 41, 0.22) 0%, transparent 50%),
    var(--bg);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--gold) 45%, var(--line));
}

.site-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.site-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #e10600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-left > a {
  text-decoration: none;
}

a .site-brand,
a:hover .site-brand {
  color: #e10600;
  text-decoration: none;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  font-size: 0.85rem;
}

.social a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.social a:hover {
  color: var(--teal);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav a,
.nav [aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 3px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav [aria-current="page"] {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

main.wide {
  max-width: var(--wide);
}

h1,
h2,
h3,
h4 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.35rem;
  margin: 0 0 1rem;
}

.about-hero-text h1 {
  margin: 0;
}

.about-role {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
}

h4 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem 1.75rem;
  margin: 0 0 1.75rem;
}

.about-hero-text {
  flex: 1;
  min-width: 0;
}

.portrait {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.35rem;
  flex-shrink: 0;
  padding: 4px;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    conic-gradient(from 210deg, var(--coral), var(--gold), var(--teal), var(--coral)) border-box;
  border: 4px solid transparent;
  box-shadow: 0 10px 28px rgba(27, 42, 74, 0.12);
  animation: portrait-float 4s ease-in-out infinite;
}

@keyframes portrait-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait {
    animation: none;
  }

  .social a,
  .nav a,
  .nav [aria-current="page"],
  a {
    transition: none;
  }
}

.post-list,
.course-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.post-list li,
.course-list li {
  margin: 0 0 1rem;
  padding: 0.9rem 0;
  border-top: 2px solid color-mix(in srgb, var(--gold) 35%, var(--line));
}

.post-list li:last-child,
.course-list li:last-child {
  border-bottom: 2px solid color-mix(in srgb, var(--gold) 35%, var(--line));
}

.post-list a,
.course-list a {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.post-list a:hover,
.course-list a:hover {
  color: var(--coral);
}

.post-meta,
.course-code {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.course-blurb {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.35rem 0 1.5rem;
}

.offerings {
  list-style: none;
  padding: 0;
}

.offerings li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.65rem 0;
  border-top: 2px solid color-mix(in srgb, var(--teal) 25%, var(--line));
}

.offerings li:last-child {
  border-bottom: 2px solid color-mix(in srgb, var(--teal) 25%, var(--line));
}

.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
