/* Alara blog — cream editorial, matches landing */
:root {
  --bg: #f4efe6;
  --bg-dark: #111111;
  --card: #faf6f0;
  --border: rgba(17, 17, 17, 0.12);
  --text: #111111;
  --text-soft: rgba(17, 17, 17, 0.68);
  --text-faint: rgba(17, 17, 17, 0.42);
  --text-on-dark: #f4efe6;
  --text-on-dark-soft: rgba(244, 239, 230, 0.65);
  --pink: #ec4899;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-story: "Newsreader", Georgia, serif;
  --max: 720px;
  --wide: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.ambient__orb--a {
  width: 50vw;
  height: 50vw;
  top: -20%;
  right: -10%;
  background: rgba(236, 72, 153, 0.12);
}

.ambient__orb--b {
  width: 40vw;
  height: 40vw;
  bottom: -15%;
  left: -10%;
  background: rgba(17, 17, 17, 0.06);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Header —— */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.blog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-brand__lockup { width: 118px; height: auto; display: block; }

.blog-brand__pill {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.blog-header__cta {
  display: flex;
  gap: 8px;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.blog-btn:hover {
  background: rgba(17, 17, 17, 0.04);
}

.blog-btn--solid {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

.blog-btn--solid:hover {
  background: #222;
}

/* —— Layout —— */
.blog-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 62px);
}

.blog-wrap {
  width: min(var(--wide), 100% - 40px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 10vw, 120px);
}

.blog-wrap--narrow {
  width: min(var(--max), 100% - 40px);
}

/* —— Index —— */
.blog-hero {
  margin-bottom: clamp(40px, 8vw, 72px);
}

.blog-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.blog-hero__title {
  font-family: var(--font-story);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.blog-hero__sub {
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0;
  color: var(--text-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.08);
}

.blog-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  overflow: hidden;
}

.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: var(--text-on-dark-soft);
  font-size: 2rem;
  font-family: var(--font-story);
}

.blog-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.blog-card__tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}

.blog-card__title {
  font-family: var(--font-story);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-card__excerpt {
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
  color: var(--text-soft);
}

.blog-card__read {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pink);
}

/* —— Post —— */
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.blog-post-back:hover { color: var(--text); }

.blog-post-header {
  margin-bottom: 36px;
}

.blog-post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.blog-post-header__title {
  font-family: var(--font-story);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.blog-post-header__excerpt {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 58ch;
}

.blog-post-cover {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-post-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* —— Article body —— */
.blog-article {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.blog-article h1,
.blog-article h2,
.blog-article h3 {
  font-family: var(--font-story);
  color: var(--text);
  line-height: 1.25;
  margin: 2em 0 0.6em;
  font-weight: 500;
}

.blog-article h2 { font-size: 1.65rem; }
.blog-article h3 { font-size: 1.3rem; }

.blog-article p { margin: 0 0 1.25em; }

.blog-article a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.blog-article li { margin-bottom: 0.4em; }

.blog-article blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 1.2em;
  border-left: 3px solid var(--pink);
  font-family: var(--font-story);
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
}

.blog-article pre {
  margin: 1.5em 0;
  padding: 16px 18px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.blog-article code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
}

.blog-article :not(pre) > code {
  background: rgba(17, 17, 17, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-article img {
  margin: 1.5em auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.blog-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* —— States —— */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-faint);
}

.blog-empty h2 {
  font-family: var(--font-story);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0 0 12px;
}

.blog-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.blog-footer {
  position: relative;
  z-index: 1;
  padding: 32px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-on-dark-soft);
  font-size: 0.82rem;
  text-align: center;
}

.blog-footer a {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .blog-header__cta .blog-btn:not(.blog-btn--solid) { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}
