/* ============================================================
   DAILYLAUGH MAIN STYLESHEET
   ============================================================ */

/* ── Layout ── */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 32px 0;
}

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

/* ── Header ── */
.site-header {
  background: var(--dark);
  border-bottom: 6px solid var(--brown);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(245,230,200,0.15);
}

.header-dateline {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(245,230,200,0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-edition {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-main {
  text-align: center;
  padding: 20px 16px 14px;
  border-bottom: 3px double rgba(245,230,200,0.3);
}

.site-title {
  font-family: var(--font-headline);
  font-size: clamp(42px, 8vw, 96px);
  color: var(--cream);
  line-height: 1;
  letter-spacing: 4px;
  text-shadow: 3px 3px 0 var(--brown);
}

.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--gold); }

.site-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(245,230,200,0.55);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Navigation ── */
.main-nav {
  background: var(--brown);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  transition: background 0.15s, color 0.15s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: var(--dark);
  color: var(--gold);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }
  .main-nav ul { display: none; flex-direction: column; width: 100%; }
  .main-nav ul.open { display: flex; }
  .main-nav ul li a { border-top: 1px solid rgba(245,230,200,0.15); }
}

/* ── Breaking News Ticker ── */
.ticker-bar {
  background: var(--stamp-red);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ticker-label {
  background: var(--dark);
  color: var(--gold);
  padding: 7px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 2px;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  padding: 7px 0;
}

.ticker-content:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Hero / Featured Post ── */
.hero-section {
  background: var(--paper);
  border: var(--border);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hero-image {
  border-right: var(--border);
  overflow: hidden;
  max-height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(30%) contrast(1.1);
  transition: filter 0.3s;
}

.hero-image:hover img { filter: sepia(0%) contrast(1); }

.hero-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-stamp {
  display: inline-block;
  background: var(--stamp-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 14px;
  transform: rotate(-1.5deg);
}

.post-stamp.green  { background: #3a6b1a; }
.post-stamp.brown  { background: var(--brown); }
.post-stamp.gold   { background: #8a6900; }

.hero-title {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 14px;
}

.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--brown); text-decoration: none; }

.hero-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #4a3200;
  margin-bottom: 18px;
  border-left: 4px solid var(--brown);
  padding-left: 14px;
  font-style: italic;
}

.read-more-btn {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: none;
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}

.read-more-btn:hover {
  background: var(--brown);
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 700px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-image { border-right: none; border-bottom: var(--border); max-height: 220px; }
}

/* ── Section Dividers ── */
.section-head {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 8px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head::before,
.section-head::after {
  content: '★';
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Post Grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: var(--border);
  border-left: var(--border);
  margin-bottom: 28px;
}

.post-card {
  background: var(--paper);
  border-right: var(--border);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
}

.post-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  border-bottom: 2px solid var(--dark);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(25%) contrast(1.05);
  transition: filter 0.3s, transform 0.3s;
}

.post-card:hover .post-card-thumb img {
  filter: sepia(0%) contrast(1);
  transform: scale(1.03);
}

.post-card-no-thumb {
  aspect-ratio: 16/9;
  background: var(--paper-dark);
  border-bottom: 2px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-num {
  font-family: 'Old Standard TT', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 4px;
  opacity: 0.6;
}

.post-card-title {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 8px;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--brown); text-decoration: none; }

.post-card-excerpt {
  font-size: 12px;
  color: #5a3e00;
  line-height: 1.55;
  flex: 1;
}

.post-card-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--paper-dark);
  font-size: 10px;
  color: #8a6a30;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
}

/* ── Video Posts ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-bottom: var(--border);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Single Post ── */
.post-header {
  background: var(--paper);
  border: var(--border);
  padding: 28px;
  margin-bottom: 0;
}

.post-headline {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin: 12px 0;
  border-bottom: 3px double var(--brown);
  padding-bottom: 14px;
}

.post-byline {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b4c18;
  margin: 12px 0;
}

.post-content {
  background: var(--paper);
  border: var(--border);
  border-top: none;
  padding: 28px;
}

.post-content p { margin-bottom: 1.2em; font-size: 15px; line-height: 1.75; }
.post-content h2 { font-family: 'Old Standard TT', serif; font-size: 22px; font-weight: 700; margin: 1.5em 0 0.5em; }
.post-content h3 { font-family: 'Old Standard TT', serif; font-size: 18px; font-weight: 700; margin: 1.2em 0 0.4em; }
.post-content ul, .post-content ol { margin: 0 0 1.2em 1.5em; }
.post-content li { margin-bottom: 0.4em; font-size: 15px; }
.post-content blockquote {
  border-left: 5px solid var(--brown);
  padding: 10px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: #4a3200;
  background: var(--paper-dark);
}

/* ── Sidebar ── */
.sidebar { }

.widget {
  background: var(--paper);
  border: var(--border);
  margin-bottom: 24px;
}

.widget-title {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 14px;
  margin: 0;
}

.widget-inner { padding: 16px; }

.widget ul { list-style: none; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-dark);
  font-size: 13px;
  line-height: 1.4;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--dark); }
.widget ul li a:hover { color: var(--brown); }

/* ── Social Links ── */
.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.social-link:hover { background: var(--brown); color: var(--gold); text-decoration: none; }
.social-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── Categories ── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.cat-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--paper-dark);
  border: 1px solid var(--brown);
  color: var(--dark);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.cat-pill:hover { background: var(--brown); color: var(--cream); text-decoration: none; }

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: 4px;
  margin: 28px 0;
  font-family: var(--font-body);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--paper);
  border: var(--border);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.15s;
}

.pagination a:hover { background: var(--brown); color: var(--cream); text-decoration: none; }
.pagination .current { background: var(--dark); color: var(--cream); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(245,230,200,0.7);
  border-top: 6px solid var(--brown);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  border-bottom: 1px solid rgba(245,230,200,0.15);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,230,200,0.15);
}

.footer-col p { font-size: 13px; line-height: 1.65; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(245,230,200,0.65); font-size: 13px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  text-align: center;
  padding: 20px 16px 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,230,200,0.4);
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 10px;
  display: block;
}

/* ── Comments ── */
.comments-area {
  background: var(--paper);
  border: var(--border);
  border-top: none;
  padding: 28px;
}

.comments-title {
  font-family: 'Old Standard TT', serif;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brown);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--paper-dark);
  border: 2px solid var(--brown);
  padding: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 12px;
}

.comment-form textarea { height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
  background: var(--dark);
  color: var(--cream);
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: auto;
  padding: 10px 24px;
  transition: background 0.15s;
}

.comment-form input[type="submit"]:hover { background: var(--brown); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; gap: 4px; text-align: center; }
}
