:root {
  --global-bg-color: #fff;              
  --global-footer-bg-color: #f2f3f3;    
  --global-dark-border-color: #dadada;
  --global-text-color: #494e52;
  --global-text-color-light: #9ba1a6;
}

.head {
  text-align: center;
  margin-bottom: 4em;
}

/* Standard Book (Regular) */
@font-face {
  font-family: 'Standard';
  src: url('fonts/Standard-Book.woff2') format('woff2'),
       url('fonts/Standard-Book.woff') format('woff'),
       url('fonts/Standard-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

/* Standard Book Italic */
@font-face {
  font-family: 'Standard';
  src: url('fonts/Standard-BookItalic.woff2') format('woff2'),
       url('fonts/Standard-BookItalic.woff') format('woff'),
       url('fonts/Standard-BookItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Standard Bold */
@font-face {
  font-family: 'Standard';
  src: url('fonts/Standard-Bold.woff2') format('woff2'),
       url('fonts/Standard-Bold.woff') format('woff'),
       url('fonts/Standard-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

::selection {
  background: black;
  color: white;
}

/* Standard Bold Italic */
@font-face {
  font-family: 'Standard';
  src: url('fonts/Standard-BoldItalic.woff2') format('woff2'),
       url('fonts/Standard-BoldItalic.woff') format('woff'),
       url('fonts/Standard-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
    box-sizing: border-box;
    background-color: var(--global-bg-color);
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: "Standard",-apple-system, Roboto, sans-serif;
    font-weight: 400;
    color: var(--global-text-color);
    background-color: var(--global-bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.65; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main layout container */
.layout {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2.5em 4em 4em 2em; 
    flex: 1; 
    width: 100%;
    box-sizing: border-box;
}

/* Content wrapper for sidebar + main layout */
.content-wrapper {
    display: flex;
    gap: 1.5em; 
    align-items: flex-start;
}

/* Sidebar styling */
.sidebar {
    flex: 0 0 280px; /* Fixed width sidebar */
    position: sticky;
    top: 2em;
}

.author-avatar {
    margin-bottom: 1.5em;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 0px solid var(--global-dark-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.author-info {
    text-align: left;
}

.author-name {
    margin: 0 0 0.5em 0;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--global-text-color);
    text-align: left;
}

.author-bio {
    margin: 0 0 0.2em 0;
    color: var(--global-text-color-light);
    font-size: 0.95em;
    line-height: 1.4;
}

.author-links {
    display:  flex;
    flex-direction: column;
    gap: 0.01em;
    align-items: flex-start; 
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.4em 0;
    color: var(--global-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
    justify-self: flex-start; 
}

.contact-link i {
    width: 20px;
    text-align: left; 
    font-size: 1.1em;
    flex-shrink: 0; 
}

.contact-link:hover {
    color: var(--global-text-color-light);
}

/* Main content area */
.main-content {
    flex: 1;
    min-width: 0; 
    padding-right: 10em; 
}
/* Page sections */
.page.content {
    margin-bottom:2.5em; 
    padding: 0;
}

h1,h2,h3,h4,h5,h6 {
    margin: 2em 0 1em; 
    line-height: 1.3; 
    font-family: "Standard", -apple-system, Roboto, sans-serif;
    font-weight: bold;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 2.2em; 
}

h2 {
    font-size: 1.4em; 
    margin-top: 0; 
    color: var(--global-text-color);
}

h3 {
    font-size: 1.15em;
    margin-top: 0;
}

h4 {
    font-size: .75em
}

h5 {
    font-size: .75em
}

h6 {
    font-size: .75em
}

p {
    margin-bottom: 1.3em;
    line-height: 1.65;
    font-size: 1.02em; 
}

ol, ul {
    margin-bottom: 1em;
    padding-left: 2em;
}

li {
    margin-bottom: 0.1em;
    line-height: 1.5;
}


/* Links: default grey, revert to default text color on hover */
.page a {
  color: var(--global-text-color-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page a:hover,
.page a:focus {
  color: var(--global-text-color); /* your default text color */
  /*text-decoration: underline;*/
}

/* Red links: grey by default, become red on hover */
.highlight-link-rutgers,
.highlight-link-heat {
  color: var(--global-text-color-light) !important;
  text-decoration: none;
  background: none; /* remove previous gradient fill */
  transition: color 0.2s ease;
}

.highlight-link-rutgers:hover,
.highlight-link-rutgers:focus {
  color: #CC0033 !important; /* Rutgers red */
  /*text-decoration: underline;*/
}

.highlight-link-heat:hover,
.highlight-link-heat:focus {
  color: #D76852 !important; /* Heat red/orange */
  /*text-decoration: underline;*/
}

/* Optional: non-red highlight links behave like normal links */
.highlight-link-hunter {
  color: var(--global-text-color-light) !important;;
  text-decoration: none;
  background: none;
  transition: color 0.2s ease;
}

.highlight-link-hunter:hover,
.highlight-link-hunter:focus {
  color: #5f259f !important;
  /*text-decoration: underline;*/
  
}


/* 
.page a {
    color: inherit;         
    text-decoration: none; 
}

.page a:hover {
    text-decoration: underline; 


}
.highlight-link-hunter {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(#5f259f 0 0) no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease;
    background-position: 0 100%;
}

.highlight-link-hunter:hover {
    background-size: 100% 100%;
    color: white;
}

.highlight-link-rutgers {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(#CC0033 0 0) no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease;
    background-position: 0 100%;
}

.highlight-link-rutgers:hover {
    background-size: 100% 100%;
    color: white;
}

.highlight-link-heat {
    color: #D76852 !important;
    text-decoration: none;
    background: linear-gradient(#D76852 0 0) no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.3s ease;
    background-position: 0 100%;
}

.highlight-link-heat:hover {
    background-size: 100% 100%;
    color: white !important;
} */

/* Mobile header hidden by default */
.mobile-header {
    display: none;
    align-items: center;
    gap: 0.7em;
    padding: 1.2em 1.2em 0.7em 1.2em;
    background: #fff;
    position: relative;
    border-bottom: none;
}

.mobile-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.7em;
}

.mobile-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 1em;
}

.mobile-name {
    font-size: 1.08em;
    font-weight: 600;
    color: var(--global-text-color);
    line-height: 1.1;
    letter-spacing: 0.01em;
    display: block;
}

.mobile-bio {
    font-size: 0.97em;
    color: var(--global-text-color-light);
    line-height: 1.2;
    margin-top: 0.15em;
    display: block;
}

.mobile-links-toggle {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    color: #444;
    font-size: 0.97em;
    font-weight: 500;
    padding: 0.18em 1em;
    height: 32px;
    min-width: 70px;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    z-index: 101;
}

.mobile-links-toggle:hover,
.mobile-links-toggle:focus {
    background: #222;
    color: #fff;
    border: 1px solid #222;
    outline: none;
}

.mobile-links-popup {
  display: none;
  flex-direction: column;
  gap: 0.1em;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  margin-top: 0.4em;
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(149,157,165,0.18);
  padding: 0.2em 0;
  z-index: 102;
}

.mobile-links-toggle[aria-expanded="true"] + .mobile-links-popup,
.mobile-links-popup.active {
    display: flex;
}

.mobile-links-popup .contact-link {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.97em;
    gap: 0.6em;
    padding: 0.38em 1em;
    border-radius: 5px;
    white-space: nowrap;
    color: var(--global-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-self: left;
    transition: background 0.18s, color 0.18s;
}

.mobile-links-popup .contact-link:hover,
.mobile-links-popup .contact-link:focus {
    background: #f6f8fa;
    color: #222;
}

.mobile-links-popup .contact-link i {
    font-size: 0.95em;
    min-width: 1em;
    text-align: center;
}

/* Compact mobile contact icons under name */
.mobile-contact-icons {
    display: flex;
    gap: 0.6em;
    margin-top: 0.35em;
}
.mobile-contact-icons .contact-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--global-text-color);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mobile-contact-icons .contact-link:hover,
.mobile-contact-icons .contact-link:focus {
    background: #f6f8fa;
    color: #222;
    transform: translateY(-1px);
}
.mobile-contact-icons .contact-link i {
    font-size: 1.1em;
    width: auto;
    text-align: center;
}

/* Hide the old mobile popup UI everywhere */
.mobile-links-container,
.mobile-links-toggle,
.mobile-links-popup {
    display: none !important;
}

/* --- Responsive Embeds --- */
img, embed, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.page embed,
.page iframe {
    width: 100%;
    min-height: 500px;
    height: 800px;
    max-height: 90vh;
    margin: 0 auto;
    display: block;
}

@media (max-width: 800px) {
    .page embed,
    .page iframe {
        display: none !important;
    }
}

@media (max-width: 1000px) {
    .layout {
        padding: 1.5em 1em;
    }
    .main-content {
        padding-right: 0;
    }
}

@media (max-width: 800px) {
    .sidebar {
        display: none;
    }
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 1em;
        padding: 1.2em 1em 0.7em 1em;
    }
    .mobile-photo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 0.7em;
    }
    .mobile-header-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 1em;
    }
    .mobile-name {
        display: block;
    }
    .mobile-bio {
        display: block;
    }
    .mobile-links-toggle {
        height: 40px;
        font-size: 1.05em;
        padding: 0.25em 1.3em;
    }
    .layout {
        padding: 0;
    }
    .main-content {
        padding: 0 0.7em;
    }
    .page__inner-wrap {
        padding: 0;
    }
    h1, h2, h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .layout {
        padding: 1.5em 1em; 
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 2em;
    }
    
    .sidebar {
        flex: none;
        position: static;
        order: -1; 
    }
    
    .author-photo {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .page__footer {
        padding: 1.5em 1em;
    }
}

@media (max-width: 480px) {
    .layout {
        padding: 1em 0.8em;
    }
    
    .author-photo {
        width: 120px;
        height: 120px;
    }
    
    .author-links {
        gap: 0.7em;
    }
    
    .contact-link {
        width: 35px;
        height: 35px;
    }
}

/* Make lists and paragraphs readable on mobile */
.page.content {
    font-size: 1em;
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 2em;
}

/* Responsive tables, images, and embeds */
img, embed, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.page embed,
.page iframe {
    width: 100%;
    min-height: 500px;
    height: 800px;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .page embed,
    .page iframe {
        display: none !important;
    }
}

.mobile-links-container {
    position: relative; 
    display: inline-block; 
}

.mobile-links-toggle {
    cursor: pointer; 
}

.mobile-links-toggle[aria-expanded="true"] + .mobile-links-popup,
.mobile-links-popup.active {
    display: flex; 
    flex-direction: column; 
    gap: 0.1em; 
}



/* Add this to your existing style.css file */

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    background-color: var(--global-bg-color);
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
}

/* ===== CONTACT LINK ANIMATIONS ===== */

/* Desktop sidebar contact links */
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.4em 0;
    color: var(--global-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
    justify-self: flex-start;
    position: relative;
}

/* Add subtle slide-in animation on hover */
.contact-link:hover {
    color: var(--global-text-color-light);
    transform: translateX(5px);
}

/* Icon rotation on hover */
.contact-link:hover i {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.3s ease;
}

.contact-link i {
    width: 20px;
    text-align: left;
    font-size: 1.1em;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Underline animation for links */
.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--global-text-color-light);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* ===== MOBILE POPUP ANIMATIONS ===== */

/* Fade and slide in animation for mobile popup */
.mobile-links-popup {
    display: none;
    flex-direction: column;
    gap: 0.1em;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 0.4em;
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(149,157,165,0.18);
    padding: 0.2em 0;
    z-index: 102;
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.3s ease forwards;
}

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

/* Mobile popup link hover with background slide */
.mobile-links-popup .contact-link {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.97em;
    gap: 0.6em;
    padding: 0.38em 1em;
    border-radius: 5px;
    white-space: nowrap;
    color: var(--global-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-self: left;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Slide background effect */
.mobile-links-popup .contact-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #f6f8fa;
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-links-popup .contact-link:hover::before {
    left: 0;
}

.mobile-links-popup .contact-link:hover {
    color: #222;
}

/* Icon bounce on hover */
.mobile-links-popup .contact-link:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== AUTHOR PHOTO SUBTLE ANIMATION ===== */
.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 0px solid var(--global-dark-border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin-left: 0;
    margin-right: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
/* ===== BUTTON ANIMATIONS ===== */
.mobile-links-toggle {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    color: #444;
    font-size: 0.97em;
    font-weight: 500;
    padding: 0.18em 1em;
    height: 32px;
    min-width: 70px;
    box-shadow: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101;
    cursor: pointer;
}

.mobile-links-toggle:hover,
.mobile-links-toggle:focus {
    background: #222;
    color: #fff;
    border: 1px solid #222;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-links-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== LINK HOVER ANIMATIONS (Enhanced) ===== */
.highlight-link-hunter,
.highlight-link-rutgers,
.highlight-link-heat {
    transition: all 0.3s ease;
}

/* Add subtle pulse effect when hovering */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.highlight-link-hunter:hover,
.highlight-link-rutgers:hover,
.highlight-link-heat:hover {
    animation: pulse 0.5s ease;
}


/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--global-text-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--global-text-color-light);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 800px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3em;
    }
}