/* ============================================
   ERIKA TORREGROSSA — SHARED STYLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Marcellus+SC&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --ink: #1C1917;
  --ink-soft: #44403C;
  --ink-muted: #78716C;
  --ink-faint: #A8A29E;
  --wine: #7F1D1D;
  --wine-light: #991B1B;
  --wine-bg: rgba(127, 29, 29, 0.06);
  --border: #E7E0D6;
  --border-light: #F0EBE3;
  --serif: 'Marcellus', Georgia, serif;
  --serif-sc: 'Marcellus SC', 'Marcellus', Georgia, serif;
  --sans: 'Open Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.75;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* TOPBAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: var(--wine, #7f1d1d);
  height: 36px;
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: flex-start; height: 100%;
  gap: 1rem;
}
.topbar__social { display: flex; align-items: center; gap: 0.9rem; }
.topbar__social a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); transition: color 0.2s, transform 0.2s;
}
.topbar__social a:hover { color: #fff; transform: translateY(-1px); }
.topbar__social svg { width: 16px; height: 16px; fill: currentColor; }

/* NAV */
.nav {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 2.5rem; height: 70px;
}
.nav__name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.88rem; font-weight: 500; color: var(--ink-muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--wine); }
.nav__links a.active { color: var(--wine); text-decoration: underline; text-underline-offset: 5px; }
.nav__cv {
  font-size: 0.82rem !important; font-weight: 600 !important; color: var(--wine) !important;
  border: 1.5px solid var(--wine); padding: 0.45rem 1.2rem; border-radius: 100px; transition: all 0.25s !important;
}
.nav__cv:hover { background: var(--wine) !important; color: white !important; }
.nav__toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  padding: 0.85rem 1.8rem; border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn--fill { background: var(--wine); color: white; }
.btn--fill:hover { background: var(--wine-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(127,29,29,0.2); }
.btn--ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

/* SECTION */
.section { padding: 6rem 0; }
.section--alt { background: white; }
.section__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--wine); margin-bottom: 0.75rem;
}
.section__heading {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 1rem;
}
.section__desc { color: var(--ink-muted); max-width: 560px; font-size: 1rem; margin-bottom: 3rem; }
.section__divider { width: 50px; height: 3px; background: var(--wine); border-radius: 2px; margin-bottom: 2rem; opacity: 0.6; }

/* BLOG GRID */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card {
  background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(28,25,23,0.08); }
.post-card__img { height: 200px; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem 1.5rem 1.5rem; }
.post-card__cat {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wine); background: var(--wine-bg);
  padding: 0.25rem 0.65rem; border-radius: 4px; margin-bottom: 0.7rem;
}
.post-card__date { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 0.5rem; }
.post-card__title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--ink);
  line-height: 1.4; margin-bottom: 0.6rem; transition: color 0.2s;
}
.post-card:hover .post-card__title { color: var(--wine); }
.post-card__excerpt {
  font-size: 0.88rem; color: var(--ink-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* CONTACT */
.contact { padding: 5rem 0 4rem; border-top: 1px solid var(--border-light); background: var(--cream-dark); }
.contact__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; text-align: left; }
.contact__label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--wine);
  padding-bottom: 0.6rem; border-bottom: 3px solid var(--wine);
  margin-bottom: 1.5rem;
}
.contact__divider { display: none; }
.contact__title {
  font-family: var(--sans); font-size: 1.05rem;
  font-weight: 400; color: var(--ink-muted); line-height: 1.8; margin: 0;
}
.contact__right { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 0.5rem; }
.contact__item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__item-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--wine-bg); color: var(--wine);
  display: flex; align-items: center; justify-content: center;
}
.contact__item-icon svg { width: 20px; height: 20px; }
.contact__item-text { flex: 1; min-width: 0; }
.contact__item-label {
  font-family: var(--serif); font-size: 0.78rem; color: var(--ink-muted);
  margin-bottom: 0.25rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.contact__item-value { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-muted); line-height: 1.8; word-break: break-word; }
.contact__item-value a { color: var(--wine); text-decoration: none; }
.contact__item-value a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 780px) {
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* FOOTER */
.footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.footer__brand { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4rem; }
.footer__tagline { font-family: var(--serif); font-style: italic; color: var(--ink-muted); font-size: 0.9rem; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s;
}
.footer__social a:hover { border-color: var(--wine); background: var(--wine-bg); }
.footer__social svg { width: 15px; height: 15px; fill: var(--ink-muted); transition: fill 0.25s; }
.footer__social a:hover svg { fill: var(--wine); }
.footer__copy {
  font-size: 0.78rem; color: var(--ink-faint); padding-top: 1.5rem;
  border-top: 1px solid var(--border-light); display: flex; justify-content: space-between;
}

/* POST PAGE */
.post-hero { padding-top: 146px; padding-bottom: 3rem; }
.post-hero__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 2rem; transition: color 0.2s;
}
.post-hero__back:hover { color: var(--wine); }
.post-hero__back svg { width: 16px; height: 16px; transition: transform 0.2s; }
.post-hero__back:hover svg { transform: translateX(-3px); }
.post-hero__cat {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--wine); background: var(--wine-bg);
  padding: 0.3rem 0.8rem; border-radius: 4px; margin-bottom: 1rem;
}
.post-hero__title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 1rem; max-width: 800px;
}
.post-hero__date { font-size: 0.88rem; color: var(--ink-muted); }

.post-featured { max-width: 900px; margin: 0 auto 3rem; border-radius: 12px; overflow: hidden; }
.post-featured img { width: 100%; }

.post-body { max-width: 720px; margin: 0 auto; padding-bottom: 4rem; }
.post-body p { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.85; }
.post-body img { border-radius: 8px; margin: 2rem auto; }
.post-body a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--wine-light); }
.post-body h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 2.5rem 0 1rem; font-weight: 400; }
.post-body h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin: 2rem 0 0.75rem; font-weight: 400; }
.post-body ul, .post-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; font-size: 1.02rem; color: var(--ink-soft); }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body .read-more-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem; color: white; background: var(--wine);
  padding: 0.7rem 1.5rem; border-radius: 100px; margin-top: 1rem; text-decoration: none;
  transition: all 0.25s;
}
.post-body .read-more-btn:hover { background: var(--wine-light); transform: translateY(-1px); }

/* PAGE HEADER */
.page-header { padding: 156px 0 3rem; text-align: center; }
.page-header__title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400;
  color: var(--ink); margin-bottom: 0.75rem;
}
.page-header__desc { color: var(--ink-muted); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    right: 1rem;
    min-width: 220px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    padding: 0.5rem;
    gap: 0;
    z-index: 200;
    animation: nav-pop-in .18s ease-out;
  }
  .nav__links.open a {
    display: block;
    font-size: 0.98rem;
    color: var(--ink);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
  }
  .nav__links.open a:last-child { border-bottom: none; }
  .nav__links.open a:hover { background: var(--wine-bg); color: var(--wine); }
  .nav__links.open a.active { color: var(--wine); font-weight: 600; background: var(--wine-bg); }
  @keyframes nav-pop-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .blog__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 1.5rem; }
  .footer__copy { flex-direction: column; gap: 0.3rem; }
  .post-hero__title { font-size: 1.6rem; }
}
