/* CapeLookout Slate v0.1.0 — intentionally lean. */
:root {
    --cl-slate-bg: #061019;
    --cl-slate-bg-2: #0b1724;
    --cl-slate-surface: rgba(12, 30, 46, 0.82);
    --cl-slate-surface-strong: rgba(14, 34, 52, 0.94);
    --cl-slate-line: rgba(159, 229, 255, 0.18);
    --cl-slate-line-strong: rgba(159, 229, 255, 0.34);
    --cl-slate-text: #e9f7ff;
    --cl-slate-muted: rgba(233, 247, 255, 0.68);
    --cl-slate-dim: rgba(233, 247, 255, 0.48);
    --cl-slate-cyan: #68e8ff;
    --cl-slate-gold: #ffd36a;
    --cl-slate-radius: 24px;
    --cl-slate-radius-sm: 14px;
    --cl-slate-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --cl-turnscrew-size: 44px;
    --cl-content-width: 760px;
    --cl-wide-width: 1180px;
    color-scheme: dark;
}

html {
    box-sizing: border-box;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body.cl-slate {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 14% 0%, rgba(104, 232, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 86% 14%, rgba(255, 211, 106, 0.1), transparent 30rem),
        linear-gradient(180deg, var(--cl-slate-bg-2), var(--cl-slate-bg));
    color: var(--cl-slate-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: clip;
}

body.cl-slate a {
    color: var(--cl-slate-cyan);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

body.cl-slate a:hover {
    color: #ffffff;
}

body.cl-slate img,
body.cl-slate svg,
body.cl-slate video {
    max-width: 100%;
    height: auto;
}

body.cl-slate button,
body.cl-slate input,
body.cl-slate select,
body.cl-slate textarea {
    font: inherit;
}

body.cl-slate :focus-visible {
    outline: 2px solid var(--cl-slate-cyan);
    outline-offset: 3px;
}

.cl-site {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.cl-site--blank {
    display: block;
}

.cl-site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--cl-slate-line);
    background: rgba(5, 14, 22, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

.cl-site-header__inner,
.cl-site-footer__inner {
    width: min(calc(100% - 24px), var(--cl-wide-width));
    margin-inline: auto;
}

.cl-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.cl-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--cl-slate-text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cl-site-brand__mark {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(3, 10px);
    gap: 4px;
    width: 38px;
    height: 38px;
    place-content: center;
    border: 1px solid var(--cl-slate-line-strong);
    border-radius: 999px;
    background: radial-gradient(circle at 50% 25%, rgba(104, 232, 255, 0.26), rgba(104, 232, 255, 0.04));
    box-shadow: inset 0 0 22px rgba(104, 232, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cl-site-brand__mark span {
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border: 1px solid rgba(104, 232, 255, 0.9);
    background: rgba(104, 232, 255, 0.12);
    box-shadow: 0 0 12px rgba(104, 232, 255, 0.48);
}

.cl-site-brand__text {
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.cl-site-nav__list,
.cl-site-footer__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl-site-nav a,
.cl-site-footer a {
    color: var(--cl-slate-muted);
    text-decoration: none;
}

.cl-site-nav a:hover,
.cl-site-footer a:hover {
    color: var(--cl-slate-text);
}

.cl-site-main {
    flex: 1 0 auto;
    width: min(calc(100% - 24px), var(--cl-wide-width));
    margin-inline: auto;
    padding-block: clamp(28px, 5vw, 72px);
}

.cl-site-main--blank {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cl-entry {
    width: min(100%, var(--cl-content-width));
    margin-inline: auto;
}

.cl-entry--front,
.cl-entry--town,
.cl-entry--blank {
    width: 100%;
    max-width: none;
}

.cl-entry__header,
.cl-archive-header {
    margin-bottom: clamp(18px, 3vw, 34px);
}

.cl-entry__title,
.cl-archive-title {
    margin: 0;
    color: var(--cl-slate-text);
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.cl-entry__content > *:first-child {
    margin-top: 0;
}

.cl-entry__content > *:last-child {
    margin-bottom: 0;
}

.cl-entry__content p,
.cl-entry__content li {
    color: rgba(233, 247, 255, 0.82);
}

.cl-entry__content :where(h1, h2, h3, h4, h5, h6) {
    color: var(--cl-slate-text);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.cl-entry__content :where(.alignwide) {
    max-width: var(--cl-wide-width);
    margin-inline: calc((var(--cl-content-width) - var(--cl-wide-width)) / 2);
}

.cl-entry__content :where(.alignfull) {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cl-site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--cl-slate-line);
    color: var(--cl-slate-dim);
    background: rgba(5, 14, 22, 0.42);
}

.cl-site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 22px;
    font-size: 0.92rem;
}

:where(.cl-turnscrew, .cl-sheet-close, .cl-dialog-close, .cl-modal-close, [data-cl-turnscrew]) {
    inline-size: var(--cl-turnscrew-size);
    block-size: var(--cl-turnscrew-size);
    min-inline-size: var(--cl-turnscrew-size);
    min-block-size: var(--cl-turnscrew-size);
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(159, 229, 255, 0.28);
    background: radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.16), rgba(104, 232, 255, 0.08) 42%, rgba(0, 0, 0, 0.16));
    color: var(--cl-slate-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

:where(.cl-turnscrew, .cl-sheet-close, .cl-dialog-close, .cl-modal-close, [data-cl-turnscrew]):hover {
    transform: rotate(18deg) scale(1.03);
    border-color: rgba(104, 232, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 22px rgba(104, 232, 255, 0.22), 0 18px 42px rgba(0, 0, 0, 0.32);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    white-space: normal;
    border-radius: 999px;
    background: #fff;
    color: #061019;
    text-decoration: none;
}

@media (max-width: 720px) {
    .cl-site-header__inner {
        min-height: 64px;
    }

    .cl-site-brand__text {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cl-site-nav {
        display: none;
    }

    .cl-site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cl-entry__content :where(.alignwide) {
        margin-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
