/* =========================================================
   chronoloops — site styles
   Tokens, layout, wordmark, buttons, and states
   ======================================================= */

/* ---------- Design tokens (colors, spacing) ---------- */
:root {
    --bg: #0b0d12;
    /* page background (near-black) */
    --fg: #e8e8ef;
    /* primary text */
    --fg-dim: #c2c4cc;
    /* subtle/secondary text */
    --ring: #ffffff44;
    /* ring stroke on animated “oo” */
    --btn: #30744a;
    --btn-hover: #235838;
    --navy: #22549b;
    --purple: #534b9d;
    --accent: #9bb7ff;
    /* focus ring */
    --stroke: rgba(255, 255, 255, .12);
    /* soft borders */
}

/* ---------- Base / reset ---------- */
html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

/* =========================================================
   Header + wordmark
   ======================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 16px 12px;
    text-align: center;
}

/* chronoloops wordmark with animated “oo” */
.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: .04em;
    line-height: 1;
    filter: drop-shadow(0 10px 32px rgba(50, 80, 200, .16));
}

.txt {
    font-size: clamp(44px, 9vw, 92px);
    font-weight: 800;
    text-transform: lowercase;
    color: var(--fg);
}

/* animated “oo” wrappers */
.o-wrap {
    width: clamp(32px, 6.5vw, 64px);
    height: clamp(32px, 6.5vw, 64px);
    display: inline-grid;
    place-items: center;
    margin: 0 .02em;
    transform: translateY(6px);
}

.o {
    width: 100%;
    height: 100%;
}

.ring {
    fill: none;
    stroke: var(--ring);
    stroke-width: 2.2;
}

.dot {
    fill: var(--fg);
}

/* orbit animation for dots */
.orbital {
    transform-origin: 50% 50%;
    animation: orbit 2.6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(155, 183, 255, .45));
}

.orbital.rev {
    animation-direction: reverse;
}

@keyframes orbit {
    to {
        transform: rotate(360deg)
    }
}

/* tagline above the wordmark (e.g., “creations by”) */
.tag-line {
    font-size: clamp(12px, 1.8vw, 16px);
    letter-spacing: .16em;
    color: var(--fg-dim);
    margin: 0 0 6px;
}

/* =========================================================
   Main layout
   ======================================================= */
main {
    display: grid;
    place-items: start center;
    padding: 26px 16px 40px;
}

.box {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

/* vertical button stack */
.links {
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    width: 100%;
}

/* =========================================================
   Buttons
   ======================================================= */

/* Shared styles for both buttons */
.btn,
.cb-btn,
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3em;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--bg);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .02em;
    transition: background .18s ease, transform .12s ease,
        border-color .18s ease, box-shadow .18s ease;
    outline: none;
    max-width: 280px;
    width: 100%;
}

.btn {
    background: var(--btn);
}

.cb-btn {
    background: var(--navy);
}

.sb-btn {
    background: var(--purple);
}

/* Hover */
.btn:hover {
    background: var(--btn-hover);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.cb-btn:hover {
    background: #17427e;
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.sb-btn:hover {
    background: #493a85;
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

/* Active (pressed) */
.btn:active,
.cb-btn:active,
.sb-btn:active {
    transform: translateY(0);
}

/* Keyboard focus */
.btn:focus-visible,
.cb-btn:focus-visible,
sb-btn:focus-visible {
    box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--accent);
    border-color: var(--accent);
}

/* Emphasis for inline strong text (e.g., Play The Celestial Beyonds) */
.btn strong,
.cb-btn strong,
.sb-btn strong {
    font-weight: 700;
    font-style: italic;
}

/* =========================================================
   Footer
   ======================================================= */
.foot {
    margin-top: 18px;
    font-size: 12px;
    color: #9aa0ad;
    opacity: .9;
}