/* Modern Responsive CSS for Anthony Darrouzet-Nardi
   Replaces legacy adn.css
*/

:root {
    /* Colors preserved from legacy */
    --color-text-primary: #000000;
    --color-text-secondary: #666666;
    --color-text-date: #999999;
    --color-link: #990000;
    --color-link-hover: #cc1010;
    --color-link-active: #cc1010;
    --color-link-visited-gray: #666666;
    --color-bg: #FFFFFF;
    --color-bg-quote: #EEEEEE;

    /* Typography */
    --font-family-body: Verdana, sans-serif;
    --font-family-mono: monaco, monospace;
    --font-family-optima: optima, sans-serif;
    --line-height-body: 1.55;
    --font-size-base: 16px;
    --font-size-small: 0.875rem;

    /* Layout */
    --content-width: 65ch;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2em;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    margin: 0;
    padding: var(--spacing-md);
    text-align: left;
}

/* Spacing Reset & Defaults */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
    padding: 0;
}

/* Restore readable spacing */
p {
    margin-bottom: 1em;
}

h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.3em;
}

ul,
ol {
    padding-left: 3em;
    margin-bottom: 1em;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border: 0;
    padding: 0
}

.wide-media {
  width: min(900px, 100vw);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: var(--spacing-sm) 0;
}

.wide-media figcaption {
  text-align: center;
}


/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Layout Container */
.container {
    max-width: var(--content-width);
    margin-inline: auto;
    /* No padding here, body has padding */
}

/* Header Banner */
.header-banner {
    display: flex;
    justify-content: center;
}

.header-banner img {
    max-width: 100%;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}


.member-degree {
    font-style: italic;
    color: var(--color-text-secondary);
}

nav li::after {
    content: "•";
    color: var(--color-text-primary);
    margin-left: var(--spacing-sm);
    font-weight: normal;
}

nav li:last-child::after {
    content: "";
}

/* Drop Caps (Intro Images) */
.intro-text-img {
    float: left;
    margin-right: 0.25rem;
    margin-top: 0.2rem;
    height: 2.6rem;
    width: auto;
}

/* Date */
.date {
    color: var(--color-text-date);
    font-size: var(--font-size-small);
    font-weight: bold;
    display: block;
    text-align: center;
    margin: 0;
}

/* Images - Big and Bold */
figure {
    margin: var(--spacing-sm) 0;
    width: 100%;
}

figcaption {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}



/* Blockquote */
blockquote {
    color: var(--color-text-primary);
    background-color: var(--color-bg-quote);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    margin-left: 1em;
    margin-right: 1em;
}

/* Header Overlap Logic - Desktop Only */
/* Header Overlap Logic removed - specific to index.html, moved to that file */

/* Mobile Handling */
@media (max-width: 767px) {
    .main-content {
        margin-top: 0;
        /* No overlap on mobile */
    }

    nav ul {
        justify-content: center;
        gap: var(--spacing-xs);
        font-size: 0.9rem;
    }

    nav li::after {
        margin-left: var(--spacing-xs);
    }

    .header-banner img {
        transform: none;
    }
}

/* Utilities */
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}


/* Legacy Support */
.graylink {
    color: var(--color-text-secondary);
}

footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}