:root {
    --bg: #050608;
    --bg-alt: #10131a;
    --accent: #e0c067;
    --accent-soft: #f2e3b0;
    --text: #f5f5f5;
    --muted: #a0a5b1;
    --border: #2a2f3a;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #121524 0, #050608 55%);
    color: var(--text);
}

/* Layout */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
    background: rgba(5, 6, 8, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a:hover::after {
    width: 100%;
}

.site-main {
    padding: 1.5rem 0 3rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
    padding-top: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.hero-content p {
    color: var(--muted);
    max-width: 32rem;
}

.hero-side {
    display: flex;
    justify-content: center;
}

.hero-clock {
    background: radial-gradient(circle at top, #1a1f2b 0, #07090c 60%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.clock-face {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin: 0 auto;
    position: relative;
    background: radial-gradient(circle, #151826 0, #050608 70%);
}

.clock-face::before {
    content: "";
    position: absolute;
    inset: 10%;
    border: 1px dashed rgba(224, 192, 103, 0.4);
    border-radius: 50%;
}

.clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    transform: translateX(-50%) translateY(-100%);
    border-radius: 999px;
}

.clock-hand.hour {
    width: 4px;
    height: 55px;
    background: var(--accent);
}

.clock-hand.minute {
    width: 3px;
    height: 75px;
    background: var(--accent-soft);
}

.clock-hand.second {
    width: 2px;
    height: 90px;
    background: #ff4d4d;
}

.clock-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.grid-item h2 {
    margin-bottom: 0.5rem;
}

.grid-item p {
    color: var(--muted);
}

.callout {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--accent-soft);
    background: radial-gradient(circle at top left, rgba(224, 192, 103, 0.08), transparent 60%);
    text-align: center;
}

/* Generic sections */

.page-intro {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

.page-intro h1 {
    margin-bottom: 0.25rem;
}

.page-intro p {
    color: var(--muted);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.timeline {
    list-style: none;
    padding-left: 0;
    border-left: 1px solid var(--border);
    margin-left: 0.5rem;
}

.timeline li {
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    position: relative;
    color: var(--muted);
}

.timeline li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: -5px;
    top: 0.35rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.card {
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.25rem;
    background: linear-gradient(to bottom right, rgba(16, 19, 26, 0.96), rgba(7, 9, 12, 0.98));
}

.card p {
    color: var(--muted);
}

.card ul {
    padding-left: 1.1rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.puzzle-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.puzzle-card {
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.25rem;
    background: radial-gradient(circle at top, rgba(9, 13, 22, 0.95), rgba(5, 6, 8, 0.98));
}

.puzzle-output {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #050608;
    border: 1px dashed var(--border);
    font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.45rem;
    border: 1px solid var(--border);
    background: #050608;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid var(--accent);
    border-color: var(--accent);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 1.75rem;
    background: #050608;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
}

.footer-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-copy {
    margin-top: 0.25rem;
}

/* Buttons */

.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.9rem;
    margin-right: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #17130b;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(242, 227, 176, 0.08);
}

/* Utilities */

.small-note {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Responsive */

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .two-column,
    .puzzle-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* subtle drift log: hex=69735f6e6f745f */
