/* Stillness – Meditation Timer | GitHub Pages */

:root {
  --primary: #1D9472;
  --secondary: #BDFFDC;
  --bg: #f8faf9;
  --text: #1a1f1c;
  --text-muted: #4a524d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* Header */
.site-header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.lang-selector {
  font-size: 0.95rem;
}

.lang-selector a {
  color: white;
  font-weight: 500;
}

.lang-selector a.lang-active {
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}

.lang-selector a:not(.lang-active):hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Main content */
main {
  padding-bottom: 3rem;
}

h1 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Section backgrounds (secondary tint) */
.section-tint {
  background-color: var(--secondary);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* Screenshot / responsive image */
.screenshot-wrap {
  margin: 1.5rem 0;
}

.screenshot-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* FAQ items */
.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--secondary);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h2 {
  margin-top: 0;
}

/* Legal pages: section spacing */
.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section h2 {
  margin-bottom: 0.5rem;
}

.legal-section ul {
  margin-bottom: 0.5rem;
}

/* Mobile: nav stacks if needed */
@media (max-width: 500px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
