/*
Theme Name: Sturox Editorial
Theme URI: https://sturox.com/
Author: Sturox
Author URI: https://sturox.com/
Description: Editorial WordPress theme for the Sturox Journal.
Version: 1.2.2
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: sturox-editorial
*/

:root {
  --stx-bg: #050608;
  --stx-bg-soft: #0b0e13;
  --stx-panel: rgba(255, 255, 255, 0.04);
  --stx-line: rgba(255, 255, 255, 0.1);
  --stx-line-strong: rgba(255, 255, 255, 0.16);
  --stx-text: #f4f6fb;
  --stx-muted: #a3aab9;
  --stx-silver: #d8dce5;
  --stx-accent: #98baff;
  --stx-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --stx-shell: min(1160px, calc(100vw - 32px));
  --stx-copy: min(760px, calc(100vw - 32px));
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stx-text);
  background:
    radial-gradient(circle at top left, rgba(152, 186, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(180deg, #030406 0%, #06070b 100%);
  font-family: "Instrument Sans", sans-serif;
}

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

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

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

:focus-visible {
  outline: 2px solid rgba(152, 186, 255, 0.72);
  outline-offset: 4px;
}

.stx-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.96);
  border: 1px solid var(--stx-line-strong);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.stx-skip-link:focus-visible {
  transform: translateY(0);
}

.stx-noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px);
  background-size: 26px 26px, 22px 22px;
  mix-blend-mode: soft-light;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.stx-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.9), rgba(6, 7, 10, 0.34));
  border-bottom: 1px solid transparent;
}

.stx-header__inner,
.stx-shell,
.stx-footer__inner {
  width: var(--stx-shell);
  margin: 0 auto;
}

.stx-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.stx-header__controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.stx-brand strong,
.stx-wordmark {
  font-family: "Syncopate", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stx-brand strong {
  font-size: 0.9rem;
}

.stx-brand-title {
  display: inline-block;
  font-family: "Syncopate", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.stx-brand small,
.stx-kicker,
.stx-meta,
.stx-footer p,
.stx-empty p {
  color: var(--stx-muted);
}

.stx-brand small,
.stx-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stx-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stx-nav a {
  color: rgba(244, 246, 251, 0.88);
  position: relative;
  transition: all 220ms ease;
}

.stx-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.stx-nav a:hover,
.stx-nav a:focus-visible {
  color: #ffffff;
}

.stx-nav a:hover::after,
.stx-nav a:focus-visible::after {
  transform: scaleX(1);
}

.stx-nav__cta,
.stx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0.78rem 1.02rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transition: all 220ms ease;
}

.stx-nav__cta::after {
  display: none;
}

.stx-nav__cta:hover,
.stx-nav__cta:focus-visible,
.stx-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.stx-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.stx-lang-switch a {
  min-width: 2.5rem;
  min-height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--stx-muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stx-lang-switch .is-active {
  color: var(--stx-text);
  background: rgba(255, 255, 255, 0.09);
}

.stx-main {
  padding: 0 0 5rem;
}

.stx-hero {
  padding: 4.8rem 0 2rem;
}

.stx-hero__frame {
  padding: clamp(1.6rem, 4vw, 2.9rem);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--stx-shadow);
}

.stx-kicker {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stx-hero h1,
.stx-title,
.stx-archive-title {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.stx-hero h1,
.stx-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.stx-archive-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.stx-subtitle,
.stx-prose,
.stx-post-row__excerpt,
.stx-empty p,
.stx-single__lead {
  color: var(--stx-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.stx-subtitle {
  max-width: 60ch;
  margin: 1.35rem 0 0;
}

.stx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.stx-topic-strip {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stx-topic-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stx-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--stx-silver);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stx-featured {
  margin: 0 0 1.4rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--stx-shadow);
}

.stx-featured__label {
  margin: 0 0 0.7rem;
  color: var(--stx-silver);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stx-featured__title {
  text-decoration: none;
}

.stx-featured__title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.stx-featured__meta,
.stx-single__meta-line {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--stx-muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stx-featured__meta span,
.stx-single__meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stx-featured__excerpt {
  margin: 1rem 0 0;
  max-width: 65ch;
  color: var(--stx-muted);
  line-height: 1.75;
}

.stx-featured__cta {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--stx-line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.stx-post-row__reading {
  margin: 0.5rem 0 0;
  color: var(--stx-muted);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stx-button--solid {
  color: #06080b;
  background: rgba(246, 248, 252, 0.95);
}

.stx-brief {
  padding: 0 0 3.5rem;
}

.stx-brief__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 30px;
  border: 1px solid var(--stx-line);
  background:
    radial-gradient(circle at top right, rgba(152, 186, 255, 0.16), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--stx-shadow);
}

.stx-brief__copy h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stx-brief__copy p {
  margin: 1rem 0 0;
  color: var(--stx-muted);
  line-height: 1.75;
}

.stx-brief-form {
  display: grid;
  gap: 0.85rem;
}

.stx-brief-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stx-brief-form__field {
  display: grid;
  gap: 0.42rem;
}

.stx-brief-form__field span,
.stx-footer__heading {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stx-accent);
}

.stx-brief-form__field input,
.stx-brief-form__field select,
.stx-brief-form__field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--stx-line);
  background: rgba(7, 9, 13, 0.72);
  color: var(--stx-text);
  resize: vertical;
}

.stx-brief-form__field input::placeholder,
.stx-brief-form__field textarea::placeholder {
  color: rgba(163, 170, 185, 0.72);
}

.stx-brief-form__field input:focus,
.stx-brief-form__field select:focus,
.stx-brief-form__field textarea:focus {
  outline: none;
  border-color: rgba(152, 186, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(152, 186, 255, 0.08);
}

.stx-brief-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stx-brief-form__status {
  margin: 0;
  color: var(--stx-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.stx-post-list {
  border-top: 1px solid var(--stx-line);
}

.stx-post-row {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--stx-line);
}

.stx-post-row__title,
.stx-single__back,
.stx-post-row__readmore {
  text-decoration: none;
}

.stx-post-row__title h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.05;
}

.stx-post-row__excerpt {
  margin: 0.85rem 0 0;
  max-width: 58ch;
}

.stx-post-row__readmore {
  white-space: nowrap;
}

.stx-pagination {
  padding-top: 2rem;
}

.stx-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.stx-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--stx-line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.stx-pagination .current {
  background: rgba(246, 248, 252, 0.95);
  color: #06080b;
}

.stx-single {
  padding: 4rem 0 5rem;
}

.stx-single__intro,
.stx-empty,
.stx-page {
  width: var(--stx-copy);
  margin: 0 auto;
}

.stx-single__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--stx-muted);
}

.stx-single__lead {
  margin: 1.25rem 0 0;
}

.stx-single__cover {
  width: var(--stx-copy);
  margin: 2rem auto 0;
}

.stx-single__cover img {
  width: 100%;
  max-height: min(58vh, 540px);
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--stx-line);
  box-shadow: var(--stx-shadow);
}

.stx-prose {
  width: var(--stx-copy);
  margin: 2.4rem auto 0;
}

.stx-prose h2,
.stx-prose h3,
.stx-prose h4 {
  margin: 2.2rem 0 0.8rem;
  color: var(--stx-text);
  line-height: 1.1;
}

.stx-prose p,
.stx-prose ul,
.stx-prose ol,
.stx-prose blockquote {
  margin: 0 0 1.2rem;
}

.stx-prose ul,
.stx-prose ol {
  padding-left: 1.3rem;
}

.stx-prose blockquote {
  margin-left: 0;
  padding: 1.2rem 1.2rem 1.2rem 1.3rem;
  border-left: 2px solid var(--stx-accent);
  background: rgba(255, 255, 255, 0.03);
}

.stx-prose a {
  color: var(--stx-silver);
}

.stx-prose code,
.stx-prose pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.stx-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stx-line);
}

.stx-prose hr {
  border: 0;
  border-top: 1px solid var(--stx-line);
  margin: 2rem 0;
}

.stx-post-nav {
  width: var(--stx-copy);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stx-post-nav a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--stx-line);
  background: rgba(255, 255, 255, 0.03);
}

.stx-post-nav span {
  display: block;
  color: var(--stx-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.stx-empty {
  padding: 0 0 5rem;
}

.stx-empty__frame {
  padding: 1.8rem;
  border-radius: 28px;
  border: 1px solid var(--stx-line);
  background: rgba(255, 255, 255, 0.03);
}

.stx-empty h2,
.stx-page h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1;
}

.stx-footer {
  border-top: 1px solid var(--stx-line);
}

.stx-footer__inner {
  padding: 2rem 0 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.85fr));
  gap: 1.4rem;
}

.stx-footer__brand,
.stx-footer__group {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.stx-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.stx-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stx-footer__title {
  display: inline-block;
  font-family: "Syncopate", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.stx-footer__stack {
  display: grid;
  gap: 0.65rem;
}

.stx-footer__stack a,
.stx-footer__socials a {
  color: rgba(244, 246, 251, 0.82);
}

.stx-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.stx-footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--stx-line);
  background: rgba(255, 255, 255, 0.03);
}

.stx-footer__socials svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.stx-footer__socials a:hover,
.stx-footer__socials a:focus-visible,
.stx-footer__stack a:hover,
.stx-footer__stack a:focus-visible {
  color: var(--stx-text);
}

@media (max-width: 960px) {
  .stx-post-row {
    grid-template-columns: 1fr;
  }

  .stx-post-row__readmore {
    justify-self: start;
  }

  .stx-header__inner {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .stx-header__controls {
    width: 100%;
  }

  .stx-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .stx-brief__panel,
  .stx-footer__inner {
    grid-template-columns: 1fr;
  }

  .stx-brief__copy h2 {
    max-width: 11ch;
  }
}

@media (max-width: 760px) {
  .stx-hero {
    padding-top: 3rem;
  }

  .stx-featured {
    border-radius: 20px;
  }

  .stx-featured__title h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .stx-post-nav {
    grid-template-columns: 1fr;
  }

  .stx-brief-form__row,
  .stx-brief-form__actions {
    grid-template-columns: 1fr;
  }

  .stx-footer__socials a,
  .stx-button {
    width: 100%;
  }

  .stx-footer__inner,
  .stx-footer__brand,
  .stx-footer__group,
  .stx-footer__note {
    gap: 0.75rem;
  }
}

@media (max-width: 430px) {
  .stx-brand-title,
  .stx-brand strong {
    font-size: 0.82rem;
  }

  .stx-brand small,
  .stx-meta {
    font-size: 0.7rem;
  }

  .stx-hero {
    padding-top: 2.4rem;
  }

  .stx-hero__frame,
  .stx-brief__panel,
  .stx-single__cover img,
  .stx-empty__frame {
    border-radius: 22px;
  }

  .stx-hero h1,
  .stx-title,
  .stx-archive-title,
  .stx-brief__copy h2 {
    font-size: clamp(1.95rem, 10vw, 2.5rem);
  }

  .stx-subtitle,
  .stx-prose,
  .stx-post-row__excerpt,
  .stx-single__lead,
  .stx-brief__copy p,
  .stx-footer p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .stx-actions,
  .stx-footer__socials,
  .stx-topic-strip {
    gap: 0.6rem;
  }

  .stx-post-row {
    gap: 0.9rem;
    padding: 1.25rem 0;
  }

  .stx-post-row__title h2 {
    font-size: 1.38rem;
  }

  .stx-single {
    padding-top: 3rem;
  }

  .stx-single__cover {
    margin-top: 1.4rem;
  }

  .stx-single__cover img {
    max-height: 280px;
  }

  .stx-brief-form__field input,
  .stx-brief-form__field select,
  .stx-brief-form__field textarea {
    padding: 0.82rem 0.9rem;
  }
}

@media (max-width: 360px) {
  :root {
    --stx-shell: min(1160px, calc(100vw - 24px));
    --stx-copy: min(760px, calc(100vw - 24px));
  }

  .stx-hero h1,
  .stx-title,
  .stx-archive-title,
  .stx-brief__copy h2,
  .stx-page h1,
  .stx-empty h2 {
    font-size: 1.82rem;
  }

  .stx-brief-form__field span,
  .stx-footer__heading,
  .stx-kicker {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
