/* Weedist 2026 theme — dark, mobile-first, no framework. */
:root {
  --bg: #0f1113;
  --bg-elev: #16191c;
  --surface: #1c2024;
  --surface-2: #242930;
  --line: #2b3138;
  --text: #e8eaed;
  --text-2: #b6bdc6;
  --muted: #8a939e;
  --accent: #5ad06a;
  --accent-strong: #3fb552;
  --accent-ink: #0b1a0e;
  --link: #8fe39a;
  --danger: #ff7e88;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --max: 1200px;
  --header-h: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); font-weight: 750; }
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 650; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font-size: .95rem; }
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,17,19,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; font-size: 1.7rem; letter-spacing: -.03em; color: #fff; line-height: 1; }
.logo:hover { color: #fff; }
.logo-weed { font-weight: 850; }
.logo-ist { font-weight: 300; position: relative; }
.logo .leaf { width: .62em; height: .62em; fill: var(--accent); position: absolute; left: .07em; top: -.42em; }
.logo-small { font-size: 1.4rem; }
.nav-toggle { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-list > li > button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.nav-list .menu { list-style: none; margin: 0; padding: 4px 0 8px 12px; display: none; }
.nav-list .has-menu[data-open="true"] .menu { display: block; }
.nav-list .menu a { display: block; padding: 8px 4px; color: var(--text-2); }
.nav-list .menu ul { list-style: none; margin: 0; padding-left: 14px; }
.nav-list .menu ul a { font-size: .92rem; color: var(--muted); }
.has-menu > button::after { content: ""; display: inline-block; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 8px; vertical-align: 3px; }
.search-form { display: flex; margin-top: 12px; }
.search-form input { flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 999px 0 0 999px; font: inherit; min-width: 0; }
.search-form button { background: var(--surface-2); border: 1px solid var(--line); border-left: 0; color: var(--text); padding: 0 14px; border-radius: 0 999px 999px 0; cursor: pointer; }
.search-form svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; background: none; border: 0; padding: 0; margin-left: auto; align-items: center; gap: 12px; overflow: visible; max-height: none; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a, .nav-list > li > button { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .95rem; width: auto; }
  .nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li[data-open="true"] > button { background: var(--surface-2); color: #fff; }
  .nav-list .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
  .nav-list .has-menu:hover .menu, .nav-list .has-menu:focus-within .menu { display: block; }
  .nav-list .menu a { padding: 7px 10px; border-radius: 6px; }
  .nav-list .menu a:hover { background: var(--surface-2); color: #fff; }
  .nav-list .menu-wide { min-width: 560px; column-count: 2; column-gap: 8px; }
  .nav-list .menu-wide > li { break-inside: avoid; }
  .search-form { margin: 0; }
  .search-form input { width: 150px; transition: width .2s; }
  .search-form input:focus { width: 240px; outline: none; border-color: var(--accent); }
}

/* Cards / grids */
.site-main { padding: 20px 0 48px; min-height: 60vh; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: #3a424b; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, #26302a, var(--surface-2)); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.card-kicker time { margin-left: auto; white-space: nowrap; }
.chip { display: inline-block; background: rgba(90,208,106,.14); color: var(--accent); font-weight: 650; padding: 3px 9px; border-radius: 999px; font-size: .74rem; letter-spacing: .02em; text-transform: uppercase; }
.chip:hover { background: rgba(90,208,106,.26); color: #fff; }
.chip-muted { background: var(--surface-2); color: var(--text-2); }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-2); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; font-size: .82rem; color: var(--muted); padding-top: 6px; }
.card-meta a { color: var(--text-2); }
.grid-compact .card-excerpt { display: none; }
.grid-compact .card-title { font-size: 1rem; }

/* Hero carousel */
.hero { margin-top: 8px; position: relative; }
.hero-track { position: relative; display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.card-hero { display: grid; height: 100%; }
.card-hero:hover { transform: none; }
.card-hero .card-media { aspect-ratio: 16 / 9; }
.card-hero .card-title { font-size: clamp(1.4rem, 2.5vw + .6rem, 2.2rem); }
.card-hero .card-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.card-hero .card-body { padding-bottom: 56px; }
@media (min-width: 900px) {
  .card-hero { grid-template-columns: 1.4fr 1fr; }
  .card-hero .card-media { aspect-ratio: auto; height: 100%; max-height: 440px; }
  .card-hero .card-body { padding: 28px 28px 56px; justify-content: center; }
}
.hero-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
@media (min-width: 900px) { .hero-controls { left: auto; width: calc(100% / 2.4); padding-right: 20px; } }
.hero-btn, .hero-pause { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hero-btn:hover, .hero-pause:hover { border-color: var(--accent); color: var(--accent); }
.hero-pause { font-size: .7rem; margin-left: auto; }
.hero-pause[aria-pressed="true"] { color: var(--accent); }
.hero-dots { list-style: none; margin: 0; padding: 0 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--muted); opacity: .5; cursor: pointer; }
.hero-dots button:hover { opacity: 1; }
.hero-dots button[aria-current="true"] { background: var(--accent); opacity: 1; transform: scale(1.35); }
.hero-count { font-size: .8rem; color: var(--muted); padding: 0 6px; white-space: nowrap; display: none; }
@media (max-width: 599px) { .hero-dots { display: none; } .hero-count { display: inline; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Archive heads / pager */
.archive-head { padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 760px; }
.count { font-size: .85rem; margin: 0 0 8px; }
.subnav { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: inline-block; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .88rem; color: var(--text-2); }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 0; }
.pager-btn { background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; color: var(--text); font-weight: 600; }
.pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.pager-btn.is-disabled { opacity: .35; pointer-events: none; }
.pager-info { color: var(--muted); font-size: .9rem; }
.section-title { font-size: 1.2rem; margin: 40px 0 4px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Single */
.single-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .single-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.single-layout--narrow { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.article { max-width: 780px; }
.article-head { padding: 12px 0 8px; }
.article-head h1 { margin: 10px 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .95rem; }
.byline a { color: var(--text); font-weight: 600; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2d6b3a, #5ad06a); color: #fff !important; font-weight: 800; flex: none; }
.lead-image { margin: 16px 0; }
.lead-image img { border-radius: var(--radius); width: 100%; }
.article-body { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.article-body > p:first-of-type { margin-top: 12px; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body figure, .article-body table { margin-bottom: 1.25em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(143,227,154,.45); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body img { border-radius: var(--radius-sm); display: block; margin: 0 auto; }
.article-body img.alignleft, .article-body .alignleft { float: left; margin: 4px 20px 12px 0; max-width: 45%; }
.article-body img.alignright, .article-body .alignright { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.article-body img.aligncenter, .article-body .aligncenter { display: block; margin: 0 auto 12px; clear: both; }
.article-body .wp-caption, .article-body figure { max-width: 100% !important; margin-left: auto; margin-right: auto; text-align: center; }
.article-body .wp-caption img { margin-bottom: 6px; }
.article-body .wp-caption-text, .article-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.article-body .wp-caption.alignleft, .article-body .wp-caption.alignright { max-width: 45% !important; }
.article-body blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding: 4px 0 4px 18px; color: var(--text-2); font-family: var(--font-serif); font-size: 1.12em; }
.article-body h2, .article-body h3, .article-body h4 { margin-top: 1.5em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body iframe { border: 0; width: 100%; }
.article-body iframe[src*="youtube"], .article-body iframe[src*="youtu.be"], .article-body iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px; vertical-align: top; }
.article-body pre { overflow-x: auto; background: var(--surface); padding: 12px; border-radius: var(--radius-sm); }
.article-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.article-body .gallery-item, .article-body .gallery dl { margin: 0; width: auto !important; float: none !important; }
.article-body .gallery img { width: 100%; height: 150px; object-fit: cover; border: 0 !important; }
.article-body .gallery-caption { font-size: .8rem; color: var(--muted); }
.article-body .fb-post, .article-body .twitter-tweet { margin: 0 auto 1.25em; }
.article-body .instagram-media { margin: 0 auto 1.25em !important; }
.source-cta { margin: 8px 0 24px; clear: both; }
.article-foot { clear: both; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.share-label { color: var(--muted); font-size: .85rem; margin-right: 4px; }
.share a, .share button { background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .85rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.tag-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { color: var(--text-2); font-size: .85rem; background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.tag-list a:hover { color: var(--accent); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.prev-next a { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .95rem; }
.prev-next a:hover { border-color: var(--accent); }
.prev-next .next { text-align: right; }
@media (max-width: 560px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { text-align: left; } }
.rail { display: none; }
@media (min-width: 1100px) { .rail { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.rail-box h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rail-links { list-style: none; padding: 0; margin: 0; }
.rail-links a { display: block; padding: 6px 0; color: var(--text-2); border-bottom: 1px solid var(--line); }
.rail-links li:last-child a { border: 0; }
.related { margin-top: 8px; }

/* Ad slots (hidden until an ad network fills them) */
.ad-slot { display: none; margin: 16px auto; text-align: center; }
.ad-slot--leaderboard { min-height: 90px; max-width: 728px; }
.ad-slot--rail { min-height: 250px; width: 300px; }
.ad-slot--card { min-height: 250px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.ad-slot:not([hidden]) { display: block; }
.ad-slot--card:not([hidden]) { display: flex; align-items: center; justify-content: center; }

/* Search */
.search-big { display: flex; gap: 8px; margin: 12px 0 8px; }
.search-big input { flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 12px 16px; border-radius: 999px; font: inherit; font-size: 1.05rem; min-width: 0; }
.search-big input:focus { outline: none; border-color: var(--accent); }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results h3 { margin: 0 0 4px; font-size: 1.1rem; }
.search-results .meta { font-size: .82rem; color: var(--muted); }
.search-results mark { background: rgba(90,208,106,.3); color: inherit; border-radius: 3px; }

/* Tags / authors / about */
.tag-cloud { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--text-2); font-size: calc(.82rem + var(--w, 1) * .012rem); }
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent); }
.author-grid { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.author-grid a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--text); font-weight: 600; }
.author-grid a:hover { border-color: var(--accent); }
.author-grid .small { margin-left: auto; font-weight: 400; white-space: nowrap; }
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 28px 0 8px; }
.pillar { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.pillar img { width: 80px; height: 80px; filter: invert(1) hue-rotate(180deg) brightness(1.1); opacity: .9; }
.pillar h3 { margin: 10px 0 6px; color: var(--accent); }
.pillar p { color: var(--text-2); font-size: .93rem; margin: 0; }
.about-contact { max-width: 720px; margin-top: 24px; }
.state-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.state-grid a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); text-decoration: none; font-weight: 600; }
.state-grid a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--text-2); font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
.footer-about p { max-width: 460px; margin: 12px 0; }
.social { display: flex; gap: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: .82rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
