
/*
Theme Name: Proper Newspaper 2025
Theme URI: https://example.com/proper-newspaper-2025
Author: You (with a grumpy AI assistant)
Description: A responsive reimagining of the old "Proper Newspaper" layout — classic PHP theme, three columns, widgetised rails, and a top "appetite" strip.
Version: 1.0.0
License: GNU General Public License v2 or later
Tags: three-columns, news, blog, classic, responsive
Text Domain: proper-newspaper-2025
*/

/* CSS reset-ish */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #d9d3cc url('assets/wood.jpg') repeat;
  font-family: 'Brawler', Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

/* Links */
a { color: #000011; text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

/* Container */
#wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid #fff;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0;
}

/* Title */
.site-title {
  margin: 0;
  text-align: center;
  padding: 12px 8px 6px;
  border-bottom: 1px solid #000;
  font-family: 'Kreon', Georgia, "Times New Roman", Times, serif;
  font-size: clamp(28px, 6vw, 72px);
  color: #000066;
}
.site-title a { color: inherit; }

/* Subheader with nav and search */
.subheader {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  background: #eef;
  font-family: "Droid Sans", Arial, Helvetica, sans-serif;
  font-size: 12px;
}
.subheader .searchform input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #666;
}
.subheader .searchform input[type="submit"] {
  padding: 6px 10px;
  border: 1px solid #666;
  background: #fff;
  cursor: pointer;
}
.subheader .top-menu {
  text-align: right;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subheader .top-menu a { font-weight: 600; }

/* Appetite strip (top widgets) */
.appetite {
  min-height: 160px;
  border-bottom: 1px solid #000;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  overflow: hidden;
}
.appetite .widget {
  padding: 6px;
  border-left: 1px solid #000;
  font-size: 14px;
  line-height: 1.25;
}
.appetite .widgettitle {
  font-family: 'Kreon', Georgia, "Times New Roman", Times, serif;
  color: #000066;
  font-size: 18px;
  margin: 0 0 6px 0;
}

/* Main 5-column grid: skinny left rail, skinny right rail, and three middle columns */
.main {
  display: grid;
  grid-template-columns: 110px 1fr 0.8fr 1fr 110px;
  gap: 8px;
  padding: 8px;
}

/* Rails */
.sidebar-left, .sidebar-right {
  font-family: "Droid Sans", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  background: #eef;
  border: 1px solid #000;
  padding: 6px;
  font-size: 12px;
  line-height: 1.35;
}
.sidebar-left a, .sidebar-right a { color: #000; font-weight: 600; }
.sidebar-left .widgettitle, .sidebar-right .widgettitle { font-size: 14px; margin: 0 0 4px 0; }

/* Columns */
.col { font-size: 15px; line-height: 1.4; }
.col h2, .col h3, .col h4, .col h5, .col h6 {
  font-family: 'Kreon', Georgia, "Times New Roman", Times, serif;
  color: #000066;
  margin: 0 0 4px 0;
}
.col .byline { font-family: "Droid Sans", Arial, Helvetica, sans-serif; font-size: 12px; color: #222; opacity: .9; margin-bottom: 6px; }

.col-primary { background: #eef; border: 1px solid #999; padding: 6px; }
.col-secondary, .col-tertiary { padding: 6px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.pagination a, .pagination span {
  border: 1px solid #999; padding: 6px 10px; background: #fff;
}

/* Footer bar */
.prefooter {
  border: 1px solid #000;
  border-top: 1px solid #000;
  text-align: center;
  padding: 6px 8px;
  background: #fff;
  font-family: "Droid Sans", Arial, Helvetica, sans-serif;
  font-size: 12px;
}

/* Images and captions */
.alignleft { float: left; margin: 4px 10px 6px 0; }
.alignright { float: right; margin: 4px 0 6px 10px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { background: #f3f3f3; border: 1px solid #ddd; padding: 4px; text-align: center; }
.wp-caption-text { font-size: 12px; margin: 0; }

/* Responsiveness */
@media (max-width: 1024px) {
  .main { grid-template-columns: 90px 1fr 0.8fr 1fr 90px; }
}
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { order: 3; }
  .col-primary, .col-secondary, .col-tertiary { order: 2; }
  .appetite { grid-auto-flow: row; grid-template-columns: 1fr; }
  .subheader { grid-template-columns: 1fr; }
  .subheader .top-menu { justify-content: flex-start; }
}
