:root {
    --max-width: 900px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --text-gray: #666;
    --heading-color: #000000;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --link-visited: #551a8b;
    --border-color: #e0e0e0;
    --code-bg: #f4f4f4;
}
* {
    /*this is to reset all of the extra padding or other things that get added onto websites*/
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*The styling that I want to use for my body */
body {
    font-family: var(--font-main);
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 30px;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 18px;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}
h1 {
    font-size: 48px;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 40px;
}
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
nav {
    margin-bottom: 35px;
}
nav a {
    color: #0066cc;
    text-decoration: underline;
    margin-right: 20px;
    font-size: 20px;
    font-weight: 400;
}
p {
    margin-bottom: 24px;
}
a {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
}
a:hover {
    color: var(--link-hover);
}
a:visited{
    color: var(--link-visited)
}
em, i {
    font-style: italic;
    opacity: 0.7;
}
header h1 {
  margin-bottom: 8px;
}

header p {
  margin-top: 0;
  margin-bottom: 24px;
}
main p {
    margin-top: 0;
    margin-bottom: 24px;
}
strong, b {
    font-weight: 600;
}
/* Images - Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
}
/* Image captions (italic text after image) */
img + em {
    display: block;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-gray);
    margin-top: -16px;
    margin-bottom: 24px;
}

/* Code - Inline */
code {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    background-color: var(--code-bg);
    border-radius: 3px;
}

/* Code - Blocks */
pre {
    background-color: var(--code-bg);
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 24px 0;
}

pre code {
    padding: 0;
    background: none;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--border-color);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-gray);
}

/* Horizontal Rule */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 48px 0;
}

/* Lists */
ul, ol {
    margin-bottom: 24px;
    padding-left: 40px;
}

li {
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

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

th {
    font-weight: 600;
    color: var(--heading-color);
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9em;
    text-align: center;
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    body {
        margin: 30px auto;
        padding: 0 20px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    nav a {
        font-size: 18px;
        margin-right: 15px;
    }
    
    pre {
        padding: 12px;
    }
}
