/*
Theme Name: Revast Blog
Theme URI: https://revast.xyz
Author: Revast
Author URI: https://revast.xyz
Description: Minimal dark blog theme for Revast.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revast-blog
*/
/* Revast Blog â€” minimal dark theme */

:root {
  --bg: #141414;
  --bg-soft: #1c1c1c;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --border: #2e2e2e;
  --max: 40rem;
  --wide: 56rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body,
body.custom-background {
  margin: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text) !important;
  background: var(--bg) !important;
  background-image: none !important;
}

.page-wrap {
  flex: 1 0 auto;
  width: 100%;
}

/* Kill default WP / browser link blues */
a,
a:visited,
.entry-content a,
.entry-content a:visited,
.post-card a,
.post-card a:visited,
.footer-links a,
.footer-links a:visited,
.site-nav a,
.site-nav a:visited {
  color: var(--text-muted);
  text-decoration: none;
}

a:hover,
a:focus,
.entry-content a:hover,
.post-card h2 a:hover,
.site-nav a:hover,
.footer-links a:hover {
  color: var(--text) !important;
}

.post-card h2 a,
.brand,
.brand:hover,
.brand:visited {
  color: var(--text) !important;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--text) !important;
  font-weight: 600;
  line-height: 1.3;
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
}

.brand__logo,
.site-header .brand img,
.site-header .custom-logo-link img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.site-header .custom-logo-link {
  display: flex;
  line-height: 0;
}

.wp-block-site-logo {
  display: none;
}

.brand__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.brand__label {
  display: none;
}

.site-header nav ul,
.site-nav,
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.site-header nav li,
.site-nav li,
.menu li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.site-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted) !important;
}

.site-nav a:hover {
  color: var(--text) !important;
}

/* Layout */
.page-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

/* Home hero */
.hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.hero__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list > li {
  margin: 0;
  padding: 0;
}

.post-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-radius: 0;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card h2 {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.excerpt {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Article */
.entry-content,
.entry-content p,
.entry-content li {
  color: #e5e5e5;
}

.entry-content p {
  margin: 0 0 1.15rem;
}

.entry-content h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

.entry-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
}

.entry-content pre,
.entry-content code {
  background: var(--bg-soft);
  color: #e5e5e5;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.entry-content pre {
  padding: 1rem;
  overflow-x: auto;
}

.entry-content code {
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

/* Tags â€” plain text, no pills */
.tags,
.wp-block-post-terms {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tags a,
.wp-block-post-terms a {
  color: var(--text-muted) !important;
  text-decoration: none;
  margin-right: 0.5rem;
}

.tags a:hover {
  color: var(--text) !important;
}

/* CTA â€” simple text link style */
.cta-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
  background: none;
  border-radius: 0;
}

.cta-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-button {
  display: inline-block;
  color: var(--text) !important;
  text-decoration: underline !important;
  font-weight: 500;
  background: none !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none !important;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a,
.site-footer a:visited,
.footer-links a,
.footer-links a:visited {
  color: var(--text-muted) !important;
  text-decoration: none !important;
}

.site-footer a:hover,
.site-footer a:focus,
.footer-links a:hover,
.footer-links a:focus {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination a,
.pagination span {
  color: var(--text-muted) !important;
  text-decoration: none;
  margin: 0 0.35rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Related posts */
.related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-posts__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.related-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.related-posts__list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.related-posts__list a:hover {
  text-decoration: underline;
}

.related-posts__list time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.footer-guides {
  margin-top: 1.25rem;
  width: 100%;
}

.footer-guides__label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* WordPress block editor cruft on front */
.wp-block-group,
.wp-block-post-content {
  color: inherit;
}

