/* Dr Stephen M. Marcus - Website Stylesheet */
/* Clean, elegant, easy to edit */

/* ========================================
   VARIABLES - Edit these to change colors
   ======================================== */
:root {
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-heading: #1a1a1a;
    --color-accent: #4a6741;  /* Subtle sage green */
    --color-background: #fafafa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 800px;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 300;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-bottom-color: var(--color-accent);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .site-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-heading);
    text-decoration: none;
    border: none;
}

nav .site-name:hover {
    border: none;
    color: var(--color-accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav a:hover,
nav a.active {
    color: var(--color-accent);
}

/* ========================================
   HERO SECTION (Home page)
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    text-align: center;
}

.hero-overlay h1 {
    color: var(--color-white);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.3rem;
}

.hero-overlay .tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0;
}

/* ========================================
   PAGE HEADER (non-home pages)
   ======================================== */
.page-header {
    background: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    margin-bottom: 0;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content {
    background: var(--color-white);
    padding: 3rem 2rem;
}

.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section + .content-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   LISTS
   ======================================== */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Publications/Work list */
.publication-list {
    list-style: none;
    margin-left: 0;
}

.publication-list li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
}

.publication-list .title {
    font-weight: 600;
}

.publication-list .venue {
    color: var(--color-text-light);
    font-style: italic;
}

/* ========================================
   CREDENTIALS BOX
   ======================================== */
.credentials {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.credentials h3 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

/* ========================================
   INTRO (Home page)
   ======================================== */
.intro {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-white);
}

.intro p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.intro .cta-links {
    margin-top: 2rem;
}

.intro .cta-links a {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-methods {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method h3 {
    margin-top: 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    nav .nav-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        height: 50vh !important;
        min-height: auto;
    }
    
    .hero-overlay {
        padding: 1rem 1.5rem;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-overlay .tagline {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
