/*
Theme Name: Hmmph
Theme URI: 
Author: Apoorva
Description: A personal-brand blog theme for Hymph. Deep musky green + warm off-white, mobile-first, fast, and readable. Built as a persona hub.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: hymph
*/

/* ============================================================
   COLOR PALETTE (CSS variables)
   ============================================================ */
:root {
  --green:        #2F4739; /* primary brand */
  --green-dark:   #22352A; /* nav, header, footer */
  --ink:          #1A241E; /* body text */
  --paper:        #F5F3EC; /* background */
  --brass:        #C6A15B; /* accent / CTA / links */
  --sage:         #8FA598; /* borders, muted */
  --paper-card:   #FBFAF4; /* slightly lifted card bg */
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  color: var(--green);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.wide { max-width: 1080px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--green-dark);
  color: var(--paper);
}
.site-header .container {
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 12px;
}
.site-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--paper);
  margin: 0;
}
.site-title a { color: var(--paper); text-decoration: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; color: var(--brass); text-decoration: none; }

/* ============================================================
   HERO (front page)
   ============================================================ */
.hero {
  background: var(--green);
  color: var(--paper);
  padding: 56px 0;
}
.hero .container { max-width: 820px; }
.hero-intro {
  font-size: 24px;
  line-height: 1.5;
  color: var(--paper);
  margin: 0;
  font-weight: 500;
}
.hero-intro strong { color: var(--brass); }

/* ============================================================
   SECTION HUB (category cards)
   ============================================================ */
.sections {
  padding: 48px 0 8px;
}
.sections h2 {
  text-align: center;
  margin-bottom: 28px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) {
  .section-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .section-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.section-card {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--sage);
  border-radius: 10px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.section-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,53,42,0.12);
}
.section-card h3 { margin: 0 0 6px; color: var(--green); }
.section-card p { margin: 0; font-size: 15px; color: var(--ink); opacity: 0.8; }

/* ============================================================
   POST LISTS
   ============================================================ */
.recent { padding: 40px 0 8px; }
.recent h2 { margin-bottom: 20px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--sage);
}
.post-list h3 { margin: 0 0 6px; font-size: 21px; }
.post-list a { color: var(--green); text-decoration: none; }
.post-list a:hover { color: var(--brass); }
.post-meta { font-size: 14px; color: var(--sage); }

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.content { padding: 40px 0 60px; }
.entry-title { font-size: 34px; margin: 0 0 8px; }
.entry-meta { font-size: 14px; color: var(--sage); margin-bottom: 28px; }
.entry-content p { margin: 0 0 20px; }
.entry-content h2 { margin: 34px 0 12px; font-size: 26px; }
.entry-content h3 { margin: 26px 0 10px; font-size: 21px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--brass);
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  color: var(--green);
  font-style: italic;
}
.hr-divider {
  border: 0;
  border-top: 1px solid var(--sage);
  margin: 28px 0;
}

/* Author box */
.author-box {
  margin-top: 40px;
  padding: 22px;
  background: var(--paper-card);
  border: 1px solid var(--sage);
  border-radius: 10px;
}
.author-box strong { color: var(--green); }

/* ============================================================
   BUTTONS / CTA
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: 0.94; color: var(--paper); }
.btn-cta { background: var(--brass); color: var(--ink); }
.btn-cta:hover { color: var(--ink); }

/* ============================================================
   SIGNUP BLOCK
   ============================================================ */
.signup {
  background: var(--green);
  color: var(--paper);
  padding: 32px 0;
}
.signup .container { max-width: 640px; text-align: center; }
.signup h3 { color: var(--paper); margin: 0 0 8px; }
.signup p { margin: 0 0 16px; opacity: 0.9; font-size: 16px; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--sage);
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: var(--paper);
  padding: 36px 0 24px;
  margin-top: 20px;
}
.site-footer .container { max-width: 1080px; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0 0 16px;
}
.footer-nav a { color: var(--paper); opacity: 0.85; font-size: 15px; text-decoration: none; }
.footer-nav a:hover { opacity: 1; color: var(--brass); }
.copyright { font-size: 14px; opacity: 0.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero-intro { font-size: 20px; }
  .entry-title { font-size: 27px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}
