:root {
  --bg: #f0eee6;
  --text: #111111;
  --link: #007acc;
  --font-size: 18px;
  --max-width: 80ch;
}

[data-theme="dark"] {
  --bg: #1b1b16;
  --text: #eeeeee;
  --link: #66aaff;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Palatino Linotype", Palatino, serif;
  line-height: 1.6;
  font-size: var(--font-size);
  margin: 0;
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

h1, h2 {
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.8rem;
}

.socials ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
}

.socials li {
  margin-bottom: 0;
}

header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--text);
}

#theme-toggle {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.7;
}
.project {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project img {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border: 1px solid var(--text);
  border-radius: 4px;
}

.project-text {
  flex: 1;
  min-width: 200px;
}

.project-text p {
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.project-link {
  color: var(--text);
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}
