/*
Theme Name: வாழ்வியம்
Theme URI: https://vaazhviyam.org
Author: வாழ்வியம்
Description: இயற்கையோடு வாழ்தல் பற்றிய எளிய, இயற்கையான தளம்.
Version: 1.0
License: GPLv2 or later
Text Domain: vaazhviyam
*/

:root {
  --bg: #f7f4ea;
  --surface: #fffdf7;
  --ink: #25372c;
  --muted: #657268;
  --green: #2f5d45;
  --green-dark: #214433;
  --moss: #6f8f6a;
  --clay: #a65e43;
  --line: #dfe4d8;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Tamil", "Latha", "Tamil Sangam MN", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1100px, 92%); margin: 0 auto; }

.site-header {
  background: rgba(247, 244, 234, .96);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.brand { font-size: 1.35rem; font-weight: 700; color: var(--green-dark); letter-spacing: .02em; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.primary-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.primary-menu a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
}
.primary-menu a:hover,
.primary-menu .current_page_item a { background: var(--green); color: #fff; text-decoration: none; }

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #eef3e8 0%, #f7f4ea 60%, #f5ecdd 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.25; margin: 0 0 1rem; color: var(--green-dark); }
.hero .lead { font-size: 1.2rem; max-width: 680px; color: var(--muted); margin: 0 0 2rem; }
.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(47, 93, 69, .18);
}
.button:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.button.secondary { background: transparent; color: var(--green); border: 2px solid var(--green); box-shadow: none; }

.section { padding: 4rem 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--green-dark); margin: 0 0 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 55, 44, .04);
}
.card h3 { margin: 0 0 .5rem; color: var(--green); }
.card p { margin: 0; color: var(--muted); }
.card .num {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  background: #e7efe3;
  border-radius: 50%;
  color: var(--green);
  font-weight: 700;
  margin-bottom: .8rem;
}

.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-dark); margin: 0 0 1rem; line-height: 1.3; }
.prose h2 { font-size: 1.7rem; color: var(--green-dark); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.25rem; color: var(--green); margin: 1.8rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .4rem 0; }
.prose blockquote {
  border-inline-start: 4px solid var(--moss);
  margin: 1.5rem 0;
  padding: .5rem 1.2rem;
  background: #eef3e8;
  color: var(--green-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.post-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.post-card h3 a { color: var(--green-dark); }
.post-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.post-card p { margin: 0; color: var(--muted); }
.entry-meta { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }

.pagination { margin-top: 2rem; }
.pagination .page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; margin-inline-end: .3rem; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

.site-footer { background: var(--green-dark); color: #e8efe6; padding: 3rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #cfe3c8; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer p { margin: .3rem 0; }

@media (max-width: 700px) {
  .hero { padding: 3.5rem 0; }
  .header-inner { align-items: flex-start; }
  .primary-menu ul { gap: .2rem; }
  .primary-menu a { padding: .45rem .7rem; font-size: .95rem; }
}
