:root {
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --rule: #e5e5e5;
  --bg: #fafaf7;
  --accent: #1a1a1a;
  --max-width: 36rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.tagline {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 3rem;
  letter-spacing: 0.01em;
}

.bio p {
  margin: 0 0 2.5rem;
}

.links {
  margin-bottom: 3.5rem;
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.links li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.6;
}

/* Contact form */
.contact {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  margin-top: 1rem;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.005em;
}

#contact-form {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 0.95rem;
}

#contact-form label {
  margin: 0.75rem 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.15s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-bottom-color: var(--ink);
}

#contact-form textarea {
  resize: vertical;
  min-height: 5rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
}

#contact-form button {
  margin-top: 1.75rem;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

#contact-form button:hover {
  background: #333;
}

.form-status {
  font-family: var(--sans);
  font-size: 0.85rem;
  margin: 1rem 0 0;
  min-height: 1.2em;
}

.form-status.sending { color: var(--ink-soft); }
.form-status.success { color: #166534; }
.form-status.error   { color: #b91c1c; }

footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

footer p {
  margin: 0;
}

/* Smaller screens */
@media (max-width: 480px) {
  body { font-size: 17px; }
  main { padding: 4rem 1.25rem 3rem; }
  header h1 { font-size: 1.85rem; }
}
