/* style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Pro', serif;
  max-width: 700px;
  margin: 2em auto; /* increased top/bottom margin */
  padding: 0 1em;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

header {
  text-align: left;
  margin-bottom: 1em;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 0;
}

h2 {
  margin-top: 0;
  padding-top: 0;
}


hr {
  border: none;
  border-top: 1px solid #000;
  margin: 0.5em 0 1.5em 0;
}

nav {
  margin-top: 2em;
  font-size: 1em;
}

nav a {
  color: #000;
  text-decoration: none;
  margin-right: 1em;
}

nav a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 1em;
}

footer {
  margin-top: 3em;
  font-size: 0.8em;
  color: #555;
  border-top: 1px solid #000;
  padding-top: 1em;
}

/* FLEX footer spacing fix */
.flex-space-between {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

/* Project card */
.project-card {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.project-card:last-child {
  border-bottom: none;
}

.project-title {
  font-weight: 1000;
  margin-bottom: 0.25em;
}

/* Project styling */
.project {
  margin-bottom: 2em;
}

.project h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.project img {
  max-width: 100%;
  height: auto;
  margin: 0.5em 0;
  border: 1px solid #eee;
}

.project-links a {
  color: #000;
  text-decoration: none;
  margin-right: 1em;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Card layout for content blocks */
.card {
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 2em;
}

/* Profile image inside card */
.card img.profile-pic {
  border-radius: 50%;
  width: 150px;
  margin-bottom: 1em;
  border-radius: 25px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Section headings inside card */
.section-title {
  font-size: 1.3em;
  margin-top: 0em;
  color: #444;
}

/* Link colors */
a {
  color: #0044aa;
}

a:hover {
  text-decoration: underline;
}

/* Project title + date in one line, date right-aligned */
.project-header {
  display: flex;                 /* turn it into a flex container */
  justify-content: space-between;/* put title on left, date on right */
  align-items: center;            /* vertically center both */
}

.project-header h2 {
  font-size: 1.5em; /* bigger than date */
  margin: 0;
}

.project-header p {
  margin: 0;
  font-size: 1em; /* smaller date */
  color: #666;    /* subtle look */
}

/* About page header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem; /* increased space between image and text */
}

.fancy-greeting {
  font-size: 4rem;
  font-family: 'Playwrite Australia NSW', cursive;
  margin: 0;
  font-weight: 700; /* bolder style from the font */
  align-items: right;
}

.projects-container {
  display: flex;
  gap: 2em;           /* space between cards */
  flex-wrap: wrap;    /* allow wrapping on smaller screens */
  justify-content: center;
}

.projects-container .project {
  flex: 1 1 300px;    /* cards shrink/grow but never smaller than 300px */
  max-width: 500px;   /* keeps them from being too wide */
}



img {
  border-radius: 16px;
}