/*
Theme Name: The Loop Eternal v1.4 Clean
Theme URI: https://brettrussell.com/
Author: The Proxy / ChatGPT
Author URI: https://brettrussell.com/
Description: A custom public-facing WordPress theme for The Loop Eternal: a dark, mysterious, clean, welcoming tech-spiritual movement site with application handling and admin review tools.
Version: 1.4.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loop-eternal
Tags: custom, dark, one-column, accessibility-ready, custom-menu
*/

:root {
  --tle-bg: #05060a;
  --tle-bg-soft: #090b13;
  --tle-panel: rgba(255,255,255,0.055);
  --tle-panel-strong: rgba(255,255,255,0.09);
  --tle-text: #f4f6fb;
  --tle-muted: #a8afc3;
  --tle-dim: #6f7891;
  --tle-line: rgba(255,255,255,0.13);
  --tle-line-strong: rgba(255,255,255,0.24);
  --tle-accent: #8df7ff;
  --tle-accent-2: #a78bfa;
  --tle-accent-3: #7cffb2;
  --tle-warning: #ffd166;
  --tle-danger: #ff7b9c;
  --tle-radius: 28px;
  --tle-radius-small: 16px;
  --tle-shadow: 0 30px 90px rgba(0,0,0,0.45);
  --tle-max: 1180px;
  --tle-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tle-font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(141,247,255,0.16), transparent 33%),
    radial-gradient(circle at 90% 10%, rgba(167,139,250,0.14), transparent 36%),
    linear-gradient(180deg, #05060a 0%, #070914 46%, #05060a 100%);
  color: var(--tle-text);
  font-family: var(--tle-font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 72%);
  opacity: .65;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.22) 56%, rgba(0,0,0,0.72) 100%);
  z-index: -1;
}

a { color: var(--tle-accent); text-decoration: none; }
a:hover { color: #ffffff; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(141,247,255,0.24); color: #fff; }

.tle-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  background: #fff;
  color: #02030a;
  padding: 10px 14px;
  border-radius: 999px;
}
.tle-skip-link:focus { left: 12px; }

.tle-wrap { width: min(var(--tle-max), calc(100% - 40px)); margin: 0 auto; }
.tle-narrow { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.tle-mini { width: min(720px, calc(100% - 40px)); margin: 0 auto; }

.tle-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}
.tle-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.tle-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tle-text);
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}
.tle-logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 18px rgba(141,247,255,0.28)); }
.tle-nav { display: flex; align-items: center; gap: 4px; }
.tle-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tle-nav a {
  display: inline-flex;
  color: var(--tle-muted);
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}
.tle-nav a:hover, .tle-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.tle-nav-cta a, .menu-item.tle-nav-cta a {
  color: #02030a !important;
  background: linear-gradient(135deg, var(--tle-accent), #fff) !important;
  font-weight: 750;
}
.tle-menu-toggle { display: none; }

.tle-main { min-height: 60vh; }
.tle-section { padding: 94px 0; position: relative; }
.tle-section-tight { padding: 64px 0; }
.tle-hero {
  padding: 118px 0 86px;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tle-hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(141,247,255,0.14), transparent 35%),
    conic-gradient(from 190deg, transparent, rgba(141,247,255,0.08), transparent, rgba(167,139,250,0.09), transparent);
  border-radius: 50%;
  opacity: .85;
  filter: blur(2px);
  pointer-events: none;
}
.tle-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 52px;
}
.tle-kicker {
  color: var(--tle-accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 18px;
}
.tle-title {
  margin: 0;
  font-size: clamp(48px, 8vw, 108px);
  line-height: .91;
  letter-spacing: -0.07em;
  font-weight: 860;
}
.tle-page-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
  letter-spacing: -0.06em;
  font-weight: 850;
}
.tle-subtitle {
  color: #d6dcef;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  margin: 26px 0 0;
  max-width: 720px;
}
.tle-prose {
  color: #dce1ef;
  font-size: 18px;
}
.tle-prose p { margin: 0 0 1.25em; }
.tle-prose h2, .tle-prose h3 { color: #fff; line-height: 1.12; letter-spacing: -0.03em; }
.tle-prose h2 { font-size: clamp(34px, 4.2vw, 56px); margin: 0 0 24px; }
.tle-prose h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 48px 0 14px; }
.tle-prose ul, .tle-prose ol { padding-left: 1.3em; }
.tle-prose li { margin: 8px 0; }
.tle-prose blockquote {
  margin: 40px 0;
  padding: 28px 30px;
  border-left: 3px solid var(--tle-accent);
  background: rgba(255,255,255,0.045);
  border-radius: 0 var(--tle-radius-small) var(--tle-radius-small) 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.45;
}

.tle-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tle-button, .tle-button-secondary, .tle-button-ghost {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.tle-button {
  color: #02030a;
  background: linear-gradient(135deg, var(--tle-accent), #fff 56%, var(--tle-accent-3));
  box-shadow: 0 16px 46px rgba(141,247,255,0.16);
}
.tle-button-secondary {
  color: #fff;
  border: 1px solid var(--tle-line-strong);
  background: rgba(255,255,255,0.075);
}
.tle-button-ghost {
  color: var(--tle-accent);
  border: 1px solid rgba(141,247,255,0.24);
  background: rgba(141,247,255,0.055);
}
.tle-button:hover, .tle-button-secondary:hover, .tle-button-ghost:hover { transform: translateY(-2px); color: #fff; }
.tle-button:hover { color: #02030a; }

.tle-orb-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  box-shadow: var(--tle-shadow);
  overflow: hidden;
}
.tle-orb-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(141,247,255,0.18), transparent 28%, rgba(167,139,250,0.12), transparent 68%);
  opacity: .8;
  pointer-events: none;
}
.tle-orb-inner { position: relative; z-index: 1; display: grid; place-items: center; min-height: 420px; }
.tle-large-mark { width: min(360px, 84%); height: auto; filter: drop-shadow(0 0 40px rgba(141,247,255,0.28)); animation: tlePulse 7s ease-in-out infinite; }
@keyframes tlePulse { 0%,100% { opacity:.9; transform: scale(1); } 50% { opacity:1; transform: scale(1.025); } }

.tle-divider {
  width: min(var(--tle-max), calc(100% - 40px));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,247,255,0.32), rgba(255,255,255,0.12), transparent);
}

.tle-grid { display: grid; gap: 22px; }
.tle-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tle-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tle-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tle-card {
  border: 1px solid rgba(255,255,255,0.105);
  border-radius: var(--tle-radius);
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.027));
  box-shadow: 0 20px 70px rgba(0,0,0,0.22);
}
.tle-card:hover { border-color: rgba(141,247,255,0.28); }
.tle-card h2, .tle-card h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.03em; }
.tle-card h3 { font-size: 23px; }
.tle-card p { color: var(--tle-muted); margin: 0 0 16px; }
.tle-card p:last-child { margin-bottom: 0; }
.tle-card .tle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(141,247,255,0.1);
  color: var(--tle-accent);
  font-weight: 900;
  margin-bottom: 18px;
}
.tle-card-accent {
  border-color: rgba(141,247,255,0.28);
  background: linear-gradient(180deg, rgba(141,247,255,0.08), rgba(255,255,255,0.03));
}
.tle-card-purple { border-color: rgba(167,139,250,0.24); }

.tle-big-statement {
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 850;
  margin: 0;
}
.tle-muted { color: var(--tle-muted); }
.tle-dim { color: var(--tle-dim); }
.tle-glow { color: var(--tle-accent); text-shadow: 0 0 28px rgba(141,247,255,0.28); }
.tle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(141,247,255,0.22);
  border-radius: 999px;
  color: var(--tle-accent);
  background: rgba(141,247,255,0.055);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tle-page-hero { padding: 96px 0 54px; }
.tle-page-hero .tle-subtitle { max-width: 820px; }

.tle-list-clean { list-style: none; margin: 0; padding: 0; }
.tle-list-clean li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.tle-list-clean li:last-child { border-bottom: 0; }

.tle-timeline { position: relative; }
.tle-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: linear-gradient(var(--tle-accent), transparent);
  opacity: .32;
}
.tle-timeline-item { position: relative; padding-left: 58px; margin: 0 0 34px; }
.tle-timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #05060a;
  border: 1px solid var(--tle-accent);
  box-shadow: 0 0 24px rgba(141,247,255,0.22);
}
.tle-timeline-item h3 { margin-top: 0; }

.tle-form {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--tle-shadow);
}
.tle-field { margin: 0 0 22px; }
.tle-field label {
  display: block;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.tle-field small, .tle-help { display: block; color: var(--tle-dim); margin-top: 7px; font-size: 13px; line-height: 1.45; }
.tle-field input[type="text"],
.tle-field input[type="email"],
.tle-field input[type="url"],
.tle-field textarea,
.tle-field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}
.tle-field textarea { min-height: 130px; resize: vertical; }
.tle-field input:focus, .tle-field textarea:focus, .tle-field select:focus {
  border-color: rgba(141,247,255,0.58);
  box-shadow: 0 0 0 4px rgba(141,247,255,0.09);
}
.tle-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}
.tle-check input { margin-top: 5px; }
.tle-form-note {
  border: 1px solid rgba(141,247,255,0.18);
  border-radius: 20px;
  padding: 18px;
  background: rgba(141,247,255,0.055);
  color: #dcecff;
  margin-bottom: 24px;
}
.tle-error, .tle-success {
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 22px;
}
.tle-error { border: 1px solid rgba(255,123,156,0.32); background: rgba(255,123,156,0.08); color: #ffd7df; }
.tle-success { border: 1px solid rgba(124,255,178,0.32); background: rgba(124,255,178,0.08); color: #d8ffe7; }

.tle-faq details {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  padding: 0;
  margin: 0 0 14px;
  overflow: hidden;
}
.tle-faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 850;
  color: #fff;
}
.tle-faq details > div { padding: 0 22px 22px; color: var(--tle-muted); }

.tle-term-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tle-term {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.105);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
}
.tle-term h3 { margin: 0 0 6px; }
.tle-term p { margin: 0; color: var(--tle-muted); }

.tle-update-list { display: grid; gap: 18px; }
.tle-update-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: rgba(255,255,255,0.045);
}
.tle-update-row time { color: var(--tle-accent); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tle-update-row h3 { margin: 0 0 7px; }
.tle-update-row p { margin: 0; color: var(--tle-muted); }

.tle-site-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.22);
  padding: 56px 0 34px;
}
.tle-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; }
.tle-footer-title { display:flex; align-items:center; gap:12px; margin-bottom:16px; font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.tle-footer-nav { list-style: none; padding: 0; margin: 0; }
.tle-footer-nav li { margin: 8px 0; }
.tle-footer-nav a { color: var(--tle-muted); }
.tle-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 38px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--tle-dim);
  font-size: 13px;
}

.tle-post-header { padding: 92px 0 42px; }
.tle-post-meta { color: var(--tle-accent); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tle-wp-content { color: #dce1ef; font-size: 18px; }
.tle-wp-content h2, .tle-wp-content h3 { color: #fff; line-height: 1.12; }
.tle-wp-content a { text-decoration: underline; text-decoration-color: rgba(141,247,255,0.34); text-underline-offset: 4px; }

@media (max-width: 980px) {
  .tle-hero-grid, .tle-grid-2, .tle-grid-3, .tle-grid-4, .tle-footer-grid { grid-template-columns: 1fr; }
  .tle-orb-inner { min-height: 320px; }
  .tle-term-grid { grid-template-columns: 1fr; }
  .tle-nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background: rgba(6,7,13,0.96);
    box-shadow: var(--tle-shadow);
  }
  .tle-nav.is-open { display: block; }
  .tle-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .tle-nav a { justify-content: center; padding: 13px 12px; border: 1px solid rgba(255,255,255,0.08); }
  .tle-menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
  }
}
@media (max-width: 640px) {
  .tle-wrap, .tle-narrow, .tle-mini { width: min(100% - 28px, var(--tle-max)); }
  .tle-hero { padding: 72px 0 58px; min-height: auto; }
  .tle-section { padding: 68px 0; }
  .tle-page-hero { padding: 70px 0 38px; }
  .tle-title { font-size: clamp(44px, 16vw, 70px); }
  .tle-card { padding: 22px; }
  .tle-update-row { grid-template-columns: 1fr; }
  .tle-footer-bottom { flex-direction: column; }
  .tle-nav ul { grid-template-columns: 1fr; }
}

.tle-footer-bottom a { color: var(--tle-muted); text-decoration: none; }
.tle-footer-bottom a:hover { color: var(--tle-accent); }
