/*
Theme Name: Vuelve Journal
Theme URI: https://vuelve.co
Author: Vuelve
Author URI: https://vuelve.co
Description: Custom SEO-first WordPress blog theme for Vuelve.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vuelve-journal
*/

:root {
  --bg: #071219;
  --surface: #0d1f2a;
  --panel: #112836;
  --text: #eaf3fa;
  --muted: #a9c1d2;
  --accent: #4ec7ff;
  --accent-2: #16d59f;
  --border: rgba(201, 231, 247, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(78, 199, 255, 0.2), transparent 48%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  margin-top: 14px;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 6px;
  margin-left: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.header-search {
  flex: 0 1 360px;
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 42px 10px 14px;
  font-size: 14px;
  color: #fff;
  background: transparent;
  outline: 0;
}

.header-search input[type="search"]::placeholder {
  color: color-mix(in srgb, #fff 45%, transparent);
}

.header-search input[type="search"]:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.header-search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, #fff 72%, transparent);
  padding: 0;
  cursor: pointer;
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #032130;
}

.hero {
  margin-bottom: 24px;
}

.home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--hero-height, 540px);
  min-height: 0;
  max-height: 540px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(7, 18, 25, 0.08) 0%, rgba(7, 18, 25, 0.78) 72%, rgba(7, 18, 25, 0.95) 100%),
    radial-gradient(circle at 14% 18%, rgba(78, 199, 255, 0.3), transparent 44%),
    var(--hero-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.home-hero-content {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.home-hero .hero-kicker {
  margin: 0 0 10px;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.06;
  font-family: "Sora", "Manrope", sans-serif;
  max-width: 18ch;
}

.home-hero p {
  margin: 14px 0 0;
  color: color-mix(in srgb, #fff 82%, transparent);
  max-width: 70ch;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  margin-bottom: 24px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 84%, transparent), color-mix(in srgb, var(--panel) 72%, transparent));
}

.hero-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.1;
  font-family: "Sora", "Manrope", sans-serif;
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 78ch;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-family: "Sora", "Manrope", sans-serif;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.posts-grid {
  --grid-gap: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: var(--grid-gap);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 42px;
  will-change: gap, filter, opacity;
  filter: blur(var(--parallax-blur, 0px));
  opacity: var(--parallax-opacity, 1);
}

.posts-grid-top {
  --grid-gap: 24px;
  margin-bottom: 34px;
}

.posts-list-head {
  margin-top: 0;
  margin-bottom: 22px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  overflow: clip;
  transform: translate3d(var(--parallax-shift-x, 0px), var(--parallax-shift-y, 0px), 0);
  will-change: transform, filter, opacity;
  filter: blur(var(--parallax-blur, 0px));
  opacity: var(--parallax-opacity, 1);
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.post-card > a {
  display: block;
}

.post-card-featured {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.post-card-secondary {
  grid-column: span 2;
  margin-bottom: 0;
}

.post-card-featured .post-card-inner h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.post-card-top {
  border: 0;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  border-radius: 18px;
  padding: 14px;
}

.post-card-top > a {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.post-card-top .post-thumb {
  border: 0;
  border-radius: 16px;
  min-height: 100%;
  max-height: 100%;
  height: 100%;
}

.post-card-secondary.post-card-top > a {
  grid-template-columns: minmax(170px, 43%) minmax(0, 1fr);
  gap: 14px;
}

.post-card-list {
  margin-top: 2px;
}

.posts-grid-list {
  margin-top: 4px;
}

.posts-virtual-spacer {
  grid-column: 1 / -1;
  height: 0;
  pointer-events: none;
}

.posts-load-sentinel {
  width: 100%;
  height: 1px;
}

.post-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 180px;
  max-height: 180px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: block;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-inner {
  padding: 16px;
}

.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.chip {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 34px;
}

.pagination .page-numbers {
  min-width: 40px;
  text-align: center;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.pagination .current {
  color: #06212f;
  border-color: transparent;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.post-article {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.post-article h1 {
  margin: 10px 0 10px;
  line-height: 1.2;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.post-article .entry-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.post-cover {
  border-radius: 16px;
  margin: 16px auto 20px;
  border: 1px solid var(--border);
  max-width: 750px;
  overflow: hidden;
}

.post-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.post-article .entry-content {
  max-width: 750px;
  margin: 0 auto;
}

.post-article .entry-content p,
.post-article .entry-content li {
  color: #dceaf4;
  line-height: 32px;
}

.post-article .entry-content h2,
.post-article .entry-content h3 {
  margin-top: 28px;
  line-height: 1.3;
  font-family: "Sora", "Manrope", sans-serif;
}

.post-article .entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.post-tax {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.post-nav {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.post-nav a {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  color: var(--muted);
}

.post-nav a:hover {
  color: var(--text);
}

.post-comments {
  margin-top: 28px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.post-comments h3 {
  margin: 0 0 14px;
  font-family: "Sora", "Manrope", sans-serif;
}

.post-comments .comment-list {
  margin: 0 0 18px;
  padding-left: 20px;
}

.post-comments .doc-list,
.post-comments .comment-list {
  list-style: none;
  padding-left: 0;
}

.post-comments .comment-body {
  margin-bottom: 18px;
}

.post-comments .comment-meta {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "avatar date";
  column-gap: 16px;
  align-items: center;
}

.post-comments .comment-author {
  display: contents;
}

.post-comments .comment-author .avatar {
  grid-area: avatar;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0;
}

.post-comments .comment-author .fn {
  grid-area: name;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.post-comments .says {
  display: none;
}

.post-comments .comment-metadata {
  grid-area: date;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.post-comments .comment-metadata a {
  color: inherit;
}

.post-comments .comment-content {
  margin: 12px 0 10px 66px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #112c3d;
}

.post-comments .reply {
  margin-left: 66px;
}

.post-comments .reply .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.post-comments .reply .comment-reply-link::before {
  content: "↩";
  font-size: 14px;
  line-height: 1;
}

.post-comments .logged-in-as,
.post-comments .logged-in-links,
.post-comments .comment-notes {
  margin: 0 0 10px;
  color: var(--muted);
}

.post-comments .logged-in-links a {
  color: var(--accent);
}

.post-comments .comment-form p {
  margin: 0 0 12px;
}

.post-comments .comment-form input[type="text"],
.post-comments .comment-form input[type="email"],
.post-comments .comment-form input[type="url"],
.post-comments .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: #fff;
  background: transparent;
  outline: 0;
}

.post-comments .comment-form textarea {
  min-height: 180px;
  line-height: 1.55;
  padding-bottom: 62px;
  resize: vertical;
}

.post-comments .comment-form input::placeholder,
.post-comments .comment-form textarea::placeholder {
  color: color-mix(in srgb, #fff 45%, transparent);
}

.post-comments .comment-form input:focus,
.post-comments .comment-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.post-comments .comment-form-comment {
  position: relative;
  margin-bottom: 0;
}

.post-comments .form-submit {
  margin-top: -50px;
  margin-bottom: 6px;
  padding-right: 12px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.post-comments .form-submit .submit {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #032130;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  cursor: pointer;
}

.post-comments .comment-reply-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-comments .comment-reply-title #cancel-comment-reply-link {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.2;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 22px;
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .header-search-submit {
    right: 10px;
  }

  .hero-card {
    padding: 22px;
  }

  .home-hero {
    height: auto;
    min-height: clamp(280px, 70vw, 420px);
    max-height: none;
    padding: 24px 0;
  }

  .home-hero-content {
    width: min(1240px, calc(100% - 32px));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .post-card-top > a,
  .post-card-secondary.post-card-top > a {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-card-top .post-thumb {
    min-height: 180px;
    max-height: 180px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .post-card-secondary {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    --grid-gap: 16px;
    grid-template-columns: 1fr;
  }

  .post-card-featured,
  .post-card-secondary {
    grid-column: auto;
  }

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