:root {
    --color-bg-top: #060018;
    --color-bg-mid: #120b33;
    --color-bg-bottom: #1c103f;
    --color-nebula-1: rgba(206, 129, 255, 0.55);
    --color-nebula-2: rgba(88, 233, 255, 0.4);
    --color-nebula-3: rgba(255, 203, 134, 0.5);

    --card-bg: rgba(10, 6, 32, 0.9);
    --card-border: rgba(255, 245, 255, 0.6);
    --accent: #ffd88b;
    --accent-soft: rgba(255, 216, 139, 0.25);
    --text-main: #fdf9ff;
    --text-muted: #cdc3e8;

    --radius-card: 26px;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.9);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;pn
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-main);
}

.space-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 0, transparent 40%),
        radial-gradient(circle at 80% 5%, var(--color-nebula-2) 0, transparent 55%),
        radial-gradient(circle at 10% 90%, var(--color-nebula-1) 0, transparent 55%),
        linear-gradient(to bottom, var(--color-bg-top), var(--color-bg-mid), var(--color-bg-bottom));
    position: relative;
}

.site-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
}

.card-title::before,
.card-title::after {
    left: 50%;
    transform: translateX(-50%) rotate(-15deg); /* samme for begge */
}
/* For links inside card descriptions (in case they inherit layout) */
.card__description a {
    color: var(--accent);
    font-weight: 600;
}

/* Stjerne”støv” lag */
.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.starfield--layer1 {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.7) 0, transparent 50%),
        radial-gradient(1.5px 1.5px at 70% 30%, rgba(255,255,255,0.6) 0, transparent 55%),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.5) 0, transparent 50%);
    animation: driftStarfield1 80s linear infinite;
}

.starfield--layer2 {
    background-image:
        radial-gradient(1px 1px at 20% 10%, rgba(255,255,255,0.4) 0, transparent 55%),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(255,255,255,0.55) 0, transparent 55%),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.5) 0, transparent 55%);
    animation: driftStarfield2 120s linear infinite;
}

@keyframes driftStarfield1 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-120px, -80px, 0); }
}

@keyframes driftStarfield2 {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(80px, 100px, 0); }
}

/* Layout: header / main / footer */

.site-header {
    position: relative;
    z-index: 2;
    padding: 0.4rem 1.4em;
}

.site-header__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}


.site-brand__icon {
    font-size: 1.2rem;
}

/* --- Cosmic Title --- */
.site-brand__text {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 0.03em;

    /* Let glow */
    text-shadow: 0 0 12px rgba(255, 216, 139, 0.35),
                 0 0 22px rgba(206, 129, 255, 0.25);
    transition: text-shadow 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.site-brand__text:hover {
    color: var(--accent);
    text-shadow: 
        0 0 14px rgba(255, 216, 139, 0.6),
        0 0 26px rgba(206, 129, 255, 0.5),
        0 0 40px rgba(88, 233, 255, 0.4);
    transform: translateY(-1px);
}

.site-brand__tagline {
    font-size: 0.78rem;
    opacity: 0.8;
}

.site-nav .nav-link {
    font-size: 0.84rem;
    text-decoration: none;
    color: var(--accent);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 216, 139, 0.6);
    background: rgba(5, 3, 18, 0.65);
    backdrop-filter: blur(10px);
    transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.site-nav .nav-link:hover {
    background: rgba(255, 216, 139, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.site-main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 0rem;;
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 0.8rem 1.6rem 1.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.8;
}

/* Kortet */

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--card-border);
    padding: 1.9rem 1.7rem 1.5rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.card__glow {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 10% 0, var(--color-nebula-2) 0, transparent 55%),
        radial-gradient(circle at 90% 100%, var(--color-nebula-3) 0, transparent 55%);
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1.1rem;
}

.card__badge {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    color: var(--accent);
    background: rgba(6, 2, 20, 0.7);
}

.card__id {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card__title {
    position: relative;
    font-size: 1.45rem;
    margin: 0 0 1.1rem;
    font-weight: 650;
}

/* lille “katteøre”-accent på titel */
.card__title::before,
.card__title::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 4px 4px 0 4px;
    border: 1px solid rgba(255, 245, 255, 0.5);
    top: -0.55rem;
}
.card__title::before {
    left: 0.1rem;
    transform: rotate(-16deg);
}
.card__title::after {
    left: 0.9rem;
    transform: rotate(-36deg);
}

.card__image {
    position: relative;
    margin: 0 0 1.1rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.card__section {
    position: relative;
    margin-bottom: 1rem;
}

.card__section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.card__description {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.card__question {
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.4rem;
    margin: 0.1rem 0 0.5rem;
}

.card__question::before {
    content: "❓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 1.1rem;
}

/* Footer */

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.3rem;
    flex-wrap: wrap;
}

.card__footer-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.9;
}

.card__footer-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 216, 139, 0.85);
    background: rgba(10, 5, 28, 0.9);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.btn__icon {
    font-size: 0.95rem;
}

.btn:hover {
    background: rgba(255, 216, 139, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.btn--ghost {
    border-color: rgba(255, 245, 255, 0.5);
    color: var(--text-main);
    background: rgba(6, 4, 22, 0.8);
}

/* Responsive */

@media (max-width: 640px) {

    .site-main {
        padding: 1.8rem 1rem 1.6rem;
    }

    .card {
        padding: 1.6rem 1.3rem 1.3rem;
        border-radius: 22px;
    }

    .card__title {
        font-size: 1.25rem;
    }

    .card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        display: none;
    }
}


/* Landing page */

.landing {
    position: relative;
    z-index: 1;
    padding: 3rem 1.6rem 2.4rem;
    display: flex;
    justify-content: center;
}

.landing__inner {
    max-width: 720px;
}

.landing__intro {
    background: rgba(8, 4, 28, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(255, 245, 255, 0.5);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
    padding: 2.1rem 1.8rem 1.8rem;
    backdrop-filter: blur(16px);
}

.landing__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
}

.landing__title {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.landing__title span {
    color: var(--accent);
}

.landing__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0 0 0.75rem;
}

.landing__list {
    margin: 0.6rem 0 1.1rem;
    padding-left: 1.1rem;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-main);
}

.landing__list li {
    margin-bottom: 0.3rem;
}

.landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.4rem 0 0.6rem;
}

.landing__hint {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0;
}

/* primary button variant for landing */
.btn--primary {
    border-color: rgba(255, 216, 139, 0.9);
    color: var(--accent);
    background: rgba(12, 6, 40, 0.95);
}
.btn--primary:hover {
    background: rgba(255, 216, 139, 0.18);
}

@media (max-width: 640px) {
    .landing {
        padding: 2.1rem 1.2rem 1.8rem;
    }
    .landing__intro {
        padding: 1.7rem 1.3rem 1.5rem;
        border-radius: 18px;
    }
}

/* Card wrapper stays centered */
.card-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card--with-background {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 26px 60px rgba(0,0,0,0.85);
    background: #000;
}


/* Only enforce 2:3 ratio on larger screens */
@media (min-width: 768px) {
    .card--with-background {
        aspect-ratio: 2 / 3;
    }
}

@media (max-width: 767px) {
    .card--with-background {
        aspect-ratio: auto;
        height: auto;
    }
}

/* Background image layer */
.card-bg {
    position: absolute;
    inset: 0;
    background-image: url("/images/backgrounds/kitty-bg-string.png"); /* <-- replace with your image */
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(1.2) blur(0px);
    z-index: 1;
}

/* Content layer */
.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.6rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Make it responsive for small screens */
@media (max-width: 640px) {
    .card-content {
        padding: 1.4rem 1.1rem;
    }
    .card--with-background {
        border-radius: 18px;
    }
}

/* --- Universal Link Styling --- */
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: 
        color 0.25s ease,
        text-shadow 0.25s ease,
        filter 0.25s ease;
    
    /* subtle base glow */
    text-shadow: 0 0 6px rgba(255, 216, 139, 0.4);
}

/* Hover: full cosmic sparkle */
a:hover {
    color: #ffe7b0; /* brighter */
    text-shadow:
        0 0 8px rgba(255, 216, 139, 0.8),
        0 0 14px rgba(206, 129, 255, 0.6),
        0 0 22px rgba(88, 233, 255, 0.5);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}
