/* 
Resume Website Template
Created by Brittany's Web Studio
Version 1.0
*/

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Design Tokens ===== */

:root {
    /* Text */
    --text-primary: #1f2933;
    --text-secondary: #4b5563;
    --text-muted: #6b7289;

    /* Borders */
    --border-light: #1e2a41;
    --border-lighter: #f0f0f0;

    /* Accent/ Links */
    --link-primary: #6b8f71;

    /* Backgorunds */
    --background-main: #fafafa;
}

/* ===== Base Styles ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background-color: var(--background-main);
}

p {
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
  margin-left: 1rem;
  margin-bottom: 0.75rem;
}

li {
  margin-bottom: 0.25rem;
}

/* ===== Layout ===== */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===== Content Rhytm ===== */

section > *:not(:last-child) {
    margin-bottom: 0.75rem;
}

section {
  margin-bottom: 2.5rem;
}

footer {
  max-width: 800px;
  margin: 3rem auto 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ===== Section Seperation ===== */

section:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    border-color: var(--border-light);
}

/* ===== Main Content Rhythm ===== */

section > h2 {
    margin-bottom: 1.25rem;
    border-color: var(--border-light);
}

article {
    margin-bottom: 1.5rem;
}

article p {
    margin-bottom: 0.5rem;
}

article ul {
    margin-left: 1.25rem;
}

/* ===== Typography ===== */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

section > h2 {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

main p {
    max-width: 65ch;
}

/* ===== Experience & Projects ===== */

article h3 {
    margin-bottom: 0.25rem;
}

article p strong {
    font-weight: 500;
}

article > p:first-of-type {
    color: #555;
    font-size: 0.95rem;
}

/* ===== Links ===== */

a {
    color: var(--link-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #587a5e;
    text-decoration: underline;
}

/* ===== Header ===== */
header {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    border-color: var(--border-light);
}

header nav ul {
    display: flex;
    gap: 1rem;
}

/* ===== Responsive ===== */

@media (min-width: 700px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}