/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0; }

/**
 * Basic styling
 */
body {
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column; }

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px; }

/**
 * `main` element
 */
main {
  display: block;
  /* Default value of `display` of `main` element is 'inline' in IE 11. */ }

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle; }

/**
 * Figures
 */
figure > img {
  display: block; }

figcaption {
  font-size: 14px; }

/**
 * Lists
 */
ul, ol {
  margin-left: 30px; }

li > ul,
li > ol {
  margin-bottom: 0; }

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400; }

/**
 * Links
 */
a {
  color: #2a7ae2;
  text-decoration: none; }
  a:visited {
    color: #1756a9; }
  a:hover {
    color: #111;
    text-decoration: underline; }
  .social-media-list a:hover {
    text-decoration: none; }
    .social-media-list a:hover .username {
      text-decoration: underline; }

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic; }
  blockquote > :last-child {
    margin-bottom: 0; }

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef; }

code {
  padding: 1px 5px; }

pre {
  padding: 8px 12px;
  overflow-x: auto; }
  pre > code {
    border: 0;
    padding-right: 0;
    padding-left: 0; }

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(800px - (30px * 2));
  max-width: calc(800px - (30px * 2));
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px; }
  @media screen and (max-width: 800px) {
    .wrapper {
      max-width: -webkit-calc(800px - (30px));
      max-width: calc(800px - (30px));
      padding-right: 15px;
      padding-left: 15px; } }

/**
 * Clearfix
 */
.wrapper:after, .footer-col-wrapper:after {
  content: "";
  display: table;
  clear: both; }

/**
 * Icons
 */
.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: #828282;
  padding-right: 5px;
  vertical-align: text-top; }

.social-media-list li + li {
  padding-top: 5px; }

/**
 * Tables
 */
table {
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  color: #3f3f3f;
  border-collapse: collapse;
  border: 1px solid #e8e8e8; }
  table tr:nth-child(even) {
    background-color: #f7f7f7; }
  table th, table td {
    padding: 9.999999999px 15px; }
  table th {
    background-color: #f0f0f0;
    border: 1px solid #dedede;
    border-bottom-color: #c9c9c9; }
  table td {
    border: 1px solid #e8e8e8; }

/**
 * Site header
 */
.site-header {
  border-top: 5px solid #424242;
  border-bottom: 1px solid #e8e8e8;
  min-height: 55.95px;
  position: relative; }

.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left; }
  .site-title, .site-title:visited {
    color: #424242; }

.site-nav {
  float: right;
  line-height: 54px; }
  .site-nav .nav-trigger {
    display: none; }
  .site-nav .menu-icon {
    display: none; }
  .site-nav .page-link {
    color: #111;
    line-height: 1.5; }
    .site-nav .page-link:not(:last-child) {
      margin-right: 20px; }
  @media screen and (max-width: 600px) {
    .site-nav {
      position: absolute;
      top: 9px;
      right: 15px;
      background-color: #fdfdfd;
      border: 1px solid #e8e8e8;
      border-radius: 5px;
      text-align: right; }
      .site-nav label[for="nav-trigger"] {
        display: block;
        float: right;
        width: 36px;
        height: 36px;
        z-index: 2;
        cursor: pointer; }
      .site-nav .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center; }
        .site-nav .menu-icon > svg {
          fill: #424242; }
      .site-nav input ~ .trigger {
        clear: both;
        display: none; }
      .site-nav input:checked ~ .trigger {
        display: block;
        padding-bottom: 5px; }
      .site-nav .page-link {
        display: block;
        margin-left: 20px;
        padding: 5px 10px; }
        .site-nav .page-link:not(:last-child) {
          margin-right: 0; } }

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0; }

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px; }

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0; }

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-left: -15px; }

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px; }

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - (30px / 2)); }

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - (30px / 2)); }

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - (30px / 2)); }

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - (30px / 2)); }

  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2)); } }
@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - (30px / 2)); } }
/**
 * Page content
 */
.page-content {
  padding: 30px 0;
  flex: 1; }

.page-heading {
  font-size: 32px; }

.post-list-heading {
  font-size: 28px; }

.post-list {
  margin-left: 0;
  list-style: none; }
  .post-list > li {
    margin-bottom: 30px; }

.post-meta {
  font-size: 14px;
  color: #828282; }

.post-link {
  display: block;
  font-size: 24px; }

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px; }

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1; }
  @media screen and (max-width: 800px) {
    .post-title {
      font-size: 36px; } }

.post-content {
  margin-bottom: 30px; }
  .post-content h2 {
    font-size: 32px; }
    @media screen and (max-width: 800px) {
      .post-content h2 {
        font-size: 28px; } }
  .post-content h3 {
    font-size: 26px; }
    @media screen and (max-width: 800px) {
      .post-content h3 {
        font-size: 22px; } }
  .post-content h4 {
    font-size: 20px; }
    @media screen and (max-width: 800px) {
      .post-content h4 {
        font-size: 18px; } }

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff; }
  .highlighter-rouge .highlight {
    background: #eef; }
  .highlight .c {
    color: #998;
    font-style: italic; }
  .highlight .err {
    color: #a61717;
    background-color: #e3d2d2; }
  .highlight .k {
    font-weight: bold; }
  .highlight .o {
    font-weight: bold; }
  .highlight .cm {
    color: #998;
    font-style: italic; }
  .highlight .cp {
    color: #999;
    font-weight: bold; }
  .highlight .c1 {
    color: #998;
    font-style: italic; }
  .highlight .cs {
    color: #999;
    font-weight: bold;
    font-style: italic; }
  .highlight .gd {
    color: #000;
    background-color: #fdd; }
  .highlight .gd .x {
    color: #000;
    background-color: #faa; }
  .highlight .ge {
    font-style: italic; }
  .highlight .gr {
    color: #a00; }
  .highlight .gh {
    color: #999; }
  .highlight .gi {
    color: #000;
    background-color: #dfd; }
  .highlight .gi .x {
    color: #000;
    background-color: #afa; }
  .highlight .go {
    color: #888; }
  .highlight .gp {
    color: #555; }
  .highlight .gs {
    font-weight: bold; }
  .highlight .gu {
    color: #aaa; }
  .highlight .gt {
    color: #a00; }
  .highlight .kc {
    font-weight: bold; }
  .highlight .kd {
    font-weight: bold; }
  .highlight .kp {
    font-weight: bold; }
  .highlight .kr {
    font-weight: bold; }
  .highlight .kt {
    color: #458;
    font-weight: bold; }
  .highlight .m {
    color: #099; }
  .highlight .s {
    color: #d14; }
  .highlight .na {
    color: #008080; }
  .highlight .nb {
    color: #0086B3; }
  .highlight .nc {
    color: #458;
    font-weight: bold; }
  .highlight .no {
    color: #008080; }
  .highlight .ni {
    color: #800080; }
  .highlight .ne {
    color: #900;
    font-weight: bold; }
  .highlight .nf {
    color: #900;
    font-weight: bold; }
  .highlight .nn {
    color: #555; }
  .highlight .nt {
    color: #000080; }
  .highlight .nv {
    color: #008080; }
  .highlight .ow {
    font-weight: bold; }
  .highlight .w {
    color: #bbb; }
  .highlight .mf {
    color: #099; }
  .highlight .mh {
    color: #099; }
  .highlight .mi {
    color: #099; }
  .highlight .mo {
    color: #099; }
  .highlight .sb {
    color: #d14; }
  .highlight .sc {
    color: #d14; }
  .highlight .sd {
    color: #d14; }
  .highlight .s2 {
    color: #d14; }
  .highlight .se {
    color: #d14; }
  .highlight .sh {
    color: #d14; }
  .highlight .si {
    color: #d14; }
  .highlight .sx {
    color: #d14; }
  .highlight .sr {
    color: #009926; }
  .highlight .s1 {
    color: #d14; }
  .highlight .ss {
    color: #990073; }
  .highlight .bp {
    color: #999; }
  .highlight .vc {
    color: #008080; }
  .highlight .vg {
    color: #008080; }
  .highlight .vi {
    color: #008080; }
  .highlight .il {
    color: #099; }

:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f4fa;
  --color-border: #d9e2ec;
  --color-border-strong: #b9c6d4;
  --color-text: #23303f;
  --color-text-subtle: #55657a;
  --color-accent: #1e5abf;
  --color-accent-hover: #154b9f;
  --color-accent-soft: #e4effd;
  --color-accent-outline: rgba(30,90,191,.55);
  --color-link: #154b9f;
  --color-link-hover: #0d3f8d;
  --color-badge-bg: #eef2f7;
  --color-badge-text: #2d3e55;
  --color-chip-bg: #ffffff;
  --color-chip-border: #d6e0ea;
  --color-chip-text: #2f3b46;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08); }

:root[data-theme='dark'] {
  --color-bg: #0e1419;
  /* slightly deeper but neutral */
  --color-surface: #182129;
  /* primary card surface */
  --color-surface-alt: #1f2a33;
  /* alt surface */
  --color-border: #2b3945;
  /* soft border */
  --color-border-strong: #3a4a57;
  /* stronger divider */
  --color-text: #e6edf3;
  /* primary text */
  --color-text-subtle: #9fb1c0;
  /* secondary text */
  --color-accent: #4da2ff;
  /* accent (links, focus) */
  --color-accent-hover: #76bbff;
  /* accent hover */
  --color-accent-soft: rgba(77,162,255,.18);
  /* subtle accent bg */
  --color-accent-outline: rgba(77,162,255,.55);
  --color-link: #67b6ff;
  --color-link-hover: #98ceff;
  --color-badge-bg: #24313b;
  --color-badge-text: #d7e2ea;
  --color-chip-bg: #1d2730;
  --color-chip-border: #304253;
  --color-chip-text: #d3dbe2;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.55);
  --shadow-md: 0 4px 16px rgba(0,0,0,.6); }

body {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background-color .35s ease, color .35s ease; }

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, var(--color-surface) 65%, rgba(255, 255, 255, 0)); }

.site-header:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-border);
  opacity: .9; }

.shrink {
  --h-pad: 10px; }

.site-header.is-shrunk {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }

.site-header.is-shrunk .site-title {
  font-size: 1.45em;
  transition: font-size .25s ease; }

.theme-toggle-wrapper {
  display: inline-block !important; }

#theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  margin: 0;
  position: relative;
  top: -10px;
  /* nudge upward */ }

.info-card, .project-item, .publication-item, .btn, .chip, .badge-list li, .framed, .site-header {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease; }

.site-title {
  font-size: 2em;
  font-weight: bold; }

.site-nav {
  float: right;
  line-height: 56px; }
  .site-nav .nav-trigger {
    display: none; }
  .site-nav .menu-icon {
    display: none; }
  .site-nav .page-link {
    color: var(--color-text);
    text-decoration: none; }
    .site-nav .page-link:hover {
      text-decoration: underline;
      color: var(--color-accent-hover); }
  @media screen and (max-width: 600px) {
    .site-nav {
      position: absolute;
      top: 9px;
      right: 15px;
      background-color: transparent;
      border: none;
      border-radius: 0;
      text-align: right; }
      .site-nav .nav-trigger {
        display: block;
        position: absolute;
        top: 4px;
        right: 4px;
        width: 40px;
        height: 40px;
        opacity: 0;
        z-index: 3;
        cursor: pointer; }
      .site-nav label[for="nav-trigger"] {
        display: block;
        float: right;
        width: 40px;
        height: 40px;
        z-index: 2;
        cursor: pointer;
        position: relative; }
      .site-nav .menu-icon {
        display: block;
        width: 22px;
        height: 18px;
        margin: 11px 9px 0;
        fill: var(--color-text); }
      .site-nav #nav-trigger:not(:checked) ~ .nav-links {
        display: none; }
      .site-nav #nav-trigger:checked ~ .nav-links {
        display: flex; }
      .site-nav .theme-toggle-wrapper {
        align-self: flex-end; } }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem; }

.hero-centered {
  align-items: center; }

.hero-centered .hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center; }

.hero-centered .hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; }

@media (max-width: 940px) {
  .hero-centered {
    text-align: center; }

  .hero-centered .hero-main {
    align-items: center; } }
.hero-main {
  max-width: 760px; }

.name {
  font-size: inherit; }

.tagline {
  font-size: inherit;
  color: var(--color-text-subtle); }

.summary {
  font-size: inherit; }

.availability {
  font-size: inherit;
  background: var(--color-accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600; }

.hero-aside {
  text-align: center; }

.hero-aside .profile-pic img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  background: var(--color-surface); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0; }

.chip {
  background: var(--color-chip-bg);
  border: 1px solid var(--color-chip-border);
  padding: .35rem .65rem;
  font-size: .72rem;
  letter-spacing: .3px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--color-chip-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  line-height: 1.2; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem; }

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.05rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden; }

.info-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 110% -10%, rgba(99, 132, 255, 0.08), transparent 60%);
  pointer-events: none; }

.section-title {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: .9rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem; }

.edu-logo {
  height: 34px;
  width: auto;
  vertical-align: middle;
  opacity: .9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)); }

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0; }

.edu-item strong {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .15px; }

.edu-item.edu-role strong {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .15px; }

.edu-item .subtle {
  display: block;
  font-size: .7rem;
  margin-top: 2px; }

.edu-item {
  line-height: 1.25; }

.edu-item strong {
  display: inline-block; }

/* Education typography - updated larger primary font */
.edu-item {
  line-height: 1.3; }

/* Primary institution entries */
.edu-item strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.25; }

/* Role / activity entries */
.edu-item.edu-role strong {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .15px; }

/* Meta line */
.edu-item .subtle {
  display: block;
  font-size: .72rem;
  margin-top: 3px; }

/* Remove unsupported selector heuristic (previous :matches / :contains) */
/* (Old heuristic removed) */
.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem; }

.badge-list li {
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  padding: .4rem .6rem;
  border-radius: 6px;
  font-size: clamp(0.63rem, calc(.55rem + .3vw), 0.72rem);
  font-weight: 600;
  letter-spacing: .4px;
  line-height: 1.2;
  border: 1px solid var(--color-border); }

.post-list.compact {
  margin: 0; }

.post-list.compact li {
  margin-bottom: .4rem; }

.post-list.compact .post-meta {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .45px;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin: 0 0 2px;
  display: block;
  line-height: 1.1; }

.post-list.compact .post-link {
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-link);
  display: inline-block; }

.post-list.compact .post-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline; }

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem; }

.btn {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: background .18s, box-shadow .18s, transform .18s, color .18s; }

.btn:hover {
  background: var(--color-accent-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: var(--color-accent-hover); }

.btn:active {
  transform: translateY(1px); }

.btn {
  -webkit-font-smoothing: antialiased; }

.social-links li {
  font-size: .75rem; }

.social-links .svg-icon {
  width: 18px;
  height: 18px; }

.profile, .education-container {
  display: none; }

/* === Education Typography Overrides (edit values below to experiment) === */
:root {
  --edu-logo-size: 50px;
  /* change logo size */
  --edu-font-main: 1.20rem;
  /* main institution font size */
  --edu-font-role: 1.1rem;
  /* role (Mess Secretary / Senior Editor) size */
  --edu-font-meta: 0.74rem;
  /* meta line (degree/year) size */ }

.edu-logo {
  height: var(--edu-logo-size); }

.edu-item strong {
  font-size: var(--edu-font-main); }

.edu-item.edu-role strong {
  font-size: var(--edu-font-role); }

.edu-item .subtle {
  font-size: var(--edu-font-meta); }

/* === End Education Typography Overrides === */
.heading-xl {
  font-size: clamp(2.15rem, 4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.5px; }

.heading-lg {
  font-size: 1.55rem;
  font-weight: 600; }

.heading-md {
  font-size: 1.25rem;
  font-weight: 600; }

.heading-sm {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4; }

.body-lg {
  font-size: 1.0rem; }

.body-sm {
  font-size: .85rem;
  color: var(--color-text-subtle); }

.framed {
  background: var(--color-surface);
  padding: .85rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0; }

.framed img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block; }

.project-list, .publication-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem; }

.project-item, .publication-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.05rem .9rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .25s; }

.project-item:before, .publication-item:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(120, 162, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none; }

.project-item:hover, .publication-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--color-border-strong); }

.project-item:hover:before, .publication-item:hover:before {
  opacity: 1; }

.project-item h3, .publication-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  line-height: 1.3; }

.project-item p, .publication-item p {
  font-size: .85rem;
  margin: .4rem 0 .6rem;
  line-height: 1.5;
  color: var(--color-text-subtle); }

.project-item a, .publication-item a {
  font-weight: 600;
  font-size: .8rem;
  color: var(--color-link); }

.project-item a:hover, .publication-item a:hover {
  color: var(--color-accent-hover); }

.project-item, .publication-item {
  position: relative; }

.project-item a:first-of-type, .publication-item a:first-of-type {
  position: relative;
  z-index: 2; }

/* Stack tag badges */
.stack-tags {
  list-style: none;
  margin: .35rem 0 .55rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  position: relative;
  z-index: 2; }

.stack-tags li {
  margin: 0;
  padding: 0; }

.tag-badge {
  display: inline-block;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: .35rem .55rem .33rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  text-decoration: none;
  line-height: 1;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }

.tag-badge:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border-color: var(--color-border-strong); }

.tag-badge.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

:root[data-theme='dark'] .tag-badge {
  background: #24313b;
  border-color: #304253;
  color: var(--color-badge-text); }

:root[data-theme='dark'] .tag-badge:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border-color: var(--color-accent); }

:root[data-theme='dark'] .tag-badge.is-active {
  background: var(--color-accent);
  color: #0e1419; }

/* Slight larger font on very small screens for legibility */
@media (max-width: 600px) {
  .tag-badge {
    font-size: .6rem; } }
/* Focus outline custom
:focus-visible { outline: 3px solid var(--color-accent-outline); outline-offset: 2px; border-radius: 4px; }

/* Responsive tweaks
@media (max-width:600px){ .project-list, .publication-list { grid-template-columns: 1fr; } }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; } .hero-aside { order: -1; } .hero-main { max-width: 100%; } .hero-aside .profile-pic img { width: 150px; height: 150px; } }
@media (max-width: 600px) { .name { font-size: 2.05rem; } .tagline { font-size: .95rem; } .summary { font-size: .95rem; } .info-grid { grid-template-columns: 1fr; } .badge-list li { font-size: .63rem; } }

/* Education card layout adjustments */
.edu-card {
  position: relative;
  padding-top: 1.2rem; }

.edu-card .section-title {
  margin-right: 60px; }

.edu-card > .edu-logo {
  position: absolute;
  top: .4rem;
  right: 1rem;
  height: var(--edu-logo-size);
  width: auto; }

.edu-list {
  margin-top: .25rem; }

.edu-item {
  padding: .4rem 0 .55rem;
  border-bottom: 1px solid var(--color-border); }

.edu-item:last-child {
  border-bottom: 0; }

.edu-item strong {
  display: block; }

.edu-item .subtle {
  margin-top: 2px; }

/* Increase vertical rhythm for education items */
.edu-item strong {
  line-height: 1.25; }

.edu-item.edu-role strong {
  line-height: 1.2; }

/* Slightly increase spacing between education card and adjacent card on small screens */
@media (max-width: 700px) {
  .info-grid {
    gap: 2rem; } }
/* Social icon row under profile picture (horizontal) */
.icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  list-style: none;
  padding: 0;
  margin: .85rem 0 0; }

.icon-row li {
  margin: 0;
  padding: 0;
  line-height: 0; }

.icon-row img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform .18s, box-shadow .18s, background .18s; }

.icon-row img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }

.icon-row a:focus-visible img {
  outline: 3px solid var(--color-accent-outline);
  outline-offset: 3px; }

/* ===== Refined Dark Mode Palette (Comfort Tweaks) ===== */
:root[data-theme='dark'] {
  --color-bg: #0e1419;
  /* slightly deeper but neutral */
  --color-surface: #182129;
  /* primary card surface */
  --color-surface-alt: #1f2a33;
  /* alt surface */
  --color-border: #2b3945;
  /* soft border */
  --color-border-strong: #3a4a57;
  /* stronger divider */
  --color-text: #e6edf3;
  /* primary text */
  --color-text-subtle: #9fb1c0;
  /* secondary text */
  --color-accent: #4da2ff;
  /* accent (links, focus) */
  --color-accent-hover: #76bbff;
  /* accent hover */
  --color-accent-soft: rgba(77,162,255,.18);
  /* subtle accent bg */
  --color-accent-outline: rgba(77,162,255,.55);
  --color-link: #67b6ff;
  --color-link-hover: #98ceff;
  --color-badge-bg: #24313b;
  --color-badge-text: #d7e2ea;
  --color-chip-bg: #1d2730;
  --color-chip-border: #304253;
  --color-chip-text: #d3dbe2;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.55);
  --shadow-md: 0 4px 16px rgba(0,0,0,.6); }

/* Dark mode surface refinements */
:root[data-theme='dark'] body {
  background: radial-gradient(circle at 30% 10%, #121b23 0%, #0e1419 55%); }

:root[data-theme='dark'] .info-card,
:root[data-theme='dark'] .project-item,
:root[data-theme='dark'] .publication-item,
:root[data-theme='dark'] .post-list li,
:root[data-theme='dark'] .framed,
:root[data-theme='dark'] .btn {
  background: linear-gradient(180deg, #1b252e, #182129); }

:root[data-theme='dark'] .info-card:before,
:root[data-theme='dark'] .project-item:before,
:root[data-theme='dark'] .publication-item:before {
  background: linear-gradient(135deg, rgba(90, 150, 255, 0.12), transparent 65%); }

:root[data-theme='dark'] .site-header {
  background: rgba(24, 33, 41, 0.92); }

:root[data-theme='dark'] .badge-list li {
  background: #24313b;
  border-color: #304253; }

:root[data-theme='dark'] .chip {
  background: var(--color-chip-bg);
  border-color: var(--color-chip-border); }

:root[data-theme='dark'] #theme-toggle {
  background: #22303a;
  border-color: #2f3d48; }

:root[data-theme='dark'] #theme-toggle[aria-pressed='true'] {
  background: var(--color-accent); }

/* Subtle elevated hover in dark for cards */
:root[data-theme='dark'] .project-item:hover,
:root[data-theme='dark'] .publication-item:hover,
:root[data-theme='dark'] .info-card:hover {
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.7); }

/* ===== Footer Layout & Alignment ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 2.4rem;
  font-size: .75rem;
  color: var(--color-text-subtle); }

.site-footer a {
  color: var(--color-link);
  text-decoration: none; }

.site-footer a:hover {
  color: var(--color-link-hover);
  text-decoration: underline; }

.footer-col-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start; }

.footer-col {
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; }

.site-footer .icon-row {
  justify-content: flex-end;
  margin-top: .5rem; }

.site-footer .footer-col:first-child {
  max-width: 420px; }

.site-footer .footer-meta-block {
  display: flex;
  flex-direction: column;
  gap: .3rem; }

@media (max-width: 900px) {
  .footer-col-wrapper {
    align-items: stretch; } }
@media (max-width: 700px) {
  .site-footer .footer-col-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center; }

  .site-footer .icon-row {
    justify-content: center; }

  .footer-col {
    align-items: center; } }
:root[data-theme='dark'] .site-footer {
  background: var(--color-surface-alt); }

/* Smaller visual weight for build line */
.site-footer p {
  margin: .35rem 0; }

/* ===== Active Nav & Toggle Refinements ===== */
.site-nav .page-link.active {
  color: var(--color-accent);
  font-weight: 600; }

#theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.05rem; }

#theme-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }

/* Adjust vertical alignment of theme toggle to sit level with nav text */
.site-nav .theme-toggle-wrapper {
  display: flex;
  align-items: center; }

#theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  margin: 0;
  position: relative;
  top: 7.5px;
  /* nudge upward */ }

@media (max-width: 600px) {
  #theme-toggle {
    top: 0; } }
/* ===== Optional Reduced Motion Consideration ===== */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important; } }
/* Experience card styles */
.exp-card .exp-list {
  list-style: none;
  margin: 0;
  padding: 0; }

.exp-card .exp-item {
  padding: .55rem 0 .7rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.25; }

.exp-card .exp-item:last-child {
  border-bottom: 0; }

.exp-card .exp-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 2px; }

.exp-card .exp-item .role {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-text-subtle); }

.exp-card .exp-item .meta {
  display: block;
  font-size: .68rem;
  margin-top: 2px;
  color: var(--color-text-subtle);
  font-weight: 500;
  letter-spacing: .4px; }

.exp-card .exp-item .desc {
  display: block;
  font-size: .72rem;
  margin-top: 4px;
  color: var(--color-text-subtle);
  line-height: 1.35; }

:root[data-theme='dark'] .exp-card .exp-item strong {
  color: var(--color-text); }

/* Horizontal Experience Card Styles */
.exp-row {
  margin: 2.2rem 0 0; }

.exp-card.exp-horizontal {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.1rem;
  box-sizing: border-box; }

.exp-list-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0; }

.exp-item-horizontal {
  flex: 1 1 100%;
  min-width: 260px;
  max-width: 100%;
  border-right: none;
  padding-right: 0;
  margin-bottom: 0; }

.exp-item-horizontal:last-child {
  border-right: none;
  padding-right: 0; }

.exp-item-horizontal strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .18px;
  margin-bottom: 2px; }

.exp-item-horizontal .role {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-text-subtle);
  margin-bottom: 2px; }

.exp-item-horizontal .meta {
  display: block;
  font-size: .7rem;
  margin-top: 2px;
  color: var(--color-text-subtle);
  font-weight: 500;
  letter-spacing: .4px; }

.exp-item-horizontal .desc {
  display: block;
  font-size: .74rem;
  margin-top: 4px;
  color: var(--color-text-subtle);
  line-height: 1.35; }

/* New bullet list styling inside horizontal experience items */
.exp-item-horizontal .exp-points {
  list-style: disc;
  margin: .45rem 0 0 1.05rem;
  padding: 0;
  font-size: .73rem;
  line-height: 1.35;
  color: var(--color-text-subtle);
  display: flex;
  flex-direction: column;
  gap: .32rem;
  max-width: 100%; }

.exp-item-horizontal .exp-points li {
  margin: 0;
  padding: 0; }

.exp-item-horizontal .exp-points .conf {
  font-weight: 600;
  color: var(--color-accent); }

/* Ensure font-size harmony: inherit from body scale */
.exp-item-horizontal strong {
  font-size: 1.02rem; }

.exp-item-horizontal .role {
  font-size: .72rem;
  letter-spacing: .65px; }

.exp-item-horizontal .meta {
  font-size: .66rem; }

.exp-item-horizontal .exp-points {
  font-size: .72rem; }

@media (max-width: 900px) {
  .exp-list-horizontal {
    flex-direction: column;
    gap: 1.2rem; }

  .exp-item-horizontal {
    border-right: none;
    padding-right: 0;
    max-width: 100%; } }
:root[data-theme='dark'] .exp-card.exp-horizontal strong {
  color: var(--color-text); }

/* === Landing Page Typography Harmonization === */
:root {
  --fs-2xl: clamp(2.15rem, 4vw, 2.7rem);
  --fs-xl: 1.55rem;
  --fs-lg: 1.28rem;
  /* section titles */
  --fs-base: 0.95rem;
  /* primary body */
  --fs-sm: 0.82rem;
  /* secondary body */
  --fs-xs: 0.68rem;
  /* meta */ }

body {
  font-size: var(--fs-base); }

.section-title {
  font-size: var(--fs-lg);
  letter-spacing: .25px; }

/* Hero copy inherits base; adjust summary max-width for optimal measure */
.hero-main .summary {
  max-width: 70ch; }

/* Education & Experience heading alignment */
.edu-item strong {
  font-size: 1.08rem; }

.exp-item-horizontal strong {
  font-size: 1.08rem; }

/* Experience meta hierarchy */
.exp-item-horizontal .role {
  font-size: var(--fs-sm); }

.exp-item-horizontal .meta {
  font-size: var(--fs-xs); }

.exp-item-horizontal .exp-points {
  font-size: var(--fs-sm);
  line-height: 1.4; }

/* Recent News list alignment */
.post-list.compact .post-link {
  font-size: 1.0rem; }

.post-list.compact .post-meta {
  font-size: var(--fs-xs); }

/* Buttons tuned to small size */
.btn {
  font-size: var(--fs-sm);
  letter-spacing: .25px; }

/* Chips slightly larger for legibility */
.chip {
  font-size: .75rem; }

/* Badge list font unify */
.badge-list li {
  font-size: .66rem; }

/* Remove earlier conflicting toggle vertical offsets and unify */
#theme-toggle {
  top: 2px !important; }

@media (max-width: 600px) {
  #theme-toggle {
    top: 0 !important; } }
/* Consistent vertical spacing between landing sections */
.home > section {
  margin-top: 2.4rem; }

.home > section:first-of-type {
  margin-top: 0; }

/* Experience card spacing tweak */
.exp-card.exp-horizontal {
  padding: 1.4rem 1.6rem 1.25rem; }

/* Bullet indentation refinement */
.exp-item-horizontal .exp-points {
  margin: .55rem 0 0 1.1rem; }

/* Harmonize line-heights */
.section-title, .exp-item-horizontal strong, .edu-item strong {
  line-height: 1.25; }

/* Tag cloud and inline stack tags */
.stack-tags.stack-tags-inline {
  margin: .35rem 0 .4rem; }

.project-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  margin: 0 0 1rem;
  padding: .6rem .85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm); }

.project-tag-cloud .tag-cloud-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
  color: var(--color-text-subtle); }

.project-tag-cloud .tag-cloud-list {
  margin: 0; }

/* Clear filter link */
.clear-filter {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  background: var(--color-accent-soft);
  color: var(--color-link);
  padding: .35rem .6rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: background .18s, color .18s, border-color .18s; }

.clear-filter:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent); }

:root[data-theme='dark'] .clear-filter {
  background: #24313b;
  border-color: #304253;
  color: var(--color-link); }

:root[data-theme='dark'] .clear-filter:hover {
  background: var(--color-accent);
  color: #0e1419; }

/* Visually hidden utility class */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important; }

/* === Mobile Hero Layout Fixes === */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem; }

  .hero-aside {
    order: -1; } }
@media (max-width: 620px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem; }

  .hero-main {
    width: 100%;
    padding: 0 .65rem; }

  .hero-main .summary {
    font-size: .9rem;
    max-width: 100%;
    overflow-wrap: anywhere; }

  .hero-aside .profile-pic img {
    width: 132px;
    height: 132px; }

  .chips {
    justify-content: center;
    gap: .45rem .55rem; }

  .chip {
    font-size: .66rem;
    padding: .32rem .55rem; }

  .availability {
    width: 100%;
    text-align: center;
    font-size: .72rem;
    padding: .55rem .8rem;
    border-radius: 18px;
    line-height: 1.25; }

  .name.heading-xl {
    font-size: clamp(1.9rem, 8.5vw, 2.35rem); }

  .tagline.heading-sm {
    font-size: .9rem;
    line-height: 1.3; } }
@media (max-width: 420px) {
  .hero-main {
    padding: 0 .5rem; }

  .hero-main .summary {
    font-size: .88rem; }

  .chip {
    font-size: .62rem; }

  .availability {
    font-size: .7rem; } }
/* === End Mobile Hero Layout Fixes === */
