/* Shared presentation layer — intentionally scoped to avoid changing wp-admin. */

html { scroll-behavior: smooth; }
body.jo-2026-theme {
  margin: 0;
  background: var(--jo-ivory);
  color: var(--jo-ink);
  font-family: var(--jo-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
body.jo-2026-theme *, body.jo-2026-theme *::before, body.jo-2026-theme *::after { box-sizing: border-box; }
body.jo-2026-theme .jo-main-content,
body.jo-2026-theme .jo-site-footer { width: 100%; max-width: 100%; min-width: 0; }
body.jo-2026-theme a { color: inherit; text-decoration: none; }
body.jo-2026-theme button,
body.jo-2026-theme input,
body.jo-2026-theme textarea,
body.jo-2026-theme select { font: inherit; }
body.jo-2026-theme :focus-visible { outline: 2px solid var(--jo-sage-deep); outline-offset: 5px; }
body.jo-2026-theme ::selection { background: var(--jo-sage); color: var(--jo-dark); }

.jo-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--jo-paper);
  color: var(--jo-ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.jo-skip-link:focus { transform: translateY(0); }
body.admin-bar .jo-skip-link { top: 44px; }

.jo-site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 4vw;
  color: var(--jo-ink);
}
body.admin-bar .jo-site-header { top: 32px; }
.jo-wordmark { display: flex; flex-direction: column; gap: 2px; width: fit-content; line-height: 1; letter-spacing: -.03em; }
.jo-wordmark span { font: 700 clamp(1.1rem, 1.8vw, 1.5rem)/1 var(--jo-serif); }
.jo-wordmark small { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; opacity: .78; }
.jo-site-nav { justify-self: center; }
.jo-menu-list, .jo-footer-menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); margin: 0; padding: 0; list-style: none; }
.jo-menu-list a { position: relative; display: block; padding: 6px 0; opacity: .76; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; transition: opacity .25s ease; }
.jo-menu-list a:hover, .jo-menu-list .current-menu-item > a, .jo-menu-list .current_page_item > a { opacity: 1; }
.jo-menu-list .current-menu-item > a::after, .jo-menu-list .current_page_item > a::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 1px; background: currentColor; content: ""; }
.jo-menu-list .menu-item-has-children { position: relative; }
.jo-menu-list .sub-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: -16px;
  display: grid;
  min-width: 220px;
  gap: 2px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid currentColor;
  background: var(--jo-dark);
  color: var(--jo-ivory);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.jo-menu-list .menu-item-has-children:hover > .sub-menu,
.jo-menu-list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.jo-menu-list .sub-menu a { padding: 10px 0; opacity: .82; font-size: .66rem; }
.jo-menu-list .sub-menu a:hover,
.jo-menu-list .sub-menu .current-menu-item > a,
.jo-menu-list .sub-menu .current_page_item > a { opacity: 1; }
.jo-menu-list .sub-menu .current-menu-item > a::after,
.jo-menu-list .sub-menu .current_page_item > a::after { right: auto; width: 24px; }
.jo-header-instagram { justify-self: end; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
.jo-header-instagram span { display: inline-block; margin-left: 6px; font-size: 1rem; }
.jo-shop-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.jo-shop-actions a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; opacity: .76; transition: opacity .2s ease; }
.jo-shop-actions a:hover,
.jo-shop-actions a:focus-visible { opacity: 1; }
.jo-cart-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .62rem;
  letter-spacing: 0;
  line-height: 1;
}
.jo-menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: currentColor; cursor: pointer; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.jo-menu-lines { display: inline-flex; flex-direction: column; gap: 4px; width: 19px; }
.jo-menu-lines i { display: block; width: 19px; height: 1px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.jo-menu-toggle[aria-expanded="true"] .jo-menu-lines i:first-child { transform: translateY(5px) rotate(45deg); }
.jo-menu-toggle[aria-expanded="true"] .jo-menu-lines i:nth-child(2) { opacity: 0; }
.jo-menu-toggle[aria-expanded="true"] .jo-menu-lines i:last-child { transform: translateY(-5px) rotate(-45deg); }

.jo-main-content { min-height: 50vh; }
.jo-main-content > :first-child { margin-top: 0; }
.jo-content-frame { width: var(--jo-container); margin: 0 auto; padding: 170px 0 110px; }
.jo-content-frame h1, .jo-content-frame h2, .jo-content-frame h3 { font-family: var(--jo-serif); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.jo-content-frame h1 { max-width: 860px; font-size: clamp(3rem, 7vw, 7rem); }
.jo-content-frame h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); }
.jo-content-frame p, .jo-content-frame li { max-width: min(760px, var(--jo-copy-measure)); }
.jo-content-frame img { max-width: 100%; height: auto; }

.jo-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.jo-eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
.jo-text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid currentColor; padding-bottom: 7px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; transition: gap .25s ease, opacity .25s ease; }
.jo-text-link:hover { gap: 18px; opacity: .72; }

/* Aurel can still print its legacy chrome from a page/builder hook even when
   the child header/footer are active. Hide only that chrome inside our
   namespace; the Aurel content wrapper, Elementor widgets and plugin assets
   remain available to the page. This is a presentation guard, not a template
   or functionality override. */
.jo-2026-theme .aurel_main_header,
.jo-2026-theme .aurel_main_header_wrapper,
.jo-2026-theme .aurel_footer,
.jo-2026-theme .aurel_footer_inner { display: none; }

.jo-site-footer { display: grid; grid-template-columns: 1fr auto; gap: 50px; padding: 80px 8vw 28px; background: var(--jo-dark); color: var(--jo-ivory); }
.jo-footer-title { margin: 18px 0 0; font: 400 clamp(2.3rem, 4.5vw, 4.8rem)/.94 var(--jo-serif); letter-spacing: -.065em; }
.jo-footer-links { align-self: start; }
.jo-footer-menu { flex-direction: column; align-items: flex-end; gap: 14px; }
.jo-footer-menu li { list-style: none; }
.jo-footer-bottom { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(242,238,231,.22); color: rgba(242,238,231,.55); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

/* First-pass WooCommerce language. Functional markup is intentionally left intact. */
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) form .form-row input.input-text,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) form .form-row textarea,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) form .form-row select,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) input.input-text,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) textarea { min-height: 52px; border: 0; border-bottom: 1px solid var(--jo-field-line); border-radius: 0; background: transparent; color: var(--jo-ink); }
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) button.button,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) a.button,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) input.button { min-height: 50px; padding: 0 22px; border: 1px solid var(--jo-ink); border-radius: 0; background: var(--jo-ink); color: var(--jo-ivory); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) button.button:hover,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) a.button:hover,
:is(body.jo-2026-theme.woocommerce, .jo-2026-theme .woocommerce) input.button:hover { background: transparent; color: var(--jo-ink); }
.jo-2026-theme .woocommerce-message,
.jo-2026-theme .woocommerce-info,
.jo-2026-theme .woocommerce-error { border-top-color: var(--jo-sage-deep); border-radius: 0; background: transparent; color: var(--jo-ink); }

@media (max-width: 1100px) and (min-width: 901px) {
  .jo-site-header { padding-right: 3vw; padding-left: 3vw; }
  .jo-menu-list { gap: 16px; }
  .jo-menu-list a { font-size: .65rem; }
  .jo-header-instagram { display: none; }
}
@media (max-width: 900px) {
  body.jo-2026-theme.jo-menu-open { overflow: hidden; }
  body.admin-bar .jo-skip-link { top: 58px; }
  body.admin-bar .jo-site-header { top: 46px; }
  .jo-site-header { grid-template-columns: 1fr auto; align-items: center; padding: 18px 5vw; }
  body.jo-shop-context .jo-site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .jo-header-instagram { display: none; }
  .jo-shop-actions { gap: 10px; }
  .jo-shop-actions > a:first-child { display: none; }
  .jo-shop-actions a { min-height: 44px; font-size: .64rem; }
  .jo-menu-toggle { display: inline-flex; justify-self: end; }
  .jo-site-nav { position: absolute; top: 100%; right: 5vw; left: 5vw; display: none; justify-self: stretch; width: auto; padding: 22px 5vw 28px; border-top: 1px solid currentColor; background: var(--jo-dark); color: var(--jo-ivory); }
  .jo-site-nav { box-sizing: border-box; max-height: calc(100svh - 92px); overflow-y: auto; overscroll-behavior: contain; }
  body.admin-bar .jo-site-nav { max-height: calc(100svh - 138px); }
  .jo-site-nav.is-open { display: block; }
  .jo-menu-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .jo-menu-list li { width: 100%; }
  .jo-menu-list a { display: flex; align-items: center; min-height: 44px; padding: 13px 0; font-size: .72rem; }
  .jo-menu-list .current-menu-item > a::after, .jo-menu-list .current_page_item > a::after { right: auto; width: 24px; }
  .jo-menu-list .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    gap: 0;
    padding: 0 0 6px 16px;
    border-top: 0;
    background: transparent;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .jo-menu-list .sub-menu a { min-height: 44px; padding: 10px 0; }
  .jo-content-frame { width: 90vw; padding: 130px 0 72px; }
  .jo-site-footer { grid-template-columns: 1fr; gap: 34px; padding: 64px 5vw 24px; }
  .jo-footer-menu { align-items: flex-start; }
  .jo-footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.jo-2026-theme *, body.jo-2026-theme *::before, body.jo-2026-theme *::after { transition-duration: .01ms; animation-duration: .01ms; }
}
