/*
Theme Name: Britannia Daily
Theme URI: https://example.com/britannia-daily
Author: ChatGPT
Author URI: https://example.com
Description: A clean, modern newspaper-style WordPress theme with bold section headers and a strong front-page layout. Inspired by contemporary UK news sites, but not affiliated with or endorsed by any real-world newspaper.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: britannia-daily
*/

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #f4f4f4;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

/* Header / Masthead */
.site-header {
  border-bottom: 1px solid #dedede;
  padding: 16px 32px 10px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-title a {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-description {
  font-size: 13px;
  color: #666;
}

/* Top bar / meta */
.top-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-top: 8px;
}

/* Navigation */
.main-navigation {
  border-top: 2px solid #222;
  border-bottom: 1px solid #ddd;
  margin-top: 12px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-navigation li {
  padding: 10px 0;
}

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

.main-navigation a:hover {
  text-decoration: none;
  border-bottom: 2px solid #005f9e;
}

/* Layout */
.site-content {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 24px 32px 32px;
}

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

/* Category label */
.category-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  margin-bottom: 6px;
  background: #005f9e;
  color: #fff;
}

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

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

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

.post-title a,
.post-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.post-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  margin-top: 6px;
}

.post-meta span + span::before {
  content: " • ";
  margin: 0 4px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  margin: 10px 0 12px;
  object-fit: cover;
}

/* Excerpt */
.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

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

/* Front page grid */
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 24px;
}

.front-main {
  border-right: 1px solid #e0e0e0;
  padding-right: 24px;
}

.front-secondary {
  display: grid;
  gap: 18px;
}

@media (max-width: 960px) {
  .front-grid {
    grid-template-columns: 1fr;
  }
  .front-main {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 18px;
    margin-bottom: 18px;
  }
}

/* Featured story */
.featured-post {
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

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

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

/* Sidebar / widgets */
.widget-area {
  font-size: 14px;
}

.widget {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  border-left: 4px solid #005f9e;
  padding-left: 6px;
}

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

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

/* Footer */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 16px 32px 32px;
  font-size: 12px;
  color: #777;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .site-footer-inner {
    flex-direction: column;
  }
}

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

.pagination a {
  text-decoration: none;
}

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

.single .post-content {
  font-size: 17px;
  line-height: 1.8;
  margin-top: 10px;
}

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

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