/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --font-size-base:      1rem;
  --shadow-hard: 8px 8px 0px 0px var(--wp--preset--color--contrast);
  --shadow-hard-sm: 4px 4px 0px 0px var(--wp--preset--color--contrast);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.os-panel-title {
  background-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--contrast-2);
  font-family: 'Azeret Mono', monospace;
  font-weight: 900;
  font-size: var(--wp--preset--font-size--small);
  padding: 6px 12px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.04em;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.25);
  padding-bottom: var(--wp--preset--spacing--20);
  gap: var(--wp--preset--spacing--40);
}

.ledger-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ledger-key {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 400;
  color: var(--wp--preset--color--accent-3);
  white-space: nowrap;
}

.ledger-val {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  text-align: right;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes hero-skew-entrance {
  0% {
    opacity: 0;
    transform: translateY(40px) skewY(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.js .animate-on-scroll {
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   SITE HEADER
   ============================================================ */

::selection {
  background-color: var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--white);
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent-1);
  outline-offset: 2px;
}

/* Navigation — Parent-level rules (can't scope to nav block)
   -------------------------------------------------------------------------- */
.wp-block-template-part:has(.wp-block-navigation .is-menu-open),
header:has(.wp-block-navigation .is-menu-open) {
  z-index: 100001;
  position: relative;
}

footer.wp-block-template-part,
footer.wp-block-template-part > .wp-block-group {
  position: relative;
  z-index: 1;
}

[class*="site-footer"],
[class*="footer-section"] {
  margin-block-start: 0 !important;
}

:where(.wp-site-blocks, .wp-block-post-content) :where(
  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-media-text,
  .wp-block-buttons,
  .wp-block-button,
  .wp-block-image,
  .wp-block-heading,
  p,
  ul,
  ol,
  li
) {
  min-width: 0;
  box-sizing: border-box;
}

:where(.wp-site-blocks, .wp-block-post-content) > :where(.alignfull, section) {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Static conversion scroll reveal visibility guard */
.animate-on-scroll,
.animate-from-left,
.animate-from-right,
.animate-scale,
html.js .animate-on-scroll:not(.is-visible),
.js .animate-on-scroll:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .animate-from-left,
.editor-styles-wrapper .animate-from-right,
.editor-styles-wrapper .animate-scale {
  opacity: 1 !important;
  transform: none !important;
}