/*
Theme Name: Voidline Journal
Author: Evelyn Hart Press
Description: A lightweight classic WordPress theme with an editorial grid, dynamic content areas, and a modern visual system.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: tv-theme
*/

:root {
  --tv-color-bg: #f6f7f9;
  --tv-color-bg-soft: #e6e8eb;
  --tv-color-panel: #ffffff;
  --tv-color-ink: #232931;
  --tv-color-ink-soft: #38424c;
  --tv-color-muted: #8f9597;
  --tv-color-line: #d5d7da;
  --tv-color-primary: #fa0657;
  --tv-color-primary-dark: #850128;
  --tv-color-lavender: #cdc7f6;
  --tv-color-lime: #c0ff5b;
  --tv-color-orange: #fe6d2d;
  --tv-shadow-soft: 0 24px 70px rgba(15, 27, 31, 0.12);
  --tv-shadow-card: 0 18px 45px rgba(15, 27, 31, 0.08);
  --tv-radius-xl: 34px;
  --tv-radius-lg: 26px;
  --tv-radius-md: 18px;
  --tv-radius-sm: 12px;
  --tv-font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tv-container: min(1180px, calc(100vw - 32px));
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(35, 41, 49, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 41, 49, 0.045) 1px, transparent 1px),
    var(--tv-color-bg);
  background-size: 34px 34px;
  color: var(--tv-color-ink);
  font-family: var(--tv-font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--tv-color-primary);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.tv-screen-reader-text,
.tv-skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.tv-skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 18px;
  top: 18px;
  width: auto;
  z-index: 1000;
}

.tv-container {
  margin-inline: auto;
  width: var(--tv-container);
}

.tv-site {
  min-height: 100vh;
  overflow: hidden;
}

.tv-header-shell {
  padding: 18px 0 0;
  position: relative;
  z-index: 20;
}

.tv-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 215, 218, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(15, 27, 31, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 12px 10px 22px;
  backdrop-filter: blur(14px);
}

.tv-brand {
  align-items: center;
  color: var(--tv-color-ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  min-width: 0;
}

.tv-brand-mark {
  align-items: center;
  background: var(--tv-color-ink);
  border-radius: 50%;
  box-shadow: inset 0 -8px 16px rgba(255, 255, 255, 0.15);
  color: var(--tv-color-lime);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.tv-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-brand-logo {
  max-height: 42px;
  width: auto;
}

.tv-nav-wrap {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tv-menu-toggle {
  align-items: center;
  background: var(--tv-color-ink);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  width: 46px;
}

.tv-menu-toggle-bars,
.tv-menu-toggle-bars::before,
.tv-menu-toggle-bars::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
  width: 18px;
}

.tv-menu-toggle-bars::before {
  position: absolute;
  transform: translateY(-6px);
}

.tv-menu-toggle-bars::after {
  position: absolute;
  transform: translateY(6px);
}

.tv-menu-toggle[aria-expanded="true"] .tv-menu-toggle-bars {
  background: transparent;
}

.tv-menu-toggle[aria-expanded="true"] .tv-menu-toggle-bars::before {
  background: #ffffff;
  transform: rotate(45deg);
}

.tv-menu-toggle[aria-expanded="true"] .tv-menu-toggle-bars::after {
  background: #ffffff;
  transform: rotate(-45deg);
}

.tv-menu-panel {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: 24px;
  box-shadow: var(--tv-shadow-soft);
  display: none;
  left: 16px;
  padding: 14px;
  position: absolute;
  right: 16px;
  top: 96px;
}

.tv-menu-panel.tv-is-open {
  display: block;
}

.tv-menu {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-menu-item {
  margin: 0;
}

.tv-menu-link {
  border-radius: 999px;
  color: var(--tv-color-ink-soft);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 14px;
}

.tv-menu-link:hover,
.tv-menu-link:focus,
.tv-menu-link.tv-is-current {
  background: var(--tv-color-bg-soft);
  color: var(--tv-color-ink);
}

.tv-sub-menu {
  margin-top: 6px;
  padding-left: 10px;
}

.tv-search-link {
  align-items: center;
  background: var(--tv-color-lime);
  border-radius: 999px;
  color: var(--tv-color-ink);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
}

.tv-search-link:hover,
.tv-search-link:focus {
  background: var(--tv-color-primary);
  color: #ffffff;
}

.tv-search-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 14px;
  position: relative;
  width: 14px;
}

.tv-search-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  position: absolute;
  right: -7px;
  top: 10px;
  transform: rotate(45deg);
  width: 8px;
}

.tv-main {
  padding: 44px 0 0;
}

.tv-hero {
  padding: 26px 0 54px;
}

.tv-hero-grid {
  align-items: stretch;
  display: grid;
  gap: 24px;
}

.tv-hero-copy {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(213, 215, 218, 0.75);
  border-radius: var(--tv-radius-xl);
  padding: clamp(28px, 7vw, 74px);
}

.tv-eyebrow {
  align-items: center;
  color: var(--tv-color-primary);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.tv-eyebrow::before {
  background: var(--tv-color-primary);
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.tv-hero-title {
  color: var(--tv-color-ink);
  font-size: clamp(2.55rem, 10vw, 6.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 860px;
}

.tv-hero-text {
  color: var(--tv-color-ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 24px 0 0;
  max-width: 680px;
}

.tv-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.tv-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
}

.tv-button-primary {
  background: var(--tv-color-primary);
  color: #ffffff;
}

.tv-button-primary:hover,
.tv-button-primary:focus {
  background: var(--tv-color-primary-dark);
  color: #ffffff;
}

.tv-button-ghost {
  background: transparent;
  color: var(--tv-color-ink);
}

.tv-button-ghost:hover,
.tv-button-ghost:focus {
  background: var(--tv-color-bg-soft);
  color: var(--tv-color-ink);
}

.tv-arrow {
  align-items: center;
  background: currentColor;
  border-radius: 999px;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  position: relative;
  width: 20px;
}

.tv-arrow::after {
  border-right: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  content: "";
  height: 6px;
  transform: rotate(45deg);
  width: 6px;
}

.tv-button-ghost .tv-arrow::after {
  border-color: var(--tv-color-bg);
}

.tv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tv-chip {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: 999px;
  color: var(--tv-color-ink-soft);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  padding: 10px 13px;
}

.tv-chip:hover,
.tv-chip:focus {
  background: var(--tv-color-lime);
  border-color: var(--tv-color-lime);
  color: var(--tv-color-ink);
}

.tv-visual {
  background: var(--tv-color-ink);
  border-radius: var(--tv-radius-xl);
  box-shadow: var(--tv-shadow-soft);
  color: #ffffff;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.tv-visual::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: 0.65;
  position: absolute;
}

.tv-visual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
  z-index: 1;
}

.tv-visual-card {
  border-radius: 24px;
  min-height: 140px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.tv-visual-card-large {
  background: #ffffff;
  color: var(--tv-color-ink);
  grid-column: span 2;
  min-height: 190px;
}

.tv-visual-card-lime {
  background: var(--tv-color-lime);
  color: var(--tv-color-ink);
}

.tv-visual-card-lavender {
  background: var(--tv-color-lavender);
  color: var(--tv-color-ink);
}

.tv-visual-card-dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tv-visual-label {
  color: inherit;
  display: block;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.tv-visual-title {
  display: block;
  font-size: clamp(1.45rem, 5vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  margin-top: 12px;
}

.tv-visual-text {
  color: inherit;
  font-size: 0.94rem;
  margin: 12px 0 0;
  opacity: 0.78;
}

.tv-signal-bars {
  align-items: end;
  display: flex;
  gap: 7px;
  height: 70px;
  margin-top: 28px;
}

.tv-signal-bar {
  background: var(--tv-color-primary);
  border-radius: 999px;
  display: block;
  flex: 1;
  min-width: 10px;
}

.tv-signal-bar:nth-child(1) {
  height: 34%;
}

.tv-signal-bar:nth-child(2) {
  height: 62%;
}

.tv-signal-bar:nth-child(3) {
  height: 44%;
}

.tv-signal-bar:nth-child(4) {
  height: 82%;
}

.tv-signal-bar:nth-child(5) {
  height: 55%;
}

.tv-dot-field {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 26px;
}

.tv-dot {
  aspect-ratio: 1;
  background: rgba(35, 41, 49, 0.18);
  border-radius: 50%;
}

.tv-dot:nth-child(2n) {
  background: var(--tv-color-primary);
}

.tv-section {
  padding: 42px 0;
}

.tv-section-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.tv-section-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.tv-section-note {
  color: var(--tv-color-muted);
  font-size: 0.98rem;
  margin: 0;
  max-width: 460px;
}

.tv-post-grid {
  display: grid;
  gap: 18px;
}

.tv-post-card {
  background: var(--tv-color-panel);
  border: 1px solid rgba(213, 215, 218, 0.95);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow-card);
  color: var(--tv-color-ink);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tv-post-card:hover,
.tv-post-card:focus-within {
  box-shadow: var(--tv-shadow-soft);
  transform: translateY(-3px);
}

.tv-card-media {
  aspect-ratio: 1.42 / 1;
  background:
    radial-gradient(circle at 20% 20%, var(--tv-color-lime), transparent 25%),
    radial-gradient(circle at 80% 24%, var(--tv-color-lavender), transparent 24%),
    linear-gradient(135deg, var(--tv-color-ink), #151517);
  overflow: hidden;
}

.tv-card-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tv-placeholder {
  align-items: center;
  color: #ffffff;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
}

.tv-placeholder::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  inset: 0;
  opacity: 0.55;
  position: absolute;
}

.tv-placeholder-mark {
  background: var(--tv-color-primary);
  border-radius: 999px;
  font-weight: 900;
  padding: 12px 16px;
  position: relative;
}

.tv-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.tv-card-meta {
  align-items: center;
  color: var(--tv-color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
}

.tv-card-meta-sep {
  background: var(--tv-color-line);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.tv-card-title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.tv-card-title a:hover,
.tv-card-title a:focus {
  color: var(--tv-color-primary);
}

.tv-card-excerpt {
  color: var(--tv-color-ink-soft);
  margin: 14px 0 0;
}

.tv-card-footer {
  margin-top: auto;
  padding-top: 22px;
}

.tv-read-link {
  align-items: center;
  color: var(--tv-color-primary);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
}

.tv-archive-head,
.tv-page-head {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: var(--tv-radius-xl);
  box-shadow: var(--tv-shadow-card);
  margin-bottom: 28px;
  padding: clamp(28px, 7vw, 64px);
}

.tv-archive-title,
.tv-page-title {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

.tv-archive-description,
.tv-page-description {
  color: var(--tv-color-ink-soft);
  margin-top: 18px;
  max-width: 720px;
}

.tv-single-main {
  padding-bottom: 68px;
}

.tv-single-shell {
  margin: 0 auto;
  max-width: 980px;
  width: 80vw;
}

.tv-single-article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(213, 215, 218, 0.9);
  border-radius: var(--tv-radius-xl);
  box-shadow: var(--tv-shadow-card);
  padding: clamp(26px, 6vw, 70px);
}

.tv-single-meta {
  align-items: center;
  color: var(--tv-color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 20px;
}

.tv-single-title {
  font-size: clamp(2.25rem, 8vw, 5.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

.tv-single-excerpt {
  color: var(--tv-color-ink-soft);
  font-size: 1.18rem;
  margin: 24px 0 0;
}

.tv-content {
  color: var(--tv-color-ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-top: 38px;
}

.tv-content a {
  color: var(--tv-color-primary);
  font-weight: 800;
}

.tv-content h1,
.tv-content h2,
.tv-content h3,
.tv-content h4,
.tv-content h5,
.tv-content h6 {
  color: var(--tv-color-ink);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 1.35em 0 0.45em;
}

.tv-content p,
.tv-content ul,
.tv-content ol,
.tv-content blockquote {
  margin: 0 0 1.2em;
}

.tv-content blockquote {
  background: #ffffff;
  border-left: 6px solid var(--tv-color-lime);
  border-radius: 18px;
  color: var(--tv-color-ink);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 22px;
}

.tv-content table {
  border-collapse: collapse;
  width: 100%;
}

.tv-content th,
.tv-content td {
  border: 1px solid var(--tv-color-line);
  padding: 12px;
  text-align: left;
}

.tv-content pre {
  background: var(--tv-color-ink);
  border-radius: 18px;
  color: #ffffff;
  overflow-x: auto;
  padding: 18px;
}

.tv-page-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tv-page-links a,
.tv-page-links span {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: 999px;
  color: var(--tv-color-ink);
  display: inline-flex;
  font-weight: 900;
  min-height: 36px;
  padding: 6px 12px;
}

.tv-post-nav {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tv-post-nav a {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: 18px;
  color: var(--tv-color-ink);
  display: block;
  font-weight: 900;
  padding: 18px;
}

.tv-empty {
  background: #ffffff;
  border: 1px solid var(--tv-color-line);
  border-radius: var(--tv-radius-lg);
  color: var(--tv-color-ink-soft);
  padding: 28px;
}

.tv-footer {
  background: var(--tv-color-ink);
  color: #ffffff;
  margin-top: 48px;
  padding: 54px 0 28px;
}

.tv-footer-grid {
  display: grid;
  gap: 24px;
}

.tv-footer-brand {
  max-width: 520px;
}

.tv-footer-title {
  display: block;
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.tv-footer-description {
  color: rgba(255, 255, 255, 0.72);
  margin: 18px 0 0;
}

.tv-footer-widgets {
  display: grid;
  gap: 18px;
}

.tv-footer-widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.tv-footer-widget-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
}

.tv-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
}

.tv-back-top {
  color: #ffffff;
  font-weight: 900;
}

@media (min-width: 720px) {
  .tv-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tv-header {
    padding-right: 12px;
  }

  .tv-menu-toggle {
    display: none;
  }

  .tv-menu-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    padding: 0;
    position: static;
  }

  .tv-menu {
    align-items: center;
    display: flex;
    gap: 2px;
  }

  .tv-menu-item {
    position: relative;
  }

  .tv-menu-link {
    padding: 10px 13px;
  }

  .tv-sub-menu {
    background: #ffffff;
    border: 1px solid var(--tv-color-line);
    border-radius: 18px;
    box-shadow: var(--tv-shadow-card);
    display: none;
    gap: 4px;
    left: 0;
    margin: 8px 0 0;
    min-width: 220px;
    padding: 10px;
    position: absolute;
    top: 100%;
  }

  .tv-menu-item:hover > .tv-sub-menu,
  .tv-menu-item:focus-within > .tv-sub-menu {
    display: grid;
  }

  .tv-hero-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  }

  .tv-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tv-post-card:first-child {
    grid-column: span 2;
  }

  .tv-post-card:first-child .tv-card-media {
    aspect-ratio: 2.08 / 1;
  }

  .tv-footer-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 420px) {
  .tv-header {
    padding-left: 14px;
  }

  .tv-search-link {
    min-width: 46px;
    padding: 0;
  }

  .tv-search-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }

  .tv-visual {
    min-height: 450px;
  }

  .tv-visual-grid {
    grid-template-columns: 1fr;
  }

  .tv-visual-card-large {
    grid-column: span 1;
  }
}
