/* ── Base ── */
:root {
  --ink: #111;
  --muted: #555;
  --faint: #999;
  --line: #e0e0e0;
  --surface: #f5f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

/* ── Wordmark ── */
.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-wordmark {
  color: #fff;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ── Hero — crosshatch texture ── */
.hero {
  background-color: #0c0c0c;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.04) 11px,
      rgba(255, 255, 255, 0.04) 12px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.04) 11px,
      rgba(255, 255, 255, 0.04) 12px
    );
  color: #fff;
  padding: 7rem 3rem 6rem;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  font-weight: 400;
}

/* ── Sections ── */
.section {
  padding: 4rem 3rem;
}

.section-alt {
  background: var(--surface);
}

.section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--faint);
  margin: 0 0 1.75rem 0;
}

.section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 1rem 0;
}

.section p:last-of-type {
  margin-bottom: 0;
}

/* Subtle inline links for portfolio brands */
.section p a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.section p a:hover {
  border-color: var(--ink);
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #999;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

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

.contact-form button .arrow {
  display: inline-block;
  transition: transform 0.15s;
}

.contact-form button:hover .arrow {
  transform: translateX(3px);
}

.form-message {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 2px;
  font-size: 0.85rem;
}

.form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Footer ── */
.footer {
  background: #0c0c0c;
  color: #666;
  padding: 2.5rem 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-legal {
  font-size: 0.7rem;
  line-height: 1.6;
  color: #555;
  text-align: right;
  margin: 0;
}

.footer-legal small {
  display: block;
  margin-top: 0.35rem;
  color: #444;
  font-size: 0.65rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .topbar {
    padding: 0.75rem 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ── Letters pages (shared) ── */
.letters-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.letters-topbar .wordmark {
  color: var(--ink);
}

.letters-topbar .nav-links a {
  color: var(--faint);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.letters-topbar .nav-links a:hover {
  color: var(--ink);
}
