/* Villa Saltasia Blog — self-contained so /blog/{slug}/ never loses styles */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Nunito+Sans:wght@300;400;600&display=swap");

:root {
  --blog-bg: #f3eee6;
  --blog-ink: #1a1814;
  --blog-muted: rgba(26, 24, 20, 0.68);
  --blog-line: rgba(26, 24, 20, 0.1);
  --blog-sand: #ebe4d8;
  --blog-accent: #6b5344;
  --blog-display: "Lora", Georgia, "Times New Roman", serif;
  --blog-sans: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  --blog-button: "Museo Sans Rounded", "Nunito Sans", sans-serif;
  --blog-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.blog-page {
  margin: 0;
  min-height: 100vh;
  color: var(--blog-ink);
  font-family: var(--blog-sans);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 8% -10%, rgba(196, 168, 132, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(120, 150, 160, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f2ea 0%, var(--blog-bg) 40%, #efe8dc 100%);
}

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

.blog-container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.blog-container--narrow {
  width: min(100% - 2rem, 740px);
}

/* Header */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  border-bottom: 1px solid var(--blog-line);
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: blur(10px);
}

.blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-brand {
  font-family: var(--blog-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}

.blog-brand:hover {
  opacity: 0.75;
}

.blog-header__nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.blog-header__link {
  font-family: var(--blog-button);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.blog-header__link:hover {
  opacity: 1;
}

/* Landing hero */
.blog-hero {
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.blog-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--blog-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
}

.blog-hero p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--blog-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Post grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.blog-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--blog-ease);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blog-sand);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--blog-ease);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__body {
  padding-top: 1.05rem;
}

.blog-card__date {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--blog-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.28;
}

.blog-card__excerpt {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem 5rem;
  color: var(--blog-muted);
}

/* Article */
.blog-article-shell {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.blog-article__meta {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-article__title {
  margin: 0 0 1.35rem;
  font-family: var(--blog-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.18;
}

.blog-article__featured {
  margin: 0 0 2rem;
  overflow: hidden;
  background: var(--blog-sand);
}

.blog-article__featured img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-article__excerpt {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--blog-line);
  color: var(--blog-muted);
  font-family: var(--blog-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
}

.blog-article__body {
  font-size: 1.08rem;
  line-height: 1.8;
}

.blog-article__body > *:first-child {
  margin-top: 0;
}

.blog-article__body h2,
.blog-article__body h3 {
  font-family: var(--blog-display);
  font-weight: 500;
  line-height: 1.25;
  margin: 2.1rem 0 0.8rem;
}

.blog-article__body h2 {
  font-size: 1.55rem;
}

.blog-article__body h3 {
  font-size: 1.25rem;
}

.blog-article__body p {
  margin: 0 0 1.2rem;
}

.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.blog-article__body li + li {
  margin-top: 0.35rem;
}

.blog-article__body blockquote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.2rem;
  border-left: 2px solid rgba(107, 83, 68, 0.45);
  color: rgba(26, 24, 20, 0.84);
  font-family: var(--blog-display);
  font-style: italic;
  font-size: 1.12rem;
}

.blog-article__body img,
.blog-article__body figure img {
  display: block;
  margin: 1.4rem auto;
  border-radius: 2px;
}

.blog-article__body figure {
  margin: 1.75rem 0;
}

.blog-article__body figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.blog-article__body a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.blog-article__body hr {
  border: 0;
  border-top: 1px solid var(--blog-line);
  margin: 2.25rem 0;
}

/* After-article actions */
.blog-article__after {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--blog-line);
}

.blog-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 2px;
  background: #1a1814;
  color: #fff;
  font-family: var(--blog-button);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s var(--blog-ease), opacity 0.3s var(--blog-ease), background 0.3s var(--blog-ease);
}

.blog-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.blog-btn--ghost {
  background: transparent;
  color: var(--blog-ink);
  box-shadow: inset 0 0 0 1px rgba(26, 24, 20, 0.28);
}

.blog-btn--ghost:hover {
  background: rgba(26, 24, 20, 0.05);
}

/* Social */
.blog-social {
  margin-top: 0.5rem;
}

.blog-social__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-muted);
}

.blog-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--blog-accent);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s var(--blog-ease), opacity 0.3s var(--blog-ease);
}

.blog-social__link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.blog-social__link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Footer */
.blog-footer {
  padding: 1.5rem 0 2.75rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--blog-muted);
}

.blog-footer a {
  color: inherit;
}

.blog-preview-banner {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
}

.blog-preview-banner a {
  color: #fff;
  margin-left: 0.35rem;
}

@media (max-width: 640px) {
  .blog-article__body {
    font-size: 1.02rem;
  }

  .blog-cta-row {
    flex-direction: column;
  }

  .blog-btn {
    width: 100%;
  }
}
