/* ==========================================================================
   Purple Llama Digital — Base
   Tokens, reset, typography, utilities.
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-var.woff2") format("woff2-variations"),
       url("../fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  font-stretch: 75% 100%;
}

:root {
  /* Brand */
  --pl-ink: #08040d;
  --pl-ink-2: #0c0613;
  --pl-plum: #150a20;
  --pl-plum-2: #1d0e2c;
  --pl-purple: #8b3a9e;
  --pl-purple-deep: #63216f;
  --pl-violet: #6f44a3;
  --pl-glow: #b14be0;
  --pl-lilac: #dcc2ef;
  --pl-cream: #f7f2ec;
  --pl-cream-dim: rgba(247, 242, 236, 0.72);
  --pl-cream-mute: rgba(247, 242, 236, 0.52);
  --pl-gold: #e3c27e;
  --pl-gold-2: #b48a3f;
  --pl-line: rgba(247, 242, 236, 0.14);
  --pl-line-strong: rgba(247, 242, 236, 0.3);
  --pl-glass: rgba(255, 255, 255, 0.045);
  --pl-glass-strong: rgba(255, 255, 255, 0.08);
  --pl-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  --pl-shadow-purple: 0 30px 90px -30px rgba(139, 58, 158, 0.55);

  /* Shape */
  --pl-radius: 24px;
  --pl-radius-sm: 14px;
  --pl-radius-xs: 8px;
  --pl-radius-pill: 999px;

  /* Type */
  --pl-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(3.05rem, 8.3vw, 7.4rem);
  --fs-h1: clamp(2.5rem, 4.9vw, 4.3rem);
  --fs-h2: clamp(2.05rem, 3.8vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 2.05vw, 1.85rem);
  --fs-h4: clamp(1.12rem, 1.45vw, 1.3rem);
  --fs-body: clamp(1.0625rem, 1.02vw, 1.1875rem);
  --fs-body-lg: clamp(1.15rem, 1.35vw, 1.4rem);
  --fs-small: clamp(0.9rem, 0.86vw, 1rem);
  --fs-micro: 0.78rem;

  /* Rhythm */
  --pl-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --pl-max: 1560px;
  --pl-max-narrow: 980px;
  --pl-section: clamp(5rem, 9vw, 10rem);
  --pl-header-h: 86px;

  /* Motion */
  --pl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pl-ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
  --pl-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

:root[data-theme="light"] {
  --pl-ink: #f7f2ec;
  --pl-ink-2: #efe7f4;
  --pl-plum: #fffaff;
  --pl-plum-2: #eadcf2;
  --pl-cream: #180d20;
  --pl-cream-dim: rgba(24, 13, 32, 0.72);
  --pl-cream-mute: rgba(24, 13, 32, 0.52);
  --pl-line: rgba(24, 13, 32, 0.14);
  --pl-line-strong: rgba(24, 13, 32, 0.3);
  --pl-glass: rgba(255, 255, 255, 0.6);
  --pl-glass-strong: rgba(255, 255, 255, 0.84);
  --pl-shadow: 0 40px 120px -40px rgba(56, 25, 73, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pl-header-h) + 24px);
}

body {
  margin: 0;
  background: var(--pl-ink);
  color: var(--pl-cream);
  font-family: var(--pl-font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures;
}

body.pl-menu-open,
body.pl-locked {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--pl-ease);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3 {
  margin: 0 0 0.5em;
  font-family: var(--pl-font);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--pl-cream);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: var(--fs-h1);
}

h2,
.h2 {
  font-size: var(--fs-h2);
}

h3,
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h4,
.h4 {
  font-size: var(--fs-h4);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--fs-small);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.35em;
}

blockquote {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--pl-line);
  margin: 2.5rem 0;
}

::selection {
  background: var(--pl-purple);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pl-glow);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #0a0510;
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pl-purple), var(--pl-violet));
    border-radius: 99px;
    border: 2px solid #0a0510;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.pl-container {
  width: 100%;
  max-width: var(--pl-max);
  margin-inline: auto;
  padding-inline: var(--pl-gutter);
}

.pl-container--narrow {
  max-width: var(--pl-max-narrow);
}

.pl-container--wide {
  max-width: 1820px;
}

.pl-section {
  position: relative;
  padding-block: var(--pl-section);
}

.pl-section--tight {
  padding-block: calc(var(--pl-section) * 0.62);
}

.pl-section--flush-top {
  padding-top: 0;
}

.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pl-lilac);
}

.pl-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.pl-eyebrow--plain::before {
  display: none;
}

.pl-eyebrow--link {
  color: var(--pl-lilac);
}

.pl-eyebrow--link:hover {
  color: var(--pl-cream);
}

.pl-eyebrow .pl-icon {
  width: 16px;
  height: 16px;
}

.pl-icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.pl-muted {
  color: var(--pl-cream-dim);
}

.pl-mute {
  color: var(--pl-cream-mute);
}

.pl-gold {
  color: var(--pl-gold);
}

.pl-gradient-text {
  background: linear-gradient(100deg, #f7f2ec 6%, var(--pl-lilac) 42%, var(--pl-glow) 68%, #f7f2ec 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: pl-gradient-pan 12s linear infinite;
}

.pl-italic {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.pl-hairline {
  height: 1px;
  background: var(--pl-line);
  border: 0;
}

.pl-lead {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--pl-cream-dim);
  font-weight: 400;
  letter-spacing: 0;
  max-width: 62ch;
}

.pl-small {
  font-size: var(--fs-small);
  color: var(--pl-cream-dim);
}

.pl-center {
  text-align: center;
}

.pl-center .pl-lead,
.pl-center .pl-eyebrow {
  margin-inline: auto;
}

.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;
}

.screen-reader-text:focus {
  background: var(--pl-cream);
  color: var(--pl-ink);
  clip: auto;
  clip-path: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  top: 1rem;
  padding: 0.85rem 1.25rem;
  width: auto;
  z-index: 100000;
  border-radius: 6px;
}

.pl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100001;
}

.pl-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Ambient layers */
.pl-grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("../img/noise.svg");
  background-size: 240px 240px;
  animation: pl-grain 8s steps(6) infinite;
  mix-blend-mode: overlay;
}

.pl-vignette {
  position: fixed;
  inset: 0;
  z-index: 8990;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* --------------------------------------------------------------------------
   WordPress core alignment + Elementor resets
   -------------------------------------------------------------------------- */

.alignwide {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}

.aligncenter {
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--fs-small);
  color: var(--pl-cream-mute);
  margin-top: 0.6rem;
}

.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

.entry-content > * + * {
  margin-top: 1.4em;
}

.elementor-page .pl-page-content {
  padding: 0;
}

.elementor-widget-container {
  --pl-widget-gap: 0;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--pl-max);
}

/* Elementor editor: keep the builder usable */
.pl-editor .pl-grain,
.pl-editor .pl-vignette,
.pl-editor .pl-cursor,
.pl-editor .pl-preloader {
  display: none !important;
}

.pl-editor [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* --------------------------------------------------------------------------
   Forms (base)
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius-xs);
  color: var(--pl-cream);
  font-family: var(--pl-font);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s var(--pl-ease), background 0.3s var(--pl-ease), box-shadow 0.3s var(--pl-ease);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 242, 236, 0.38);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--pl-purple);
  background: rgba(139, 58, 158, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 58, 158, 0.16);
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pl-cream-dim);
}

button,
input[type="submit"],
.button {
  font-family: var(--pl-font);
  cursor: pointer;
}

/* Elementor default buttons inherit our type */
.elementor-button {
  font-family: var(--pl-font);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hide the default page title on Elementor-built pages */
.elementor-page .pl-page-head {
  display: none;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .pl-header,
  .pl-footer,
  .pl-preloader,
  .pl-cursor,
  .pl-grain,
  .pl-scroll-progress,
  .pl-llama {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
