/* 
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: #2a3f52;
    --border-lighter: #f0f0f0;

    /* Accent/ Links */
    --link-primary: #5f7f94;

    /* Backgrounds */
    --background-main: #fafafa;

    --link-hover: #587a5e;
}

/* ===== 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;
}

/* ===== Two Column Resume Layout ===== */
/* This layout creates a primary content column and a supporting side column. */

.resume-layout {
    display: block;
}

/* Main content column (experience, projects, about) */
.main-column {
    max-width: 100%;
}

/* Side column (skills, education, supporting info) */
.side-column {
    max-width: 100%;
}

/* ===== Content Rhythm ===== */

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 Separation ===== */

section:not(:last-child) {
    border-color: var(--border-light);
}

/* ===== Main Content Rhythm ===== */

section > h2 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid 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;
}

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: var(--link-hover);
    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: 900px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .resume-layout {
        display: grid;
        grid-template-columns: 2.5fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    /* Reduce width constraint so columns can breathe */
    main {
        max-width: 1100px;
    }

    .side-column {
        padding-left: 1.5rem;
        border-left: 1px solid var(--border-lighter);
    }
}