/* Import a Google font for a more modern look */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* Smooth scrolling for in-page anchor links */
html {
    scroll-behavior: smooth;
}

/* Reset some default margins/padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styling */
body {
    background-color: #1f1f1f;
    /* Softer dark gray background */
    color: #eaeaea;
    /* Off-white text */
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    /* Add top padding so content isn't hidden behind the nav bar */
    padding-top: 60px;
}

pre {
    background: linear-gradient(0deg, rgba(102, 199, 255, 0.06), rgba(102, 199, 255, 0.06)), #2b2b2b;
    color: #eaeaea;
    /* Let's make the box have uniform padding for readability */
    padding: 10px;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow: auto;
    max-height: clamp(220px, 45vh, 420px);
    border: 1px solid rgba(102, 199, 255, 0.28);
    border-left: 4px solid #66c7ff;
    border-radius: 4px;
}

code {
    border: 1px solid rgba(102, 199, 255, 0.45);
    border-radius: 2px;
    background: rgba(102, 199, 255, 0.10);
    padding: 1px 2px;
}

pre>code {
    display: block;
    width: 100%;
}

/* Sticky Top Nav */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2f2f2f;
    border-bottom: 1px solid #444;
    z-index: 999;
    /* ensure nav stays above content */
}

.top-nav nav {
    width: 90%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    /* adjust nav height as desired */
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* Nav Links */
.top-nav a {
    color: #eaeaea;
    /* Match body text color or use white (#fff) */
    text-decoration: none;
    font-weight: 600;
}

.top-nav a:hover {
    text-decoration: underline;
}

/* Page Sections */
.page-section {
    width: 90%;
    max-width: 720px;
    margin: 2rem auto;
}

/* Applies to all unordered lists inside your main content container */
.page-section ul,
.page-section ol {
    margin: 1em 0;
    /* vertical spacing above/below the list */
    padding-left: 1.5em;
    /* indent list items enough so bullets line up with text */
    list-style-position: outside;
    /* bullets remain in the margin, but aligned consistently */
}

/* Optional: if you like the bullet directly in front of the text, use 'inside': */
/*
.page-section ul,
.page-section ol {
  list-style-position: inside; 
  padding-left: 0;
}
*/

/* Headings */
h1,
h2 {
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Inline logo + title */
.title-with-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.title-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
}

/* Paragraphs and text */
p,
li {
    margin-bottom: 1rem;
}

/* Post pages */
.post-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.post-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.post-title-row h1 {
    margin-bottom: 0.25rem;
}

.post-meta {
    color: #aaa;
    font-size: 0.95rem;
}

.home-button {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border: 1px solid #444;
    border-radius: 999px;
    text-decoration: none;
    color: #eaeaea;
    background: rgba(234, 234, 234, 0.04);
    white-space: nowrap;
}

.home-button:hover {
    text-decoration: none;
    background: rgba(234, 234, 234, 0.08);
    border-color: #666;
}

/* Link styling within content */
a {
    color: #66c7ff;
    /* Subtle accent color */
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    width: 90%;
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
    font-size: 0.9rem;
    color: #b1b1b1;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Simple styling for the post list in a dark theme */

/* Container for each post’s title & date */
.post-entry {
    display: flex;
    justify-content: space-between;
    /* Title on left, date on right */
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #666;
    /* Dotted separator line */
}

/* Post title link */
.post-entry a {
    color: #66c7ff;
    /* Same accent color as before */
    text-decoration: none;
    margin-right: 1rem;
}

.post-entry a:hover {
    text-decoration: underline;
}

/* Date styling */
.post-date {
    color: #aaa;
    /* A bit lighter for the date */
    font-size: 0.9rem;
    /* Slightly smaller than body text */
    white-space: nowrap;
    text-align: right;
}

.pub-main {
    flex: 1;
    min-width: 0;
}

.pub-venue {
    margin-top: 0.25rem;
    color: #aaa;
    font-size: 0.9rem;
}
.resume-card {
    border: 1px solid #444;
    border-radius: 10px;
    background: #242424;
    padding: 1rem;
}

.resume-primary {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #66c7ff;
}

.resume-primary:hover {
    text-decoration: none;
    background: rgba(102, 199, 255, 0.12);
}
