:root {
    --primary: #4d5c3c; 
    --secondary: #728859; 
    --muted: #c3d5ae;

    --bg: #f5f8f2; /* off-white background */
    --text-light: #f5f8f2;
    --text-dark: #344224;
}  

body {
    background-color: var(--bg);
    width: auto;
    min-height: 100vh;
    font-family: Georgia, serif;
    color: var(--text-dark);
}  
img {
    border: 5px solid var(--primary);
    border-radius: 30px;
} 
.header {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 10px;
    font-size:x-large;
    text-align: center;
    color: var(--text-dark);
    font-family: Georgia, serif;
} 

.textbox {
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 10px;
        font-size: x-large;
        text-align: center;
        color: var(--text-dark);
        font-family: Georgia, serif;
        /* subtle translucent tint of the secondary (mauve) */
        background-color: rgba(178,148,160,0.12);
        border-radius: 20px;
        width: 700px;
        padding-top: 10px;
        border: 3px solid var(--muted);
}  
p {
    padding-top: -22px;
    padding-bottom: 20px; 
    padding-right: 60px;
    padding-left: 60px;
    font-size: medium;
}
a:link,
a:visited,
a:active {
    background-color: transparent;
    color: var(--text-dark);
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, serif;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 150ms ease, color 150ms ease;
}

/* make inline links visually match topnav buttons */
a:hover {
    background-color: rgba(66,110,111,0.12); /* subtle tint using primary color */
    color: var(--text-dark);
}

button {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    display: inline-block;
    font-family: Georgia, serif;
}  

button:hover {
    background-color: var(--muted);
    color: var(--text-dark);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    display: inline-block;
    font-family: Georgia, serif;
}

/* Download button styling */
a.download-btn {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    font-family: Georgia, serif;
    font-weight: 600;
    margin: 12px 0;
}

a.download-btn:hover {
    background-color: var(--muted);
    color: var(--text-dark);
}

/* CV section styling */
.cv-section {
    margin: 24px 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(66, 110, 111, 0.1);
}

.cv-section h2 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: Georgia, serif;
} 

/* Top navigation — pill style with colored dots */
.topnav {
    position: fixed;
    top: 12px;
    left: 48px;
    right: 48px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    gap: 24px;
    background: var(--bg); /* solid background so content scrolls behind */
    padding: 8px 0;
}

/* Colored bar behind topnav */
.topnav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary);
    z-index: -1;
}

.nav-brand,
.nav-brand:link,
.nav-brand:visited,
.nav-brand:active {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    background: transparent;
    padding: 0;
    display: inline-block;
}

.nav-brand:hover,
.nav-brand:focus {
    background: transparent;
    color: var(--text-light);
}

.topnav .nav-inner {
    width: auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 5px 5px;
    background: transparent; /* slightly translucent off-white */
    border-radius: 8px;
}
.topnav .nav-inner a {
    color: var(--text-light);
    font-size: 1rem; /* larger text */
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
}
.topnav .nav-inner a:hover {
    background-color: transparent; 
    color: var(--text-light);
}

/* colored dot markers */
.topnav .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-accent { background: var(--muted); }
.dot-primary { background: var(--primary); }
.dot-secondary { background: var(--secondary); }
.dot-muted { background: var(--muted); }


/* ensure page content sits below the fixed top nav */
body {
    padding-top: 72px;
    padding-left: 48px;
    padding-right: 48px;
}

/* Contact box */
.contact-box {
    margin: 48px 0 24px 0;
    padding: 20px;
    background: rgba(66,110,111,0.04);
    border-radius: 10px;
    border: 1px solid rgba(66,110,111,0.06);
}
.contact-box h2 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: var(--primary);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* stack vertically */
    gap: 16px; /* equal vertical spacing between rows */
    align-items: start;
}
.contact-item {
    display: flex;
    align-items: center; /* vertically align label and content */
    gap: 16px;
    padding: 8px 0; /* consistent vertical padding for equal spacing */
}

.contact-item strong { 
    display: block; 
    margin: 0; 
    color: var(--text-dark);
    width: 140px; /* label column */
    flex: 0 0 140px;
}
.contact-item > div {
    flex: 1 1 auto;
    line-height: 1.6; /* ensure multi-line content has consistent spacing */
}
.contact-item a { color:var(--primary); text-decoration:underline; padding: 0; background: transparent; line-height: 1.6; display: inline; }
.contact-links .sep { margin: 0 8px; color: rgba(0,0,0,0.25); }

@media (max-width: 640px) {
    .nav-inner { max-width: 100%; padding: 8px; }
    body { padding-left: 20px; padding-right: 20px; }
    .contact-item { flex-direction: column; align-items: flex-start; }
    .contact-item strong { width: auto; flex: none; margin-bottom: 6px; }
}

/* Two-column main layout: left image (1/3) and content (2/3) */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 36px;
    align-items: start;
    margin-top: 12px;
}
.left-image {
    display: flex;
    justify-content: center;
    align-items: center;
 }
.left-image img {
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid var(--primary);
    display: block;
    margin-left: 36px;
    margin-right: 48px;
}
.main-body {
    min-width: 0;
}

@media (max-width: 780px) {
    .main-content { grid-template-columns: 1fr; }
    .left-image { max-width: none; order: -1; }
}