/*
Theme Name: Happy Eprom
Theme URI: https://happyeprom.com/
Author: Dan Ruscoe
Author URI: https://happyeprom.com/
Description: The WordPress theme for Happy Eprom.
Version: 1.0
Text Domain: happyeprom
*/

:root {
  color-scheme: light;
  --page-background: #ffffff;
  --panel-background: #ffffff;
  --section-bar: #b7c2df;
  --border: #111111;
  --text: #111111;
  --link: #0000ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: #551a8b;
}

.site-header {
  background: var(--page-background);
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  display: block;
  width: auto;
  max-width: 225px;
  max-height: 90px;
}

.site-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-description {
  margin: 4px 0 0;
  color: #444444;
  font-size: 0.9rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-weight: 400;
}

.site-layout {
  max-width: 1800px;
  margin: 0 auto;
  padding: 10px 20px 24px;
  display: grid;
  grid-template-columns: minmax(190px, 16%) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.site-sidebar {
  min-width: 0;
}

.sidebar-section {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--panel-background);
}

.sidebar-section-title {
  margin: 0;
  padding: 4px 5px;
  background: var(--section-bar);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.sidebar-section-links {
  margin: 0;
  padding: 3px 8px 5px;
  list-style: none;
  text-align: center;
}

.sidebar-section-links li {
  margin: 0;
  padding: 0;
  line-height: 1.15;
}

.sidebar-section-links a {
  font-weight: 400;
}

.post-card {
  margin: 0 0 5px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-background);
}

.post-meta {
  margin: 0 0 8px;
  padding: 0;
  color: #444444;
  font-size: 0.9rem;
  line-height: 1.25;
}

.post-title {
  margin: 0;
  padding: 4px 12px;
  background: var(--section-bar);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--link);
  text-decoration: underline;
}

.post-content {
  padding: 6px 12px;
}

.post-content p,
.post-content .wp-block-paragraph {
  margin: 0 0 32px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.post-content .wp-block-paragraph {
  margin-top: 32px;
}

.post-content > :last-child {
  margin-bottom: 0;
}

.post-content figure.wp-block-image {
  margin: 10px auto 0;
  text-align: center;
}

.post-content .wp-block-image img {
  max-width: 100%;
  height: auto;
}

.pagination {
  margin: 14px 0;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--panel-background);
}

.pagination .page-numbers.current {
  background: var(--section-bar);
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  padding: 12px 20px 20px;
  color: #444444;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.wp-block-embed.is-type-video {
  text-align: center;
}

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

  .site-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .site-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    align-items: start;
  }

  .sidebar-section {
    margin-bottom: 0;
  }
}
