/*
Theme Name: AniSense Repository
Theme URI: https://anisense.at/
Author: AniSense
Description: Pixelnahe WordPress-Umsetzung des AniSense-Repositorys mit erhaltenen Rechtstexten.
Version: 2.0.4
Text Domain: anisense-repository
*/

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

html {
  --font-fraunces: "Fraunces", "Times New Roman", serif;
  --font-source-sans: "Source Sans 3", Arial, sans-serif;
  --font-plex-mono: "IBM Plex Mono", monospace;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

body.admin-bar .as-site-header {
  top: 32px;
}

.as-site-main {
  min-height: 40vh;
}

.as-site-header a,
.as-site-footer a,
.as-site-main a {
  text-decoration: none;
}

.as-site-header img,
.as-site-footer img,
.as-site-main img {
  max-width: 100%;
}

.as-mobile-panel[hidden] {
  display: none !important;
}

.as-mobile-panel {
  position: absolute;
  inset: 100% 0 auto;
  z-index: 60;
}

.as-hero-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.as-cat-ear-left,
.as-cat-ear-right {
  animation: as-ear-left 6s ease-in-out infinite;
}

.as-cat-ear-right {
  animation-name: as-ear-right;
  animation-delay: .15s;
}

@keyframes as-ear-left {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(2deg); }
}

@keyframes as-ear-right {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-2deg); }
}

.as-pupil {
  transition: transform 90ms ease-out;
}

.as-mouse-cursor,
.as-mouse-trail {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.as-mouse-cursor {
  filter: drop-shadow(0 6px 10px rgba(178, 78, 16, .35));
}

.as-mouse-trail {
  opacity: 0;
  mix-blend-mode: multiply;
}

.as-cursor-stage.is-active .as-mouse-cursor {
  opacity: 1;
}

.as-cursor-stage.is-active .as-mouse-trail {
  opacity: .3;
}

.as-legal-content {
  color: color-mix(in oklab, var(--color-navy-800) 85%, transparent);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.as-legal-content > * + * {
  margin-top: 1.15rem;
}

.as-legal-content h2,
.as-legal-content h3,
.as-legal-content h4 {
  color: var(--color-navy-950);
  font-family: var(--font-display);
  line-height: 1.15;
}

.as-legal-content h2 {
  margin-top: 2.75rem;
  font-size: 1.875rem;
}

.as-legal-content h3 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.as-legal-content a {
  color: var(--color-navy-700);
  text-decoration: underline;
  text-decoration-color: var(--color-cyan-300);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.as-legal-content ul,
.as-legal-content ol {
  padding-left: 1.4rem;
}

.as-legal-content ul {
  list-style: disc;
}

.as-legal-content ol {
  list-style: decimal;
}

/* Keep the existing WordPress legal copy, while neutralising its former
   full-bleed page wrapper inside the repository-styled legal card. */
.as-legal-content .legal-page {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
}

.as-legal-content .legal-page *,
.as-legal-content .legal-wrap,
.as-legal-content .legal-content {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.as-legal-content .legal-wrap {
  width: auto !important;
  margin: 0 !important;
}

.as-legal-content .legal-hero,
.as-legal-content .legal-main {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.as-legal-content .legal-hero {
  margin-bottom: 2rem !important;
}

.as-legal-content .legal-page h1,
.as-legal-content .legal-page h2,
.as-legal-content .legal-page h3 {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  color: var(--color-navy-950) !important;
  font-family: var(--font-display) !important;
}

.as-legal-content .legal-page h1 {
  font-size: clamp(2rem, 8vw, 3rem) !important;
  line-height: 1.08 !important;
}

.as-legal-content .legal-page h2 {
  font-size: clamp(1.55rem, 6vw, 1.875rem) !important;
}

.as-legal-content pre,
.as-legal-content table {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 782px) {
  body.admin-bar .as-site-header {
    top: 46px;
  }
}

@media (hover: none), (pointer: coarse) {
  .as-mouse-cursor,
  .as-mouse-trail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-cat-ear-left,
  .as-cat-ear-right {
    animation: none;
  }
}
