/* Novastra - utilities */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

@media (min-width: 960px) {
    .container {
        padding-left: var(--gutter-lg);
        padding-right: var(--gutter-lg);
    }
}

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }

.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mt-9 { margin-top: var(--s-9); }
.mt-10 { margin-top: var(--s-10); }

.mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--c-muted); }
.text-ink { color: var(--c-ink); }
.text-ink-soft { color: var(--c-ink-soft); }
.text-accent { color: var(--c-accent); }

.section {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
}

@media (min-width: 960px) {
    .section {
        padding-top: var(--s-10);
        padding-bottom: var(--s-10);
    }
}

.divider {
    height: 1px;
    background: var(--c-line);
    border: 0;
    margin: 0;
}

.section-heading {
    position: relative;
    padding-bottom: var(--s-4);
    margin-bottom: var(--s-6);
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--c-line);
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.5px;
    width: 32px;
    height: 2px;
    background: var(--c-accent);
    z-index: 1;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--s-4);
    background: var(--c-ink);
    color: var(--c-bg);
    padding: 8px 16px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    transition: top var(--dur-micro) var(--ease-out-expo);
}

.skip-link:focus {
    top: 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--s-5);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--s-5);
}

@media (min-width: 720px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
