:root {
    /* Color Variables */
    --background-main: #f4efe6;
    --background-card: #ffffff;
    --background-header: #4b2e59;
    --background-highlight: #ece3f7;

    --text-main: #222222;
    --text-light: #ffffff;

    --accent-gold: #c28b00;
    --accent-blue: #005f99;
    --border-dark: #5c4b66;

    --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Universal Selector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Element Selector */
body {
    font-family: Georgia, serif;
    background-color: var(--background-main);
    color: var(--text-main);
    line-height: 1.7;
    padding: 20px;
}

/* ID Selector */
#main-header {
    background-color: var(--background-header);
    color: var(--text-light);
    padding: 25px;
    text-align: center;
    border-bottom: 5px solid var(--accent-gold);
    border-radius: 10px;
}

/* Group Selector */
h1,
h2,
h3 {
    color: var(--background-header);
    margin-bottom: 15px;
}

/* Main Heading */
h1 {
    color: var(--text-light);
    font-size: 2.5rem;
}

/* Class Selector */
.content-box {
    background-color: var(--background-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow-light);
}

/* Descendant Selector */
nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
}

/* Hover Accessibility */
nav a:hover,
a:hover {
    text-decoration: underline;
}

/* Direct Child Selector */
nav > ul {
    list-style-type: none;
    margin-top: 15px;
}

/* Multiple Classes Example */
.nav-list li {
    display: inline-block;
    margin: 0 12px;
}

/* Adjacent Sibling Selector */
h2 + p {
    font-style: italic;
}

/* General Sibling Selector */
h2 ~ p {
    margin-bottom: 15px;
}

/* Element + Class Selector */
p.external-link {
    background-color: var(--background-highlight);
    padding: 12px;
    border-left: 5px solid var(--accent-gold);
    border-radius: 5px;
}

/* Attribute Selector */
a[target] {
    color: var(--accent-blue);
}

/* Attribute Starts With Selector */
a[href^="https"] {
    font-weight: bold;
}

/* Attribute Ends With Selector */
img[src$=".jpg"] {
    background-color: var(--background-card);
    padding: 6px;
}

/* Attribute Contains Selector */
img[src*="placeholder"] {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 20px auto;
    border: 4px solid var(--accent-gold);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Element + ID Selector */
section#quests {
    margin-top: 30px;
}

/* General Section Styling */
section {
    background-color: var(--background-card);
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow-light);
}

/* Paragraph Spacing */
p {
    margin-bottom: 15px;
}

/* List Styling */
ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    border-top: 3px solid var(--accent-gold);
    color: var(--background-header);
}