/*
Theme Name: Elone
Theme URI: https://elone.site/
Author: Elone
Author URI: https://elone.site/
Description: A minimalist, high-performance editorial and news blog theme for Elone.site featuring vintage earthy colors (Teal, Cream, Red, Maroon).
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: elone
*/

:root {
  --teal: #31AAA9;          /* Buttons, Links & Accents */
  --cream: #F8E0A4;         /* Cards, Containers & Category Tiles */
  --red: #A82020;           /* Badges, Chips & Highlights */
  --maroon: #6C1A1A;        /* Headlines & Deep Accents */
  --bg: #FDFBF6;            /* Clean Soft Cream Background */
  --text: #2A1717;          /* High contrast readable text */
  --muted: #6B4E4E;         /* Secondary text */
  --border: #E8D098;        /* Soft border */
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.25;
  color: var(--maroon);
  font-weight: 700;
}

h1 { font-size: 2.2rem; margin: 0 0 .6rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--maroon); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--maroon);
  letter-spacing: -.02em;
}

.logo span { color: var(--teal); }

nav.main-nav { display: flex; gap: 1.5rem; align-items: center; }
nav.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
nav.main-nav a {
  color: var(--maroon);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s, color .15s;
}

nav.main-nav a:hover,
nav.main-nav .current-menu-item > a {
  border-color: var(--teal);
  color: var(--teal);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--maroon);
}

@media(max-width: 820px) {
  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    z-index: 100;
  }
  nav.main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .hamburger { display: inline-block; }
}

/* Buttons */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: .15s;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--teal);
  color: #fff;
}

.btn.solid { background: var(--teal); color: #fff; }
.btn.solid:hover { background: #228281; border-color: #228281; }

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.hero .eyebrow {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: .6rem;
}

.hero h1 { font-size: 2.4rem; color: var(--maroon); }
.hero p.lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.4rem; }
.hero img { border-radius: var(--radius); border: 1px solid var(--border); }

@media(max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 0; }
  .hero .img-wrap { order: -1; }
}

/* Category Strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.cat-tile {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--text);
  transition: border-color .15s, transform .15s;
  display: block;
}

.cat-tile:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.cat-tile h3 { margin: .3rem 0 .3rem; font-size: 1.05rem; color: var(--maroon); }
.cat-tile span.count { color: var(--muted); font-size: .85rem; }
.cat-tile .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

@media(max-width: 760px) { .cat-strip { grid-template-columns: 1fr 1fr; } }
@media(max-width: 480px) { .cat-strip { grid-template-columns: 1fr; } }

/* Post Grid / Cards */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media(max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}

.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.card .thumb-link { display: block; overflow: hidden; }
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .2s ease;
}

.card:hover img { transform: scale(1.03); }
.card .body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; line-height: 1.35; color: var(--maroon); }
.card p { color: var(--muted); font-size: .92rem; margin: 0; flex-grow: 1; }

.tag-chip {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .5rem;
  width: fit-content;
}

.cat-label {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .2rem;
}

/* Single Article Post */
.single-post-wrap {
  padding: 3rem 0;
}

.single-post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-header h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.post-meta-bar {
  color: var(--muted);
  font-size: .9rem;
}

.featured-image-box {
  margin: 2rem 0;
}

.featured-image-box img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post-content h2 {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

blockquote {
  border-left: 3px solid var(--teal);
  padding: .5rem 0 .5rem 1.2rem;
  margin: 1.8rem 0;
  font-family: 'Bitter', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--maroon);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-grid h4 { font-size: .95rem; margin: 0 0 .8rem; color: var(--maroon); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .88rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding: 1.2rem 20px 0;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

@media(max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
