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

:root {
  --ink: #0a0a0a;
  --muted: #555;
  --rule: #ddd;
  --bg: #fff;
  --max: 720px;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  padding: 0 20px 80px;
}

/* ── Nav ── */
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
nav .logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.3px;
  text-decoration: none;
  color: var(--ink);
}
nav .logo span { font-weight: 400; color: var(--muted); }

/* ── Main ── */
main {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Typography ── */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: -.2px;
}
p, li { font-size: .975rem; color: #222; margin-bottom: 12px; }
ul, ol { padding-left: 20px; margin-bottom: 12px; }
li { margin-bottom: 6px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { opacity: .65; }
strong { font-weight: 600; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 500px) { .contact-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fafafa;
  transition: border-color .15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: #666; background: #fff; }
textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: 16px; }

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  font-family: inherit;
}
button[type="submit"]:hover { opacity: .8; }

.email-alt {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}
.email-alt a { color: var(--ink); font-weight: 600; }

/* ── Footer ── */
footer {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
