/*
Theme Name: Douchebagazine
Theme URI: https://douchebagazine.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A loud political-tabloid satire WordPress theme for Douchebagazine.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: douchebagazine
*/

:root {
  --dbg-bg: #efe7d6;
  --dbg-paper: #fff9ee;
  --dbg-paper-2: #f7edd7;
  --dbg-ink: #14110f;
  --dbg-muted: #5f594d;
  --dbg-orange: #d96b1f;
  --dbg-orange-dark: #a64911;
  --dbg-green: #1f6a4b;
  --dbg-green-dark: #154733;
  --dbg-cream: #ffe9bf;
  --dbg-border: #171411;
  --dbg-shadow: 0 12px 34px rgba(20, 17, 15, 0.15);
  --dbg-max: 1220px;
  --dbg-sans: Impact, Haettenschweiler, 'Arial Narrow Bold', Arial, sans-serif;
  --dbg-ui: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dbg-ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(217,107,31,0.09), transparent 26%),
    linear-gradient(to bottom, #e9dec7 0, #efe7d6 240px, #efe7d6 100%);
}

a {
  color: var(--dbg-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus { color: var(--dbg-orange-dark); }

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #000;
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.wrapper,
.site-header__inner,
.hero,
.content-grid,
.site-footer__inner,
.archive-header,
.search-header,
.not-found,
.single-grid,
.breaking-bar__inner,
.top-ribbon__inner,
.single-grid {
  width: min(calc(100% - 2rem), var(--dbg-max));
  margin-inline: auto;
}

main#content.single-grid {
  width: min(calc(100% - 2rem), var(--dbg-max));
  margin-inline: auto;
  padding: 1.35rem 0 1rem;
}

.top-ribbon {
  background: var(--dbg-green-dark);
  color: #f7f0e0;
  border-bottom: 2px solid var(--dbg-border);
  font-family: var(--dbg-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-ribbon__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.top-ribbon strong { color: var(--dbg-cream); }

.site-header {
  background:
    linear-gradient(180deg, #245f47 0%, #1b513b 36%, #143e2d 100%);
  color: #fff;
  border-bottom: 6px solid var(--dbg-orange);
  box-shadow: 0 8px 0 rgba(20,17,15,0.14);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: end;
  padding: 1rem 0 0.95rem;
}

.branding {
  min-width: 0;
  position: relative;
}

.site-title {
  margin: 0;
  font-family: var(--dbg-sans);
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(20,17,15,0.4);
}

.site-title a,
.site-title a:hover,
.site-title a:focus {
  color: #fff6df;
  text-decoration: none;
}

.site-title::after {
  content: 'Daily Outrage Extra';
  display: inline-block;
  vertical-align: top;
  margin-left: 0.7rem;
  margin-top: 0.3rem;
  padding: 0.26rem 0.5rem 0.22rem;
  background: var(--dbg-orange);
  color: #fff7e7;
  border: 2px solid rgba(20,17,15,0.65);
  font-family: var(--dbg-ui);
  font-size: 0.17em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(20,17,15,0.25);
}

.site-tagline {
  margin: 0.55rem 0 0;
  color: #f7ead2;
  font-family: var(--dbg-ui);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.45rem;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.main-navigation li { margin: 0; }

.main-navigation a {
  display: block;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 246, 223, 0.08);
  border: 2px solid rgba(255, 246, 223, 0.22);
  color: #fff7e7;
  text-decoration: none;
  font-family: var(--dbg-ui);
  font-size: 0.84rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--dbg-orange);
  border-color: rgba(20,17,15,0.35);
  color: #fff;
}

.breaking-bar {
  border-top: 2px solid var(--dbg-border);
  background: var(--dbg-paper-2);
  border-bottom: 2px solid var(--dbg-border);
}

.breaking-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: stretch;
}

.breaking-bar__label,
.breaking-bar__text {
  padding: 0.7rem 0.9rem;
  font-family: var(--dbg-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.breaking-bar__label {
  background: var(--dbg-orange);
  color: #fff8ea;
  font-weight: 900;
  border-right: 2px solid var(--dbg-border);
}

.breaking-bar__text {
  color: var(--dbg-ink);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0 1rem;
}

.hero__lead,
.hero__side,
.article-card,
.widget,
.pagination,
.archive-header,
.search-header,
.not-found,
.single-shell,
.comments-area {
  background: var(--dbg-paper);
  border: 2px solid var(--dbg-border);
  box-shadow: var(--dbg-shadow);
}

.hero__lead {
  position: relative;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,237,198,0.78), rgba(255,249,238,0.92) 36%, rgba(255,249,238,1) 100%);
}

.hero__lead::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background: linear-gradient(180deg, var(--dbg-orange) 0%, var(--dbg-orange-dark) 100%);
}

.hero__side {
  padding: 1rem;
  background: linear-gradient(180deg, #fff5df 0%, #fff9ee 100%);
}

.hero__kicker,
.card__kicker,
.entry-kicker,
.widget-title {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.34rem 0.58rem;
  background: var(--dbg-green);
  color: #fff8ea;
  font-family: var(--dbg-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid rgba(20,17,15,0.22);
}

.hero__title,
.entry-title,
.page-title {
  margin: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__title {
  font-family: var(--dbg-sans);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__title a,
.entry-title a,
.page-title a {
  text-decoration: none;
  color: inherit;
}

.hero__excerpt,
.entry-summary,
.entry-content,
.comment-content,
.page-content {
  font-size: 1.04rem;
}

.meta,
.entry-meta,
.card__meta {
  margin: 0 0 0.9rem;
  color: var(--dbg-muted);
  font-family: var(--dbg-ui);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__image {
  margin-top: 1rem;
  border: 2px solid var(--dbg-border);
  overflow: hidden;
}

.hero__side h2,
.widget-title,
.sidebar-callout h2 {
  margin: 0 0 0.8rem;
  font-family: var(--dbg-sans);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.trending-list li {
  padding: 0.85rem 0;
  border-top: 1px dashed rgba(20,17,15,0.35);
}
.trending-list li:first-child { border-top: 0; padding-top: 0; }

.trending-list a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.03rem;
}

.content-grid,
.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #fff7e6 100%);
}

.card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 2px solid var(--dbg-border);
}

.card__thumb img,
.hero__image img,
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__body,
.single-shell,
.archive-header,
.search-header,
.not-found,
.comments-area,
.widget,
.pagination {
  padding: 1rem;
}

.entry-title {
  font-family: var(--dbg-sans);
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.entry-summary p:first-child,
.entry-content > p:first-child {
  font-size: 1.08em;
}

.read-more {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.72rem 0.95rem;
  background: var(--dbg-orange);
  color: #fff8ea;
  text-decoration: none;
  font-family: var(--dbg-ui);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid rgba(20,17,15,0.22);
}

.read-more:hover,
.read-more:focus {
  background: var(--dbg-green);
  color: #fff;
}

.sidebar-callout {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(217,107,31,0.14) 0%, rgba(255,249,238,0.96) 100%);
  border: 2px solid var(--dbg-border);
  box-shadow: var(--dbg-shadow);
}

.sidebar-callout p {
  margin: 0.5rem 0 0;
  font-size: 0.97rem;
}

.widget {
  margin-bottom: 1.25rem;
}

.widget ul {
  margin: 0;
  padding-left: 1.1rem;
}

.widget li { margin-bottom: 0.55rem; }

.single-shell .page-title {
  font-family: var(--dbg-sans);
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.entry-thumb {
  margin: 1rem 0 1.2rem;
  border: 2px solid var(--dbg-border);
  overflow: hidden;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.comment-reply-title,
.comments-title {
  font-family: var(--dbg-sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.entry-content blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 8px solid var(--dbg-orange);
  background: rgba(217,107,31,0.08);
  font-style: italic;
}

.pagination .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--dbg-border);
  background: #fff;
  text-decoration: none;
  font-family: var(--dbg-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pagination .current,
.pagination a:hover {
  background: var(--dbg-green);
  color: #fff;
}

.search-form {
  display: flex;
  gap: 0.6rem;
}

.search-form label { flex: 1; }
.search-field,
input[type='text'],
input[type='email'],
input[type='url'],
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--dbg-border);
  background: #fffdfa;
  color: var(--dbg-ink);
  font: inherit;
}

.search-submit,
input[type='submit'],
button,
input[type='button'] {
  padding: 0.8rem 1rem;
  border: 2px solid var(--dbg-border);
  background: var(--dbg-orange);
  color: #fff8ea;
  font-family: var(--dbg-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-submit:hover,
input[type='submit']:hover,
button:hover,
input[type='button']:hover {
  background: var(--dbg-green);
}

.site-footer {
  background: #171411;
  color: #f5ead7;
  border-top: 6px solid var(--dbg-orange);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  font-family: var(--dbg-ui);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer a {
  color: #f5ead7;
  text-decoration: none;
}

.site-footer .menu {
  display: flex;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.alignwide,
.alignfull { max-width: 100%; }

@media (max-width: 980px) {
  .site-header__inner,
  .hero,
  .content-grid,
  .single-grid,
  .breaking-bar__inner {
    grid-template-columns: 1fr;
  }

  .header-actions { padding-bottom: 0; }
  .main-navigation ul { justify-content: flex-start; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { line-height: 1.6; }
  .top-ribbon__inner,
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-title::after {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 0.55rem;
    font-size: 0.2em;
  }
  .hero { padding-top: 1rem; }
  .article-card__body,
  .single-shell,
  .archive-header,
  .search-header,
  .not-found,
  .comments-area,
  .widget,
  .pagination,
  .hero__lead,
  .hero__side,
  .sidebar-callout { padding: 0.9rem; }
}
