/**
 * @file
 * Generic base elements.
 */

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

html {
  font-family: var(--font-sans);
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
  line-height: var(--line-height-base);
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

a {
  color: var(--color-text-primary-medium);
}

a:hover {
  color: var(--color--primary-50);
}

a:focus {
  outline: solid 2px currentColor;
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

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

audio {
  display: block;
  max-width: 100%;
}
/*
h1 {
  letter-spacing: -0.01em;
  font-size: 1.75rem;
  line-height: var(--sp2);
}

@media (min-width: 43.75rem) {
  h1 {
    font-size: 3.75rem;
    line-height: var(--sp4);
  }
}

h2 {
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  line-height: var(--sp2);
}

@media (min-width: 43.75rem) {
  h2 {
    font-size: 2.25rem;
    line-height: var(--sp3);
  }
}

h3 {
  font-size: 1.25rem;
  line-height: var(--sp1-5);
}

@media (min-width: 43.75rem) {
  h3 {
    font-size: 1.5rem;
    line-height: var(--sp2);
  }
}

h4 {
  font-size: 1.125rem;
  line-height: var(--sp1-5);
}

h5 {
  font-size: 1rem;
  line-height: var(--sp1-5);
}

h6 {
  font-size: 0.875rem;
  line-height: var(--sp);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: var(--sp);
  color: var(--color-text-neutral-loud);
  font-family: var(--font-sans);
  font-weight: bold;
}

@media (min-width: 43.75rem) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-block: var(--sp2);
  }
} */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0;
  font-family: "Tilt Neon", -apple-system, Roboto, Helvetica, sans-serif;
}

p {
  margin-block-start: 0;
}

ul {
  margin-block-start: 0.25em;
  margin-block-end: 0.25em;
  margin-inline-start: 1.5em;
  margin-inline-end: 0;
  padding-inline-start: 0;
  list-style-type: disc;
  list-style-image: none;
}

/**
 * @file
 * Utility classes for the dawnzera theme.
 */

body {
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
}

/* Text utility classes */
sup {
  font-size: 0.8em;
  line-height: 0;
  white-space: nowrap;
}

.pink-text {
  color: rgba(255, 0, 183, 1);
}

.dark-text {
  color: rgba(29, 45, 58, 1);
}

.black-text {
  color: rgba(0, 0, 0, 1);
}

.bold-text {
  font-weight: 700;
}

.content-text a {
  color: inherit;
  text-decoration: underline;
}

/* Primary button */
.primary-button {
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  border: 1px solid var(--coral, #C94808);
  background: var(--coral, #C94808);
  align-self: stretch;
  margin: auto 0;
  padding: 12px 48px 12px 24px;
  overflow: hidden;
  font-family: agenda, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  background-image: url('../../images/icons/chevron_right_white.svg');
  background-position: right 16px center;
  background-repeat: no-repeat;
  width: fit-content;

}
@media (max-width: 991px) {
  .primary-button {
    padding-left: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .primary-button {
    max-width: 123px;
    width: 100%;
  }
}

.primary-button:hover,
.primary-button:focus {
  background-color: var(--color-melon, #F8B095);
  border-color: var(--color-melon, #F8B095);
  color: #fff;
}

.primary-button:disabled {
  background-color: var(--STEEL, #515861);;
  border-color: var(--STEEL, #515861);;
  color: #fff;
}

.primary-button:focus-visible {
  outline: 1px solid #fff;
}

.button-text {
  align-self: stretch;
  margin: auto 0;
  font-size: 20px;
}

.button-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
}

/* Secondary button */
.secondary-button {
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  border: 2px solid #c94808;
  background-color: #fff;
  display: flex;
  padding: 12px 20px 12px 24px;
  gap: 4px;
  overflow: hidden;
  color: #c94808;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

@media (max-width: 991px) {
  .secondary-button {
    padding-left: 20px;
    width: 100%;
  }
}

.secondary-button:hover,
.secondary-button:focus {
  background-color: #fceee7;
  border-color: #c94808;
  color: #c94808;
}
.secondary-button:focus-visible {
  outline: 2px solid #c94808;
  outline-offset: 2px;
}

/* Neon border */
.border-neon {
  position: relative;
  border-radius: 24px;
  box-shadow: 2px 2px 16px 0 rgba(85, 26, 7, 0.8),
    inset -10px -10px 8px 0 rgba(201, 72, 8, 0.4),
    inset 10px 10px 8px 0 rgba(201, 72, 8, 0.4),
    inset -1.5px 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset -1.5px -1.5px 1.5px 0 rgba(255, 255, 255, 0.4);
}
.border-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 8px solid rgba(117, 51, 38, 0.8);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: hard-light;
}
.border-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 2px;
  left: 1px;
  border-radius: 24px;
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -5px;
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

/* gradient border */
.border-gradient {
  position: relative;
}
.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 8px solid transparent;
  background: linear-gradient(
      105.67deg,
      #dee1e3 0%,
      #fffbe6 25.48%,
      #dad3c8 59.62%,
      #edecec 79.81%,
      #d6d4ba 100%
    )
    border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 0;
}

.bg-image {
  background-image: url(../../images/background.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Font Loading Optimization Styles */
.fonts-loading {
  /* Prevent flash of invisible text (FOIT) */
  font-display: swap;
}

.fonts-loading h1,
.fonts-loading h2,
.fonts-loading h3,
.fonts-loading h4,
.fonts-loading h5,
.fonts-loading h6 {
  /* Use system fonts while custom fonts load */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

.fonts-loading .title-section,
.fonts-loading .now-approved-text,
.fonts-loading .program-header {
  /* Use Impact/Arial Black for Tilt Neon fallback */
  font-family: Impact, "Arial Black", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

.fonts-loaded {
  /* Smooth transition when fonts are loaded */
  transition: font-family 0.2s ease-in-out;
}

/* Critical font loading performance optimization */
@media (prefers-reduced-motion: no-preference) {
  .fonts-loaded * {
    transition: font-family 0.15s ease-in-out;
  }
}

/* Performance optimization for mobile devices */
@media (max-width: 768px) {
  .fonts-loading {
    /* Faster timeout on mobile */
    font-display: swap;
  }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fonts-loaded * {
    transition: none;
  }
}

.isi-tray__body a {
  color: var(--color--red);
}
