/**
 * Site chrome (header + footer) and main content shell — matches React landing look.
 * Loaded on all theme pages except the standalone React landing template.
 */

/* ─── Page shell: footer stays at bottom on short pages ─── */
body.resettolive-grain:not(.resettolive-landing) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.resettolive-grain:not(.resettolive-landing) #primary.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ─── Sticky header (logo only) ─── */
.resettolive-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: hsl(var(--cream) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--accent) / 0.2);
}

body.admin-bar .resettolive-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .resettolive-site-header {
    top: 46px;
  }
}

.resettolive-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}

.resettolive-site-header__logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.resettolive-site-header__logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 3rem;
  max-width: min(280px, 70vw);
  object-fit: contain;
}

.resettolive-site-header__fallback {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--deep));
  text-decoration: none;
}

.resettolive-site-header__fallback:hover,
.resettolive-site-header__fallback:focus-visible {
  color: hsl(var(--warm));
}

/* ─── Main content (courses, pages) ─── */
.resettolive-site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
}

.resettolive-site-main .entry-header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.resettolive-site-main .entry-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

/* ─── Footer (matches React Footer.tsx) ─── */
.resettolive-site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  background-color: hsl(var(--deep));
  border-top: 1px solid hsl(var(--gold) / 0.15);
}

.resettolive-site-footer__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--cream) / 0.5);
  text-decoration: none;
}

.resettolive-site-footer__brand:hover,
.resettolive-site-footer__brand:focus-visible {
  color: hsl(var(--cream) / 0.75);
}

.resettolive-site-footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: hsl(var(--cream) / 0.3);
}

.resettolive-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.resettolive-site-footer__links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: hsl(var(--cream) / 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.resettolive-site-footer__links a:hover,
.resettolive-site-footer__links a:focus-visible {
  color: hsl(var(--gold));
}
