/* ========================================
   ANKIT SHANKER — ACADEMIC SITE v3
   MOBILE-READY VERSION
   ======================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-muted: #767676;
  --paper: #ffffff;
  --paper-warm: #f7f7f7;
  --cream: #f0f0f0;
  --accent: #1a1a1a;
  --accent-soft: #3d3d3d;
  --accent-pale: #ebebeb;
  --rose: #d4d4d4;
  --sage: #c8c8c8;
  --gold: #b8b8b8;
  --line: #d4d4d4;
  --line-soft: #ebebeb;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', 'Source Sans 3', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --sidebar-width: 320px;
  --content-max: 720px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-grid,
.sidebar,
.main-content,
.skill-group,
.interest-card,
.pub-details,
.news-item,
.cv-detail,
.blog-post-card,
.blog-post-full,
.prose {
  min-width: 0;
}

.prose,
.pub-details,
.news-item p,
.cv-detail,
.blog-post-card,
.blog-post-full,
.sidebar-links a {
  overflow-wrap: break-word;
  word-break: normal;
}

/* ========================================
   ABSTRACT BANNER
   ======================================== */

.banner {
  position: relative;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #efe7d8 0%, #e8d5c4 35%, #d9a8a0 70%, #c8896b 100%);
  overflow: hidden;
}

.banner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   LAYOUT
   ======================================== */

.site-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  position: relative;
  align-self: start;
  margin-top: -30px;
  z-index: 60;
}

.sidebar-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(156, 90, 60, 0.1);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-md);
  background: var(--paper-warm);
}

.sidebar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}

.sidebar h1.sidebar-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.sidebar-role {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

.sidebar-divider {
  width: 30px;
  height: 1px;
  background: var(--line);
  margin: var(--space-md) 0;
}

.sidebar-affiliation {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.sidebar-affiliation strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: var(--space-md);
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s, padding 0.2s;
}

.sidebar-links a:hover {
  color: var(--accent);
  padding-left: 0.3rem;
}

.sidebar-links a svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Currently Reading widget */

.now-reading {
  margin-top: var(--space-lg);
  padding: var(--space-sm);
  background: var(--paper);
  border-radius: 6px;
  border-left: 3px solid var(--accent-soft);
}

.now-reading .label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.now-reading .book-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.now-reading .book-author {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-nav-wrap {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: 101;           /* ← ADD THIS */
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 2px;
}

.nav-toggle span:nth-child(2) {
  top: 10px;
}

.nav-toggle span:nth-child(3) {
  top: 18px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
  max-width: var(--content-max);
  width: 100%;
}

.content-section {
  margin-bottom: var(--space-xl);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.5rem;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1.5px;
  background: var(--accent);
}

.lede {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
  letter-spacing: -0.005em;
}

.prose p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
  line-height: 1.75;
}

.prose p strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-pale);
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

/* ========================================
   SKILLS / TOOLS
   ======================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.skill-group {
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.skill-group-header svg {
  flex-shrink: 0;
}

.skill-group-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  white-space: normal;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  background: var(--paper-warm);
  color: var(--ink-soft);
  border-radius: 50px;
  border: 1px solid var(--line-soft);
}

.skill-tag.proficient {
  background: var(--accent-pale);
  color: var(--accent);
  border-color: var(--accent-pale);
  font-weight: 500;
}

/* ========================================
   PUB LIST
   ======================================== */

.pub-list {
  display: flex;
  flex-direction: column;
}

.pub-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-soft);
}

.pub-item:first-child {
  padding-top: 0;
}

.pub-year {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  padding-top: 0.25rem;
}

.pub-details h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.pub-details h3 a {
  color: var(--ink);
}

.pub-details h3 a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.pub-journal {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.pub-links {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.pub-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--paper-warm);
}

/* ========================================
   RESEARCH INTERESTS / CARDS
   ======================================== */

.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.interest-card {
  padding: var(--space-md);
  background: var(--paper);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.interest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.interest-icon {
  color: var(--accent);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.interest-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.interest-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ========================================
   NEWS
   ======================================== */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: var(--space-md);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item time {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  padding-top: 0.15rem;
}

.news-item p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ========================================
   CV
   ======================================== */

.cv-entry {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-soft);
}

.cv-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding-top: 0.15rem;
}

.cv-detail h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.cv-detail p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.2rem;
}

/* ========================================
   BLOG
   ======================================== */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.blog-post-card {
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: all 0.2s;
}

.blog-post-card:hover {
  border-color: var(--accent-pale);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.blog-post-meta .tag {
  padding: 0.15rem 0.6rem;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-post-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.blog-post-card h2 a {
  color: inherit;
}

.blog-post-card h2 a:hover {
  color: var(--accent);
}

.blog-post-excerpt {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.blog-post-readmore {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* Single blog post layout */

.blog-post-full .blog-post-meta {
  margin-bottom: var(--space-sm);
}

.blog-post-full h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.blog-post-full .prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: var(--space-md) 0 0.5rem;
  color: var(--ink);
}

.blog-post-full .prose blockquote {
  border-left: 3px solid var(--accent-soft);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  margin-bottom: var(--space-sm);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  text-align: center;
}

.site-footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer .footer-links {
  margin-top: 0.5rem;
}

.site-footer .footer-links a {
  color: var(--ink-muted);
  margin: 0 0.7rem;
  font-size: 0.85rem;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  :root {
    --space-lg: 2.25rem;
    --space-xl: 3.5rem;
  }

  .banner {
    height: 120px;
  }

  .site-wrap {
    padding: 0 1.25rem;
  }

  .site-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
  }

  .sidebar {
    position: static;
    margin-top: -20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--line-soft);
  }

  .sidebar-photo {
    width: 180px;
    height: 180px;
    border-width: 5px;
    margin-bottom: var(--space-sm);
  }

  .sidebar h1.sidebar-name {
    font-size: 1.65rem;
  }

  .sidebar-role {
    font-size: 0.9rem;
    max-width: 320px;
  }

  .sidebar-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-links {
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }

  .sidebar-links a {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .now-reading {
    width: 100%;
    max-width: 340px;
    text-align: left;
    margin-top: var(--space-md);
  }

  .main-content {
    max-width: 100%;
  }

  .content-section {
    margin-bottom: 2.75rem;
  }

  h2.section-title {
    font-size: 1.55rem;
    margin-bottom: 1rem;
  }

  .lede {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .prose p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .interests-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-group,
  .interest-card,
  .blog-post-card {
    padding: 1rem;
  }

  .skill-group-header {
    align-items: flex-start;
  }

  .skill-group-header h3 {
    font-size: 1.05rem;
  }

  .skill-tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }

  .cv-entry,
  .news-item,
  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .pub-item,
  .cv-entry {
    padding: 0.9rem 0;
  }

  .pub-year,
  .cv-date,
  .news-item time {
    padding-top: 0;
    font-size: 0.78rem;
  }

  .pub-details h3,
  .cv-detail h3 {
    font-size: 1.15rem;
  }

  .news-item {
    padding: 0.75rem 0;
  }

  .news-item p {
    font-size: 0.92rem;
  }

  .blog-post-meta {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
  }

  .blog-post-card h2 {
    font-size: 1.4rem;
  }

  .blog-post-full h1 {
    font-size: 1.9rem;
  }

  .site-nav {
    position: relative;
    padding: 0.85rem 1.25rem;
  }

  .site-nav-brand {
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .site-footer {
    padding: 1.75rem 0;
  }

  .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
  }

  .site-footer .footer-links a {
    margin: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --space-sm: 0.85rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  html {
    font-size: 15.5px;
  }

  .banner {
    height: 165px;
  }

  .site-wrap {
    padding: 0 1rem;
  }

  .site-grid {
    padding-bottom: 2.5rem;
  }

  .sidebar {
    margin-top: -15px;
  }

  .sidebar-photo {
    width: 145px;
    height: 145px;
    border-width: 4px;
  }

  .sidebar h1.sidebar-name {
    font-size: 1.45rem;
  }

  .sidebar-role,
  .sidebar-affiliation {
    font-size: 0.84rem;
  }

  .sidebar-links {
    max-width: 100%;
  }

  .sidebar-links a {
    justify-content: flex-start;
    font-size: 0.86rem;
  }

  .now-reading {
    max-width: 100%;
  }

  h2.section-title {
    font-size: 1.4rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .prose p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .skill-group,
  .interest-card,
  .blog-post-card {
    border-radius: 7px;
  }

  .pub-links {
    gap: 0.35rem;
  }

  .pub-links a {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    min-height: 44px;
  }

  .blog-post-full h1 {
    font-size: 1.65rem;
  }

  .blog-post-full .prose h2 {
    font-size: 1.28rem;
  }
}

@media (max-width: 420px) {
  .banner {
    height: 150px;
  }

  .sidebar {
    margin-top: -10px;
  }

  .sidebar-photo {
    width: 132px;
    height: 132px;
  }

  .site-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-nav-brand {
    font-size: 0.95rem;
  }

  .nav-links {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h2.section-title {
    font-size: 1.32rem;
  }

  .lede {
    font-size: 1rem;
  }

  .blog-post-card h2 {
    font-size: 1.2rem;
  }

  .interest-card h3,
  .pub-details h3,
  .cv-detail h3 {
    font-size: 1.02rem;
  }

  .site-footer p,
  .site-footer .footer-links a {
    font-size: 0.8rem;
  }
}

/* ========================================
   ANIMATION
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar,
.main-content > * {
  animation: fadeIn 0.5s ease both;
}

.main-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.main-content > *:nth-child(2) {
  animation-delay: 0.15s;
}

.main-content > *:nth-child(3) {
  animation-delay: 0.25s;
}

.main-content > *:nth-child(4) {
  animation-delay: 0.35s;
}

.main-content > *:nth-child(5) {
  animation-delay: 0.45s;
}
