/*
Theme Name: Not2Popular Zine
Theme URI: http://not2popular.com
Author: Rose Moya
Author URI: http://not2popular.com
Description: Vintage cut-and-paste zine theme for not2popular.com. Sister to beybe-babe-cute — same layout, mailing list, visitor counter, guestbook hooks, lightbox — restyled as a distressed typewriter edition. Est. DIY / handprinted.
Version: 1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: not2popular-zine
Tags: blog, one-column, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Special+Elite&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,600&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #1a1612;
  --ink-soft: #3a342c;
  --paper: #efe4cc;
  --paper-dark: #e4d4b4;
  --stain: #d9c49a;
  --rule: #c9b48a;
  --red: #8b1e1e;
  --red-bright: #b42828;
  --stamp: #6b1a1a;
  --muted: #6a5e4a;
  --white: #f7f0de;
  --shadow: rgba(40, 28, 12, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  background-color: #cbb892;
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(90,70,40,.12), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(80,40,20,.10), transparent 38%),
    repeating-linear-gradient(0deg, rgba(60,40,20,.03) 0 1px, transparent 1px 4px);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; border-bottom: 1px dotted rgba(139,30,30,.45); }
a:hover { color: var(--red-bright); border-bottom-style: solid; }

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

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: #1a1612;
  color: #efe4cc;
  text-align: center;
  padding: 8px 14px;
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  border-bottom: 3px solid #8b1e1e;
}

/* ========== HEADER / MASTHEAD ========== */
.site-header {
  text-align: center;
  background: #e8d7b4;
  border-bottom: 1px solid #b9a47a;
  position: relative;
}

.header-image-wrap {
  display: block;
  width: 100%;
  background: #1a1612;
  line-height: 0;
}

.header-image-wrap a { border: 0; display: block; }

.header-image {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
  display: block;
  filter: contrast(1.05) saturate(.95);
}

.site-branding {
  padding: 10px 16px 6px;
}

.site-logo {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}

.site-logo a { color: inherit; border: 0; }

.site-tagline {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 6px 0 2px;
}

.est-under-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 10px;
}

.est-under-logo a { color: var(--stamp); border: 0; }
.est-dot { margin: 0 8px; color: #b9a47a; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-top: 1px dashed #8a7350;
  border-bottom: 4px double #1a1612;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(0,0,0,.03) 6px, rgba(0,0,0,.03) 7px),
    #ead9b6;
  padding: 0 8px;
}

.main-nav a,
.main-nav .menu a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  padding: 12px 14px;
  display: inline-block;
  position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--red);
  background: rgba(139,30,30,.08);
}

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.main-nav li { margin: 0; }

/* ========== LAYOUT ========== */
.site-content {
  max-width: 1100px;
  margin: 28px auto 50px;
  padding: 0 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
  align-items: start;
}

.main-col { min-width: 0; }

/* ========== ZINE POST CARD ========== */
.post-card,
.comments-area {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 40%),
    repeating-linear-gradient(transparent, transparent 31px, rgba(160,120,70,.18) 31px, rgba(160,120,70,.18) 32px);
  background-size: auto, 100% 32px;
  border: 1px solid #b79a68;
  outline: 1px solid rgba(255,255,255,.35);
  outline-offset: -5px;
  padding: 30px 28px 24px;
  margin-bottom: 34px;
  position: relative;
  box-shadow: 4px 6px 0 rgba(40,28,12,.12), 0 14px 28px var(--shadow);
  line-height: 32px;
}

.post-card::before,
.post-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 52px;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(1px 2px 1px rgba(0,0,0,.35));
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 64'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='%23778088'/><stop offset='0.35' stop-color='%23eef2f6'/><stop offset='0.5' stop-color='%239aa3ad'/><stop offset='0.72' stop-color='%23586068'/><stop offset='1' stop-color='%23c9d0d6'/></linearGradient></defs><path fill='none' stroke='url(%23m)' stroke-width='3.1' stroke-linecap='round' stroke-linejoin='round' d='M13 20 v24 c0 4.6 3.6 8.2 8 8.2 s8-3.6 8-8.2 V18 c0-6.6-5-11.6-11.2-11.6 S6.6 11.4 6.6 18 v28.5 c0 8.8 6.6 15.2 15.2 15.2 s15.2-6.4 15.2-15.2 V22'/></svg>");
}

.post-card::before {
  top: -18px;
  left: 22px;
  transform: rotate(-22deg);
}

.post-card::after {
  top: -16px;
  right: 26px;
  width: 26px;
  height: 48px;
  transform: rotate(18deg) scaleX(-1);
}

.sticky.post-card { outline-color: rgba(139,30,30,.35); }

.post-meta-top {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.pin-badge,
.new-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  transform: rotate(-2deg);
}

.post-title {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 6px 0 4px;
  color: var(--ink);
}

.post-title a { color: inherit; border: 0; }
.post-title a:hover { color: var(--red); }

h1.post-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }

.post-listening {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .4px;
}

.entry-content p,
.entry-content li { margin-bottom: 14px; }
.entry-content h2,
.entry-content h3 {
  font-family: 'Anton', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 18px 0 8px;
  line-height: 1.2;
}
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 14px; }
.entry-content blockquote {
  border-left: 4px solid var(--ink);
  padding: 4px 0 4px 16px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 16px 0;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  color: var(--red);
}

.page-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  font-size: 1.8rem;
}

/* ========== SIDEBAR ========== */
.sidebar { font-size: 15px; }

.sidebar-card,
.sidebar .widget {
  background: #f3e7c8;
  border: 1px dashed #8a7350;
  padding: 16px 16px 14px;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 rgba(40,28,12,.08);
  position: relative;
}

.sidebar h3,
.sidebar .widget h3,
.sidebar .widget-title {
  font-family: 'Special Elite', monospace;
  font-size: 1.15rem;
  color: var(--stamp);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: .3px;
}

.sidebar p { line-height: 1.5; color: var(--ink-soft); }
.sidebar ul { list-style: none; }
.sidebar li { border-bottom: 1px dotted #c9b48a; padding: 5px 0; }
.sidebar li a { border: 0; color: var(--ink); }
.sidebar li a:hover { color: var(--red); }

.mail-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mail-form input[type="email"] {
  font-family: 'Special Elite', monospace;
  padding: 8px 10px;
  border: 1px solid #8a7350;
  background: #fffaf0;
  color: var(--ink);
  font-size: 14px;
}
.mail-form input[type="email"]:focus { outline: 2px solid var(--ink); }
.mail-form button,
.donate-button,
button[type="submit"],
input[type="submit"] {
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 12px;
}
.mail-form button:hover,
.donate-button:hover,
input[type="submit"]:hover { background: var(--red); }

.mood-text {
  font-family: 'Special Elite', monospace;
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
}

.online-number {
  font-family: 'Anton', sans-serif;
  font-size: 2.4rem;
  text-align: center;
  line-height: 1;
  color: var(--stamp);
}
.online-label, .online-status {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-you { background: #3d7a3d; box-shadow: 0 0 0 3px rgba(61,122,61,.25); }

.pixel-gif { margin: 8px auto; image-rendering: pixelated; }

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 36px 16px 48px;
  border-top: 4px double #1a1612;
  background: #e8d7b4;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: .6px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--stamp); border: 0; }
.site-footer p { margin-top: 10px; line-height: 1.6; }

.visitor-counter { margin-bottom: 8px; }
.visitor-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  margin-bottom: 8px;
}
.visitor-digits { display: flex; justify-content: center; gap: 5px; margin-bottom: 10px; }
.visitor-digits .digit {
  display: inline-block;
  min-width: 22px;
  padding: 4px 6px;
  background: #1a1612;
  color: #efe4cc;
  font-size: 16px;
  line-height: 1.2;
}
.visitor-links { font-size: 12px; }
.visitor-dot { margin: 0 8px; color: #8a7350; }

/* ========== PAGINATION / NAV ========== */
.pagination, .post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.pagination a, .pagination span,
.post-navigation a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  background: #1a1612;
  color: #efe4cc;
  border: 0;
}
.pagination .current { background: var(--red); }
.pagination a:hover, .post-navigation a:hover { background: var(--red); color: #fff; }

/* ========== COMMENTS ========== */
.comments-area { margin-top: 8px; }
.comment-list { list-style: none; margin: 12px 0 20px; }
.comment-list .comment {
  border-top: 1px dashed #b79a68;
  padding: 12px 0;
}
.comment-author { font-family: 'Special Elite', monospace; }
.comment-meta { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--muted); }
.comment-form label { display: block; font-family: 'Share Tech Mono', monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: 'Newsreader', serif;
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid #8a7350;
  background: #fffaf0;
  margin-bottom: 10px;
}
.comment-form textarea { min-height: 140px; line-height: 1.5; }
.comment-notes { font-size: 15px; color: var(--muted); margin-bottom: 10px; }

/* ========== SEARCH ========== */
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #8a7350;
  background: #fffaf0;
  font-family: 'Special Elite', monospace;
}

/* ========== LIGHTBOX ========== */
#n2p-lightbox, #beybe-lightbox {
  position: fixed; inset: 0;
  background: rgba(12,8,4,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
#n2p-lightbox.is-open, #beybe-lightbox.is-open { display: flex; }
#n2p-lightbox img, #beybe-lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 10px 40px #000; }
#n2p-lightbox button, #beybe-lightbox button {
  position: absolute;
  background: transparent;
  color: #efe4cc;
  border: 0;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}
.lb-close { top: 12px; right: 20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  color: #efe4cc;
  font-family: 'Share Tech Mono', monospace;
}

/* ========== GUESTBOOK ========== */
.gb-question {
  border: 1px dashed #8a7350;
  background: rgba(139, 30, 30, 0.06);
  padding: 16px 18px 14px;
  margin: 8px 0 22px;
}
.gb-question-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 6px;
  line-height: 1.3;
}
.gb-question-text {
  font-family: 'Special Elite', monospace;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.gb-question-hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.gb-count {
  font-family: 'Special Elite', monospace;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 10px 0 12px;
}
.gb-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.gb-entry {
  border-top: 1px dashed #b79a68;
  padding: 14px 0 10px;
}
.gb-entry .children {
  list-style: none;
  margin: 10px 0 0 18px;
  padding: 0 0 0 12px;
  border-left: 2px solid #c9b48a;
}
.gb-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: .3px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.gb-name { color: var(--stamp); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.gb-date { display: block; color: var(--muted); margin-top: 2px; }
.gb-body p { margin-bottom: 8px; line-height: 1.55; }
.gb-form { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); }
.gb-form .comment-reply-title {
  font-family: 'Special Elite', monospace;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 8px;
}

/* ========== 404 / EMPTY ========== */
.empty-note {
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
}

/* ========== WP ALIGN ========== */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.wp-caption-text { font-size: 13px; color: var(--muted); font-family: 'Share Tech Mono', monospace; }

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .post-card { padding: 26px 16px 20px; }
  .main-nav a { padding: 10px 10px; font-size: 11px; }
}
@media (max-width: 520px) {
  .site-logo { display: none; } /* banner already has the title */
  .header-image { min-height: 90px; object-fit: cover; object-position: left center; }
}
