/* =========================================================
   VARIABLES
   Define reusable values once here. Change a color in this
   one spot and it updates everywhere it's used below.
   ========================================================= */
:root {
    --color-navy: #1b2a4a;
    --color-beige: #f0e6d2;
    --color-text: #222;
    --color-border-light: #cccccc;
    --color-nav-bg: #f4f4f4;
    --color-white: #ffffff;
}

/* =========================================================
   RESET
   Start every element at a predictable baseline before
   adding intentional spacing/behavior further down.
   ========================================================= */
* {
    box-sizing: border-box;
}

h1, h2, h3 {
    margin: 0;
}

/* =========================================================
   BASE TYPOGRAPHY
   Default look of plain text elements, site-wide.
   ========================================================= */

main {
    flex: 1;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Calibri, Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-beige);
    margin: 20px;
}

p {
    margin: 0 0 15px 0;
}

h2, h3 {
    color: var(--color-navy);
}

h2 {
    margin-top: 25px;
    margin-bottom: 12px;
}

h3 em {
    font-weight: normal;
}

hr {
    border: none;
    border-top: 3px solid var(--color-navy);
}

ul {
    list-style-type: disc;
}

/* =========================================================
   PAGE LAYOUT REGIONS
   header, nav, footer — the site-wide "frame" around content.
   ========================================================= */
header {
    margin-bottom: 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
    margin-bottom: 20px;
    background-color: var(--color-nav-bg);
    padding: 10px 20px;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;


}

.nav-list a.active {
    border-bottom: 3px solid #1b2a4a;
    padding-bottom: 4px;
}

.nav-list a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: bold;
}

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

/* =========================================================
   TABLE
   ========================================================= */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid var(--color-border-light);
    padding: 8px 10px;
    text-align: left;
}

th {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* =========================================================
   MEDIA
   Images, and the stacked audio/photo layout on Career Goals.
   ========================================================= */
img {
    max-width: 300px;
    height: auto;
}

.media-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* =========================================================
   CONTENT COMPONENTS
   Reusable patterns used across sections/articles.
   ========================================================= */
.divider-line {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 8px;
}

.summary p {
    margin-bottom: 12px;
}

section > p {
    margin-bottom: 8px;
}

article {
    margin-bottom: 20px;
}

article > p {
    margin-bottom: 6px;
}

.company-heading,
.job-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.company-heading {
    margin-bottom: 2px;
}

.job-heading {
    margin-bottom: 8px;
}

.job-date,
.job-location {
    font-style: italic;
}

/* =========================================================
   UTILITY
   ========================================================= */
#current-date {
    text-align: center;
}

/* Javascripts */
.dark-mode {
    background-color: #1f1f1f;
    color: #f5f5f5;
}

.nav-list a.active {
    color: white;
    background-color: #1b2a4a;
    padding: 6px 12px;
    border-radius: 4px;
}