/*
Theme Name: KNZ
Description: Kosmosa Noslēpumu Zinātājs
Version: 0.3.6
Requires PHP: 8.0
*/
:root { color-scheme: dark; background: #050505; color: #f5f5f5; font: 16px/1.5 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid #363636; background: #070707; }
.site-header .wrap, .site-header nav { display: flex; flex-wrap: wrap; align-items: center; }
.site-header .wrap { justify-content: center; gap: .35rem 1.5rem; padding-block: .45rem; }
.site-header nav { justify-content: center; gap: .1rem clamp(.5rem, 2vw, 1.5rem); }
.site-header a { text-decoration: none; }
.site-header nav a { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav [aria-current] { border-bottom-color: white; }
.brand { font-size: 1.45rem; font-weight: 800; border-right: 1px solid #444; padding-right: 1.25rem; }
.station { position: relative; isolation: isolate; overflow: hidden; background: #030303 url(assets/stars.svg) center top / min(100%, 75rem) auto repeat-y; }
.station::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .24; background: url(assets/stars.svg) center top / 68rem auto repeat; animation: stars 10s ease-in-out infinite alternate; }
@keyframes stars { to { opacity: .7; transform: translate3d(0, -12px, 0); } }
@media (prefers-reduced-motion: reduce) { .station::before { animation: none; } }
.hero { text-align: center; padding-block: clamp(1rem, 3vw, 2rem) .75rem; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.05; }
.hero h1 { font-size: clamp(4rem, 10vw, 7rem); margin: 0; font-weight: 900; letter-spacing: .06em; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .1rem 0; font-weight: 700; font-size: clamp(.76rem, 2.1vw, 1.3rem); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; width: clamp(.6rem, 6vw, 3.5rem); height: 1px; background: #aaa; }
.motto { margin: .35rem 0 .75rem; font-style: italic; color: #ddd; }
.logo { display: block; margin-inline: auto; width: min(100%, 23rem); height: auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.panel { border: 1px solid #999; border-radius: .9rem; background: #101010bc; }
.portal { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .3rem 1rem; text-decoration: none; }
.portal:hover { background: #282828; }
.portal img { width: clamp(2.6rem, 8vw, 5.5rem); height: auto; }
.portal > span:nth-child(2) { border-left: 1px solid #777; padding-left: 1rem; }
.portal strong, .portal small { display: block; }
.portal strong { text-transform: uppercase; }
.portal strong { font-size: clamp(1rem, 2vw, 1.4rem); }
.arrow { font-size: 1.7rem; }
.button, button { display: inline-block; padding: .45em 1.15em; background: #f4f4f4; color: #111; border: 1px solid #fff; border-radius: .45rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.lunar-ground { height: clamp(5rem, 16vw, 13rem); margin-top: -1.5rem; background: url(assets/moon.svg) center bottom / cover no-repeat; }
.content { padding-block: 2rem; min-height: 55vh; }
.content img { max-width: 100%; height: auto; }
.gallery { margin-block: 1rem; }
.gallery figure { margin: 0; padding: 1rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #050505; }
.gallery figcaption { margin-top: .65rem; }
.wp-block-gallery figcaption { color: inherit; }
input { display: block; width: min(100%, 24rem); margin: .5rem 0 1rem; padding: .55em; font: inherit; }
.site-footer { border-top: 1px solid #333; padding: 1rem 0; color: #ddd; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 10; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media (max-width: 40rem) { .grid { grid-template-columns: 1fr; } .site-header .wrap { gap: .25rem .75rem; } }

@media (min-width: 64rem) {
    .hero { padding-block: clamp(.75rem, 2svh, 1.25rem) .5rem; }
    .hero h1 { font-size: clamp(3.5rem, 9svh, 5.25rem); }
    .motto { margin-bottom: .4rem; }
    .logo { width: min(100%, 19rem, 33svh); }
    .station .grid { gap: .65rem .9rem; }
    .portal img { width: clamp(2.8rem, 7svh, 4rem); }
    .lunar-ground { height: clamp(4rem, 12svh, 8rem); }
}

.lunar-ground {
    position: relative;
    width: min(100%, 70rem);
    height: clamp(7rem, 23vw, 17.5rem);
    margin: 0 auto;
    background: none;
    pointer-events: none;
}
.lunar-ground::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    aspect-ratio: 759 / 280;
    background: url(assets/lunar-scene.jpg) center bottom / 100% 100% no-repeat;
    clip-path: polygon(0 64%, 3.8% 66%, 1.4% 38%, 4.8% 38%, 5.3% 34%, 8.4% 32%, 10.5% 35%, 12% 44%, 15.9% 48%, 17.2% 44%, 17.3% 39%, 18.2% 39%, 19.2% 51%, 22% 52%, 26.4% 49%, 27.1% 57%, 28% 65%, 33% 69%, 47% 67%, 62% 66%, 75% 61%, 83% 55%, 91% 50%, 100% 46%, 100% 100%, 0 100%);
}
@media (max-width: 40rem) {
    .lunar-ground { height: auto; aspect-ratio: 759 / 185; margin-top: .5rem; }
}

.base-upload { margin-block: 1.5rem; }
.base-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.knz-member { padding: 1.25rem; border: 1px solid #999; border-radius: .9rem; background: #101010; }
.knz-member .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
.knz-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.knz-members .wp-block-image { margin: 0; }
.knz-mission { margin-block: 1.25rem; padding: 1.25rem; border: 1px solid #999; border-radius: .9rem; background: #101010; }

