/*
Theme Name: DailyAnswered
Version: 3.0
*/

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

:root {
  --black: #111;
  --white: #fff;
  --gray: #767676;
  --light: #f7f7f7;
  --border: #e9e9e9;
  --red: #c0392b;
  --max: 1200px;
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html { font-size: 16px; }
body { font-family: var(--sans); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--black);
  color: #aaa;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 0;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 18px;
  text-align: center;
  border-bottom: 3px solid var(--black);
}
.site-name {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black);
  line-height: 1;
}
.site-tagline {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 5px;
}

/* ── NAV ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-nav .nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--black);
  transition: color .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--red); }

/* ── PAGE WRAPPER ── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  margin-bottom: 20px;
  display: inline-block;
}

/* ── POST LIST (homepage) ── */
.post-item {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  gap: 6px;
}
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }

.post-category {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.post-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
.post-title a:hover { color: var(--red); }
.post-excerpt {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.5;
}
.post-meta {
  font-size: 11px;
  color: #bbb;
  letter-spacing: .03em;
}

/* ── SIDEBAR ── */
.sidebar-widget { margin-bottom: 32px; }
.sidebar-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--black);
}
.sidebar-post {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post-title {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}
.sidebar-post-title a:hover { color: var(--red); }
.sidebar-post-meta { font-size: 11px; color: #bbb; margin-top: 3px; }

.ad-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bbb;
  display: block;
  text-align: center;
  margin-bottom: 6px;
}

/* ── SINGLE POST ── */
.breadcrumb {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; color: #ccc; }

.post-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.entry-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .entry-title { font-size: 1.55rem; } }

.entry-dek {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  line-height: 1.65;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.entry-byline {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-content {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1a1a1a;
}
.entry-content h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2em 0 .7em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
  color: var(--black);
}
.entry-content h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.6em 0 .5em;
}
.entry-content p { margin-bottom: 1.3em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.5em; }
.entry-content li { margin-bottom: .5em; }
.entry-content strong { font-weight: 700; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote {
  border-left: 3px solid var(--black);
  padding: 10px 18px;
  margin: 1.5em 0;
  color: #444;
  font-style: italic;
  background: var(--light);
}

/* ── AD SLOTS ── */
.ad-slot { text-align: center; margin: 28px 0; }

/* ── RELATED ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-item { border-top: 2px solid var(--black); padding-top: 12px; }
.related-cat { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.related-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.related-title a:hover { color: var(--red); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--black);
}
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination a:hover { background: var(--light); }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: #888;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.footer-desc { font-size: 13px; line-height: 1.6; }
.footer-col-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ccc; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; color: #888; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #222;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
