/*
Theme Name: Lumina Minimal
Author: Assistant
Description: Aquatic Blueprint Console — glass UI, technical grid, bold display + mono pairing. Clean, high-contrast, bug-proof layouts.
Version: 4.0
*/

:root {
  --bg: #070A10;
  --bg2: #0A1220;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke2: rgba(255, 255, 255, 0.22);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;

  --accent: #7CFFB2;
  --accent2: #57AAFF;
  --danger: #FF4D6D;

  --container: 1240px;
  --pad: clamp(18px, 2.4vw, 28px);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 900px at 20% 0%, rgba(124, 255, 178, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 80% 20%, rgba(87, 170, 255, 0.12), transparent 58%),
    radial-gradient(900px 900px at 50% 110%, rgba(124, 255, 178, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 8px);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
  mix-blend-mode: overlay;
}

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Layout */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-main {
  flex: 1;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--stroke2);
  border-radius: 12px;
  color: #fff;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(14px);
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--surface2);
  border-color: rgba(124, 255, 178, 0.55);
}
.btn--primary {
  background: linear-gradient(135deg, rgba(124, 255, 178, 0.22), rgba(87, 170, 255, 0.18));
  border-color: rgba(124, 255, 178, 0.6);
}
.btn--ghost {
  background: transparent;
}

/* Header (floating glass) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}

.header-float {
  border-radius: calc(var(--radius) + 4px);
  background: rgba(8, 12, 22, 0.64);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 14px 16px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.2) 60%),
    linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 3px rgba(124, 255, 178, 0.12);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-tag {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted2);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-desktop .nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 255, 178, 0.22);
}

.site-nav-mobile {
  display: none;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.site-nav-mobile[open] .nav-toggle {
  border-color: rgba(124, 255, 178, 0.45);
}

.nav-list--mobile {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(8, 12, 22, 0.75);
}

/* Hero */
.hero {
  padding: clamp(68px, 8vw, 120px) 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.hero-kicker {
  font-family: var(--font-mono);
  color: var(--muted2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 14px 0 10px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 112px);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 255, 178, 0.20);
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(124, 255, 178, 0.16), transparent 55%),
    radial-gradient(650px 520px at 100% 30%, rgba(87, 170, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 18px 18px 12px;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.25;
  background: conic-gradient(from 180deg at 50% 50%, rgba(124, 255, 178, 0.25), rgba(87, 170, 255, 0.2), rgba(255, 255, 255, 0.0));
  filter: blur(10px);
  transform: rotate(16deg);
}

.hero-panel__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.hero-panel__list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.hero-panel__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 18, 32, 0.35);
}

.hero-panel__list li span:first-child {
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: -0.01em;
}

.hero-panel__list li .mono {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* Sections */
.section {
  padding: clamp(54px, 6vw, 92px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(18px, 3vw, 40px);
}

.section-head {
  max-width: 52ch;
}

.section-head--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.3vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-lead {
  margin: 10px 0 0;
  color: var(--muted);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.info-card__kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted2);
}

.info-card__title {
  margin: 10px 0 6px;
  letter-spacing: -0.03em;
  font-size: 20px;
}

.info-card__text {
  margin: 0;
  color: var(--muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.service {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(500px 340px at 20% 0%, rgba(124, 255, 178, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.service__title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service__text {
  color: var(--muted);
  margin: 0;
}

/* Archive hero */
.archive-hero {
  padding: clamp(52px, 6vw, 78px) 0 18px;
}

.archive-hero__grid {
  display: grid;
  gap: 10px;
}

.archive-hero__kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted2);
}

.archive-hero__title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 70px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.archive-hero__desc {
  max-width: 70ch;
  color: var(--muted);
}

/* Post cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.post-card {
  grid-column: span 4;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 255, 178, 0.30);
  background: rgba(255, 255, 255, 0.045);
}

.post-card__media {
  display: block;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.post-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 350ms ease;
}

.post-card:hover .post-card__img {
  transform: scale(1.05);
}

.post-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(124, 255, 178, 0.22), transparent 55%),
    radial-gradient(800px 560px at 90% 30%, rgba(87, 170, 255, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  position: relative;
}

.post-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 14px);
  mix-blend-mode: overlay;
}

.post-card__body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
}

.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card__cat a {
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.post-card__cat a:hover {
  color: var(--text);
  border-color: rgba(124, 255, 178, 0.45);
}

.post-card__dot {
  opacity: 0.45;
}

.post-card__title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.post-card__title a:hover {
  color: rgba(124, 255, 178, 0.95);
}

.post-card__excerpt {
  margin: 0;
  color: var(--muted);
}

.post-card__btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.post-card__btn:hover {
  border-color: rgba(124, 255, 178, 0.40);
  background: rgba(255, 255, 255, 0.06);
}

.post-card__arrow {
  font-family: var(--font-mono);
  opacity: 0.75;
}

/* Empty */
.empty-state {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  padding: 22px;
}
.empty-state__title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.empty-state__text {
  color: var(--muted);
}

/* Pagination (paginate_links type=list) */
.pagination {
  margin-top: 22px;
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
}
.pagination .page-numbers:hover {
  border-color: rgba(124, 255, 178, 0.40);
  color: #fff;
}
.pagination .current {
  background: rgba(124, 255, 178, 0.18);
  border-color: rgba(124, 255, 178, 0.55);
  color: #fff;
}

/* Footer */
.site-footer {
  margin-top: clamp(60px, 7vw, 110px);
  padding: clamp(44px, 6vw, 78px) 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-sub {
  margin-top: 8px;
  color: var(--muted);
  max-width: 52ch;
}

.footer-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;
}

.footer-label {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.footer-link {
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-link:hover {
  border-color: rgba(124, 255, 178, 0.55);
}

.footer-text {
  color: rgba(255, 255, 255, 0.80);
}

.footer-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* WP content */
.content-narrow,
.single-body,
.single-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.content-narrow p,
.single-body p,
.single-content-wrap p {
  color: rgba(255, 255, 255, 0.86);
}

.content-narrow a,
.single-body a,
.single-content-wrap a {
  color: rgba(124, 255, 178, 0.95);
  border-bottom: 1px solid rgba(124, 255, 178, 0.38);
}

.content-narrow a:hover,
.single-body a:hover,
.single-content-wrap a:hover {
  border-color: rgba(124, 255, 178, 0.75);
}

/* Single post (legacy markup support) */
.post-header-block {
  padding: clamp(44px, 6vw, 78px) 0 22px;
  text-align: center;
}

.single-h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.single-meta-row {
  margin: 18px auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
}

.single-featured-wrap,
.single-featured-image {
  margin: 18px auto 26px;
  max-width: min(var(--container), 1100px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

/* Page markup */
.single-hero {
  padding: clamp(44px, 6vw, 78px) 0 18px;
}
.single-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 66px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .post-card {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .site-nav-desktop {
    display: none;
  }
  .site-nav-mobile {
    display: block;
  }
  .header-grid {
    grid-template-columns: 1fr auto;
  }
  .brand {
    grid-template-columns: auto 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .post-card {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-item {
    grid-template-columns: 70px 1fr;
  }
}
