/* =========================================================
   ADI YOGPEETH — GLOBAL BASE STYLES
   File: assets/css/base.css
   Version: 1.0
   ========================================================= */


/* =========================================================
   01. HTML
   ========================================================= */

html {
    min-height: 100%;
    background: var(--color-background);
}


/* =========================================================
   02. BODY
   ========================================================= */

body {
    min-height: 100vh;

    background-color: var(--color-background);
    color: var(--color-body);

    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}


/* =========================================================
   03. MAIN
   ========================================================= */

main {
    display: block;
    width: 100%;
}


/* =========================================================
   04. GLOBAL TEXT
   ========================================================= */

p {
    max-width: var(--content-reading-width);
    color: var(--color-text-secondary);
}


/* =========================================================
   05. STRONG / BOLD
   ========================================================= */

strong,
b {
    font-weight: var(--font-weight-semibold);
}


/* =========================================================
   06. SMALL TEXT
   ========================================================= */

small {
    font-size: var(--text-body-sm);
}


/* =========================================================
   07. MARK
   ========================================================= */

mark {
    background-color: rgba(183, 154, 99, 0.20);
    color: inherit;
    padding-inline: 0.15em;
}


/* =========================================================
   08. LINKS
   ========================================================= */

a {
    color: var(--color-link);
    text-decoration: none;
    transition:
        color var(--duration-normal) var(--ease-standard),
        background-color var(--duration-normal) var(--ease-standard),
        border-color var(--duration-normal) var(--ease-standard),
        opacity var(--duration-normal) var(--ease-standard);
}


/* =========================================================
   09. LINK HOVER
   ========================================================= */

a:hover {
    color: var(--color-link-hover);
}


/* =========================================================
   10. KEYBOARD FOCUS
   ========================================================= */

/*
   Accessibility:
   Focus remains visible for keyboard navigation.
*/

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    box-shadow: var(--focus-ring);
}


/* =========================================================
   11. BUTTON FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    box-shadow: var(--focus-ring);
}


/* =========================================================
   12. IMAGES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   13. FIGURES
   ========================================================= */

figure {
    display: block;
}


/* =========================================================
   14. VIDEO / MEDIA
   ========================================================= */

video,
iframe {
    max-width: 100%;
    border: 0;
}


/* =========================================================
   15. SVG
   ========================================================= */

svg {
    flex-shrink: 0;
}


/* =========================================================
   16. SECTION FOUNDATION
   ========================================================= */

section {
    position: relative;
    width: 100%;
}


/* =========================================================
   17. STANDARD SECTION
   ========================================================= */

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


/* =========================================================
   18. SECTION VARIATIONS
   ========================================================= */

.section--small {
    padding-block: var(--section-space-md);
}

.section--large {
    padding-block: var(--section-space-xl);
}

.section--dark {
    background-color: var(--color-dark-background);
    color: var(--color-dark-heading);
}

.section--sand {
    background-color: var(--color-background-alt);
}

.section--ivory {
    background-color: var(--color-background);
}


/* =========================================================
   19. CONTENT CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-xxl)
    );

    margin-inline: auto;
}


/* =========================================================
   20. CONTAINER WIDTHS
   ========================================================= */

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

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

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

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

.container--reading {
    max-width: var(--content-reading-width);
}


/* =========================================================
   21. CONTENT WIDTH
   ========================================================= */

.content-width {
    width: 100%;
    max-width: var(--content-wide-width);
    margin-inline: auto;
}


/* =========================================================
   22. TEXT ALIGNMENT
   ========================================================= */

.text-left {
    text-align: left;
}

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

.text-right {
    text-align: right;
}


/* =========================================================
   23. TEXT WIDTH
   ========================================================= */

.text-readable {
    max-width: var(--content-reading-width);
}

.text-narrow {
    max-width: var(--content-narrow-width);
}


/* =========================================================
   24. HORIZONTAL RULE
   ========================================================= */

hr {
    width: 100%;
    border-top-color: var(--color-border);
}


/* =========================================================
   25. DARK SECTION TEXT
   ========================================================= */

.section--dark p {
    color: var(--color-dark-body);
}

.section--dark a:hover {
    color: var(--color-gold-light);
}


/* =========================================================
   26. DISABLED ELEMENTS
   ========================================================= */

[aria-disabled="true"],
.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}


/* =========================================================
   27. HIDDEN UTILITY
   ========================================================= */

.is-hidden {
    display: none !important;
}


/* =========================================================
   28. VISUALLY HIDDEN
   ========================================================= */

/*
   Keeps content available to screen readers while
   visually hiding it.
*/

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   29. SKIP LINK
   ========================================================= */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;

    z-index: var(--z-toast);

    padding: 10px 16px;

    background-color: var(--color-forest);
    color: var(--color-ivory);

    border-radius: var(--radius-sm);

    transform: translateY(-150%);
    transition:
        transform var(--duration-normal) var(--ease-smooth);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   30. FULL-WIDTH UTILITY
   ========================================================= */

.full-width {
    width: 100%;
}


/* =========================================================
   31. OVERFLOW UTILITIES
   ========================================================= */

.overflow-hidden {
    overflow: hidden;
}

.overflow-visible {
    overflow: visible;
}


/* =========================================================
   32. POSITIONING
   ========================================================= */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}


/* =========================================================
   33. FLEX FOUNDATION
   ========================================================= */

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}


/* =========================================================
   34. BODY SCROLL LOCK
   Used by mobile menu / modal JavaScript.
   ========================================================= */

body.is-menu-open,
body.is-modal-open {
    overflow: hidden;
}


/* =========================================================
   35. RESPONSIVE CONTAINER PADDING
   ========================================================= */

@media (max-width: 767px) {

    .section {
        padding-block: var(--section-space-md);
    }

    .section--small {
        padding-block: var(--section-space-sm);
    }

    .section--large {
        padding-block: var(--section-space-lg);
    }
}

@media (max-width: 360px) {

    .section {
        padding-block: var(--section-space-sm);
    }
}


/* =========================================================
   36. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    a,
    .skip-link {
        transition: none;
    }
}


/* =========================================================
   END OF BASE STYLES
   ========================================================= */

/* =========================================================
   V2 PERFORMANCE / MEDIA DEFAULTS
   ========================================================= */

img[width][height] {
    height: auto;
}

iframe {
    aspect-ratio: 16 / 9;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
