/*
Theme Name: Playing in Tongues
Theme URI: https://playingintongues.com/
Author: Playing in Tongues
Description: Dark cinematic theme for the Playing in Tongues blog. Matches the static Home / Bio / Press / Videos pages — near-black ground, ice-blue accent, Instrument Serif + Space Mono + Hanken Grotesk.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playing-in-tongues
*/

/* ============================================================
   TOKENS
   bg #070a0e · accent #6fc5e0
   text: #eef1f6 / #dfe3ea / #aeb5c2 / #9aa2b1 / #7c8493 / #5a6373
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #070a0e;
  color: #e8eaf0;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: #6fc5e0; color: #070a0e; }

a { color: #6fc5e0; }

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

@keyframes pitPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---- film grain overlay ---- */
.pit-grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: 0.045; pointer-events: none; z-index: 1; mix-blend-mode: screen;
}

/* ---- layout shell ---- */
.pit-shell { position: relative; z-index: 2; }
.pit-wrap { max-width: 1180px; margin: 0 auto; padding: 0 36px; }

/* ============================================================
   NAV
   ============================================================ */
.pit-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pit-brand {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #eef1f6; text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.pit-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #6fc5e0;
  animation: pitPulse 2.6s ease-in-out infinite; flex: none;
}
.pit-nav {
  display: flex; align-items: center; gap: 30px;
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.pit-nav a { color: #9aa2b1; text-decoration: none; transition: color 0.2s; }
.pit-nav a:hover { color: #eef1f6; }
.pit-nav a.is-active { color: #6fc5e0; }

/* ============================================================
   PAGE HEADER (glow + eyebrow + serif title)
   ============================================================ */
.pit-pagehead { position: relative; padding: 84px 0 30px; }
.pit-glow {
  position: absolute; left: -12%; top: -8%; width: 560px; height: 560px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(111,197,224,0.14) 0%, rgba(111,197,224,0.03) 40%, rgba(7,10,14,0) 70%);
}
.pit-eyebrow {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6fc5e0; margin-bottom: 24px;
}
.pit-eyebrow .pit-dot { width: 6px; height: 6px; }
.pit-pagetitle {
  position: relative; z-index: 1;
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(48px, 7vw, 92px); line-height: 0.96; letter-spacing: -0.015em;
  color: #eef1f6;
}
.pit-pagetitle a { color: inherit; text-decoration: none; }
.pit-pagelede {
  position: relative; z-index: 1; margin-top: 22px; max-width: 60ch;
  font-family: 'Instrument Serif', serif; font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45; color: #aeb5c2; font-style: italic;
}

/* ============================================================
   POST LIST
   ============================================================ */
.pit-list {
  padding: 30px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 30px;
}
.pit-post {
  display: grid; grid-template-columns: 180px 1fr; gap: 40px;
  padding: 42px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pit-post:first-child { padding-top: 6px; }
.pit-post-meta {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7c8493; line-height: 1.7;
}
.pit-post-meta .pit-cat { color: #6fc5e0; display: block; margin-bottom: 8px; }
.pit-post-title {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.pit-post-title a { color: #eef1f6; text-decoration: none; transition: color 0.2s; }
.pit-post-title a:hover { color: #6fc5e0; }
.pit-post-thumb {
  display: block; margin-bottom: 22px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden;
}
.pit-post-thumb img { display: block; width: 100%; }
.pit-excerpt { font-size: 16.5px; line-height: 1.7; color: #aeb5c2; max-width: 62ch; }
.pit-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6fc5e0; text-decoration: none;
  border-bottom: 1px solid rgba(111,197,224,0.4); padding-bottom: 3px;
}

/* ============================================================
   SINGLE / PAGE CONTENT
   ============================================================ */
.pit-article { padding: 40px 0 72px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 30px; }
.pit-content {
  max-width: 68ch; font-size: 17.5px; line-height: 1.78; color: #c7ccd6;
}
.pit-content > * + * { margin-top: 1.3em; }
.pit-content h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.9em; line-height: 1.1; color: #eef1f6; margin-top: 1.6em; letter-spacing: -0.01em; }
.pit-content h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.45em; color: #eef1f6; margin-top: 1.4em; }
.pit-content h4 { font-family: 'Space Mono', monospace; font-size: 0.8em; letter-spacing: 0.16em; text-transform: uppercase; color: #6fc5e0; margin-top: 1.6em; }
.pit-content a { color: #6fc5e0; text-decoration: none; border-bottom: 1px solid rgba(111,197,224,0.4); }
.pit-content a:hover { border-bottom-color: #6fc5e0; }
.pit-content strong { color: #eef1f6; }
.pit-content em { font-style: italic; }
.pit-content blockquote {
  border-left: 2px solid #6fc5e0; padding: 4px 0 4px 24px; margin: 1.6em 0;
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.25em; line-height: 1.4; color: #dfe3ea;
}
.pit-content img { border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.pit-content ul, .pit-content ol { padding-left: 1.3em; }
.pit-content li { margin-top: 0.5em; }
.pit-content code {
  font-family: 'Space Mono', monospace; font-size: 0.9em;
  background: #0c1016; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px; padding: 1px 6px; color: #aeb5c2;
}
.pit-content pre {
  background: #0c1016; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px; padding: 20px 22px; overflow-x: auto;
}
.pit-content pre code { background: none; border: none; padding: 0; }
.pit-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2em 0; }

/* tags / footer meta on single */
.pit-article-foot {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7c8493;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.pit-tag {
  border: 1px solid rgba(255,255,255,0.14); border-radius: 2px; padding: 6px 12px;
  color: #9aa2b1; text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.pit-tag:hover { color: #eef1f6; border-color: rgba(111,197,224,0.5); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pit-pagination { padding: 10px 0 70px; }
.pit-pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
}
.pit-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 3px;
  color: #9aa2b1; text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.pit-pagination a.page-numbers:hover { color: #eef1f6; border-color: rgba(111,197,224,0.5); }
.pit-pagination .page-numbers.current { color: #070a0e; background: #6fc5e0; border-color: #6fc5e0; }
.pit-pagination .page-numbers.dots { border: none; }

/* ============================================================
   SEARCH / EMPTY
   ============================================================ */
.pit-notice { padding: 60px 0 80px; }
.pit-notice p { color: #aeb5c2; font-size: 17px; max-width: 56ch; }
.pit-search {
  display: flex; gap: 10px; margin-top: 24px; max-width: 460px;
}
.pit-search input[type="search"] {
  flex: 1; background: #0c1016; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; padding: 12px 14px; color: #eef1f6;
  font-family: 'Space Mono', monospace; font-size: 13px;
}
.pit-search input[type="search"]:focus { outline: none; border-color: #6fc5e0; }
.pit-search button {
  background: #6fc5e0; color: #070a0e; border: none; border-radius: 3px;
  padding: 0 18px; cursor: pointer; font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============================================================
   COMMENTS (kept minimal, on-brand)
   ============================================================ */
.pit-comments { max-width: 68ch; padding: 8px 0 70px; }
.pit-comments-title {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #6fc5e0; margin-bottom: 24px;
}
.pit-comments ol { list-style: none; }
.pit-comments .comment { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.pit-comments .comment-author { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: #eef1f6; text-transform: uppercase; }
.pit-comments .comment-meta { font-family: 'Space Mono', monospace; font-size: 11px; color: #7c8493; margin-bottom: 8px; }
.pit-comments .comment-body { color: #aeb5c2; font-size: 16px; line-height: 1.7; }
.pit-comments textarea, .pit-comments input[type="text"], .pit-comments input[type="email"], .pit-comments input[type="url"] {
  width: 100%; background: #0c1016; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; padding: 12px 14px; color: #eef1f6; font-family: inherit; font-size: 15px; margin-top: 6px;
}
.pit-comments .form-submit input {
  background: #6fc5e0; color: #070a0e; border: none; border-radius: 3px;
  padding: 12px 22px; cursor: pointer; font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pit-footer {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 20px;
  padding: 40px 0 60px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5a6373;
}
.pit-footer a { color: #9aa2b1; text-decoration: none; transition: color 0.2s; }
.pit-footer a:hover { color: #6fc5e0; }
.pit-footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .pit-wrap { padding: 0 22px; }
  .pit-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pit-nav { gap: 20px; flex-wrap: wrap; }
  .pit-post { grid-template-columns: 1fr; gap: 14px; }
  .pit-post-meta { order: -1; }
  .pit-pagehead { padding: 56px 0 24px; }
}

/* WordPress core helpers */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption-text { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #7c8493; margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
