:root {
  --navy: #07142e;
  --navy-soft: #101f45;
  --red: #ce2149;
  --red-dark: #a9143a;
  --pink: #f4dce6;
  --paper: #fcfbf8;
  --cream: #f7f4ee;
  --white: #fff;
  --ink: #11182a;
  --muted: #687084;
  --line: rgba(17,24,42,.1);
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow: 0 22px 70px rgba(7,20,46,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 7%, rgba(174,65,157,.12), transparent 25rem),
    radial-gradient(circle at 96% 18%, rgba(60,101,190,.1), transparent 28rem),
    var(--paper) !important;
  color: var(--ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.header {
  position: sticky !important;
  z-index: 90;
  top: 0;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}
.header > .container.row {
  width: min(calc(100% - 2rem), 1120px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .8rem !important;
  margin-inline: auto !important;
  padding: .75rem 0 0 !important;
}
.header .brand {
  display: inline-flex !important;
  align-items: center;
  gap: .65rem;
  padding: .62rem .86rem !important;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 34px rgba(7,20,46,.12);
  color: var(--navy) !important;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none !important;
  backdrop-filter: blur(20px) saturate(1.4);
}
.header .brand-badge {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 11px;
  background: linear-gradient(135deg,var(--red),#722273);
  color: var(--white);
  font-size: .68rem;
  font-weight: 900;
}
.header .nav {
  display: flex !important;
  align-items: center;
  gap: .15rem;
  padding: .3rem !important;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 34px rgba(7,20,46,.11);
  backdrop-filter: blur(20px) saturate(1.4);
}
.header .nav a {
  padding: .55rem .82rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 820;
  text-decoration: none;
}
.header .nav a:hover, .header .nav a.active { background: var(--pink); color: var(--red-dark); }

main.section {
  min-height: calc(100vh - 160px);
  padding: 7.5rem 1rem 5rem !important;
}
main.section > .container.stack {
  width: min(100%, 1040px) !important;
  display: grid !important;
  gap: 0 !important;
  margin-inline: auto !important;
}
main.section .btn.btn-outline {
  width: fit-content;
  margin-bottom: 1.6rem;
  padding: .66rem 1rem;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 8px 24px rgba(7,20,46,.06);
  color: var(--navy) !important;
  font-size: .8rem;
  font-weight: 820;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
main.section .btn.btn-outline:hover { transform: translateX(-4px); box-shadow: 0 12px 30px rgba(7,20,46,.1); }
main.section h1 {
  max-width: 980px;
  margin: 0 0 1rem !important;
  color: var(--navy);
  font-size: clamp(2.7rem,8vw,6.2rem) !important;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}
main.section > .container.stack > .muted {
  order: -1;
  width: fit-content;
  margin: 0 0 .9rem !important;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--red-dark) !important;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.post-hero {
  margin: 2rem 0 1.25rem !important;
  overflow: hidden;
  border-radius: 34px;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.post-hero img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 0 !important; }
.post-hero figcaption { padding: 0 .6rem .5rem; }
.post-content {
  margin-top: 1.2rem;
  padding: clamp(1.35rem,5vw,4.6rem) !important;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 38px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.post-content > * { max-width: 760px; margin-inline: auto !important; }
.post-content > * + * { margin-top: 1.15rem !important; }
.post-content p, .post-content li { color: #424b5f; font-size: clamp(1rem,2vw,1.09rem); line-height: 1.82 !important; }
.post-content h2, .post-content h3, .post-content h4 {
  color: var(--navy);
  font-weight: 880;
  letter-spacing: -.03em;
  line-height: 1.12 !important;
}
.post-content h2 { padding-top: 1.6rem; font-size: clamp(1.8rem,4vw,2.7rem) !important; }
.post-content h3 { padding-top: .8rem; font-size: clamp(1.35rem,3vw,1.8rem) !important; }
.post-content ul, .post-content ol { padding-left: 1.35rem !important; }
.post-content blockquote {
  max-width: 820px;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  padding: 1.35rem 1.5rem !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg,#f6dfe7,#edf0fb) !important;
  color: var(--navy);
  font-family: Georgia,serif;
  font-size: 1.22rem;
}
.post-content b, .post-content strong { color: var(--navy); }
.post-content a { color: var(--red-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-content hr { border: 0 !important; height: 1px; background: linear-gradient(90deg,transparent,var(--red),transparent); }
.post-gallery-grid, .attachments-list { margin-top: 1.25rem !important; }
.post-gallery-grid img { border-radius: 22px !important; box-shadow: 0 12px 30px rgba(7,20,46,.1); }
.attachment-card {
  border: 1px solid rgba(206,33,73,.15) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 12px 30px rgba(7,20,46,.08) !important;
  transition: transform .3s var(--ease),box-shadow .3s ease;
}
.attachment-card:hover { transform: translateY(-4px) !important; box-shadow: 0 20px 42px rgba(7,20,46,.14) !important; }
.attachment-icon { border-radius: 12px !important; background: linear-gradient(135deg,var(--red),#70236e) !important; }

body > footer.section, body > footer {
  margin: 0 !important;
  padding: 2rem 1rem 3rem !important;
  border: 0 !important;
  background: var(--navy) !important;
  color: rgba(255,255,255,.62) !important;
}
body > footer .container { width: min(100%,1040px); margin-inline: auto; }

.editorial-hero {
  position: relative;
  min-height: 550px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 8.5rem 1rem 4rem;
  border-radius: 0 0 clamp(34px,6vw,70px) clamp(34px,6vw,70px);
  background:
    radial-gradient(circle at 12% 16%,rgba(172,50,151,.55),transparent 31%),
    radial-gradient(circle at 88% 25%,rgba(38,88,182,.4),transparent 28%),
    linear-gradient(145deg,#0a1735,#06122b 58%,#090f23);
  color: var(--white);
}
.editorial-hero::after { content:""; position:absolute; width:360px; height:360px; right:-160px; bottom:-180px; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.editorial-shell { position: relative; z-index: 2; width: min(calc(100% - 1rem),1120px); margin-inline: auto; }
.editorial-kicker { margin: 0 0 1rem; color: #ff7391; font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.editorial-hero h1 { max-width: 900px; margin: 0; font-size: clamp(4rem,13vw,8.5rem); font-weight: 900; letter-spacing: -.065em; line-height: .9; }
.editorial-hero p:last-child { max-width: 610px; margin: 1.5rem 0 0; color: rgba(255,255,255,.68); font-size: 1.03rem; }
.editorial-main { padding: 4rem 1rem 6rem; }
.editorial-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(7,20,46,.07);
  backdrop-filter: blur(18px);
}
.editorial-chips { display:flex; gap:.45rem; overflow-x:auto; padding-bottom:.1rem; scrollbar-width:none; }
.editorial-chip { flex:0 0 auto; min-height:42px; padding:.55rem .85rem; border:0; border-radius:999px; background:transparent; color:var(--muted); cursor:pointer; font-size:.78rem; font-weight:820; }
.editorial-chip.active { background:var(--navy); color:var(--white); }
.editorial-search { width:100%; min-height:46px; padding:.7rem 1rem; border:1px solid var(--line); border-radius:999px; background:var(--white); color:var(--ink); font:inherit; }
.article-grid { display:grid; gap:1.1rem; }
.article-card { overflow:hidden; border:1px solid var(--line); border-radius:30px; background:var(--white); box-shadow:0 12px 34px rgba(7,20,46,.07); transition:transform .4s var(--ease),box-shadow .4s ease; }
.article-card:hover { transform:translateY(-7px); box-shadow:0 25px 58px rgba(7,20,46,.14); }
.article-card-media { display:block; aspect-ratio:16/9; margin:.55rem; overflow:hidden; border-radius:23px; background:linear-gradient(135deg,var(--navy-soft),#55205c); }
.article-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.article-card:hover .article-card-media img { transform:scale(1.05); }
.article-card-body { padding:.8rem 1.3rem 1.4rem; }
.article-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; margin-bottom:.65rem; color:var(--muted); font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.article-card-meta span { padding:.28rem .5rem; border-radius:999px; background:var(--pink); color:var(--red-dark); }
.article-card h2 { margin:0 0 .65rem; font-size:1.35rem; letter-spacing:-.025em; line-height:1.16; }
.article-card h2 a { text-decoration:none; }
.article-card p { margin:0 0 1rem; color:var(--muted); font-size:.88rem; }
.article-card-link { color:var(--red-dark); font-size:.8rem; font-weight:850; text-decoration:none; }
.editorial-empty { grid-column:1/-1; padding:2rem; border-radius:24px; background:var(--white); color:var(--muted); text-align:center; }

@media (min-width:720px) {
  .editorial-toolbar { grid-template-columns:1fr minmax(260px,340px); align-items:center; border-radius:999px; }
  .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1040px) { .article-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) {
  .header .brand { max-width:205px; font-size:.75rem; }
  .header .nav a { font-size:0; }
  .header .nav a::before { content:"←"; font-size:1rem; }
  main.section { padding-top:6.5rem !important; }
  .post-content { border-radius:28px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition-duration:.01ms !important; } }
