/*
 * Visual language matches pdfserve.eu's marketing layout: light theme,
 * max-w-5xl centered container, gray-900 semibold tracking-tight headings,
 * gray-600 body, emerald-600 accent, gray border separators.
 *
 * pdfserve.eu uses Tailwind to get there; this site is one HTML file, so the
 * same tokens are inlined as vanilla CSS variables (--gray-900 = #111827, etc.)
 * so the two sites read as the same brand without pulling in a build step.
 */

:root {
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --emerald-600: #059669;
  --emerald-500: #10b981;

  --max-w: 64rem; /* tailwind max-w-5xl */
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--gray-900);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* --- Header ---------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.wordmark span {
  color: var(--emerald-600);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

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

/* --- Main ------------------------------------------------------------------ */

main.container {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero {
  padding: 1.5rem 0 2.5rem;
}

.hero h1 {
  max-width: 48rem;
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  line-height: 1.15;
}

.hero .lead {
  max-width: 40rem;
  margin: 0;
  color: var(--gray-600);
  font-size: 1.125rem;
}

.section {
  border-top: 1px solid var(--gray-200);
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Cards ----------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease,
    transform 120ms ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--gray-300);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04),
    0 4px 12px rgba(17, 24, 39, 0.06);
  outline: none;
  transform: translateY(-1px);
}

.card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--emerald-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.card:hover .card-link {
  color: var(--emerald-500);
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--gray-700);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
