:root {
    color-scheme: dark;
}

@font-face {
    font-family: 'ShareTechMono';
    src: url('/assets/fonts/ShareTechMono-Regular.ttf') format('truetype');
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'ShareTechMono', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #0b1c24, #020608);
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px;
}

.lab-shell {
    width: min(720px, 100%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: clamp(24px, 6vw, 48px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.lab-header {
    text-align: center;
    margin-bottom: clamp(18px, 5vw, 36px);
}

.lab-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffcc00;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.lab-title {
    margin: 0 0 8px 0;
    font-size: clamp(28px, 6vw, 40px);
}

.lab-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(15px, 3vw, 18px);
}

.lab-card {
    background: rgba(10, 20, 28, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    text-align: center;
}

.lab-card h2 {
    margin: 0 0 12px 0;
    color: #ff9100;
}

.lab-card p {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.8);
}

.lab-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    background: #ffcc00;
    box-shadow: 0 8px 18px rgba(255, 204, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lab-link:hover,
.lab-link:focus-visible {
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.45);
}

.experiment-wrapper {
    width: min(1100px, 100%);
    margin: 24px auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: clamp(26px, 7vw, 60px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

.experiment-header {
    text-align: center;
    margin-bottom: clamp(24px, 6vw, 44px);
}

.experiment-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #ffcc00;
    margin-bottom: 10px;
}

.experiment-header h1 {
    margin: 0 0 12px 0;
    font-size: clamp(30px, 7vw, 48px);
}

.experiment-summary {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(15px, 2.8vw, 18px);
    max-width: 540px;
}

.experiment-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 16, 24, 0.7);
    margin-bottom: clamp(24px, 6vw, 40px);
}

.meta-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.experiment-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experiment-content h2 {
    color: #ff9100;
    margin-bottom: 2px;
    font-size: 1.55rem;
}

.experiment-content h3 {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffcc00;
    margin-bottom: 6px;
}

.experiment-content p,
.experiment-content li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1.1rem;
}

.experiment-content ul {
    padding-left: 20px;
    margin: 0;
    list-style: disc;
}

.back-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(28px, 6vw, 44px);
}

.site-footer {
    margin: 32px auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.return-home {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    display: inline-flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.return-home img {
    width: 40px;
    height: 40px;
}

.return-home:focus-visible {
    outline: 2px solid #ff9100;
    outline-offset: 4px;
}

.experiment-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    display: flex;
    gap: 12px;
}

.experiment-nav .return-home {
    position: static;
}
