:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --text: #15162b;
  --text-secondary: #4d4a63;
  --text-muted: #7a748f;
  --accent-pink: #e50a7c;
  --accent-purple: #7030a0;
  --accent-green: #10b981;
  --border: rgba(112, 48, 160, 0.14);
  --shadow: 0 22px 70px rgba(68, 38, 101, 0.12);
  --grad: linear-gradient(135deg, #e50a7c 0%, #7030a0 52%, #10b981 100%);
  --grad-soft: linear-gradient(135deg, #f7f5fb 0%, #f0e9fb 42%, #fdebf5 78%, #e9fbf4 100%);
  --display: 'Archivo Black', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 18%, rgba(229, 10, 124, 0.10), transparent 31%),
    radial-gradient(circle at 82% 8%, rgba(112, 48, 160, 0.14), transparent 34%),
    radial-gradient(circle at 78% 74%, rgba(16, 185, 129, 0.10), transparent 30%),
    var(--grad-soft);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.smallcap { color: var(--text-muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 202px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 1.05rem; font-size: 0.86rem; font-weight: 700; }
.nav-links a { text-decoration: none; color: var(--text-secondary); }
.nav-links a:hover { color: var(--accent-pink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple)); box-shadow: 0 16px 34px rgba(229, 10, 124, 0.20); }
.btn-secondary { color: var(--accent-purple); background: rgba(255, 255, 255, 0.72); border-color: rgba(112, 48, 160, 0.22); }

.hero { padding: clamp(4rem, 8vw, 7rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.52fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
h1 { margin: 1rem 0 1rem; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: 0; }
.hero p { margin: 0; color: var(--text-secondary); font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 680px; }
.hero-panel { border: 1px solid var(--border); border-radius: 24px; background: rgba(255, 255, 255, 0.76); box-shadow: var(--shadow); padding: 1.2rem; backdrop-filter: blur(16px); }
.hero-stat { display: grid; gap: 0.7rem; }
.hero-stat strong { font-family: var(--display); color: var(--accent-purple); font-size: 3.3rem; line-height: 1; }
.hero-stat span { color: var(--text-secondary); font-weight: 700; }

.post-list { padding: 2rem 0 clamp(4rem, 8vw, 6rem); }
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.post-art {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(229, 10, 124, 0.16), rgba(112, 48, 160, 0.15), rgba(16, 185, 129, 0.12)),
    url("data:image/svg+xml,%3Csvg width='90' height='90' viewBox='0 0 90 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237030a0' stroke-width='0.7' opacity='0.22'%3E%3Cpath d='M45 0v90M0 45h90M13 13l64 64M77 13 13 77'/%3E%3Ccircle cx='45' cy='45' r='28'/%3E%3Ccircle cx='45' cy='45' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 90px 90px;
}

.post-body { padding: clamp(1.25rem, 4vw, 2rem); }
.meta { display: flex; flex-wrap: wrap; gap: 0.55rem 0.9rem; color: var(--text-muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
h2, h3 { margin: 0; line-height: 1.12; letter-spacing: 0; }
.post-body h2 { margin: 0.9rem 0 0.75rem; font-family: var(--display); font-size: clamp(1.85rem, 3.8vw, 3.8rem); }
.post-body p { margin: 0 0 1.2rem; color: var(--text-secondary); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 46px rgba(112, 48, 160, 0.07);
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(14px);
}
.post-card .post-art { min-height: 150px; }
.post-card .post-body { flex: 1; display: flex; flex-direction: column; }
.post-card h3 { margin: 0.75rem 0; font-size: 1.3rem; }
.post-card p { color: var(--text-secondary); font-size: 0.94rem; margin: 0; }
.read-more { margin-top: auto; padding-top: 1rem; color: var(--accent-pink); font-weight: 900; }

.article-hero { padding: clamp(4rem, 8vw, 7rem) 0 1.5rem; }
.article-hero h1 { max-width: 1000px; }
.article-summary { color: var(--text-secondary); font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 800px; margin: 0; }
.article-shell { padding: 1rem 0 5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
article {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
}
article h2 { font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.8rem); margin: 2rem 0 0.7rem; }
article h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
article p, article li { color: var(--text-secondary); }
article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem;
  border-left: 4px solid var(--accent-pink);
  border-radius: 14px;
  color: var(--text);
  background: rgba(229, 10, 124, 0.06);
  font-weight: 800;
}

.callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1.4rem 0; }
.callout {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}
.callout strong { display: block; color: var(--accent-purple); font-family: var(--display); font-size: 1.75rem; line-height: 1; margin-bottom: 0.4rem; }
.callout span { color: var(--text-secondary); font-size: 0.9rem; font-weight: 700; }

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}
.side-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  box-shadow: 0 16px 46px rgba(112, 48, 160, 0.07);
}
.side-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.side-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 0.85rem; }
.side-card a:not(.btn) { display: block; color: var(--accent-purple); font-size: 0.9rem; font-weight: 800; text-decoration: none; padding: 0.35rem 0; }

.cta-band {
  margin-top: 2rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(229, 10, 124, 0.22), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(135deg, #15162b, #2b1657 70%, #17182e);
}
.cta-band h2 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3.2rem); margin: 0 0 0.7rem; }
.cta-band p { color: rgba(255, 255, 255, 0.74); max-width: 700px; }

footer { padding: 2rem 0 3rem; color: var(--text-muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

@media (max-width: 920px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-grid, .featured-post, .article-layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 28px, 1120px); }
  .nav-inner { height: 64px; }
  .brand-logo { width: 168px; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-panel { display: none; }
  .post-art { min-height: 210px; }
  .callout-grid, .sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
