:root {
    --bg: #ffffff;
    --bg-code: #f6f8fa;
    --border: #d8dee4;
    --text: #1f2328;
    --text-muted: #59636e;
    --accent-pale: #7c3aed;
    --accent: #7c3aed;
    --accent-extra: #f7a855;
    --radius: 10px;
    --maxw: 960px;
    --serif: "Merriweather", Georgia, "Times New Roman", serif;
    --mono:
        ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas,
        monospace;
    --sans:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica,
        Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
a:hover {
    color: #a855f7;
}

code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.12em 0.4em;
}

pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    text-align: left;
    margin: 0 0 1rem;
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    opacity: 0;
    transition:
        opacity 0.15s,
        color 0.15s;
}
pre:hover .copy-btn {
    opacity: 1;
}
.copy-btn:hover {
    color: var(--text);
}
.copy-btn.copied {
    color: #1a7f37;
    opacity: 1;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
pre[data-label] {
    padding-top: 34px;
}
pre[data-label]::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    pointer-events: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 600;
}
.brand,
.brand:hover {
    text-decoration: none;
}
.brand-mark {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 7px;
    padding: 0.15em 0.45em;
    font-weight: 700;
}
.brand-name {
    letter-spacing: -0.01em;
}
.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.95rem;
}
.nav a {
    color: var(--text-muted);
    text-decoration: none;
}
.nav a:hover {
    color: var(--text);
    text-decoration: none;
}
.nav .nav-gh {
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 5px 12px;
}
.nav .nav-gh:hover {
    border-color: var(--text-muted);
}

/* Hero */
.hero {
    padding: 84px 0 64px;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    font-weight: 800;
}
.accent {
    color: var(--accent);
}
.lede {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}
.lede code {
    font-size: 0.95em;
}

/* Sections */
section {
    padding-top: 24px;
    padding-bottom: 24px;
}
.section-title {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    margin: 32px 0 8px;
}
.section-lede {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 28px;
}

h2 {
    font-weight: 700;
}
h3 {
    font-weight: 650;
}

/* Use-case quotes */
.use-quotes {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.use-quote {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
}
@media (min-width: 760px) {
    .use-quote:nth-child(1) {
        margin-left: 20%;
    }
    .use-quote:nth-child(2) {
        margin-left: 15%;
    }
    .use-quote:nth-child(3) {
        margin-left: 10%;
    }
}
.use-q {
    margin: 0;
    display: inline-block;
    align-self: flex-start;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: white;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
    padding: 0.3em 1.3em;
    transform: skewX(-6deg);
    border-radius: 2px;
}
.use-q span {
    display: inline-block;
    transform: skewX(6deg);
}
.use-quote:nth-child(1) .use-q {
    background: linear-gradient(180deg, #c4b5fd, #a78bfa);
}
.use-quote:nth-child(2) .use-q {
    background: linear-gradient(190deg, #fdba74, #fb923c);
}
.use-quote:nth-child(3) .use-q {
    background: linear-gradient(170deg, #93c5fd, #60a5fa);
}
.use-a {
    margin: 0;
    padding-left: 1.1em;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(to bottom, #555 0%, #666 40%, #444 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Keyboard keys */
kbd {
    font-family: var(--mono);
    font-size: 0.78em;
    font-style: normal;
    background: linear-gradient(to top, #f8f9fa, #e9ecef);
    color: var(--text);
    border: 1px solid #adb5bd;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0.2em 0.6em;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
}

/* Steps */
.step {
    margin-bottom: 28px;
}

/* Footer */
.site-footer {
    margin-top: 48px;
    font-size: 0.92rem;
}
.footer-banner {
    display: block;
    width: 100%;
    max-width: calc(1.5 * var(--maxw));
    margin: 0 auto;
}
.footer-dark {
    background: #161b22;
    box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.55);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 28px;
    padding-bottom: 28px;
    color: #8b949e;
}
.footer-inner p {
    margin: 0;
}
.footer-inner a {
    color: #8b949e;
    text-decoration: underline;
}
.footer-inner a:hover {
    color: #e6edf3;
}
.footer-marble {
    background-image:
        url("marble.jpeg"), linear-gradient(to bottom, #ffffff, #e0dcda);
    background-repeat: repeat-x, no-repeat;
    background-size:
        auto 44%,
        100% 100%;
    background-position:
        center bottom,
        top left;
}
.footer-documents {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: var(--maxw);
    padding: 0 24px;
}

/* Responsive */
@media (max-width: 760px) {
    .nav {
        gap: 14px;
    }
    .nav a:not(.nav-gh) {
        display: none;
    }
    .use-quote:nth-child(2),
    .use-quote:nth-child(3) {
        margin-left: 0;
    }
    .hero {
        padding-top: 56px;
        max-width: 100%;
    }
}
