/*
Theme Name: SkipTutorial
Theme URI: https://skiptutorial.click
Author: skiptutorial.click
Author URI: https://skiptutorial.click
Description: A terminal-flavored magazine theme for gaming, gadget and tech writing. Built around the "$ skip --tutorial" CLI prompt identity. JetBrains Mono for chrome, Inter for prose, amber accent.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: skiptutorial
Tags: blog, news, magazine, dark-mode, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles
*/

/* ──────────────────────────────────────────────────────────────────────
   skiptutorial.click — WordPress theme
   Brand: CLI prompt + skip-glyph supporting mark
   Type:  JetBrains Mono (chrome) + Inter (prose)
   ────────────────────────────────────────────────────────────────────── */

:root {
  --st-bg:        #0e0e0e;   /* shell */
  --st-paper:     #fafaf7;   /* light bg */
  --st-fg:        #ededed;   /* stdout */
  --st-ink:       #0e0e0e;   /* dark text */
  --st-accent:    #ff7a00;   /* prompt amber */
  --st-mute:      #7a7a7a;   /* comment */
  --st-rule:      rgba(255,255,255,0.12);
  --st-rule-ink:  rgba(0,0,0,0.10);

  --st-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --st-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --st-container: 1180px;
  --st-gap:       28px;
}

/* ── Reset-ish ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--st-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--st-fg);
  background: var(--st-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--st-accent); }
button { font: inherit; }

/* Blink cursor */
@keyframes st-blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
.st-cursor {
  display: inline-block;
  width: 0.5em; height: 1em;
  background: currentColor;
  vertical-align: -0.15em;
  margin-left: 0.15em;
  animation: st-blink 1s steps(2) infinite;
}

/* ── Layout ────────────────────────────────────────────────────────── */
.st-container { max-width: var(--st-container); margin: 0 auto; padding: 0 28px; }

/* ── Site header ───────────────────────────────────────────────────── */
.st-header {
  border-bottom: 1px solid var(--st-rule);
  background: var(--st-bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.st-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.st-logo {
  font-family: var(--st-mono);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--st-fg);
}
.st-logo:hover { color: var(--st-fg); }
.st-logo .dollar { color: var(--st-accent); }
.st-logo .flag { opacity: 0.55; }
.st-logo .click {
  background: var(--st-accent); color: var(--st-bg);
  padding: 1px 7px; border-radius: 3px;
  font-size: 12px; font-weight: 700;
  margin-left: 1px;
}

.st-nav { display: flex; gap: 22px; font-family: var(--st-mono); font-size: 13px; font-weight: 500; }
.st-nav a { opacity: 0.55; transition: opacity 0.15s, color 0.15s; }
.st-nav a:hover, .st-nav .current-menu-item a, .st-nav .current_page_item a {
  opacity: 1; color: var(--st-fg);
}
.st-nav .current-menu-item a::after,
.st-nav .current_page_item a::after { content: '_'; color: var(--st-accent); }
.st-utils { display: flex; align-items: center; gap: 12px; font-family: var(--st-mono); font-size: 12px; opacity: 0.6; }
.st-utils .key {
  padding: 3px 8px; border-radius: 3px;
  border: 1px solid var(--st-rule); cursor: pointer;
}
.st-utils .key:hover { border-color: var(--st-accent); color: var(--st-accent); opacity: 1; }

/* ── Mobile nav toggle ─────────────────────────────────────────────── */
.st-nav-toggle { display: none; background: none; border: 0; color: var(--st-fg); padding: 6px 10px; font-family: var(--st-mono); font-size: 13px; cursor: pointer; }
@media (max-width: 820px) {
  .st-nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .st-nav { display: none; }
  .st-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--st-bg); border-bottom: 1px solid var(--st-rule);
    padding: 14px 20px; gap: 16px;
  }
  .st-utils .label { display: none; }
}

/* ── Hero / featured ───────────────────────────────────────────────── */
.st-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--st-rule);
}
.st-hero .kicker {
  font-family: var(--st-mono); font-size: 11px;
  letter-spacing: 0.22em; opacity: 0.6; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; text-transform: uppercase;
}
.st-hero .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-accent); box-shadow: 0 0 12px var(--st-accent); }
.st-hero h1, .st-hero .h1 {
  font-family: var(--st-sans);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0; max-width: 65ch;
}
.st-hero h1 a, .st-hero .h1 a { color: inherit; }
.st-hero h1 a:hover, .st-hero .h1 a:hover { color: var(--st-accent); }
.st-hero .dek {
  font-size: 17px; opacity: 0.65; line-height: 1.5;
  margin-top: 16px; max-width: 65ch;
}
.st-hero .meta {
  margin-top: 20px;
  font-family: var(--st-mono); font-size: 12px; opacity: 0.6;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.st-hero .meta .read { color: var(--st-accent); font-weight: 600; }

/* ── Article list (compact — used in archives only) ─────────────────── */
.st-list { padding: 8px 0 48px; }
.st-list-item {
  display: grid;
  grid-template-columns: 28px 110px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--st-rule);
  align-items: baseline;
  transition: background 0.15s;
}
.st-list-item:hover { background: rgba(255,255,255,0.02); }
.st-list-item .glyph { font-family: var(--st-mono); font-size: 18px; font-weight: 700; color: var(--st-accent); }
.st-list-item .kicker { font-family: var(--st-mono); font-size: 10px; letter-spacing: 0.2em; opacity: 0.55; font-weight: 600; text-transform: uppercase; }
.st-list-item h2 { font-family: var(--st-sans); font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.st-list-item h2 a:hover { color: var(--st-accent); }
.st-list-item .meta { font-family: var(--st-mono); font-size: 11px; opacity: 0.5; white-space: nowrap; }

@media (max-width: 720px) {
  .st-list-item { grid-template-columns: 20px 1fr; }
  .st-list-item .kicker, .st-list-item h2, .st-list-item .meta { grid-column: 2; }
}

/* ── Rich card (homepage feed + category page) ─────────────────────── */
.st-feed { padding: 0 0 48px; display: flex; flex-direction: column; }
.st-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 36px 0;
  border-bottom: 1px solid var(--st-rule);
}
.st-card.has-thumb { grid-template-columns: 1.6fr 1fr; gap: 36px; }
.st-card .body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-card .kicker {
  font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.22em;
  font-weight: 700; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.st-card .kicker .glyph { color: var(--st-accent); font-size: 14px; letter-spacing: 0; }
.st-card .kicker .cat { color: var(--st-accent); }
.st-card .kicker .sep { opacity: 0.3; }
.st-card .kicker .date { opacity: 0.55; font-weight: 500; }
.st-card h2 {
  font-family: var(--st-sans);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0; max-width: 24ch;
}
.st-card h2 a:hover { color: var(--st-accent); }
.st-card .snippet {
  font-size: 16px; opacity: 0.7; line-height: 1.55;
  margin: 0; max-width: 60ch;
}
.st-card .meta {
  font-family: var(--st-mono); font-size: 12px; opacity: 0.55;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px;
}
.st-card .meta .read { color: var(--st-accent); font-weight: 600; }
.st-card .thumb {
  background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden;
  aspect-ratio: 16/10; position: relative;
}
.st-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card .thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--st-mono); color: var(--st-mute); font-size: 12px;
  background:
    linear-gradient(135deg, rgba(255,122,0,0.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
}
@media (max-width: 720px) {
  .st-card.has-thumb { grid-template-columns: 1fr; gap: 14px; }
  .st-card .thumb { order: -1; }
}

/* ── Single article ────────────────────────────────────────────────── */
.st-article { padding: 48px 0 64px; }
.st-article .breadcrumb {
  font-family: var(--st-mono); font-size: 12px; opacity: 0.55;
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.st-article .breadcrumb .dollar { color: var(--st-accent); }
.st-article .kicker {
  font-family: var(--st-mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--st-accent); font-weight: 700;
  text-transform: uppercase; margin-bottom: 14px;
}
.st-article h1.entry-title {
  font-family: var(--st-sans);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 18px; max-width: 22ch;
}
.st-article .dek {
  font-size: 19px; opacity: 0.75; line-height: 1.45; max-width: 60ch; margin: 0 0 24px;
}
.st-article .meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--st-mono); font-size: 12px; opacity: 0.7;
  padding-bottom: 24px; border-bottom: 1px solid var(--st-rule);
}
.st-article .meta .avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.st-article .meta .rating { margin-left: auto; color: var(--st-accent); font-weight: 600; }
.st-article .featured-image { margin: 32px -28px; }
.st-article .featured-image img { width: 50%; }

/* ── Article body / prose ──────────────────────────────────────────── */
.st-prose {
  max-width: 68ch; margin: 32px 0;
  font-size: 17px; line-height: 1.7;
}
.st-prose > * { margin-top: 0; margin-bottom: 1.2em; }
.st-prose h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 1.6em; line-height: 1.2; }
.st-prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin-top: 1.4em; }
.st-prose h4 { font-size: 17px; font-weight: 700; font-family: var(--st-mono); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 1.4em; opacity: 0.85; }
.st-prose a { color: var(--st-accent); border-bottom: 1px solid currentColor; }
.st-prose a:hover { background: var(--st-accent); color: var(--st-bg); border-color: transparent; }
.st-prose blockquote {
  border-left: 3px solid var(--st-accent);
  margin: 1.6em 0; padding: 0.2em 1.2em;
  font-size: 21px; line-height: 1.4; opacity: 0.9;
  font-style: italic;
}
.st-prose code, .st-prose pre {
  font-family: var(--st-mono);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.st-prose code { padding: 1px 6px; font-size: 0.92em; }
.st-prose pre {
  padding: 18px 20px; overflow-x: auto;
  border-left: 3px solid var(--st-accent);
  font-size: 14px; line-height: 1.55;
}
.st-prose pre code { background: none; padding: 0; }
.st-prose ul, .st-prose ol { padding-left: 1.4em; }
.st-prose li { margin-bottom: 0.4em; }
.st-prose hr { border: 0; height: 1px; background: var(--st-rule); margin: 2em 0; }
.st-prose img { border-radius: 4px; }
.st-prose figure figcaption { font-family: var(--st-mono); font-size: 12px; opacity: 0.55; margin-top: 8px; }
.st-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-prose th, .st-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--st-rule); }
.st-prose th { font-family: var(--st-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; }

/* ── Tags / categories ─────────────────────────────────────────────── */
.st-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.st-tag {
  font-family: var(--st-mono); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--st-rule);
  opacity: 0.75;
}
.st-tag:hover { border-color: var(--st-accent); color: var(--st-accent); opacity: 1; }
.st-tag::before { content: '#'; opacity: 0.5; margin-right: 2px; }

/* ── Pagination ────────────────────────────────────────────────────── */
.st-pagination {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 32px 0;
  font-family: var(--st-mono); font-size: 13px;
  border-top: 1px solid var(--st-rule);
}
.st-pagination a, .st-pagination span {
  padding: 10px 16px; border-radius: 4px;
  border: 1px solid var(--st-rule);
}
.st-pagination a:hover { border-color: var(--st-accent); color: var(--st-accent); }
.st-pagination .current { background: var(--st-accent); color: var(--st-bg); border-color: var(--st-accent); }

/* ── Comments ──────────────────────────────────────────────────────── */
.st-comments { padding: 40px 0; max-width: 68ch; }
.st-comments h3 { font-family: var(--st-mono); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; margin-bottom: 20px; }
.st-comments h3::before { content: '$ comments --list '; color: var(--st-accent); }
.st-comments ol.comment-list { list-style: none; padding: 0; }
.st-comments .comment {
  border-left: 2px solid var(--st-rule); padding: 12px 16px; margin-bottom: 16px;
}
.st-comments .comment-author { font-weight: 600; font-size: 14px; }
.st-comments .comment-meta { font-family: var(--st-mono); font-size: 11px; opacity: 0.5; margin-bottom: 6px; }
.st-comments textarea, .st-comments input[type="text"], .st-comments input[type="email"], .st-comments input[type="url"] {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--st-rule); border-radius: 4px;
  padding: 10px 12px; color: var(--st-fg); font-family: var(--st-sans);
  margin-bottom: 12px;
}
.st-comments textarea:focus, .st-comments input:focus { outline: none; border-color: var(--st-accent); }
.st-comments .submit, .st-comments input[type="submit"] {
  background: var(--st-accent); color: var(--st-bg);
  border: 0; padding: 10px 18px; border-radius: 4px;
  font-family: var(--st-mono); font-weight: 700; cursor: pointer;
}
.st-comments .submit:hover, .st-comments input[type="submit"]:hover { filter: brightness(1.1); }

/* ── Footer ────────────────────────────────────────────────────────── */
.st-footer {
  border-top: 1px solid var(--st-rule);
  padding: 32px 0 48px;
  font-family: var(--st-mono); font-size: 12px;
  opacity: 0.7;
}
.st-footer-inner { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.st-footer .col { display: flex; flex-direction: column; gap: 6px; }
.st-footer .col strong { color: var(--st-fg); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-bottom: 4px; }
.st-footer a:hover { color: var(--st-accent); }
.st-footer .promptline { color: var(--st-accent); }
.st-footer .promptline::after { content: '_'; color: var(--st-fg); animation: st-blink 1s steps(2) infinite; margin-left: 2px; }

/* ── Search form ───────────────────────────────────────────────────── */
.st-search { display: flex; gap: 8px; margin: 24px 0; }
.st-search input[type="search"] {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid var(--st-rule); border-radius: 4px;
  padding: 10px 14px; color: var(--st-fg); font-family: var(--st-mono);
}
.st-search input[type="search"]:focus { outline: none; border-color: var(--st-accent); }
.st-search button { background: var(--st-accent); color: var(--st-bg); border: 0; padding: 10px 18px; border-radius: 4px; font-family: var(--st-mono); font-weight: 700; cursor: pointer; }

/* ── 404 / no results ──────────────────────────────────────────────── */
.st-error {
  padding: 80px 0; text-align: left; max-width: 60ch; margin: 0 auto;
}
.st-error .code {
  font-family: var(--st-mono); font-size: 14px; color: var(--st-accent); margin-bottom: 16px;
}
.st-error h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; }
.st-error p { opacity: 0.7; margin-bottom: 20px; }
.st-error .cta {
  display: inline-block; padding: 10px 18px; border-radius: 4px;
  background: var(--st-accent); color: var(--st-bg); font-family: var(--st-mono); font-weight: 700;
}

/* ── WordPress alignment / block defaults ──────────────────────────── */
.alignleft  { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { margin-left: -8vw; margin-right: -8vw; max-width: none; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }
.wp-caption-text, .gallery-caption { font-family: var(--st-mono); font-size: 12px; opacity: 0.55; margin-top: 8px; }
.sticky .st-list-item { background: rgba(255,122,0,0.05); }
.bypostauthor { /* placeholder */ }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ── Block editor: align with theme.json tokens ────────────────────── */
.has-shell-background-color    { background-color: var(--st-bg) !important; }
.has-paper-background-color    { background-color: var(--st-paper) !important; }
.has-amber-background-color    { background-color: var(--st-accent) !important; }
.has-shell-color               { color: var(--st-bg) !important; }
.has-paper-color               { color: var(--st-paper) !important; }
.has-amber-color               { color: var(--st-accent) !important; }
.has-stdout-color              { color: var(--st-fg) !important; }




/* Custom */
/* Small featured-image thumbnail on cards */
.st-card.has-thumb {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 32px;
  padding-right: 8px;
  align-items: center;
}
.st-card .thumb {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.st-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.st-card:hover .thumb img { transform: scale(1.0); }

/* New */
.st-hero:first-child {
  background: rgba(255, 122, 0, 0.05);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 6px;
  padding: 24px 24px;
  margin: 5px 5px;
  outline-offset: 16px;
}

.st-card.has-thumb {
  grid-template-columns: 1fr 200px;
  gap: 28px;
  align-items: start;
}

.st-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,122,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.st-card:hover .thumb::after {
  opacity: 1;
}

.st-card:hover .thumb img {
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

.st-card .thumb img {
  transition: transform 0.3s ease;
}



/* Mobile sizing — tighten hero + cards */
@media (max-width: 640px) {
  .st-container { padding: 0 16px; }

  .st-hero { padding: 20px 0 12px; }
  .st-hero h1, .st-hero .h1 {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.06;
  }
  .st-hero .dek { font-size: 14px; }

  /* Stack card and thumb vertically */
  .st-card { padding: 10px 0; }
  .st-card.has-thumb {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .st-card .thumb {
    order: -1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
  }
  .st-card h2 { font-size: 18px; line-height: 1.2; }
  .st-card .snippet { font-size: 14px; }
  .st-card .kicker { font-size: 10px; }

  .st-logo { font-size: 12px; }
  .st-logo .click { display: none; font-size: 10px; }

  .st-article h1.entry-title { font-size: clamp(22px, 6vw, 30px); }
  .st-article .dek { font-size: 14px; }

  .st-header-inner { gap: 8px; padding: 10px 0; }
}



