@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EB_Garamond/EBGaramond-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf');
    font-style: italic;
}

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    background: #fafafa;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: 100vh;
}

h1, h2 {
    font-family: 'EB Garamond', serif;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.01em;
}

h2 {
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    color: #555;
}

img {
    border-radius: 10px;
    margin: 1.5em 0 2em 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Navigation */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.nav-item a:hover {
    background: #ff6b35; /* Orange background for nav hovers */
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin-top: 5px;
    min-width: 100%;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 15px;
    white-space: nowrap;
    display: block;
    width: 100%;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #bbb;
    transition: color 0.2s, border-bottom 0.2s;
    padding: 1px 0;
}

a:hover {
    color: #ff6b35; /* Orange color on hover */
    border-bottom: 1px solid #ff6b35; /* Orange border on hover */
}

/* Content */
.intro-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 36px;
    margin: 2em auto 2.5em auto;
    max-width: 700px;
    text-align: left;
    font-family: 'EB Garamond', serif;
    line-height: 1.7;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.intro-box b {
    font-weight: 600;
    color: #1a1a1a;
}

.intro-box small {
    display: block;
    margin-top: 1.5em;
    color: #aaa;
    text-align: right;
}

.intro-box a {
    color: #2563eb;
    border-bottom: 1px dotted #bbb;
    padding: 0;
}

.intro-box a:hover {
    color: #ff6b35; /* Orange color for intro-box links on hover */
    border-bottom: 1px solid #ff6b35;
}

.intro-box div[style*="color: purple"] {
    color: #2563eb !important;
    font-weight: 600;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.18);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 8px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'EB Garamond', serif;
}

.modal button.close-btn {
    margin-top: 18px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.modal button.close-btn:hover {
    background: #ff6b35; /* Orange background for modal buttons on hover */
}
