/* riktom.com — shared stylesheet */

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

:root {
  --green:      #1e3d2f;
  --green-mid:  #2e6347;
  --green-light:#4a8c60;
  --fire:       #d96c2a;
  --water:      #2e7da6;
  --bg:         #f7f5f0;
  --bg-card:    #ffffff;
  --text:       #1c1c1c;
  --muted:      #5a5a5a;
  --border:     #ddd8cf;
  --radius:     10px;
  --max-w:      860px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  background: var(--green);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav .logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
}
nav .logo span { color: #7ecba0; }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
nav ul a {
  color: #cce8d8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}
nav ul a:hover { color: #fff; text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-mid) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: normal;
}
.hero p {
  font-size: 1.15rem;
  color: #b8dfc7;
  max-width: 540px;
  margin: 0 auto 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.hero-cta {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.hero-cta:hover { background: #bf5a20; text-decoration: none; }

/* ── Page sections ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section-title {
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  font-weight: normal;
}
.section-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── App cards ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.app-card .app-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.app-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.app-card p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-fire  { background: var(--fire);  color: #fff; }
.btn-water { background: var(--water); color: #fff; }

/* ── Article list ── */
.article-list { list-style: none; }
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.article-list li:last-child { border-bottom: none; }
.article-list a {
  font-size: 1.05rem;
  color: var(--green);
}
.article-list span {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Prose (about, articles, privacy) ── */
.prose h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--green);
  margin-bottom: 0.5rem;
  font-weight: normal;
}
.prose .byline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-size: 1.3rem;
  color: var(--green);
  margin: 2.2rem 0 0.6rem;
  font-weight: normal;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose .callout {
  background: #eaf4ef;
  border-left: 4px solid var(--green-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  background: var(--green);
  color: #9fcfb4;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
}
footer a { color: #b8dfc7; }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul { gap: 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
}
