/*
Theme Name: Paperly Press
Theme URI: https://example.com/paperly-press
Author: ChatGPT
Author URI: https://example.com
Description: A clean, newspaper-style WordPress theme inspired by classic broadsheet layouts. Not affiliated with or endorsed by The New York Times.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paperly-press
*/

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

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #f4f4f4;
  color: #111;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Header */
.site-header {
  border-bottom: 3px double #000;
  padding: 20px 40px 10px;
  text-align: center;
}

.site-title a {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 42px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.site-description {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Navigation */
.main-navigation {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin-top: 15px;
  padding: 8px 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.main-navigation a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Layout */
.site-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 40px;
  padding: 30px 40px 40px;
}

@media (max-width: 900px) {
  .site-content {
    grid-template-columns: 1fr;
    padding: 20px 15px;
  }
}

/* Posts */
.post,
.page {
  border-bottom: 1px solid #ddd;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

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

.post-header {
  margin-bottom: 10px;
}

.post-title a {
  font-size: 28px;
  font-weight: 700;
}

.post-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-top: 4px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  margin: 15px 0;
}

.post-excerpt {
  font-size: 17px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Featured article on index */
.featured-post {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 3px double #000;
}

.featured-post .post-title a {
  font-size: 32px;
}

.featured-post .post-excerpt {
  font-size: 18px;
}

/* Sidebar */
.widget-area {
  border-left: 1px solid #ddd;
  padding-left: 25px;
}

@media (max-width: 900px) {
  .widget-area {
    border-left: none;
    border-top: 1px solid #ddd;
    padding-left: 0;
    padding-top: 20px;
  }
}

.widget {
  margin-bottom: 25px;
}

.widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

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

.widget ul li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #000;
  padding: 15px 40px 25px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
}

/* Pagination */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pagination a {
  text-decoration: none;
}

/* Single */
.single .post-title {
  font-size: 32px;
}

.single .post-content {
  font-size: 18px;
  line-height: 1.8;
}

.single .post-content h2,
.single .post-content h3,
.single .post-content h4 {
  margin-top: 30px;
}

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