/* ===== Mary Kuru Sam: custom look ===== */
:root{
  --ms-accent:#0e7c86; --ms-gold:#c8a24a; --ms-on-accent:#fff;
  --ms-line:rgba(128,128,128,.28); --ms-shadow:0 10px 26px rgba(0,0,0,.12);
}
html[data-theme="dark"]{--ms-accent:#3fc1cb;--ms-on-accent:#062a2e;--ms-shadow:0 10px 26px rgba(0,0,0,.45)}
/* dark colours apply only when the site itself is in dark mode (theme toggle) */
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased;line-height:1.7}
h1,h2,h3,.author__name,.archive__item-title{font-family:'Playfair Display',Georgia,serif;letter-spacing:.2px}

/* top bar */
.masthead{border-bottom:3px solid transparent;border-image:linear-gradient(90deg,var(--ms-accent),var(--ms-gold)) 1;box-shadow:0 2px 14px rgba(0,0,0,.08)}
.masthead .greedy-nav a{transition:color .2s ease}

/* page titles with soft shimmer */
.page__title{background:linear-gradient(90deg,var(--ms-accent),var(--ms-gold),var(--ms-accent));background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:ms-shimmer 8s linear infinite}
@keyframes ms-shimmer{to{background-position:200% center}}

/* section headings get a gold underline */
.page__content h2,.archive h1:not(.page__title){position:relative;padding-bottom:.45rem;margin-top:2rem}
.page__content h2::after,.archive h1:not(.page__title)::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--ms-accent),var(--ms-gold));transition:width .35s ease}
.page__content h2:hover::after,.archive h1:not(.page__title):hover::after{width:120px}

/* links */
.page__content a{transition:color .2s ease}
.page__content a:hover{color:var(--ms-accent)}

/* sidebar profile */
.author__avatar img{border-radius:24%;border:3px solid var(--ms-gold);padding:3px;box-shadow:var(--ms-shadow);transition:transform .35s ease}
.author__avatar img:hover{transform:scale(1.04) rotate(-1.5deg)}
.author__name{font-size:1.35rem}
.author__urls.social-icons li a{transition:color .2s ease,transform .2s ease;display:inline-block}
.author__urls.social-icons li a:hover{color:var(--ms-accent);transform:translateX(3px)}

/* list and grid cards (talks, portfolio, publications) */
.archive__item{border-radius:12px;transition:transform .25s ease,box-shadow .25s ease}
.grid__item:hover .archive__item,.list__item:hover .archive__item{transform:translateY(-3px)}
.archive__item-title a{text-decoration:none}
.archive__item-title a:hover{color:var(--ms-accent)}
.page__footer{border-top:1px solid var(--ms-line)}

/* ===== About page components ===== */
.ms-hero{padding:1.1rem 1.4rem .8rem;border-left:4px solid var(--ms-gold);border-radius:0 14px 14px 0;background:linear-gradient(90deg,rgba(14,124,134,.10),transparent);margin-bottom:1.2rem}
.ms-kicker{margin:0;font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ms-gold)}
.ms-lead{font-family:'Playfair Display',Georgia,serif;font-size:1.4rem;line-height:1.45;margin:.4rem 0 .8rem}
.ms-chip{display:inline-block;margin:.15rem .25rem .15rem 0;padding:.2rem .8rem;border:1px solid var(--ms-line);border-radius:999px;font-size:.78rem;transition:border-color .2s,color .2s}
.ms-chip:hover{border-color:var(--ms-accent);color:var(--ms-accent)}
.ms-btn{display:inline-block;margin:.3rem .5rem .3rem 0;padding:.6rem 1.3rem;border-radius:999px;background:var(--ms-accent);color:var(--ms-on-accent)!important;font-weight:600;text-decoration:none!important;border:2px solid var(--ms-accent);transition:transform .2s ease,box-shadow .2s ease}
.ms-btn:hover{transform:translateY(-2px);box-shadow:var(--ms-shadow)}
.ms-btn--ghost{background:transparent;color:var(--ms-accent)!important}
.ms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin:1.2rem 0 1.6rem}
.ms-grid--wide{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.ms-stat,.ms-card{border:1px solid var(--ms-line);border-radius:14px;padding:1.1rem 1.2rem;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.ms-stat{text-align:center}
.ms-stat b{display:block;font-family:'Playfair Display',Georgia,serif;font-size:2.1rem;line-height:1.2;color:var(--ms-accent)}
.ms-stat span{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.ms-card h3{margin:.1rem 0 .4rem;font-size:1.1rem}
.ms-card p{margin:0;font-size:.9rem;opacity:.9}
.ms-stat:hover,.ms-card:hover{transform:translateY(-5px);box-shadow:var(--ms-shadow);border-color:var(--ms-accent)}

/* scroll reveal (only active when JS is running) */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1;transform:none;transition:none}
  .page__title{animation:none}
  html{scroll-behavior:auto}
}
/* ===== Proposed refinements (append to the end of assets/css/custom-style.css) ===== */

/* 1. Bigger, sharper profile photo: a true circle, face centred */
.author__avatar img{
  width:100%;max-width:240px;aspect-ratio:1/1;object-fit:cover;object-position:50% 22%;
  border:3px solid var(--ms-gold);padding:4px;
}
.sidebar .author__name{font-family:'Playfair Display',Georgia,serif;font-size:1.6rem;line-height:1.2;margin-top:.9rem}
.author__bio{font-size:.92rem;line-height:1.5;opacity:.85}
.author__urls.social-icons li{font-size:.9rem;margin-bottom:.35rem}

/* Mobile: larger centred avatar instead of a tiny 36px dot */
@media (max-width:1023px){
  .sidebar .author__avatar{display:block;width:auto;text-align:center}
  .sidebar .author__avatar img{max-width:120px;margin:0 auto}
  .sidebar .author__content{display:block;text-align:center;padding:0}
  .masthead__menu-item--lg a{white-space:nowrap}
}

/* 2. Page title: solid teal (the moving teal+gold gradient turned olive-green and hurt readability) */
.page__title{background:none;-webkit-text-fill-color:currentColor;color:var(--ms-accent);animation:none;font-size:2.2rem}

/* 3. Gold text darker so it can be read (old gold on white was about 2.4:1 contrast) */
.ms-kicker{color:#8a6d1f}
html[data-theme="dark"] .ms-kicker{color:var(--ms-gold)}

/* 4. Bigger headline */
.ms-lead{font-size:1.65rem}

/* 5. Stat labels: tighter so they don't break into 3 lines */
.ms-stat span{display:block;letter-spacing:.04em;line-height:1.35;font-size:.7rem}

/* 6. Work cards in a clean 2x2 grid (no orphan card) */
.ms-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:600px){.ms-grid--wide{grid-template-columns:1fr}}

/* ===== Sidebar: wider, scrolls with the page, no inner scrollbar =====
   Change ONLY --ms-sidebar to move the divider. The content always takes
   the rest of the row, on every page type. Good range: 22%-32%. */
:root{--ms-sidebar:30%}
@media screen and (min-width:1024px){
  #main{display:flex;align-items:flex-start}
  #main::before,#main::after{display:none}
  .sidebar{
    flex:0 0 var(--ms-sidebar);width:auto;float:none;
    position:relative;height:auto;overflow:visible;
    padding-top:0;padding-right:1.5rem;margin-right:0;
    border-right:1px solid var(--ms-line);
  }
  #main > .page, #main > .archive{
    flex:1 1 0;min-width:0;width:auto;float:none;
    margin-left:0;margin-right:0;padding-left:4%;padding-right:2%;
  }
  .sidebar .author__name{font-size:1.45rem}
  .author__avatar img{max-width:200px}
}

/* Footer: sit at the end of the page instead of pinned over the content */
.page__footer{position:relative;bottom:auto}
