/*
Theme Name: Responsive Basic Theme No Comments
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A very basic responsive classic WordPress theme template without front-end comments.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: responsive-basic-theme
*/

/* ------------------------------
   Base
------------------------------ */

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

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #f7f7f7;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ------------------------------
   Layout
------------------------------ */

.container {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.site-header {
  background: #111;
  color: #fff;
  padding: 1rem 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.site-title a {
  text-decoration: none;
}

.site-description {
  margin: 0.25rem 0 0;
  color: #ccc;
  font-size: 0.95rem;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  text-decoration: none;
  color: #fff;
}

.main-navigation a:hover,
.main-navigation a:focus {
  text-decoration: underline;
}

.site-main {
  padding: 2rem 0;
}

.post-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card,
.single-content,
.page-content,
.not-found {
  background: #fff;
  border-radius: 0.75rem;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.post-card h2,
.single-content h1,
.page-content h1 {
  margin-top: 0;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus {
  text-decoration: underline;
}

.entry-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

.pagination {
  margin-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer {
  background: #111;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

/* ------------------------------
   WordPress content defaults
------------------------------ */

.alignwide {
  max-width: 1200px;
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: #666;
  font-size: 0.9rem;
}

/* ------------------------------
   Responsive tweaks
------------------------------ */

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

  .main-navigation ul {
    justify-content: flex-start;
  }

  .site-main {
    padding: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, 1100px);
  }

  .post-card,
  .single-content,
  .page-content,
  .not-found {
    border-radius: 0.5rem;
    padding: 1rem;
  }
}
