/* Threshold — inner-page styles (posts, pages, post index).
   The homepage (home.hbs) carries its own full inline stylesheet;
   everything here is scoped to th-* / gh-content so it never
   interferes with the designed homepage. */

:root {
  --space:  #020611;
  --navy:   #0D1C38;
  --cyan:   #52DCEB;
  --bright: #A7FBFB;
  --purple: #73409C;
  --gold:   #EDD288;
  --white:  #FFFFFF;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--space);
  color: var(--white);
  font-family: var(--gh-font-body, 'Exo 2'), sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

/* ===== Header (inner pages) ============================================= */
.th-header {
  border-bottom: 1px solid rgba(82, 220, 235, 0.25);
  background: linear-gradient(180deg, rgba(13, 28, 56, 0.55), rgba(2, 6, 17, 0.2));
}
.th-header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.th-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(82, 220, 235, 0.6), 0 0 44px rgba(82, 220, 235, 0.3);
}
.th-nav .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-nav .nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}
.th-nav .nav a:hover,
.th-nav .nav .nav-current a {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(82, 220, 235, 0.5);
}

/* ===== Main column ====================================================== */
.th-main {
  width: min(860px, 94vw);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) 0 clamp(56px, 10vh, 110px);
}
.th-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.th-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  margin: 0 10px;
  vertical-align: middle;
}

/* ===== Archive / index ================================================== */
.th-archive-head {
  text-align: center;
  margin-bottom: clamp(40px, 7vh, 64px);
}
.th-archive-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  text-shadow: 0 0 30px rgba(82, 220, 235, 0.35);
}
.th-archive-desc {
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
  margin: 16px auto 0;
}
.th-post-list {
  display: grid;
  gap: clamp(24px, 4vh, 40px);
}
.th-card {
  background: linear-gradient(180deg, rgba(13, 28, 56, 0.55), rgba(7, 17, 38, 0.55));
  border: 1px solid rgba(82, 220, 235, 0.22);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.th-card:hover {
  border-color: rgba(82, 220, 235, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(2, 6, 17, 0.5), 0 0 40px rgba(82, 220, 235, 0.14);
}
.th-card-image { display: block; }
.th-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.th-card-body { padding: clamp(22px, 3vw, 34px); }
.th-card-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(167, 251, 251, 0.7);
  margin: 0 0 10px;
}
.th-card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.3;
  margin: 0 0 10px;
}
.th-card-title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}
.th-card-title a:hover {
  color: var(--bright);
  text-shadow: 0 0 18px rgba(82, 220, 235, 0.5);
}
.th-card-excerpt {
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 16px;
}
.th-card-more {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}
.th-card-more:hover { color: var(--bright); text-shadow: 0 0 14px rgba(82, 220, 235, 0.5); }

/* Ghost pagination helper */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 6vh, 56px);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pagination a {
  color: var(--bright);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(82, 220, 235, 0.4);
  border-radius: 4px;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.pagination a:hover {
  color: #02121a;
  background: linear-gradient(180deg, var(--bright), var(--cyan));
  border-color: var(--bright);
}
.pagination .page-number { color: rgba(255, 255, 255, 0.5); }

/* ===== Article (post / page) ============================================ */
.th-article-head {
  text-align: center;
  margin-bottom: clamp(30px, 5vh, 48px);
}
.th-article-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1.18;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(82, 220, 235, 0.35);
}
.th-article-excerpt {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 21px);
  color: rgba(167, 251, 251, 0.8);
  max-width: 56ch;
  margin: 18px auto 0;
}
.th-feature { margin: 0 0 clamp(30px, 5vh, 48px); }
.th-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(82, 220, 235, 0.25);
  box-shadow: 0 24px 60px rgba(2, 6, 17, 0.6), 0 0 40px rgba(82, 220, 235, 0.12);
}
.th-feature figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.th-article-foot {
  margin-top: clamp(40px, 7vh, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(82, 220, 235, 0.2);
  text-align: center;
}
.th-back {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bright);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(82, 220, 235, 0.4);
  border-radius: 4px;
  transition: color 0.22s ease, background 0.22s ease;
}
.th-back:hover {
  color: #02121a;
  background: linear-gradient(180deg, var(--bright), var(--cyan));
}

/* ===== Post content (Koenig editor output) ============================== */
.gh-content {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.86);
}
.gh-content > * + * { margin-top: 1.4em; }
.gh-content h1, .gh-content h2, .gh-content h3,
.gh-content h4, .gh-content h5, .gh-content h6 {
  font-family: var(--gh-font-heading, 'Orbitron'), sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin: 1.8em 0 0.6em;
  text-shadow: 0 0 24px rgba(82, 220, 235, 0.25);
}
.gh-content h1 { font-size: 1.9em; }
.gh-content h2 { font-size: 1.55em; }
.gh-content h3 { font-size: 1.3em; }
.gh-content h4 { font-size: 1.12em; }
.gh-content h5, .gh-content h6 { font-size: 1em; letter-spacing: 0.04em; }
.gh-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(82, 220, 235, 0.45);
  text-underline-offset: 3px;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}
.gh-content a:hover { color: var(--bright); text-shadow: 0 0 14px rgba(82, 220, 235, 0.45); }
.gh-content strong { color: var(--white); font-weight: 500; }
.gh-content blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 2px solid var(--cyan);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 1.1em;
  color: rgba(214, 247, 250, 0.92);
}
.gh-content hr {
  border: none;
  height: 1px;
  margin: 3em auto;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(82, 220, 235, 0.7), transparent);
}
.gh-content code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.88em;
  background: rgba(13, 28, 56, 0.8);
  border: 1px solid rgba(82, 220, 235, 0.25);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--bright);
}
.gh-content pre {
  background: rgba(13, 28, 56, 0.6);
  border: 1px solid rgba(82, 220, 235, 0.25);
  border-radius: 6px;
  padding: 18px 22px;
  overflow-x: auto;
}
.gh-content pre code { background: none; border: none; padding: 0; }
.gh-content img { max-width: 100%; height: auto; border-radius: 4px; }
.gh-content figure { margin: 1.8em 0; }
.gh-content figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.5);
}
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content li::marker { color: var(--cyan); }

/* Koenig wide/full cards */
.gh-content .kg-width-wide { margin-left: calc(50% - 47vw); margin-right: calc(50% - 47vw); }
.gh-content .kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (max-width: 900px) {
  .gh-content .kg-width-wide,
  .gh-content .kg-width-full { margin-left: 0; margin-right: 0; }
}
.kg-card { margin: 1.8em 0; }
.kg-bookmark-card a { text-decoration: none; }
.kg-bookmark-container {
  display: flex;
  border: 1px solid rgba(82, 220, 235, 0.3);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(13, 28, 56, 0.55);
  color: var(--white);
}
.kg-bookmark-content { padding: 18px 22px; }
.kg-bookmark-title { font-family: 'Oswald', sans-serif; font-weight: 500; }
.kg-bookmark-description, .kg-bookmark-metadata { font-size: 0.8em; color: rgba(255, 255, 255, 0.6); }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-button-card { display: flex; justify-content: center; }
.kg-btn, .kg-button-card a {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #02121a;
  background: linear-gradient(180deg, var(--bright), var(--cyan));
  padding: 14px 26px;
  border-radius: 2px;
  box-shadow: 0 0 26px rgba(82, 220, 235, 0.4);
}
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Footer (inner pages) ============================================= */
.th-footer {
  border-top: 1px solid rgba(82, 220, 235, 0.4);
  box-shadow: 0 -1px 24px rgba(82, 220, 235, 0.12);
  padding: clamp(32px, 5vh, 52px) 24px;
}
.th-footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.th-footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(82, 220, 235, 0.6);
}
.th-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.th-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}
.th-footer-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(82, 220, 235, 0.5);
}
.th-footer-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Error page (404 / 500) =========================================== */
.th-error {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.th-error-code {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
  text-shadow: 0 0 14px rgba(82, 220, 235, 0.5);
}
.th-error-title {
  font-family: var(--gh-font-heading, 'Orbitron'), sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  text-shadow:
    0 0 14px rgba(167, 251, 251, 0.4),
    0 0 42px rgba(82, 220, 235, 0.4);
}
.th-error-message {
  margin: 20px 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
}
.th-error-link {
  display: inline-block;
  margin-top: 34px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(82, 220, 235, 0.4);
  border-radius: 4px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.th-error-link:hover {
  color: #02121a;
  background: linear-gradient(180deg, var(--bright), var(--cyan));
  box-shadow: 0 0 26px rgba(82, 220, 235, 0.45);
}
