/* ============================================================
   Life As Mrs. L — site styles
   Sits on top of ../colors_and_type.css
   ============================================================ */

@import url("../colors_and_type.css");

/* ---- Layout shell ---- */
html, body { background: var(--cream); }
body { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container--narrow { max-width: 720px; }

main { flex: 1; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: 38px; line-height: 1; letter-spacing: 0;
}
.brand__by {
  font-family: var(--font-serif); font-style: italic;
  font-size: 11px; color: var(--cocoa-400);
  margin-top: 2px; letter-spacing: 0.06em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--cocoa-800); text-decoration: none;
  padding: 6px 2px; position: relative;
  transition: color 180ms var(--ease-soft);
}
.site-nav a:hover { color: var(--rose-500); text-decoration-color: transparent; }
.site-nav a.is-active { color: var(--rose-500); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--rose-400); border-radius: 2px;
}
.site-header__right { display: flex; align-items: center; gap: 12px; }

/* ---- Mobile nav toggle (small screens only) ---- */
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; color: var(--cocoa-600); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 180ms var(--ease-soft);
}
.btn--primary { background: var(--rose-500); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rose-600); color: #fff !important; text-decoration: none; }
.btn--primary:active { background: var(--rose-700); transform: scale(0.98); }
.btn--secondary { background: var(--white); color: var(--cocoa-800) !important; border: 1px solid var(--border-soft); text-decoration: none; }
.btn--secondary:hover { background: var(--linen); }
.btn--ghost { background: transparent; color: var(--rose-500) !important; padding: 8px 4px; border-radius: 4px; text-decoration: none; }
.btn--ghost:hover { color: var(--rose-600) !important; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: 999px; color: var(--cocoa-600); cursor: pointer;
  transition: all 180ms var(--ease-soft); text-decoration: none;
}
.icon-btn:hover { color: var(--rose-500); border-color: var(--blush-200); }

/* ---- Eyebrows / meta ---- */
.eyebrow {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  color: var(--rose-500); text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.meta {
  font-family: var(--font-sans); font-size: 13px; color: var(--cocoa-400);
}
.meta__dot { margin: 0 6px; color: var(--taupe); }
.meta__highlight { color: var(--rose-500); }

/* ---- Section heading ---- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 28px;
}
.section-head__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 32px; color: var(--cocoa-600); margin: 0;
  letter-spacing: -0.005em;
}

/* ---- Homepage hero ---- */
.home-hero {
  padding: 64px 0 32px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center;
}
.home-hero__greet {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: 76px; line-height: 0.95; margin-bottom: 14px;
}
.home-hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 54px; line-height: 1.08; color: var(--cocoa-600);
  margin: 0 0 20px; letter-spacing: -0.012em;
}
.home-hero__title em {
  font-style: italic; color: var(--rose-500);
}
.home-hero__lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: 19px; color: var(--cocoa-400);
  line-height: 1.55; max-width: 460px; margin: 0 0 28px;
}
.home-hero__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  background: var(--blush-100); color: var(--rose-700);
  padding: 7px 14px; border-radius: 999px;
}
.home-hero__photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  position: relative;
}
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__photo::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed rgba(255,255,255,0.55); border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* ---- Featured + post grid ---- */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  margin: 16px 0 64px;
  text-decoration: none;
  transition: box-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}
.featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured__image {
  aspect-ratio: 4/3; min-height: 320px;
  background-size: cover; background-position: center;
}
.featured__body {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 30px; line-height: 1.18; color: var(--cocoa-600);
  margin: 0 0 14px; letter-spacing: -0.005em;
}
.featured__lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; line-height: 1.6; color: var(--cocoa-400);
  margin: 0 0 20px;
}

.layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px;
  padding: 8px 0 64px;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__photo { max-width: 480px; }
  .featured { grid-template-columns: 1fr; }
  .featured__body { padding: 28px 24px 32px; }
  .home-hero__title { font-size: 40px; }
  .home-hero__greet { font-size: 56px; }
  .site-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 12px 24px 18px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open a { padding: 10px 0; border-bottom: 1px solid var(--border-blush); }
}

.postgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 720px) {
  .postgrid { grid-template-columns: 1fr; }
}

.postcard {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden;
  text-decoration: none; display: block;
  transition: box-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}
.postcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.postcard__image-clip { overflow: hidden; }
.postcard__image {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  transition: transform 600ms var(--ease-soft);
}
.postcard:hover .postcard__image { transform: scale(1.03); }
.postcard__body { padding: 20px 22px 22px; }
.postcard__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 21px; line-height: 1.25;
  color: var(--cocoa-600); margin: 0 0 10px;
}
.postcard__lede {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--cocoa-400); margin: 0 0 14px;
  line-height: 1.55;
}

/* ---- Sidebar ---- */
.sidebar > * + * { margin-top: 28px; }
.sidebar__block {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.sidebar__title {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  color: var(--rose-500); text-transform: uppercase; letter-spacing: 0.16em;
  margin: 0 0 16px;
}
.sidebar__author { text-align: center; padding: 28px 22px 24px; }
.sidebar__avatar {
  width: 104px; height: 104px; border-radius: 999px;
  margin: 0 auto 14px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blush-200);
}
.sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar__name {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: 30px; line-height: 1; margin-bottom: 6px;
}
.sidebar__bio {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--cocoa-400);
  line-height: 1.55; margin: 0;
}
.sidebar__cta {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  color: var(--rose-500); text-decoration: none;
}
.sidebar__cta:hover { color: var(--rose-600); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-blush);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--cocoa-800); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color 180ms var(--ease-soft);
}
.cat-list a:hover { color: var(--rose-500); }
.cat-list__count {
  font-family: var(--font-mono); font-size: 12px; color: var(--taupe);
}

.popular { list-style: none; margin: 0; padding: 0; }
.popular li { border-bottom: 1px solid var(--border-blush); }
.popular li:last-child { border-bottom: none; }
.popular a {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 12px 0; text-decoration: none;
}
.popular__num {
  font-family: var(--font-script); color: var(--rose-400);
  font-size: 26px; line-height: 1;
}
.popular__title {
  font-family: var(--font-serif); font-size: 15px;
  color: var(--cocoa-800); line-height: 1.35;
  transition: color 180ms var(--ease-soft);
}
.popular a:hover .popular__title { color: var(--rose-500); }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--blush-100); border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
  margin: 56px 0 80px;
}
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; padding: 32px 28px; } }
.newsletter__deco {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: 50px; line-height: 1; margin-bottom: 6px;
}
.newsletter__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 34px; line-height: 1.15; color: var(--cocoa-600);
  margin: 0 0 12px;
}
.newsletter__lede {
  font-family: var(--font-sans); font-size: 15px;
  color: var(--cocoa-400); margin: 0; line-height: 1.6;
  max-width: 380px;
}
.newsletter__row { display: flex; gap: 8px; }
.input {
  flex: 1; font-family: var(--font-sans); font-size: 15px;
  color: var(--cocoa-800);
  padding: 14px 18px; background: var(--white);
  border: 1px solid var(--blush-200); border-radius: 999px;
  outline: none; transition: border 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft);
}
.input:focus { border-color: var(--rose-400); box-shadow: 0 0 0 3px rgba(216,120,120,0.18); }
.input::placeholder { color: var(--taupe); }
.newsletter__fine {
  font-family: var(--font-sans); font-size: 12px; color: var(--cocoa-400);
  padding-left: 18px; margin-top: 8px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--linen);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 28px;
  margin-top: auto;
}
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--sand);
}
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.site-footer__brand .brand__name { font-size: 38px; white-space: nowrap; }
.site-footer__about {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: var(--cocoa-400); line-height: 1.6;
  margin: 14px 0 20px; max-width: 320px;
}
.site-footer__heading {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--rose-500); margin: 0 0 16px;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 10px; }
.site-footer__list a {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--cocoa-800); text-decoration: none;
}
.site-footer__list a:hover { color: var(--rose-500); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; gap: 16px;
  font-family: var(--font-sans); font-size: 13px; color: var(--cocoa-400);
  flex-wrap: wrap;
}
.site-footer__heart { font-family: var(--font-script); font-size: 24px; color: var(--rose-400); }

/* ---- Single post ---- */
.post-hero {
  padding: 56px 0 32px; text-align: center;
}
.post-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  color: var(--rose-500); text-decoration: none;
  margin-bottom: 28px; white-space: nowrap;
}
.post-hero__back:hover { color: var(--rose-600); }
.post-hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 52px; line-height: 1.08; color: var(--cocoa-600);
  margin: 12px auto 18px; max-width: 820px;
  letter-spacing: -0.012em;
}
.post-hero__lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; color: var(--cocoa-400);
  max-width: 640px; margin: 0 auto 24px; line-height: 1.55;
}
.post-hero__image {
  aspect-ratio: 16/9; border-radius: var(--radius-lg);
  max-width: 1080px; margin: 32px auto 0;
  box-shadow: var(--shadow-md);
  background-size: cover; background-position: center;
}
@media (max-width: 720px) {
  .post-hero__title { font-size: 36px; }
  .post-hero__lede { font-size: 17px; }
}

.post-body {
  max-width: 680px; margin: 0 auto;
  padding: 56px 0 16px;
  font-family: var(--font-sans); font-size: 18px; line-height: 1.75;
  color: var(--cocoa-800);
}
.post-body p { margin: 0 0 22px; }
.post-body h3 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 26px; color: var(--cocoa-600);
  margin: 40px 0 14px; letter-spacing: -0.005em;
}
.post-body .drop::first-letter {
  font-family: var(--font-serif); font-weight: 500;
  float: left; font-size: 68px; line-height: 0.9;
  margin: 6px 10px 0 0; color: var(--rose-500);
}
.post-divider {
  display: block; margin: 36px auto;
}
.post-share {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 16px 0 32px;
  font-family: var(--font-sans); font-size: 13px; color: var(--cocoa-400);
}
.post-sign {
  margin-top: 32px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 19px; color: var(--cocoa-600);
}

.related { padding: 32px 0 56px; }

/* ---- About page ---- */
.about-hero {
  padding: 64px 0 40px;
  display: grid; grid-template-columns: 360px 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
}
.about-hero__photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  position: relative; background: var(--blush-200);
}
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-hero__photo::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed rgba(255,255,255,0.5); border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}
.about-hero__greet {
  font-family: var(--font-script); color: var(--rose-500);
  font-size: 62px; line-height: 1; margin: 0 0 6px;
}
.about-hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 44px; color: var(--cocoa-600); line-height: 1.08;
  margin: 0 0 24px; letter-spacing: -0.012em;
}
.about-body {
  font-family: var(--font-sans); font-size: 17px;
  color: var(--cocoa-800); line-height: 1.7; max-width: 600px;
}
.about-body p { margin: 0 0 18px; }
.about-body p strong { font-weight: 700; color: var(--cocoa-600); }
.about-sign {
  margin-top: 28px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--cocoa-600);
}

.quick-facts {
  background: var(--blush-50); border-radius: var(--radius-lg);
  padding: 36px 44px; margin: 16px 0 80px;
}
.quick-facts h3 {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  color: var(--rose-500); text-transform: uppercase; letter-spacing: 0.16em;
  margin: 0 0 18px;
}
.quick-facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px;
}
@media (max-width: 720px) { .quick-facts ul { grid-template-columns: 1fr; } }
.quick-facts li {
  font-family: var(--font-serif); font-size: 17px;
  color: var(--cocoa-800); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.quick-facts li::before {
  content: "♡"; position: absolute; left: 0; top: 0;
  color: var(--rose-400); font-size: 16px;
}

/* ---- Legal page ---- */
.legal {
  max-width: 720px; margin: 0 auto;
  padding: 56px 32px 80px;
}
.legal h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 42px; line-height: 1.1; color: var(--cocoa-600);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.legal__date {
  font-family: var(--font-sans); font-size: 13px; color: var(--cocoa-400);
  margin-bottom: 32px;
}
.legal h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 22px; color: var(--cocoa-600);
  margin: 32px 0 12px;
}
.legal p {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  color: var(--cocoa-800); margin: 0 0 16px;
}

/* ============================================================
   Post body images — scale correctly on all screen sizes
   ============================================================ */
.post-body img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(168,100,100,0.10);
  margin: 28px 0;
}

/* ============================================================
   Mobile — 480px and below (actual phone width)
   ============================================================ */
@media (max-width: 480px) {

  /* Tighter padding on small screens */
  .container { padding: 0 18px; }
  .site-header__inner { padding: 14px 18px; }

  /* Homepage hero */
  .home-hero { padding: 32px 0 20px; gap: 28px; }
  .home-hero__greet { font-size: 46px; }
  .home-hero__title { font-size: 30px; line-height: 1.1; }
  .home-hero__lede { font-size: 16px; }
  .home-hero__photo { max-width: 100%; }

  /* Featured card — remove min-height so image scales naturally */
  .featured__image { min-height: 0; aspect-ratio: 16/9; }
  .featured__title { font-size: 22px; line-height: 1.2; }
  .featured__lede { font-size: 14px; }
  .featured__body { padding: 20px 18px 24px; }

  /* Post grid gap */
  .postgrid { gap: 18px; }

  /* Post hero */
  .post-hero { padding: 28px 0 16px; }
  .post-hero__title { font-size: 26px; line-height: 1.12; }
  .post-hero__lede { font-size: 15px; }
  /* Taller aspect ratio on phones — 16/9 is only ~190px on a 375px screen */
  .post-hero__image { aspect-ratio: 4/3; margin: 18px auto 0; }

  /* Post body */
  .post-body { font-size: 16px; padding: 32px 0 16px; }
  .post-body h3 { font-size: 21px; margin: 32px 0 12px; }
  .post-body .drop::first-letter { font-size: 54px; }

  /* Section heading */
  .section-head__title { font-size: 24px; }

  /* About page */
  .about-hero { padding: 36px 0 24px; }
  .about-hero__greet { font-size: 44px; }
  .about-hero__title { font-size: 28px; line-height: 1.12; }
  .about-body { font-size: 16px; }
  .quick-facts { padding: 24px 18px; }
  .quick-facts h3 { margin-bottom: 14px; }

  /* Newsletter — stack input and button vertically */
  .newsletter { padding: 28px 18px; margin: 40px 0 56px; }
  .newsletter__deco { font-size: 38px; }
  .newsletter__title { font-size: 26px; }
  .newsletter__lede { font-size: 14px; }
  .newsletter__row { flex-direction: column; gap: 10px; }
  .newsletter__row .btn { width: 100%; justify-content: center; }

  /* Footer — single column on phones */
  .site-footer { padding: 36px 0 20px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__brand .brand__name { font-size: 32px; }

  /* Legal pages */
  .legal { padding: 36px 0 56px; }
  .legal h1 { font-size: 30px; }
}
