/*
 * site.css — Shared styles for PinePaper static pages
 * (index, about, privacy, terms, blog)
 *
 * Does NOT affect the editor (editor.html uses its own output.css).
 * Loaded AFTER Tailwind's output.css for overrides.
 */

/* ── Base Typography ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  color: #d1d5db; /* gray-300 */
  background-color: #030712; /* gray-950 */
}

/* ── Headings ── */
h1 { font-weight: 800; letter-spacing: -0.02em; color: #f1f5f9; }
h2 { font-weight: 700; letter-spacing: -0.01em; color: #e2e8f0; }
h3 { font-weight: 600; color: #cbd5e1; }

/* ── Links ── */
a { transition: color 0.15s ease; }

/* ── Nav overflow prevention for long translations ── */
nav .md\:flex { flex-wrap: nowrap; }
nav .md\:flex a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1100px) {
  nav .md\:flex { gap: 0.75rem; }
  nav .md\:flex.space-x-6 > * + * { margin-left: 0.75rem; }
}
@media (min-width: 768px) and (max-width: 900px) {
  nav .md\:flex { font-size: 0.8rem; gap: 0.5rem; }
  nav .md\:flex.space-x-6 > * + * { margin-left: 0.5rem; }
  nav select { font-size: 0.75rem; padding: 0.35rem 0.5rem; }
}

/* ── Responsive text scaling ── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

@media (min-width: 1025px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }
}

/* ── Content sections ── */
.site-section {
  padding: 3rem 0;
}
@media (max-width: 640px) {
  .site-section { padding: 2rem 0; }
}

/* ── Content text ── */
.site-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #9ca3af;
}
.site-content strong {
  color: #e2e8f0;
  font-weight: 600;
}
.site-content ul {
  margin-bottom: 1.25rem;
}
.site-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #9ca3af;
}

/* ── Consistent container ── */
.site-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .site-container { padding: 0 1.5rem; }
}

/* ── Safe area for notch / island devices ── */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Dynamic viewport height for mobile browsers ── */
.min-h-screen {
  min-height: 100dvh;
}

/* ── PWA / Installed App Mode ── */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body {
    padding-top: env(safe-area-inset-top, 0px);
  }
  nav.sticky {
    top: env(safe-area-inset-top, 0px);
  }
}

/* ── Touch target minimum (WCAG 2.1 / Apple HIG) ── */
.touch-target-min {
  min-width: 44px;
  min-height: 44px;
}
