@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=UnifrakturCook:wght@700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

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

/* --- Bauhaus color palette --- */

:root {
  --red: #be1e2d;
  --blue: #1a3a6b;
  --yellow: #e8a824;
  --black: #1a1a1a;
  --warm-white: #f5f1eb;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--warm-white);
  padding: 2em 1.5em 2em 2.5em;
  max-width: 720px;
  margin: 0 auto;
  border-left: 6px solid var(--red);
  min-height: 100vh;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header / Name --- */

h1 {
  font-family: "UnifrakturCook", cursive;
  font-size: 3em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.1em;
}

/* --- Navigation --- */

nav {
  margin-bottom: 2.5em;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

nav a {
  margin-right: 1.5em;
  color: var(--black);
}

nav a:hover {
  color: var(--red);
}

nav a.active {
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* --- Profile picture --- */

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 0;
  object-fit: cover;
  float: right;
  margin: 0 0 1em 1.5em;
  border: 3px solid var(--black);
}

/* --- Intro / bio --- */

.intro {
  margin-bottom: 2em;
  overflow: hidden; /* clear the float */
}

.intro p {
  margin-bottom: 0.8em;
}

/* --- Section headings --- */

h2 {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 3px solid var(--black);
}

h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  margin-right: 0.6em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* --- Project / work cards --- */

.item {
  margin-bottom: 1.8em;
  padding-left: 1em;
  border-left: 3px solid var(--yellow);
}

.item h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 0.15em;
}

.item .meta {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}

.item p {
  margin-bottom: 0.4em;
}

/* --- Footer --- */

footer {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 3px solid var(--black);
  font-size: 0.85em;
  color: #777;
}

footer p {
  margin-bottom: 0.3em;
}

footer a {
  color: #777;
}

footer a:hover {
  color: var(--red);
}

/* --- Responsive --- */

@media (max-width: 500px) {
  body {
    font-size: 16px;
    padding: 1.5em 1em 1.5em 1.5em;
    border-left-width: 4px;
  }

  h1 {
    font-size: 2.2em;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }
}
