:root {
    color-scheme: dark;
    --page-background: #111111;
    --panel-background: rgba(18, 18, 18, 0.9);
    --green: #bfe767;
    --green-border: color-mix(in srgb, var(--green) 35%, transparent);
    --text-color: #f3f3ee;
    --muted-text: #d2d8bf;
    --line-color: #ef7d24;
    --focus-color: #ffd49e;
    --radius: 0.375rem;
    --space: 1.5rem;
    --content-width: 72rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--page-background);
    color: var(--text-color);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

main a[href]:not(.button) {
    color: var(--green);
    font-weight: 700;
    padding: 0 0.15rem;
    border-radius: 0.15rem;
}

main a[href]:not(.button):hover,
main a[href]:not(.button):focus-visible {
    background: var(--green);
    color: #111111;
    opacity: 1;
}

a:focus-visible,
button:focus-visible,
audio:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

#main-content:focus {
    outline: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p,
blockquote {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    color: var(--green);
}

ul,
ol {
    margin: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.5rem;
}

.faq-list {
    list-style: none;
    padding-left: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-list p {
    margin-left: calc(1em + 0.4rem);
		margin-top: 1.5em;
		margin-bottom: 1.5em;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined", sans-serif;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--green);
    flex-shrink: 0;
    font-size: 0.75em;
}

.faq-icon {
    color: var(--green);
    flex-shrink: 0;
    font-size: 0.75em;
    width: 1em;
    text-align: center;
}

code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    background: #1a1a1a;
    font-family: inherit;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
    background: #1a1a1a;
    color: var(--text-color);
    text-decoration: none;
    transform: translateY(-220%);
}

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

.wrap {
    width: min(var(--content-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: #0d0d0d;
}

.site-footer {
    border-top: 2px solid var(--line-color);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--green-border);
}

.site-header .wrap,
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.site-title {
    margin: 0;
    color: var(--green);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-title-footer {
    font-size: 1rem;
}

.section {
    padding: 3rem 0;
    background-image: url("../media/section-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.2rem;
    color: var(--green);
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    line-height: 1.1;
}

.panel {
    padding: var(--space);
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
    background: var(--panel-background);
}

.hero-section .panel-grid > .panel {
    border: 0;
}

.panel-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ZombieCoffee-image-panel {
    width: min(35vw, 100%);
    margin: 2em auto 0;
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
}

.ZombieCoffee-image-panel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.panel-media img,
.panel-split > img,
.gallery-item img,
audio {
    border-radius: var(--radius);
}

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

.panel-grid {
    display: grid;
    gap: 1rem;
}

.panel-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.panel-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-wide {
    grid-column: span 2;
}

.concept-panel {
    background: url("../media/ZombieCoffee-Logo-Transparent.png") no-repeat right 3px bottom 3px / 43% auto, var(--panel-background);
}

.concept-icon {
    display: block;
    margin-bottom: 1rem;
    color: var(--green);
}

.feature-panel {
    position: relative;
    padding-right: calc(var(--space) + 32%);
}

.feature-panel::after {
    content: "";
    position: absolute;
    top: 40px;
    right: 5px;
    width: 20%;
    aspect-ratio: 282 / 99;
    background: url("../media/ZombieCoffee-killer-beats.png") no-repeat center / contain;
    transform: rotate(15deg);
    transform-origin: top right;
    pointer-events: none;
}

.panel-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    align-items: center;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.panel > .button-row {
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
    background: var(--green);
    color: #111111;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    opacity: 0.9;
}

.index-page a.button {
    background: #111111;
    color: var(--green);
}

.index-page a.button:hover,
.index-page a.button:focus-visible {
    background: var(--green);
    color: #111111;
    opacity: 1;
}

.index-page a.button.button-buy {
    border: 2px solid var(--green);
    background: var(--green);
    color: #111111;
    font-weight: 700;
}

.index-page a.button.button-buy:hover,
.index-page a.button.button-buy:focus-visible {
    background: #111111;
    color: var(--green);
}

.price-note {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0;
}

.footer-links a {
    color: var(--muted-text);
}

.definition-list dt {
    color: var(--green);
    font-weight: 600;
}

.definition-list dd {
    margin: 0 0 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--green-border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--green);
}

.doc-path {
    overflow-wrap: anywhere;
}

blockquote {
    padding-left: 1rem;
    border-left: 4px solid var(--line-color);
    color: var(--green);
}

audio {
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 1rem;
    align-items: stretch;
    border-color: color-mix(in srgb, var(--green) 20%, transparent);
}

.gallery-line {
    border-radius: 999px;
    background: var(--line-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
}

.gallery-grid-fixed {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 14rem));
    justify-content: start;
}

.gallery-item {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
    border-radius: var(--radius);
    background: #161616;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-item span {
    display: block;
    color: var(--green);
    font-weight: 600;
    text-align: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    width: min(60rem, 100%);
    max-height: calc(100vh - 2rem);
    padding: 1rem;
    overflow: auto;
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
    background: #101010;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lightbox-actions {
    flex-shrink: 0;
    gap: 0.5rem;
    margin-bottom: 0;
}

.lightbox-actions .button {
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    background: #111111;
    color: var(--green);
}

.lightbox-actions .button:hover,
.lightbox-actions .button:focus-visible {
    background: var(--green);
    color: #111111;
    opacity: 1;
}

#lightbox-image,
#lightbox-video {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
}

#lightbox-video[hidden],
#lightbox-video-help[hidden] {
    display: none;
}

#lightbox-video-help {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.9rem;
    text-align: center;
}

#lightbox-caption {
    display: block;
    flex: 1;
    color: var(--green);
    font-weight: 600;
    text-align: center;
}

.site-footer p {
    color: var(--green);
    margin: 0;
}

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

.is-locked {
    overflow: hidden;
}

@media (max-width: 56rem) {
    .panel-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    }

    .panel-wide {
        grid-column: auto;
    }
}

@media (max-width: 48rem) {
    .section {
        background-size: cover;
    }

    .feature-panel {
        padding-right: var(--space);
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-line {
        height: 4px;
        min-height: 4px;
    }

    .gallery-item {
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
    }

    .lightbox-header {
        flex-direction: column;
        align-items: stretch;
    }

    #lightbox-caption {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
