/* Lunaya Studios — WordPress-only adjustments.
   style.css is the old site's stylesheet, kept as-is; anything WordPress
   needs on top of it lives here. */

/* Keep the floating nav and promo ribbon below the admin toolbar when
   logged in (the toolbar is 32px tall on desktop, 46px on small screens). */
body.admin-bar .promo-banner { top: 32px; }
body.admin-bar .nav-wrap { top: calc(18px + 32px + var(--promo-h, 0px)); }
@media screen and (max-width: 782px) {
  body.admin-bar .promo-banner { top: 46px; }
  body.admin-bar .nav-wrap { top: calc(18px + 46px + var(--promo-h, 0px)); }
}
@media screen and (max-width: 600px) {
  /* WordPress un-fixes the toolbar on phones (it scrolls away), so pin it
     instead — otherwise it sits on top of the floating nav. Logged-in only. */
  #wpadminbar { position: fixed; }
}

/* Screen-reader-only text (WordPress core class). */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Compact page header — client form pages (was an inline <style> on each
   old form-*.html page). */
.page-hero--compact h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-hero--compact .lead { font-size: clamp(0.9rem, 1.2vw, 1rem); }
.page-hero--compact { padding-bottom: 32px; }

/* Embedded Google Form (client form pages). */
.form-container { position: relative; overflow: hidden; }
.form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(79, 66, 52, 0.1) 0, rgba(79, 66, 52, 0.1) 1px, transparent 1px, transparent 16px);
  pointer-events: none;
}
.form-embed-wrap { max-width: 760px; margin: 0 auto; display: flex; justify-content: center; position: relative; z-index: 1; }
.form-embed-wrap iframe {
  width: 100%;
  max-width: 640px;
  height: 2000px;
  border: none;
  display: block;
  border-radius: 16px;
  background: transparent;
}
@media (max-width: 640px) {
  .form-container { padding-inline: 0; }
  .form-embed-wrap iframe { border-radius: 0; }
}

/* Journal entry body — WordPress image/caption blocks inside the narrow column. */
.post-body img { max-width: 100%; height: auto; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { font-size: 0.85rem; color: rgba(51, 43, 34, 0.6); margin-top: 8px; }

/* Sticky class-family tabs: also clear the admin toolbar (logged-in only). */
body.admin-bar .classes-tabs-bar.is-stuck { top: calc(var(--nav-h) + var(--promo-h, 0px) + 20px + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .classes-tabs-bar.is-stuck { top: calc(var(--nav-h) + var(--promo-h, 0px) + 20px + 46px); }
}

/* Client forms list (was an inline <style> on the old forms.html). */
.forms-list { display: grid; gap: 16px; max-width: 700px; }
.form-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--cream); border-radius: var(--r-md);
  padding: 26px 28px; box-shadow: 0 10px 26px rgba(79, 66, 52, 0.06);
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-row:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79, 66, 52, 0.12); }
.form-row-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.form-row-icon {
  flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(138, 155, 124, 0.16); color: var(--olive);
}
.form-row-icon svg { width: 20px; height: 20px; }
.form-row-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 460; color: var(--ink); margin-bottom: 4px; }
.form-row-sub { font-size: 0.9rem; color: rgba(51, 43, 34, 0.6); }
.form-row-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.form-row-copy {
  appearance: none; border: 1px solid rgba(79, 66, 52, 0.18); background: transparent;
  color: var(--brown); font: inherit; font-size: 0.82rem; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.form-row-copy:hover { background: rgba(79, 66, 52, 0.06); border-color: rgba(79, 66, 52, 0.3); }
.form-row-copy.is-copied { color: var(--olive); border-color: var(--olive); }
.form-row-arrow { flex: none; color: var(--olive); font-size: 1.3rem; transition: transform 0.25s var(--ease); }
.form-row:hover .form-row-arrow { transform: translateX(4px); }
@media (max-width: 560px) {
  .form-row { flex-wrap: wrap; padding: 20px 22px; gap: 14px; }
  .form-row-main { width: 100%; }
  .form-row-actions { width: 100%; justify-content: space-between; }
}

/* Page not found (was an inline <style> on the old 404.html). */
.nf-hero { padding: 160px 0 clamp(60px, 8vw, 100px); position: relative; overflow: visible; text-align: center; }
.nf-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.nf-eyebrow { margin-bottom: 22px; }
.nf-hero h1 { margin: 0 0 18px; }
.nf-hero .lead { margin: 0 auto 40px; max-width: 440px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero background photo chosen in the Hero section (Background tab). */
.hero.has-photo::before { background-image: var(--hero-photo); }
.hero::before { opacity: var(--hero-photo-opacity, 0.18); }
