.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding-block: calc(var(--rhythm, 1.25rem) * 0.9);
    border-top: 2px solid var(--editorial-rule, var(--theme-border));
    border-bottom: 1px solid var(--editorial-rule, var(--theme-border));
}

.site-nav__brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-nav__meta {
    font-family: "Noto Sans Mono", monospace;
    font-size: var(--font-small, 0.875rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--editorial-muted, var(--theme-muted));
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    text-decoration: none;
}

.site-nav__link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter, 2rem);
}

.teaser-card {
    grid-column: span 6;
    display: grid;
    gap: 0.7rem;
    padding: calc(var(--rhythm, 1.25rem) * 1);
    border: 2px solid var(--editorial-rule, var(--theme-border));
    background: var(--editorial-surface-strong, var(--theme-surface-strong));
}

.teaser-card--compact {
    grid-column: span 4;
}

.teaser-card__eyebrow,
.teaser-card__meta {
    font-family: "Noto Sans Mono", monospace;
    font-size: var(--font-small, 0.875rem);
    line-height: var(--line-height-small, 1.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--editorial-muted, var(--theme-muted));
}

.teaser-card__title {
    margin: 0;
    font-size: var(--font-h4, 1.25rem);
    line-height: var(--line-height-h4, 1.25);
}

.teaser-card__text {
    margin: 0;
    color: var(--editorial-muted, var(--theme-muted));
}

.teaser-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-bg-1);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ui-button--secondary {
    border-color: var(--editorial-rule, var(--theme-border));
    background: var(--editorial-surface, var(--theme-surface));
    color: var(--editorial-ink, var(--theme-ink));
}

.ui-button--ghost {
    background: transparent;
    color: var(--editorial-ink, var(--theme-ink));
}

.ui-button--quiet {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--editorial-ink, var(--theme-ink));
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.ui-button:disabled,
.ui-button[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.button-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.form-layout {
    display: grid;
    gap: 1rem;
}

.form-layout--two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field__label,
.form-field__hint,
.form-field__message {
    font-size: var(--font-small, 0.875rem);
    line-height: var(--line-height-small, 1.4);
}

.form-field__label {
    font-weight: 700;
}

.form-field__hint {
    color: var(--editorial-muted, var(--theme-muted));
}

.form-field__message {
    color: var(--color-danger-hex, #b91c1c);
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--editorial-rule, var(--theme-border));
    border-radius: 0;
    background: var(--editorial-surface, var(--theme-surface));
    color: var(--editorial-ink, var(--theme-ink));
    font: inherit;
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.form-check {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter, 2rem);
}

.media-frame {
    grid-column: span 8;
    display: grid;
    gap: 0.7rem;
}

.media-frame--aside {
    grid-column: span 4;
}

.media-box {
    aspect-ratio: 16 / 9;
    border: 2px solid var(--editorial-rule, var(--theme-border));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--theme-ink) 2%, transparent),
            color-mix(in srgb, var(--theme-ink) 8%, transparent)
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 4rem,
            color-mix(in srgb, var(--theme-ink) 10%, transparent) 4rem 4.0625rem
        );
}

.media-box--portrait {
    aspect-ratio: 4 / 5;
}

.media-caption {
    font-size: var(--font-small, 0.875rem);
    line-height: var(--line-height-small, 1.4);
    color: var(--editorial-muted, var(--theme-muted));
}

.responsive-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.responsive-card {
    display: grid;
    gap: 0.5rem;
    padding: calc(var(--rhythm, 1.25rem) * 0.9);
    border: 1px solid var(--editorial-rule, var(--theme-border));
    background: var(--editorial-surface, var(--theme-surface));
}

.responsive-card__label {
    font-family: "Noto Sans Mono", monospace;
    font-size: var(--font-small, 0.875rem);
    text-transform: uppercase;
    color: var(--editorial-muted, var(--theme-muted));
}

.notice-stack {
    display: grid;
    gap: 0.75rem;
}

.notice {
    padding: calc(var(--rhythm, 1.25rem) * 0.85);
    border: 1px solid var(--editorial-rule, var(--theme-border));
    background: var(--editorial-surface-strong, var(--theme-surface-strong));
}

.notice--info {
    border-left: 0.5rem solid #0f172a;
}

.notice--success {
    border-left: 0.5rem solid #166534;
}

.notice--warning {
    border-left: 0.5rem solid #b45309;
}

.notice--danger {
    border-left: 0.5rem solid #b91c1c;
}

.notice__title {
    margin: 0 0 0.25rem;
    font-size: var(--font-h5, 1.125rem);
}

.notice__text {
    margin: 0;
    color: var(--editorial-muted, var(--theme-muted));
}

.content-prose {
    max-width: 70ch;
}

.content-prose > :first-child {
    margin-top: 0;
}

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

.content-prose h2,
.content-prose h3 {
    margin-top: calc(var(--rhythm, 1.25rem) * 1.25);
    margin-bottom: calc(var(--rhythm, 1.25rem) * 0.4);
}

.content-prose p,
.content-prose ul,
.content-prose ol,
.content-prose blockquote {
    margin-block: calc(var(--rhythm, 1.25rem) * 0.6);
}

.content-prose p,
.content-prose li {
    color: var(--editorial-muted, var(--theme-muted));
}

.content-prose blockquote {
    margin-inline: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--editorial-rule, var(--theme-border));
    color: var(--editorial-ink, var(--theme-ink));
}

.content-prose code {
    font-family: "Noto Sans Mono", monospace;
    font-size: 0.95em;
}

@media (max-width: 72rem) {
    .teaser-card,
    .teaser-card--compact,
    .media-frame,
    .media-frame--aside {
        grid-column: span 12;
    }

    .responsive-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 56rem) {
    .site-nav {
        align-items: start;
    }

    .form-layout--two-col {
        grid-template-columns: 1fr;
    }
}
