/*
Theme Name: André 2025-04-22
Template: blankslate
*/

:root {
  --font-size-small: 0.875rem;
  --font-size-base: 1.25rem;
  --font-size-large: 1.35rem;
  --font-size-xlarge: 1.5rem;

  --font-family-primary: "Open Sans", sans-serif;
  --font-family-secondary: "Lato", sans-serif;
  --font-family-tertiary: "Montserrat", sans-serif;

  --color-primary: #333;
  --color-secondary: #666;

  /* --background-color-primary: cornsilk; */
  --background-color-primary: #fcf7e8;
  --background-color-secondary: #e6f3e6;
  --background-color-tertiary: #fff;

  --font-weight-regular: 400;
  --font-weight-bold: 600;

  --line-height: 1.4;
}

/* === Base Styles === */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  color: var(--color-primary);
  margin: 1em;
  line-height: var(--line-height);
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  margin: 0 0 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bs-heading-color, var(--color-primary));
}
h2,
h3,
h4,
h5,
h6 {
  margin: 0.5rem 0;
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}
h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
h4 {
  font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.5rem);
}
h5 {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
}
h6 {
  font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
}

p {
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.6;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
li {
  margin: 0.5rem 0;
}

a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: #0056b3;
}
a:active {
  color: #004085;
}
a:focus-visible {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* === Layout === */
header,
nav,
/* main, */
aside,
footer {
  padding: 0.25rem;
}

header {
  /*
  background: var(--background-color-secondary);
  */
  text-align: center;
}

footer {
  background: var(--background-color-secondary);
  text-align: center;
  padding: 0.75em;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile-first: stack layout */
.main-area {
  /*
  display: grid;
  grid-template-columns: 3fr 1fr;
  */
  display: flex;

  flex-direction: column;
  background: none !important;
  gap: 1rem;
}

/* Tablet and up: sidebar layout */
@media (min-width: 768px) {
  .main-area {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    background: none !important;
  }

  aside {
    padding-inline: 12px;
  }
}

main {
  flex: 3;
  min-width: 0;
  background: transparent;
}
aside {
  flex: 1;
  background: var(--background-color-primary);
  /*min-width: 260px;*/
  /*min-width: 260px;
  max-width: 320px;*/
}

.site-title {
  margin-bottom: 0.25rem;
}

.site-subtitle {
  font-size: 1rem;
  color: #777;
  margin-bottom: 1rem;
}

/* === Boxes === */
.roundedrectangle {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: var(--background-color-primary);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* === Nav === */
nav {
  background: var(--background-color-primary);
  margin-block: 0.25rem;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
nav a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0rem;
  overflow-x: auto; /* optional: scroll instead of wrap */
}

.menu li {
  display: inline-block;
}

.menu li + li::before {
  display: inline-block;
  vertical-align: middle;
}

.menu li a {
  line-height: 1.2;
}

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e6f5ec;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.2;
}

.pagination .page-numbers.current {
  background: #bce3cd;
  color: #000;
  font-weight: 600;
}

.pagination .page-numbers:hover {
  background: #d3f0e0;
}

/* === Sidebar Widgets Fix === */
aside > li.widget-container {
  display: block;
}
aside > li.widget-container::marker {
  content: none;
}

.entry-header img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem 0;
  border-radius: 6px;
}

article.post {
  padding: 1rem;
  border-radius: 8px;
  /* background: #fff;*/
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);*/
}

article.post .entry-header,
article.post .entry-summary {
  text-align: left;
}

article.post .entry-header img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--background-color-primary, #fff);
  padding: 1rem;
  border-radius: 8px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);*/
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Horizontal layout on wide screens */
@media (min-width: 600px) {
  .post-card {
    flex-direction: row;
  }

  .post-card .post-thumbnail {
    flex: 0 0 250px;
  }

  .post-card .post-content {
    flex: 1;
    padding-left: 1rem;
  }

  .post-card .post-thumbnail img {
    height: 100%;
  }
}

.entry-title {
  /*
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  */
}

.entry-meta {
  font-size: 1.25rem;
  color: var(--color-secondary, #666);
  margin-bottom: 0.75rem;
  line-height: 1.25em;
}

.entry-title {
  /* font-size: 1.35rem; */
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.entry-summary {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.read-more {
  display: block;
  text-align: right;
  color: #007bff;
  text-decoration: none;
  margin-top: 0.5rem;
}

.read-more:hover {
  text-decoration: underline;
}

/*
.single-post-thumbnail {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
}
  */

/*
.single-post-thumbnail {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 2rem auto;
}
  */

.featured-image {
  text-align: center;
}

.entry-content {
  /*max-width: 700px;*/
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
  flex: 1 1 300px;
}

/*
.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
}
  */

.entry-content img,
.single-post-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.entry-content img,
.single-post-thumbnail,
.entry-content p,
.entry-content h2,
.entry-content ul {
  margin-bottom: 1.5rem;
}

/* Fix for no-sidebar layout */
.main-area.no-sidebar {
  display: block; /* or flex-direction: column; if you're using flex */
}

.no-sidebar-main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1rem;
  float: none;
  display: block;
}

.widget_categories li,
.widget_tag_cloud li,
.widget ul li {
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.widget_search form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-right: 1.5rem !important;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fff;
  line-height: 1.4;
}

.widget_search input[type="submit"],
.widget_search button[type="submit"] {
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease-in-out;
}

.widget_search input[type="submit"]:hover {
  background-color: #e2e2e2;
}

.widget ul,
.wp-block-page-list {
  padding-left: 1.25rem;
  list-style-type: disc;
  margin: 0;
}

.widget ul li,
.wp-block-page-list li {
  margin-bottom: 0.25rem;
}

.social-icons a {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
}

.social-icons a:hover {
  color: #1da1f2; /* Twitter blue as hover fallback */
}

.wp-block-archives li {
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.fullwidth {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

summary {
  cursor: pointer; /* Indicate that the summary is clickable */
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  font-size: 1rem;
}

.nav-previous a,
.nav-next a {
  background: var(--background-color-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  color: #000;
}

.nav-previous a:hover,
.nav-next a:hover {
  background: var(--background-color-secondary);
}

/* Hide page titles per page */
.page-id-6 .entry-title,
.page-id-23 .entry-title,
.page-id-166 .entry-title,
.page-id-8 .entry-title {
  display: none;
}

.page-template-no-sidebar .entry-content {
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 1rem;
}

.entry-content strong {
  font-weight: bold !important;
}

.entry-content ul {
  list-style: circle !important;
  padding-left: 1.5rem;
  margin-left: 0;
}
.entry-content ol {
  list-style: decimal !important;
  padding-left: 1.5rem;
  margin-left: 0;
}
.entry-content li {
  list-style: circle !important;
  margin-bottom: 0.5em;
}
