/* =========================
   Layout / responsive sizing
   ========================= */

@media only screen and (min-width: 1025px) {
  body {
    margin: 60px auto;
    width: 800px;
    overflow: visible !important;
  }
}

@media only screen and (max-width: 1024px) {
  body {
    margin: 60px 60px;
    width: 405px;
    transform: scale(1.8);
    transform-origin: 0 0;
    -webkit-text-size-adjust: 100%;
    overflow: visible !important;
  }
}

/* =========================
   Global typography + colors
   ========================= */

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333; /* default dark grey text */
}

/* Links */
a {
  font-size: 18px;
  line-height: 1.4em;
  text-decoration: none;
  color: #14acd2; /* default dark grey */
}

a:hover,
#about.active,
#research.active,
#publications.active,
#contact.active {
  color: #573b68; /* dark blue on hover + active nav item */
}

/* Headings */
h1 {
  font-size: 40px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin-bottom: 10px;
  overflow: visible !important;
}

h2 {
  font-size: 22px;
  line-height: 1.2em;
  font-weight: bold;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  margin-bottom: 8px;
  margin-top: 0px;
  overflow: visible !important;
}

/* Paragraphs */
p {
  font-size: 18px;
  line-height: 1.5em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  margin-bottom: 1em;
  margin-top: 0px;
  overflow: visible !important;
}

/* Superscripts */
sup {
  vertical-align: top;
  position: relative;
  top: -0.25em;
}

/* Ordered lists */
ol {
  font-size: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  margin-bottom: 6px;
  margin-top: 0px;
  overflow: visible !important;
}

ol p {
  font-size: 18px;
  line-height: 1.5em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333333;
  margin-bottom: 6px;
  margin-top: 0px;
  overflow: visible !important;
}

/* Drop cap */
.drop-cap::first-letter {
  font-size: 3em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  float: left;
  margin-right: 8px;
  margin-bottom: -0.2em;
  margin-top: 0;
  line-height: 1;
}

/* Inline code */
code {
  font-family: "Courier New", Courier, monospace;
  font-style: normal;
  background-color: #f4f4f4;
  color: #7e4242;
  padding: 1px 2px;
  border-radius: 3px;
  font-size: 0.9em;
  vertical-align: 0.05em;
}

/* =========================
   Navigation
   ========================= */

nav ul {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0px;
  list-style: none;
  margin-top: 0px;
  margin-bottom: 30px;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

/* =========================
   Publication / note links
   ========================= */

.note-link {
  background-color: #f4f4f4;
  color: #333333;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.9em;
  vertical-align: 0.05em;
  text-decoration: none;
  margin-left: 0.5em;
}

.note-link:hover {
  text-decoration: none;
  background-color: #fef2f1;
  color: #0a575a;
}

/* =========================
   Rules / footnotes
   ========================= */

hr {
  border: none;
  height: 1px;
  color: #333333;
  background-color: #333333;
}

.footnote {
  font-size: 0.95em;
  margin-bottom: 1.4em;
}

/* =========================
   GitHub link block
   ========================= */

.github-link p {
  color: #777777;
  font-size: 0.95em;
}

.github-link a {
  color: #777777;
  font-size: 0.95em;
  font-family: "Courier New", Courier, monospace;
}

.github-link a:hover {
  color: #16416f;
}

/* =========================
   Figures
   ========================= */

.figure-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.4em;
  text-align: left;
}

.figure-container img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.legend {
  font-size: 0.95em;
  max-width: 480px;
}

@media screen and (min-width: 1024px) {
  .figure-container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .figure-container .figure {
    flex: 1;
    text-align: left;
  }

  .figure-container .legend {
    flex: 1;
    max-width: 400px;
  }

  .legend {
    margin-top: 1em;
  }
}

/* =========================
   Footer links (if used)
   ========================= */

a.footer {
  font-size: 20px;
  line-height: 1.4em;
  text-decoration: none;
  color: #333333;
}

a.footer:hover {
  color: #16416f;
}

/* =========================
   GitHub link block
   ========================= */

.github-link p {
  color: #777777;
  font-size: 0.95em;
}

.github-link a {
  color: #322e2e;
  font-size: 0.95em;
  font-family: "Courier New", Courier, monospace;
}

.github-link a:hover {
  color: #499292;
}

/* =========================
   Figures
   ========================= */

.figure-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.4em;
  text-align: left;
}

.figure-container img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.legend {
  font-size: 0.95em;
  max-width: 480px;
}

@media screen and (min-width: 1024px) {
  .figure-container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .figure-container .figure {
    flex: 1;
    text-align: left;
  }

  .figure-container .legend {
    flex: 1;
    max-width: 400px;
  }

  .legend {
    margin-top: 1em;
  }
}

/* =========================
   Footer links (if used)
   ========================= */

a.footer {
  font-size: 20px;
  line-height: 1.4em;
  text-decoration: none;
  color: #ffffff;
}

a.footer:hover {
  color: #e2e5e7;
}




/* Social icons horizontal layout */
.social-row {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}

.social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.15s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.content-image {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}




/* Notes / Talks cards */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* Default card */
.note-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Square cards */
.note-card.square .note-thumb {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Wide cards (full row) */
.note-card.wide {
  grid-column: 1 / -1;
}

.note-card.wide .note-thumb {
  aspect-ratio: 16 / 6;
  object-fit: cover;
}


/* Standard thumbnail fallback */
.note-thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
}

.note-caption {
  margin-top: 10px;
}

.note-title {
  font-size: 18px;
  font-weight: 600;
}

.note-sub {
  font-size: 15px;
  color: #555;
  margin-top: 4px;
}


.note-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

/* Text-only card */
.note-card.text {
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: #fafafa;
}

.note-card.text .note-title {
  font-size: 18px;
}

.note-card.text .note-sub {
  margin-top: 6px;
  color: #666;
}




/* About page side-by-side layout */

.about-flex {
  display: flex;
  flex-direction: row-reverse;  /* puts image on the right */
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}


.about-image img {
  width: 260px;
  height: auto;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
  }

  .about-image img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}
