:root {
  --bg: #e8e4dc;
  --fg: #302e29;
  --muted: #6f6b60;
  --accent: #6b7a5e;
  --border: #d7d1c3;
  --card-bg: #f2efe8;
  --shadow: 0 1px 2px rgba(48, 46, 41, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201f1b;
    --fg: #e9e5db;
    --muted: #a19b8d;
    --accent: #9aab8b;
    --border: #3a382f;
    --card-bg: #2a2822;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.profile {
  max-width: 560px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.profile .tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.profile nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

.profile nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.projects {
  padding: 2.5rem 0 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.project-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
  flex-grow: 1;
}

.project-card.placeholder {
  border-style: dashed;
  box-shadow: none;
  opacity: 0.55;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

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

.about {
  padding: 2.5rem 0 3rem;
}

.about p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
}

.about-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.about-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1rem;
}

.about-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about p.placeholder-note,
.contact p.placeholder-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
}

.contact {
  padding: 2.5rem 0 3rem;
}

.contact > p {
  margin: 0 0 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 460px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: -0.7rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
