/* ==========================================================================
   jeroen.md - Minimal landing page
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-heading: #111827;
  --border: #e5e7eb;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --radius-sm: 8px;

  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --transition-fast: 150ms ease;

  --content-width: 560px;
  --page-padding: 1.5rem;
}


/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-muted);
}

::selection {
  background: rgba(17, 24, 39, 0.1);
  color: inherit;
}


/* --------------------------------------------------------------------------
   Landing Page
   -------------------------------------------------------------------------- */

.landing {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--page-padding);
  padding-top: 20vh;
  min-height: 80vh;
}

.landing h1 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.landing-name {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.landing-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.landing-detail {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.landing-detail a {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.landing-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  margin-bottom: var(--space-xl);
}

.landing-cta:hover {
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.landing-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.landing-links a:hover {
  color: var(--text);
  text-decoration: underline;
}


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

footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--page-padding) var(--space-2xl);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-sep {
  margin: 0 0.3rem;
  opacity: 0.4;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --page-padding: 1rem;
  }

  .landing {
    padding-top: 12vh;
    min-height: 70vh;
  }

  .landing h1 {
    font-size: 1.6rem;
  }

  .landing-lead {
    font-size: 1rem;
  }

  .landing-links {
    gap: var(--space-sm);
  }
}

@media (pointer: coarse) {
  .landing-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
.landing-cta:focus-visible {
  outline: 2px solid var(--text-heading);
  outline-offset: 2px;
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  body {
    background: white !important;
    color: black !important;
  }

  a {
    color: black !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
