/*
 * blog-shell.css — stable, non-hashed stylesheet for tool-generated blog pages.
 *
 * WHY THIS FILE EXISTS:
 * The weekly publishing tool emits standalone HTML into /public/blog/ that uses
 * the site's nav/footer markup (#main-nav, .footer-inner, etc.). It used to pull
 * those styles from a content-hashed Astro bundle (/_astro/about.<hash>.css).
 * Astro re-hashes that filename on every build, so the hard-coded URL 404s as
 * soon as the site's CSS changes — leaving every blog page's header/footer
 * unstyled.
 *
 * This file lives in /public, so Astro copies it verbatim to a STABLE url:
 *     https://haleadvancedaestheticlv.com/blog-shell.css
 * The hash never changes. Point the publishing tool at this single <link> and
 * blog pages will never break on a rebuild again:
 *     <link rel="stylesheet" href="https://haleadvancedaestheticlv.com/blog-shell.css" />
 *
 * Keep in sync with src/styles/global.css + src/styles/site.css if the site's
 * nav/footer design changes.
 */

:root {
  --cream: #F5EDE0;
  --linen: #EDE0CE;
  --caramel: #A0724A;
  --caramel-soft: #C9A882;
  --caramel-dark: #7A4F2E;
  --warm-white: #FEFAF4;
  --text-dark: #2A1F16;
  --text-mid: #4A3728;
  --text-light: #7A6252;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  background: linear-gradient(160deg, #F5EDE0 0%, #EDE0CE 40%, #F2E8D8 100%);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  padding-top: 92px; /* clear the fixed nav */
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text-dark);
  color: var(--warm-white);
  padding: 8px 12px;
  z-index: 500;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---- Nav ---- */
#main-nav {
  position: fixed;
  top: 12px; left: 20px; right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(250,246,239,0.82);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(42,31,22,0.08);
}
.nav-logo, .nav-book, .mobile-toggle { flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--caramel); }
.nav-links a[aria-current="page"] { color: var(--caramel); }
.nav-book {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: linear-gradient(135deg, var(--caramel), var(--caramel-dark));
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  appearance: none;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-book:hover { opacity: 0.88; transform: translateY(-1px); }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 20px; height: 1.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Blog content column ---- */
.gs-blog-main { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.gs-blog-main img { max-width: 100%; height: auto; }
.gs-blog-hero { width: 100%; height: auto; border-radius: 8px; margin: 0 0 1.5em; }
.gs-blog-date { font-size: 0.95rem; opacity: .7; margin: 0 0 1.25em; text-align: center; }
.gs-blog-main h1,
.gs-blog-main h1.gs-post-title,
h1.gs-post-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.35em;
  text-align: center;
  overflow-wrap: anywhere;
  font-weight: 800;
}

/* ---- Blog listing (index) ---- */
#gs-blog-content > h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.6em;
  color: var(--text-dark);
}
#gs-blog-content article h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }
#gs-blog-content article h2 a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
#gs-blog-content article h2 a:hover { color: var(--caramel); }

/* ---- Footer ---- */
footer { background: var(--text-dark); padding: 56px 80px 40px; color: rgba(255,255,255,0.6); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
footer img.footer-logo { height: 120px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-desc { font-size: 0.8rem; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 220px; }
.footer-heading { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.3s; font-weight: 300; }
.footer-links a:hover { color: var(--caramel-soft); }
.footer-book {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
}
.footer-book:hover { color: var(--caramel-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-legal { display: flex; gap: 18px; }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--caramel-soft); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #main-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 16px; right: 16px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    background: rgba(250,246,239,0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px 24px;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(42,31,22,0.14);
    border: 1px solid rgba(255,255,255,0.7);
    z-index: 99;
  }
  footer { padding: 40px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal { justify-content: center; }
}
