@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

:root {
    /* Brand */
    --rock-primary: #17202b;
    --rock-primary-soft: #253342;
    --rock-accent: #18b87a;

    /* Text */
    --rock-text: #17202b;
    --rock-text-muted: #66717e;

    /* Surfaces */
    --rock-background: #ffffff;
    --rock-surface: #f6f8fa;
    --rock-border: #e2e7ec;

    /* Layout */
    --rock-content-width: 1200px;
    --rock-reading-width: 800px;

    /* Shape */
    --rock-radius-sm: 0.375rem;
    --rock-radius-md: 0.75rem;
    --rock-radius-lg: 1rem;

    /* Spacing */
    --rock-space-xs: 0.5rem;
    --rock-space-sm: 1rem;
    --rock-space-md: 1.5rem;
    --rock-space-lg: 2.5rem;
    --rock-space-xl: 4rem;
    --rock-space-xxl: 6rem;
}

/* =========================================================
   Base
   ========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rock-text);
    background: var(--rock-background);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

code,
kbd,
samp,
pre {
    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--rock-text);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

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

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

a {
    color: var(--rock-accent);
    text-underline-offset: 0.15em;
}

a:hover,
a:focus {
    color: var(--rock-primary);
}

/* =========================================================
   Layout
   ========================================================= */

.site-grid {
    max-width: var(--rock-content-width);
    margin-inline: auto;
    padding-inline: var(--rock-space-md);
}

@media (max-width: 768px) {
    .site-grid {
        padding-inline: var(--rock-space-sm);
    }
}

/* =========================================================
   Header
   ========================================================= */

.container-header {
    position: relative;
    z-index: 100;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    background: var(--rock-background);
    background-image: none;
    border-bottom: 1px solid var(--rock-border);
    box-shadow: none;

    padding-inline: max(
        var(--rock-space-md),
        calc((100% - var(--rock-content-width)) / 2)
    );
}

/* Branding-Bereich */
.container-header .container-nav,
.container-header .grid-child {
    max-width: none;
}

/* Joomla setzt Brand und Navigation in unterschiedliche Bereiche.
   Beide werden für unseren kompakten Header ausgerichtet. */
.container-header .navbar-brand {
    margin: 0;
    padding: 0;
}

.container-header .navbar-brand a {
    color: var(--rock-text);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1;
    text-decoration: none;
}

/* Navigation */
.container-header .container-nav {
    display: flex;
    align-items: center;
    min-height: 72px;
    margin: 0;
    padding: 0;
}

.container-header .mod-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;

    margin: 0;
    padding: 0;

    color: var(--rock-text);
}

.container-header .mod-menu > li {
    margin: 0;
}

.container-header .mod-menu > li > a {
    position: relative;
    display: block;

    padding: 1.6rem 0;

    color: var(--rock-text);
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;

    transition: color 150ms ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
    color: var(--rock-accent);
}

.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.85rem;
    left: 0;

    height: 2px;
    border-radius: 2px;
    background: var(--rock-accent);
}

/* =========================================================
   Hero
   ========================================================= */

.rock-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    min-height: 480px;
    overflow: hidden;

    color: #fff;
    background: var(--rock-primary);
}

.rock-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(3rem, 6vw, 6rem)
             clamp(2rem, 5vw, 5rem);
}

.rock-hero__eyebrow {
    margin-bottom: 1rem;

    color: var(--rock-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rock-hero h1 {
    max-width: 700px;
    margin: 0 0 1.5rem;

    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.rock-hero__lead {
    max-width: 620px;
    margin-bottom: 2rem;

    color: #d9e0e7;
    font-size: 1.125rem;
    line-height: 1.7;
}

.rock-hero__visual {
    min-height: 100%;

    background-image:
        linear-gradient(
            90deg,
            rgba(23, 32, 43, 0.25) 0%,
            rgba(23, 32, 43, 0) 35%
        ),
        url("/images/rockenstein/hero/home-hero.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   Buttons
   ========================================================= */

.rock-button {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;

    padding: 0.8rem 1.25rem;
    border-radius: var(--rock-radius-sm);

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 150ms ease,
        background-color 150ms ease;
}

.rock-button--primary {
    color: #071a13;
    background: var(--rock-accent);
}

.rock-button--primary:hover,
.rock-button--primary:focus {
    color: #071a13;
    background: #25ca8b;
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    .rock-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .rock-hero__content {
        padding: 3.5rem var(--rock-space-md);
    }

    .rock-hero__visual {
        min-height: 240px;
    }

}

/* =========================================================
   Section headings
   ========================================================= */

.rock-section-heading {
    max-width: 680px;
    margin-bottom: var(--rock-space-lg);
}

.rock-section-heading__eyebrow {
    margin-bottom: 0.5rem;

    color: var(--rock-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rock-section-heading h2 {
    margin: 0 0 0.75rem;
}

.rock-section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--rock-text-muted);
    font-size: 1.075rem;
}


/* =========================================================
   Topics
   ========================================================= */

.rock-topics {
    padding-block: var(--rock-space-xl);
}

.rock-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--rock-space-md);
}

.rock-topic-card {
    display: flex;
    flex-direction: column;

    min-height: 290px;
    padding: 1.75rem;

    color: var(--rock-text);
    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-md);

    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rock-topic-card:hover,
.rock-topic-card:focus {
    color: var(--rock-text);
    border-color: var(--rock-accent);

    box-shadow:
        0 12px 32px rgba(23, 32, 43, 0.08);

    transform: translateY(-4px);
}

.rock-topic-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 1.5rem;

    color: var(--rock-accent);
    background: rgba(24, 184, 122, 0.10);
    border-radius: var(--rock-radius-sm);

    font-size: 1.4rem;
    font-weight: 700;
}

.rock-topic-card__icon--code {
    font-size: 0.9rem;
}

.rock-topic-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.rock-topic-card p {
    margin-bottom: 1.5rem;

    color: var(--rock-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rock-topic-card__link {
    margin-top: auto;

    color: var(--rock-accent);
    font-size: 0.9rem;
    font-weight: 700;
}


/* Tablet */
@media (max-width: 1000px) {

    .rock-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Smartphone */
@media (max-width: 600px) {

    .rock-topics {
        padding-block: var(--rock-space-lg);
    }

    .rock-topic-grid {
        grid-template-columns: 1fr;
    }

    .rock-topic-card {
        min-height: 240px;
    }

}

/* =========================================================
   Projects
   ========================================================= */

.rock-projects {
    padding-block: var(--rock-space-xl);
}

.rock-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rock-space-md);
}


/* Project card */

.rock-project-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-md);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rock-project-card:hover {
    border-color: var(--rock-accent);

    box-shadow:
        0 12px 32px rgba(23, 32, 43, 0.08);

    transform: translateY(-4px);
}


/* Image */

.rock-project-card__image {
    display: block;

    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: var(--rock-primary-soft);
}

.rock-project-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.rock-project-card:hover .rock-project-card__image img {
    transform: scale(1.025);
}


/* Content */

.rock-project-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 1.5rem;
}

.rock-project-card__category {
    margin-bottom: 0.65rem;

    color: var(--rock-accent);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rock-project-card__title {
    margin: 0 0 0.8rem;

    font-size: 1.3rem;
    line-height: 1.25;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.rock-project-card__title a {
    color: var(--rock-text);
    text-decoration: none;
}

.rock-project-card__title a:hover,
.rock-project-card__title a:focus {
    color: var(--rock-accent);
}


/* Intro text */

.rock-project-card__intro {
    margin-bottom: 1.5rem;

    color: var(--rock-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rock-project-card__intro > :last-child {
    margin-bottom: 0;
}


/* Read more */

.rock-project-card__more {
    margin-top: auto;

    color: var(--rock-accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.rock-project-card__more:hover,
.rock-project-card__more:focus {
    color: var(--rock-text);
}


/* Tablet */

@media (max-width: 900px) {

    .rock-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Smartphone */

@media (max-width: 600px) {

    .rock-projects {
        padding-block: var(--rock-space-lg);
    }

    .rock-project-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   Closing CTA
   ========================================================= */

.rock-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--rock-space-xl);
    align-items: center;

    margin-block: var(--rock-space-xl);
    padding: clamp(2.5rem, 5vw, 4rem);

    color: #fff;
    background: var(--rock-primary);
    border-radius: var(--rock-radius-md);
}

.rock-cta__eyebrow {
    margin: 0 0 0.75rem;

    color: var(--rock-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rock-cta h2 {
    margin: 0 0 1rem;

    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.rock-cta__content > p:last-child {
    max-width: 650px;
    margin: 0;

    color: #d9e0e7;
    line-height: 1.7;
}

.rock-cta__actions {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {

    .rock-cta {
        grid-template-columns: 1fr;
        gap: var(--rock-space-lg);

        margin-block: var(--rock-space-lg);
    }

}

/* =========================================================
   Footer
   ========================================================= */

.container-footer {
    margin-top: var(--rock-space-xl);

    color: #d9e0e7;
    background: var(--rock-primary);
    background-image: none;
}


/* Layout
   --------------------------------------------------------- */

.container-footer .grid-child {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;

    width: 100%;
    max-width: var(--rock-content-width);
    margin-inline: auto;
    padding: var(--rock-space-xl) var(--rock-space-md);
}


/* Branding
   --------------------------------------------------------- */

.rock-footer-brand__name {
    display: inline-block;
    margin-bottom: 0.75rem;

    color: #fff;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    text-decoration: none;
}

.rock-footer-brand__name:hover,
.rock-footer-brand__name:focus {
    color: var(--rock-accent);
}

.rock-footer-brand p {
    max-width: 280px;
    margin: 0;

    color: #b9c3cd;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Menu headings
   --------------------------------------------------------- */

.rock-footer-module__title {
    margin: 0 0 1rem;

    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Menus
   --------------------------------------------------------- */

.rock-footer-menu .mod-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;

    margin: 0;
    padding: 0;
}

.rock-footer-menu .mod-menu > li {
    margin: 0;
}

.rock-footer-menu .mod-menu > li > a {
    padding: 0;

    color: #d9e0e7;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;

    transition: color 150ms ease;
}

.rock-footer-menu .mod-menu > li > a:hover,
.rock-footer-menu .mod-menu > li > a:focus {
    color: var(--rock-accent);
}


/* Responsive
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .container-footer .grid-child {
        grid-template-columns: 1fr;
        gap: var(--rock-space-lg);

        padding-block: var(--rock-space-lg);
    }

}

/* =========================================================
   Category pages
   ========================================================= */

.rock-category {
    padding-block: 0 var(--rock-space-xl);
}

.rock-category__header {
    max-width: 760px;
    margin-bottom: var(--rock-space-lg);
}

.rock-category__title {
    margin: 0 0 0.75rem;
}

.rock-category__description {
    color: var(--rock-text-muted);
    font-size: 1.075rem;
    line-height: 1.7;
}

.rock-category__description > :last-child {
    margin-bottom: 0;
}


/* Article grid */

.rock-category .blog-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rock-space-md);
}

.rock-category .blog-item {
    margin: 0;
}


/* Article cards */

.rock-category-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-md);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rock-category-card:hover {
    border-color: var(--rock-accent);
    box-shadow: 0 12px 32px rgba(23, 32, 43, 0.08);
    transform: translateY(-4px);
}

.rock-category-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: var(--rock-primary-soft);
}

.rock-category-card__image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.rock-category-card:hover .rock-category-card__image img {
    transform: scale(1.025);
}

.rock-category-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 1.5rem;
}

.rock-category-card__category {
    margin-bottom: 0.5rem;

    color: var(--rock-accent);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rock-category-card__title {
    margin: 0 0 0.5rem;

    font-size: 1.4rem;
    line-height: 1.25;
}

.rock-category-card__title a {
    color: var(--rock-text);
    text-decoration: none;
}

.rock-category-card__title a:hover,
.rock-category-card__title a:focus {
    color: var(--rock-accent);
}

.rock-category-card__date {
    margin-bottom: 1rem;

    color: var(--rock-text-muted);
    font-size: 0.8rem;
}

.rock-category-card__intro {
    margin-bottom: 1.5rem;

    color: var(--rock-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.rock-category-card__intro > :last-child {
    margin-bottom: 0;
}

.rock-category-card__more {
    margin-top: auto;

    color: var(--rock-accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.rock-category-card__more:hover,
.rock-category-card__more:focus {
    color: var(--rock-text);
}


/* Responsive */

@media (max-width: 768px) {

    .rock-category .blog-items {
        grid-template-columns: 1fr;
    }

    .rock-category {
        padding-bottom: var(--rock-space-lg);
    }

}

/* =========================================================
   Articles
   ========================================================= */

.com-content-article {
    padding-bottom: var(--rock-space-xl);
}


/* Article header */

.rock-article-header {
    max-width: var(--rock-reading-width);
    margin-bottom: var(--rock-space-lg);
}

.rock-article-header__category {
    display: inline-block;

    margin-bottom: 0.75rem;

    color: var(--rock-accent);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.rock-article-header__category:hover,
.rock-article-header__category:focus {
    color: var(--rock-text);
}

.rock-article-header__title {
    margin: 0 0 1rem;

    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
}

.rock-article-header__date {
    display: block;

    color: var(--rock-text-muted);
    font-size: 0.875rem;
}


/* Full article image */

.com-content-article .item-image {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 0 0 var(--rock-space-lg);
    overflow: hidden;

    border-radius: var(--rock-radius-md);

    float: none;
}

.com-content-article .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reading column */

.com-content-article__body {
    max-width: var(--rock-reading-width);
}

.com-content-article__body {
    color: var(--rock-text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.com-content-article__body h2 {
    margin-top: 2.75rem;
    margin-bottom: 1rem;

    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.com-content-article__body h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.com-content-article__body p {
    margin-bottom: 1.4rem;
}

.com-content-article__body img {
    max-width: 100%;
    height: auto;

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


/* Lists inside articles */

.com-content-article__body ul,
.com-content-article__body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.com-content-article__body li + li {
    margin-top: 0.4rem;
}


/* Mobile */

@media (max-width: 768px) {

    .rock-article-header__title {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .com-content-article {
        padding-bottom: var(--rock-space-lg);
    }

}


/* =========================================================
   Code & technical content
   ========================================================= */

/* Inline code */

:not(pre) > code {
    padding: 0.15em 0.4em;

    color: var(--rock-text);
    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: 0.3rem;

    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.88em;
    font-weight: 500;
}

/* Terminal command blocks */

.rock-terminal {
    display: block;

    margin: 1.75rem 0;
    padding: 1rem 1.25rem;

    overflow-x: auto;

    color: #e6edf3;
    background: var(--rock-primary);
    border: 1px solid var(--rock-primary-soft);
    border-radius: var(--rock-radius-sm);

    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.9rem;
    line-height: 1.6;

    white-space: pre;
}

.rock-terminal code {
    display: block;

    margin: 0;
    padding: 0;

    color: inherit;
    background: transparent;
    border: 0;

    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;

    white-space: inherit;
}

.rock-terminal__prompt {
    color: var(--rock-accent);
    user-select: none;
}

/* Code / configuration blocks */

.rock-code {
    margin: 1.75rem 0;
    overflow: hidden;

    background: var(--rock-primary);
    border: 1px solid var(--rock-primary-soft);
    border-radius: var(--rock-radius-sm);
}

.rock-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.65rem 1.25rem;

    color: #aeb9c4;
    background: var(--rock-primary-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.75rem;
    font-weight: 500;
}

.rock-code pre {
    margin: 0;
    padding: 1.25rem;

    overflow-x: auto;

    color: #e6edf3;
    background: transparent;
    border: 0;

    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre;
}

.rock-code pre code {
    padding: 0;

    color: inherit;
    background: transparent;
    border: 0;

    font-family: inherit;
    font-size: inherit;
}

/* Copy buttons */

.rock-copy-button {
    padding: 0.3rem 0.65rem;

    color: #b9c3cd;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.3rem;

    font-family:
        "Inter",
        sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.rock-copy-button:hover,
.rock-copy-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.rock-copy-button--success {
    color: var(--rock-accent);
    border-color: var(--rock-accent);
}


/* Copy button inside terminal */

.rock-terminal {
    position: relative;
    padding-right: 7rem;
}

.rock-terminal > .rock-copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}


/* Copy button inside code header */

.rock-code__header .rock-copy-button {
    margin-left: 1rem;
}

/* =========================================================
   Tutorial callouts
   ========================================================= */

.rock-callout {
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-left: 4px solid var(--rock-primary-soft);
    border-radius: var(--rock-radius-sm);
}

.rock-callout__title {
    display: block;
    margin-bottom: 0.4rem;

    color: var(--rock-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.rock-callout p {
    margin-bottom: 0.75rem;
}

.rock-callout > :last-child {
    margin-bottom: 0;
}


/* Info */

.rock-callout--info {
    border-left-color: #4d8fd6;
}


/* Tip */

.rock-callout--tip {
    border-left-color: var(--rock-accent);
}


/* Warning */

.rock-callout--warning {
    border-left-color: #d89b35;
}


/* =========================================================
   Table of contents
   ========================================================= */

.rock-toc {
    width: 100%;
    max-width: var(--rock-reading-width);

    margin: 0 0 var(--rock-space-lg);
    padding: 1.25rem 1.5rem;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-sm);
}

.rock-toc__title {
    margin: 0 0 0.75rem;

    color: var(--rock-text);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rock-toc__list {
    margin: 0;
    padding-left: 1.5rem;
}

.rock-toc__item {
    padding-left: 0.25rem;
}

.rock-toc__item + .rock-toc__item {
    margin-top: 0.4rem;
}

.rock-toc__item a {
    color: var(--rock-text);
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
}

.rock-toc__item a:hover,
.rock-toc__item a:focus {
    color: var(--rock-accent);
}

.rock-toc__item--sub {
    margin-left: 1.25rem;
}

.rock-toc__item--sub a {
    color: var(--rock-text-muted);
    font-weight: 500;
}


/* Anchored headings */

.com-content-article__body h2,
.com-content-article__body h3 {
    scroll-margin-top: 2rem;
}

/* =========================================================
   Tag pages
   ========================================================= */

.rock-tag {
    padding-bottom: var(--rock-space-xl);
}

.rock-tag__header {
    max-width: 760px;
    margin-bottom: var(--rock-space-lg);
}

.rock-tag__title {
    margin: 0 0 0.75rem;
}

.rock-tag__description {
    margin: 0;

    color: var(--rock-text-muted);
    font-size: 1.075rem;
    line-height: 1.7;
}

.rock-tag__description > :last-child {
    margin-bottom: 0;
}

/* Tag results */

.rock-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rock-space-md);

    max-width: 1000px;
}

.rock-tag-card {
    display: flex;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-md);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rock-tag-card:hover {
    border-color: var(--rock-accent);
    box-shadow: 0 12px 32px rgba(23, 32, 43, 0.08);
    transform: translateY(-3px);
}

.rock-tag-card__content {
    display: flex;
    width: 100%;
    flex-direction: column;

    padding: 1.5rem;
}

.rock-tag-card__title {
    margin: 0 0 0.65rem;

    font-size: 1.25rem;
    line-height: 1.3;
}

.rock-tag-card__title a {
    color: var(--rock-text);
    text-decoration: none;
}

.rock-tag-card__title a:hover,
.rock-tag-card__title a:focus {
    color: var(--rock-accent);
}

.rock-tag-card__date {
    margin-bottom: 1.25rem;

    color: var(--rock-text-muted);
    font-size: 0.8rem;
}

.rock-tag-card__more {
    margin-top: auto;

    color: var(--rock-accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.rock-tag-card__more:hover,
.rock-tag-card__more:focus {
    color: var(--rock-text);
}

.rock-tag-pagination {
    margin-top: var(--rock-space-lg);
}

@media (max-width: 768px) {

    .rock-tag-grid {
        grid-template-columns: 1fr;
    }

}

.rock-tag-card {
    overflow: hidden;
}

.rock-tag-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: var(--rock-primary-soft);
}

.rock-tag-card__image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 300ms ease;
}

.rock-tag-card:hover .rock-tag-card__image img {
    transform: scale(1.025);
}

.rock-tag-card__intro {
    margin-bottom: 1.5rem;

    color: var(--rock-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.rock-tag-card__intro > :last-child {
    margin-bottom: 0;
}

/* =========================================================
   Article footer
   ========================================================= */

.rock-article-footer {
    max-width: var(--rock-reading-width);

    margin-top: var(--rock-space-xl);
    padding-top: var(--rock-space-md);

    border-top: 1px solid var(--rock-border);
}

.rock-article-footer__back {
    display: inline-flex;
    align-items: center;

    color: var(--rock-accent);
    font-size: 0.925rem;
    font-weight: 700;
    text-decoration: none;

    transition: color 150ms ease;
}

.rock-article-footer__back:hover,
.rock-article-footer__back:focus {
    color: var(--rock-text);
}

/* =========================================================
   Header – mobile
   ========================================================= */

@media (max-width: 1000px) {

    .container-header {
        grid-template-columns: 1fr;
        padding-inline: var(--rock-space-sm);
    }

    .container-header .navbar-brand {
        grid-column: 1;
        order: 1;

        width: 100%;
        padding-block: 1rem;
    }

    .container-header .container-nav {
        grid-column: 1;
        order: 2;

        width: 100%;
        min-height: 0;
        padding: 0 0 1rem;
    }

    .container-header .mod-menu {
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;

        width: 100%;
    }

    .container-header .mod-menu > li > a {
        padding: 0.5rem 0;
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        bottom: 0;
    }

}

/* =========================================================
   Article galleries
   ========================================================= */

.rock-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rock-space-sm);

    margin: var(--rock-space-lg) 0;
}

.rock-gallery__item {
    display: block;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: var(--rock-surface);
    border: 1px solid var(--rock-border);
    border-radius: var(--rock-radius-sm);

    cursor: zoom-in;
}

.rock-gallery__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 180ms ease;
}

.rock-gallery__item:hover img {
    transform: scale(1.025);
}

@media (max-width: 600px) {
    .rock-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rock-gallery__item--hidden {
    display: none;
}

.rock-gallery__item {
    position: relative;
}

.rock-gallery__more {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;

    padding: 0.35rem 0.65rem;

    color: #fff;
    background: rgba(23, 32, 43, 0.85);
    border-radius: 0.3rem;

    font-size: 0.8rem;
    font-weight: 700;

    pointer-events: none;
}

.rock-lightbox-counter {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 10001;

    padding: 0.35rem 0.7rem;

    color: #fff;
    background: rgba(23, 32, 43, 0.75);
    border-radius: 0.3rem;

    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;

    transform: translateX(-50%);
    pointer-events: none;
}

.rock-gallery__item--hidden {
    display: none;
}

.rock-gallery__item {
    position: relative;
}

.rock-gallery__more {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;

    padding: 0.35rem 0.65rem;

    color: #fff;
    background: rgba(23, 32, 43, 0.88);
    border-radius: 0.3rem;

    font-size: 0.8rem;
    font-weight: 700;

    pointer-events: none;
}

.rock-lightbox-counter {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 100000;

    padding: 0.35rem 0.7rem;

    color: #fff;
    background: rgba(23, 32, 43, 0.8);
    border-radius: 0.3rem;

    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;

    transform: translateX(-50%);
    pointer-events: none;
}

/* Footnote references */
.rock-footnote-ref {
    margin-left: 0.1em;
    font-size: 0.75em;
    line-height: 0;
}

.rock-footnote-ref a {
    color: var(--rock-accent);
    font-weight: 700;
    text-decoration: none;
}

.rock-footnote-ref a:hover {
    text-decoration: underline;
}

/* Footnote section */
.rock-footnotes {
    max-width: var(--rock-reading-width);
    margin-top: var(--rock-space-xl);
    padding-top: var(--rock-space-md);
    border-top: 1px solid var(--rock-border);
    font-size: 0.875rem;
}

.rock-footnotes h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.rock-footnotes ol {
    padding-left: 1.5rem;
}

.rock-footnotes li {
    padding-left: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--rock-text-muted);
}

.rock-footnotes li::marker {
    color: var(--rock-accent);
    font-weight: 700;
}

.rock-footnotes p {
    margin: 0;
}

.rock-footnote-back {
    margin-left: 0.5rem;
    font-weight: 700;
    text-decoration: none;
}

.rock-footnotes li:target {
    background: var(--rock-surface);
    border-radius: var(--rock-radius-sm);
}