/* KAZE native pages: only behaviors Kazeexport normally supplies.
   Original Kazeexport-exported CSS, image order, spacing and fonts are preserved.
   The stylesheet is NOT loaded on the production-equivalent main route. */
html.kaze-native-pages { scroll-behavior: smooth; }
html.kaze-native-pages :is(a,button,[role="button"]):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Preserve Kazeexport card image overlay defaults while enabling hover/focus. */
@media (hover:hover) and (pointer:fine) {
  html.kaze-native-pages a:hover [data-kazeexport-name="Overlay"],
  html.kaze-native-pages a:focus-visible [data-kazeexport-name="Overlay"] {
    opacity: 1 !important;
    transition: opacity .3s ease, backdrop-filter .3s ease;
  }
}
html.kaze-native-pages [data-kazeexport-name="Menu Button Mobile"] {
  cursor: pointer;
}
html.kaze-native-pages .kaze-native-mobile-panel {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  z-index: 120;
  padding: 25px 20px 35px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #0f0f0f;
  color: #fff;
  box-shadow: 0 15px 25px rgb(0 0 0 / 20%);
}
html.kaze-native-pages .kaze-native-mobile-panel[hidden] {
  display: none !important;
}
html.kaze-native-pages .kaze-native-mobile-panel a {
  color: #fff;
  font-family: Inter, "Inter Placeholder", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.04em;
  text-decoration: none;
  line-height: 1.2;
}
html.kaze-native-pages .kaze-native-mobile-panel a:hover { opacity: .65; }
@media (prefers-reduced-motion: reduce) {
  html.kaze-native-pages,
  html.kaze-native-pages * { scroll-behavior: auto !important; }
}

/* The Kazeexport navbar wrapper has overflow:hidden in its closed variant.
   When native mobile navigation opens, let the original fixed header
   visually expand instead of clipping the inserted menu panel. */
@media (max-width:809.98px) {
  html.kaze-native-pages nav[data-kazeexport-name="Tablet / Mobile Closed"].kaze-native-menu-open {
    overflow: visible !important;
    z-index: 150 !important;
  }
  html.kaze-native-pages nav[data-kazeexport-name="Tablet / Mobile Closed"].kaze-native-menu-open > [data-kazeexport-name="Container"] {
    overflow: visible !important;
  }
}

/* The standalone clock is inserted into Kazeexport's empty SSR container.
   Restore the native text color/Inter metrics from the original header. */
html.kaze-native-pages [data-kazeexport-name="Clock"] [data-kaze-native-clock] {
  color: #fff !important;
  font: 400 15px/1.2 Inter, Arial, sans-serif !important;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Archives remains accessible by direct URL, not through navigation. */
html.kaze-native-pages nav a:is([href$="/archives"],[href*="/archives?"],[href$="/archives/"]),
html.kaze-native-pages nav li:has(> a:is([href$="/archives"],[href*="/archives?"],[href$="/archives/"])) {
  display: none !important;
}

/* Native scroll reveal and hover, with no animation runtime. */
html.kaze-native-pages .kaze-reveal-pending{opacity:0!important;translate:0 12px}
html.kaze-native-pages [data-kazeexport-appear-id],html.kaze-native-pages .kaze-reveal-pending{transition:opacity .45s ease,translate .45s ease}
html.kaze-native-pages .kaze-native-mobile-panel:not([hidden]){animation:kaze-menu-in .23s ease both}
@keyframes kaze-menu-in{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
@media(hover:hover) and (pointer:fine){html.kaze-native-pages a img{transition:filter .25s ease}html.kaze-native-pages a:hover img{filter:brightness(.96)}}
@media(prefers-reduced-motion:reduce){html.kaze-native-pages .kaze-reveal-pending{opacity:1!important;translate:none}html.kaze-native-pages .kaze-native-mobile-panel{animation:none}}


/* Editorial hero motion: no dependency, no ongoing render loop.
   Desktop wordmark recedes as the next section approaches.
   The mobile wordmark remains under the existing morph controller. */
html.kaze-native-pages .kaze-hero-typography [data-kazeexport-name="Subtitle"]{
  opacity:var(--kaze-sub-alpha,1);
  translate:0 var(--kaze-sub-y,0px);
}
html.kaze-native-pages .kaze-hero-intro [data-kazeexport-name="Subtitle"] p{
  animation:kaze-hero-subtitle-in 1.05s cubic-bezier(.18,.82,.24,1) .22s both;
}
@media(min-width:810px){
  html.kaze-native-pages .kaze-hero-typography{
    opacity:var(--kaze-hero-alpha,1);
    translate:0 var(--kaze-hero-y,0px);
    scale:var(--kaze-hero-scale,1);
  }
  html.kaze-native-pages .kaze-hero-intro .kazeexport-ojllgf{
    animation:kaze-hero-wordmark-in 1.15s cubic-bezier(.18,.82,.24,1) both;
  }
}
@keyframes kaze-hero-wordmark-in{
  from{opacity:0;transform:translateY(14px) scale(.975);filter:blur(5px)}
  to{opacity:1;transform:none;filter:blur(0)}
}
@keyframes kaze-hero-subtitle-in{
  from{opacity:0;transform:translateY(12px) scale(.98);filter:blur(6px)}
  to{opacity:1;transform:none;filter:blur(0)}
}
@media(prefers-reduced-motion:reduce){
  html.kaze-native-pages .kaze-hero-typography,
  html.kaze-native-pages .kaze-hero-typography [data-kazeexport-name="Subtitle"]{opacity:1;translate:none;scale:1}
  html.kaze-native-pages .kaze-hero-intro .kazeexport-ojllgf,
  html.kaze-native-pages .kaze-hero-intro [data-kazeexport-name="Subtitle"] p{animation:none}
}

/* Galleries must never rely on an animation to expose their images. Preserve all original aspect ratios and responsive display rules. */
html.kaze-native-pages [data-kazeexport-name="Section - Gallery"] figure:not([data-kazeexport-name="Overlay"]){opacity:1!important}
