/*
Theme Name: Wilfredo Space
Theme URI: https://wilfredospace.com
Author: Wilfredo Melendez
Author URI: https://wilfredospace.com
Description: A lightweight blog theme for Wilfredo Melendez, matched to wilfredospace.com (navy and teal).
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilfredospace
*/

:root {
  --bg: #020e24;
  --bg-elevated: #071a33;
  --navy: #02142b;
  --teal: #4ad4e0;
  --teal-dim: #2a8a9a;
  --teal-glow: rgba(74, 212, 224, 0.18);
  --text: #e8f4f8;
  --muted: #8eabb8;
  --line: rgba(74, 212, 224, 0.22);
  --max: 760px;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #9aeff6; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-wide { width: min(1080px, calc(100% - 2.4rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 14, 36, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--teal); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.15rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav [aria-current="page"] { color: var(--teal); }

.hero {
  padding: 3.4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(74, 212, 224, 0.16), transparent 55%),
    var(--bg);
}
.eyebrow {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.55rem;
}
.tagline { color: #c9e4ea; font-size: 1.2rem; max-width: 38rem; margin: 0; }

.site-main { flex: 1; padding: 3rem 0 4rem; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.post-card, .post-article, .empty-state {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem 1.6rem 1.6rem;
}
.post-card h2 { margin-bottom: 0.35em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.8em; }
.excerpt, .entry-content { color: #d7e8ed; }
.entry-content p:first-child { margin-top: 0; }
.entry-content p:last-child { margin-bottom: 0; }
.empty-state { text-align: left; }
.empty-state p { margin: 0; color: #c9e4ea; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--navy);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.site-footer p { margin: 0; }

.pagination { margin-top: 2rem; color: var(--muted); }
.pagination a { margin-right: 0.8rem; }

@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; padding: 0.6rem 0; }
  .site-nav { width: 100%; padding-bottom: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site-nav ul, .footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.15rem; margin: 0; padding: 0; }
.site-nav li, .footer-links li { margin: 0; }
.site-nav .current-menu-item > a { color: var(--teal); }

.site-nav ul,
.site-nav .menu,
.footer-links ul,
.footer-links .menu {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0;
}
.site-nav li,
.site-nav .menu-item,
.footer-links li,
.footer-links .menu-item {
  margin: 0;
  padding: 0;
  list-style: none !important;
  list-style-type: none !important;
}
.site-nav li::marker,
.site-nav li::before,
.footer-links li::marker,
.footer-links li::before {
  content: none !important;
  display: none !important;
}
