/* ================================================
  Blankboard Studio – Global Styles
  ================================================ */

/* =========================
  Font Face Declaration
  ========================= */
@font-face {
  font-family: "InterVF";
  src: url("https://raw.githubusercontent.com/asheemstha/brandvm/main/Fonts/InterVariable.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterVF";
  src: url("https://raw.githubusercontent.com/asheemstha/brandvm/main/Fonts/InterVariable-Italic.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "InterBold";
  src: url("https://raw.githubusercontent.com/asheemstha/brandvm/main/Fonts/Inter-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------
   01. Responsive Scaling System by Blankboard Studio
   ------------------------------------------------ */

/* Base Container & Font Scaling */
:root {
  --size-unit: 16;
  /* Body font-size in design units (no px) */
  --size-container-ideal: 1680;
  --size-container-min: 992px;
  --size-container-max: 1680px;
  --size-container: clamp(
    var(--size-container-min),
    100vw,
    var(--size-container-max)
  );
  --size-font: calc(
    var(--size-container) / (var(--size-container-ideal) / var(--size-unit))
  );
  font-size: var(--size-font);
}

/* Tablet */
@media screen and (max-width: 991px) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 767px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 480px;
    --size-container-max: 767px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) {
  :root {
    --size-container-ideal: 430;
    --size-container-min: 320px;
    --size-container-max: 428px;
  }
}

/* ------------------------------------------------
   02. Color System: OKLCH and Display-P3 Fallback
   ------------------------------------------------ */

/* Fallback: OKLCH if P3 is not supported */
/* @supports (color: oklch(60% 0 0)) {
   :root {
   --color--black: oklch(0% 0 0);
   --color--dark: oklch(14.43% 0.048 280.91);
   --color--dark-01: oklch(12.41% 0.011 318.72);
   --color--primary: oklch(65.48% 0.244 281.09);
   --color--purple: oklch(73.68% 0.218 295.87);
   --color--purple-01: oklch(69.26% 0.200 270.45);
   --color--blue: oklch(75.08% 0.183 252.34);
   --color--blue-01: oklch(95.24% 0.038 239.37);
   --color--off-white: oklch(93.57% 0.004 257.72);
   --color--white: oklch(100% 0 0);
   }
 
   } */

/* Preferred: Display-P3 */
@supports (color: color(display-p3 1 1 1)) {
  :root {
  }
}

/* ------------------------------------------------
   03. Reset & Box Model
   ------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  text-size-adjust: 100%;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 8%;
  text-underline-offset: -8%;
  text-underline-position: from-font;
}

html {
  scroll-behavior: initial;
  scrollbar-width: none;
  /* Firefox */
  -webkit-font-smoothing: antialiased;
}

body {
  font-feature-settings: "cv01" on, "cv03" on, "cv04" on, "cv09" on, "cv10" on,
    "cv12" on, "cv13" on;
  -webkit-font-feature-settings: "cv01" on, "cv03" on, "cv04" on, "cv09" on,
    "cv10" on, "cv12" on, "cv13" on;
  -ms-overflow-style: none;
  /* IE & Edge */
}

/* Hide scrollbars universally */
body::-webkit-scrollbar,
body ::-webkit-scrollbar {
  display: none;
}

/* SVG Reset */
svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Reset Link Color */
a {
  color: inherit;
}

/* ------------------------------------------------
   04. Typography Utilities
   ------------------------------------------------ */

/* Content & Article Styling for Rich Text */
.rte > :first-child {
  margin-top: 0;
}

.rte > :last-child {
  margin-bottom: 0;
}

.rte > div:first-child > :first-child {
  margin-top: 0;
}

.rte > div:first-child > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------
   05. Utility Attributes
   ------------------------------------------------ */

/* Scrollbars */
[scroll-show="false"] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[scroll-show="false"]::-webkit-scrollbar {
  display: none;
}

/* Truncate Text Utility // Show "..." after 1 line */
[data-truncate] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

/* Show "..." after 1 line */
[data-truncate="1"] {
  -webkit-line-clamp: 1;
}

/* Selection Highlight */
::selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}

::-moz-selection {
  background-color: #d8ecfc;
  color: #008cff;
  text-shadow: none;
}

[data-theme="dark"] {
  background-color: var(--_color---bg--dark);
  color: var(--_color---text-color--light);
}

/* Gradients */
[data-gradient] {
}

[data-gradient-text] {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------
   06. Interactive Link Effects
   ------------------------------------------------ */

/* Underline Animation Link */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  top: 92%;
  left: 0%;
  height: 1px;
  width: 0%;
  background: currentColor;
  transition: width 735ms cubic-bezier(0.65, 0.05, 0, 1);
}

.link-underline:hover::after {
  width: 100%;
}

.link-underline:not(:hover)::after {
  left: auto;
  right: 0%;
  width: 0%;
}

/* Inline Link Fade Effect */
.inline-link-underline {
  position: relative;
}

.inline-link-underline::after {
  content: "";
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: currentColor;
  position: absolute;
  top: 96%;
  left: 0%;
  border-radius: 4px;
  opacity: 16%;
  transition: opacity 735ms cubic-bezier(0.65, 0.05, 0, 1);
}

.inline-link-underline:hover::after {
  opacity: 100%;
}

/* ------------------------------------------------
   07. Animations
   ------------------------------------------------ */

/* Keyframes */
@keyframes loop {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Loop Animation (Horizontal Slide) */
.loop-animate {
  animation: loop 60s linear infinite;
  will-change: transform;
}

.loop-animate.reverse {
  animation: loop 60s linear infinite reverse;
  will-change: transform;
}

/* ------------------------------------------------
   08. Components / Patterns
   ------------------------------------------------ */

/* Image Zoom Hover */
.image-w img {
  transition: transform 0.735s cubic-bezier(0.65, 0.05, 0, 1);
}

.image-w:hover img {
  transform: scale(1.12);
}

/* Remove wrapper pseudo-elements (redundant after refactor) */
.s-wrapper::before,
.s-wrapper::after {
  display: none;
}
