/* FRAMEWELL Studio - layout: banner, nav, footer, grids */

.fiction-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--fw-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.4rem 0.75rem;
  line-height: 1.35;
}

.fiction-banner span {
  color: var(--fw-orange);
}

.site-header {
  position: sticky;
  top: 1.75rem;
  z-index: 50;
  padding: 0;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fw-border);
}

.nav-shell {
  max-width: var(--fw-max);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.glass-panel {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.5rem;
  height: auto;
  padding: 0.35rem 0.15rem;
  border-radius: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-sub {
  display: none;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--fw-orange);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fw-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--fw-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  color: var(--fw-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--fw-dark);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.mobile-menu-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 4rem 1.25rem 2rem;
  max-height: 100%;
  overflow-y: auto;
}

.mobile-menu-panel a {
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu-panel a:hover {
  color: var(--fw-orange);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--fw-muted);
  cursor: pointer;
}

.mobile-menu-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--fw-dark);
}

.site-main {
  min-height: 60vh;
}

.section {
  padding: 5rem 1.5rem;
}

.section-tight {
  padding: 3.5rem 1.5rem;
}

.container {
  max-width: var(--fw-max);
  margin: 0 auto;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
}

.container-mid {
  max-width: 64rem;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--fw-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

.site-footer {
  background: var(--fw-surface);
  border-top: 1px solid var(--fw-border);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--fw-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  color: var(--fw-muted);
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.footer-cols h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-cols a,
.footer-cols p {
  display: block;
  font-size: 0.9rem;
  color: var(--fw-muted);
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.footer-cols a:hover {
  color: var(--fw-orange);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fw-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--fw-orange);
  background: rgba(227, 166, 106, 0.12);
}

.footer-bottom {
  max-width: var(--fw-max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fw-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fw-gray);
}

.footer-bottom a {
  cursor: pointer;
  color: var(--fw-muted);
}

.footer-bottom a:hover {
  color: var(--fw-orange);
}

.page-hero {
  padding: 2.25rem 1.15rem 1.5rem;
  background: linear-gradient(180deg, var(--fw-surface-3) 0%, var(--fw-cream) 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--fw-muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

@media (min-width: 480px) {
  .logo-sub {
    display: inline;
  }

  .logo {
    font-size: 1.05rem;
  }

  .fiction-banner {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 768px) {
  .page-hero {
    padding: 4rem 1.5rem 2.5rem;
  }

  .site-header {
    padding: 0.85rem 1.5rem 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    position: sticky;
    top: 2.4rem;
  }

  .nav-shell {
    padding: 0;
  }

  .glass-panel {
    background: var(--fw-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--fw-shadow-glass);
  }

  .nav-bar {
    height: 4.25rem;
    padding: 0 1.25rem;
    border-radius: var(--fw-radius-lg);
  }

  .logo-mark {
    width: 2rem;
    height: 2rem;
  }

  .logo-mark svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
