@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    /* Forcing Dark Theme as primary */
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --bg-footer: #0a0f1d;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #32aadd;
    --accent-hover: #2087a8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.25);

    /* Layout */
    --container-width: 960px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: var(--bg-footer);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-hero {
    height: 60px; /* Increased size */
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

article {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px var(--shadow);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
}

h1 { font-size: 2.25rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 4px; }
h3 { font-size: 1.1rem; margin-top: 2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* Monospace highlighting for 'Lab' feel */
code, .tech-term {
    font-family: var(--font-mono);
    background: var(--bg-page);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Footer */
footer {
    background: var(--bg-footer);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    height: 160px;
    resize: vertical;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s;
}

button:hover {
    background: var(--accent-hover);
}

/* Labs Specific Layout Helpers */
.lab-card {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.lab-media {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-page);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.lab-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lab-image.yacht {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.beta-caveat {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    article { padding: 2rem; }
    .footer-content { flex-direction: column; }
    .lab-card { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 1.5rem; text-align: center; }
}
