/*
Theme Name: Lightweight Basic
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A very lightweight, normal-looking WordPress theme. No page builders, no bloat — just clean semantic markup and plain CSS for fast load times.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lightweight-basic
*/

/* ---------------------------------------------------
   1. Reset / basics
--------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #2a2a2a;
  background: #ffffff;
}

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

a {
  color: #1a5cff;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 1.4em 0 0.5em;
  font-weight: 700;
  color: #111;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

blockquote {
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  border-left: 4px solid #ddd;
  color: #555;
  font-style: italic;
}

code, pre {
  font-family: Consolas, Monaco, "Courier New", monospace;
  background: #f4f4f4;
  border-radius: 4px;
}

code { padding: 0.15em 0.4em; font-size: 0.9em; }

pre {
  padding: 1em;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

th, td {
  padding: 0.6em 0.8em;
  border: 1px solid #e2e2e2;
  text-align: left;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2em 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------------------------------------------------
   2. Layout
--------------------------------------------------- */
.site-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid #eee;
  padding: 28px 0;
}

.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a {
  color: #111;
  text-decoration: none;
}

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

/* Primary nav */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.primary-nav a {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
}

.primary-nav a:hover {
  color: #1a5cff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

/* Main content */
.site-content {
  padding: 40px 0 60px;
  min-height: 50vh;
}

article.post,
article.page {
  margin-bottom: 3em;
}

.entry-header .entry-title {
  margin-top: 0;
}

.entry-header .entry-title a {
  color: #111;
}

.entry-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1em;
}

.entry-meta a {
  color: #888;
}

.entry-thumbnail {
  margin: 1em 0;
  border-radius: 6px;
  overflow: hidden;
}

.entry-summary p:last-child,
.entry-content p:last-child {
  margin-bottom: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.5em;
  font-weight: 600;
}

/* Pagination */
.pagination,
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
}

.pagination .page-numbers {
  margin: 0 4px;
  color: #333;
}

.pagination .current {
  font-weight: 700;
}

/* Sidebar (optional, only shown if widgets exist) */
.site-content.has-sidebar .site-wrap {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
}

.widget {
  margin-bottom: 2em;
}

.widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 0.8em;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Comments */
.comments-area {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #eee;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #f0f0f0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.comment-metadata {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5em;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: #2a2a2a;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1a5cff;
}

button,
input[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background: #333;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 28px 0;
  font-size: 0.85rem;
  color: #888;
}

.site-footer .site-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Alignment helpers (used by block editor) */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }

/* ---------------------------------------------------
   3. Responsive
--------------------------------------------------- */
@media (max-width: 700px) {
  .site-content.has-sidebar .site-wrap {
    grid-template-columns: 1fr;
  }

  .primary-nav ul {
    gap: 14px;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .site-header .site-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
