:root {
  --green: #007d0d;
  --light-bg: #e3f7f1;
  --text-dark: #111;
  --max-width: 1200px;
  --spacing: 1rem;
  --border-grey: #ccc;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Container */
    .container {
      max-width: 1175px;
      margin-inline: auto;
      padding: 2rem;
      width: 100%;
      box-sizing: border-box;
      scroll-margin-top: 100px;
    }

/* Main portfolio content */
    .portfolio-main {
      max-width: 900px;
      margin: 2rem auto 3rem auto;
      padding: 1.5rem 1rem 1rem;
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      border-radius: 8px;
      color: #222;
    }

/* Headings */
h1, h2, h3 {
  color: var(--green);
  margin-bottom: var(--spacing);
  font-family: 'Aleo', serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

h1 {
  text-align: center;
  margin-bottom: 0.25rem;
}

h3.duration {
  text-align: center;
  font-weight: normal;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Paragraph spacing */
p:not(:last-child) {
  margin-bottom: 2rem;
}

/* Sections */
section {
  margin-top: 2rem;
}

/* Tools section */
#tools-section {
  margin-top: 0;
}

#tools-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

#tools-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
  text-align: center;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

#tools-list div {
  padding: 0.2rem 0;
}

/* Responsive grid for tools */
@media (max-width: 768px) {
  #tools-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #tools-list {
    grid-template-columns: 1fr;
  }
}

/* Smartboard Image */
    .project-image {
      margin: 2rem auto;
      text-align: center;
      max-width: 100%;
    }

    .project-image img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 0.5rem;
    }


/* Goals section margin on sides */
#goals-section {
  margin-top: 3rem;
}

#goals-section,
#goals-section ~ * {
  margin-left: 3rem;
  margin-right: 3rem;
}

/* Bodywork page Challenges list styling */
#portfolio-bodywork #challenges-section ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#portfolio-bodywork #challenges-section li {
  margin-bottom: 10px;
}

/* Anchor defaults */
a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility & focus */
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}