/*
Theme Name: Writee Ajbi (Child)
Theme URI: https://ajbi.se
Description: Readability-first child theme for Writee. Adds topic/category navigation and a cleaner footer.
Author: Ajbi
Template: writee
Version: 1.0.0
Text Domain: writee-ajbi-child
*/

/* === Readability === */
:root{
  --ajbi-max: 760px;
  --ajbi-border: #e5e7eb;
  --ajbi-muted: #6b7280;
}

body{ line-height: 1.75; }
.entry-content p{ margin: 1.05em 0; }
.entry-content h1,.entry-content h2,.entry-content h3{ line-height: 1.2; margin-top: 1.5em; }

/* Narrow article column (especially when no sidebar) */
.site-content.with-no-sidebar,
.site-content.compact-view{
  max-width: var(--ajbi-max);
  margin-left: auto;
  margin-right: auto;
}

/* Topic pills in header */
.ajbi-topic-nav{ margin-top: 10px; }
.ajbi-topic-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  list-style:none;
  padding-left:0;
  margin:0;
}
.ajbi-topic-nav li{ margin:0; }
.ajbi-topic-nav a{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--ajbi-border);
  border-radius:999px;
  text-decoration:none;
  font-size: .92rem;
}
.ajbi-topic-nav a:hover{ opacity:.9; }

/* Cleaner footer */
.site-footer-bottom{
  border-top: 1px solid var(--ajbi-border);
}
.site-footer-bottom a{ color: var(--ajbi-muted); }
.site-footer-bottom a:hover{ color: inherit; }

/* =============================
   Ajbi: minimal premium tweaks
   ============================= */

/* Better overall rhythm */
body { line-height: 1.75; }

/* Prevent “everything pushed to bottom” look on some layouts */
#main, #content, .content-area { min-height: 1px; }

/* Front page */
.ajbi-front { padding: 0 0 40px 0; }
.ajbi-container { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.ajbi-hero { padding: 72px 0 38px 0; text-align: center; }
.ajbi-title { font-size: 44px; margin: 0 0 10px 0; }
.ajbi-subtitle { font-size: 16px; margin: 0 auto 18px; max-width: 720px; opacity: .85; }
.ajbi-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ajbi-btn { display: inline-block; padding: 10px 16px; border: 1px solid #111; border-radius: 999px; text-decoration: none; }
.ajbi-btn-ghost { background: transparent; opacity: .9; }

.ajbi-section { padding: 18px 0 0 0; }
.ajbi-section-title { font-size: 20px; margin: 0 0 6px; }
.ajbi-section-lead { margin: 0 0 18px; opacity: .8; }

.ajbi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .ajbi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ajbi-title { font-size: 34px; }
  .ajbi-hero { padding: 54px 0 28px; }
  .ajbi-grid { grid-template-columns: 1fr; }
}

.ajbi-card { border: 1px solid rgba(0,0,0,.12); border-radius: 16px; overflow: hidden; background: #fff; }
.ajbi-card-link { display: block; padding: 16px; color: inherit; text-decoration: none; }
.ajbi-card-top { margin-bottom: 10px; }
.ajbi-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.18); font-size: 12px; }
.ajbi-card-title { font-size: 16px; margin: 0 0 6px; }
.ajbi-card-meta { font-size: 12px; opacity: .7; margin-bottom: 8px; }
.ajbi-card-excerpt { margin: 0 0 10px; opacity: .9; }
.ajbi-card-cta { font-size: 12px; text-decoration: underline; opacity: .85; }

/* Make single post more readable */
.single .entry-content, .single .post-content, .single .content-area {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Category list chips (if your theme shows them) */
.cat-links a { text-decoration: none; }


/* Topic strip under main menu */
.ajbi-topic-strip { margin: 10px 0 0 0; }
.ajbi-topic-strip__inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ajbi-topic { display: inline-block; padding: 6px 10px; border: 1px solid rgba(0,0,0,0.12); border-radius: 999px; font-size: 13px; line-height: 1; text-decoration: none; }
.ajbi-topic:hover { border-color: rgba(0,0,0,0.35); }

@media (max-width: 768px) {
  .ajbi-topic-strip { display: none; }
}
