/* * Responsive Typography - Generated with our Font Size Clamp Generator:
 * https://www.mcneece.com/clamp-generator/ */
h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw + 1rem, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw + 1rem, 2.25rem);
}

p,
li {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.25rem);
}

/* Responsive Spacing */
.section {
    padding: clamp(2rem, 10vh, 8rem) 0;
}

.container {
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.card {
    margin-bottom: clamp(1rem, 3vh, 3rem);
}

/* Responsive Layouts */
.wrapper {
    width: clamp(320px, 90%, 1200px);
}

.sidebar {
    width: clamp(250px, 25%, 400px);
}

.column {
    flex: 1 1 clamp(250px, 40%, 450px);
}

/* Responsive UI Elements */
.button {
    padding: clamp(0.5rem, 1vw, 1rem) clamp(1rem, 2vw, 2rem);
    font-size: clamp(0.875rem, 1vw, 1.125rem);
}

/* Responsive Images & Media */
.hero-image {
    height: clamp(200px, 30vh, 400px);
    object-fit: cover;
}

.video-embed {
    aspect-ratio: 16 / 9;
    width: clamp(300px, 100%, 1200px);
}

/* Responsive Grid Systems */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 25vw, 350px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

/* Responsive Text Features */
.headline {
    line-height: clamp(1.1, 1.1 + 0.2vw, 1.3);
    letter-spacing: clamp(0.5px, 0.1vw, 1.5px);
}

/* Media Query Alternatives */
/* Instead of setting different font sizes at breakpoints like: */
/* @media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
}
@media (min-width: 1200px) {
  h1 { font-size: 3.5rem; }
} */
/* Just use: */
h1 {
    font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem);
}

/* Fallback Pattern for Older Browsers */
.element {
    /* Fallback for browsers without clamp support */
    property: fallback-value;

    /* Modern browsers will use this instead */
    property: clamp(min, preferred, max);
}