:root {
  --text-color: #111;
  --secondary-text: #666;
  --bg-color: #fff;
  --link-color: #111;
  --border-color: #eee;
  --input-bg: #fafafa;
  --container-width: 650px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 5rem auto;
  padding: 0 1.5rem;
}

header {
  margin-bottom: 5rem;
  position: relative;
}

.logo {
  margin-bottom: 2rem;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 4px;
}

.logo img {
  display: block;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

/* Subtle background accent */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: black;
  z-index: 1000;
}

.tagline {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin: 0;
}

section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.intro {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects li {
  margin-bottom: 2.5rem;
}

.projects li a, 
.projects li .offline-project {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--link-color);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.projects li a:hover {
  text-decoration: underline;
}

.projects li p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 1rem;
  max-width: 60ch;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text);
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: var(--input-bg);
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--text-color);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
  align-self: flex-start;
  min-width: 150px;
}

button:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  margin-top: 8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

footer p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-links li a {
  text-decoration: none;
  color: var(--link-color);
  font-size: 1rem;
  font-weight: 500;
}

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

@media (max-width: 600px) {
  .container {
    margin: 3rem auto;
  }
  
  header {
    margin-bottom: 3.5rem;
  }
  
  section {
    margin-bottom: 3.5rem;
  }
  
  button {
    width: 100%;
  }
}
