:root {
    --paper: #F4EFE6;
    --ink: #1A1A1A;
    --ink-quiet: rgba(26, 26, 26, 0.55);
    --hairline: rgba(26, 26, 26, 0.30);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Instrument Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 96px 32px 0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 0 96px;
}

/* Floating pill nav — fixed at top, two translucent cream pills with
   a hairline border. Title pill (icon + name) on the left, nav pill
   on the right. Wraps on small viewports; nav pill hides on phones. */
header.site {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 20;
    margin: 0;
    padding: 0;
    max-width: none;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

header.site .site-title,
header.site .site-nav {
    background: rgba(244, 239, 230, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    padding: 9px 16px;
    pointer-events: auto;
}

header.site .site-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

header.site .site-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: block;
    flex: none;
}

header.site .site-title a {
    color: var(--ink);
    text-decoration: none;
}

header.site .site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger toggle — hidden on desktop, visible at <=720px */
header.site .site-nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink);
    border-radius: 3px;
    padding: 0;
}
header.site .site-nav-toggle:hover { background: rgba(26, 26, 26, 0.08); }
header.site .site-nav-toggle:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
header.site .site-nav-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}
header.site .site-nav-toggle .icon-close { display: none; }
header.site .site-nav-toggle[aria-expanded="true"] .icon-list { display: none; }
header.site .site-nav-toggle[aria-expanded="true"] .icon-close { display: block; }

header.site .site-nav-menu {
    display: flex;
    gap: 18px;
}

header.site .site-nav a {
    color: var(--ink-quiet);
    text-decoration: none;
    transition: color 120ms ease;
}

header.site .site-nav a:hover,
header.site .site-nav a[aria-current="page"] {
    color: var(--ink);
}

footer.site {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0 48px;
    border-top: 1px solid var(--hairline);
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-quiet);
    display: flex;
    justify-content: space-between;
}

footer.site a {
    color: var(--ink-quiet);
    text-decoration: none;
}

footer.site a:hover {
    color: var(--ink);
}

h1 {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

h2 {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 56px;
    margin-bottom: 16px;
    color: var(--ink);
}

h2:first-of-type {
    margin-top: 48px;
}

p {
    margin-bottom: 18px;
    max-width: 64ch;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--hairline);
    transition: text-decoration-color 120ms ease;
}

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

.lede {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 32px;
    max-width: 56ch;
}

.tagline {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-quiet);
    margin-bottom: 32px;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 56px 0;
}

ul {
    margin-bottom: 18px;
    padding-left: 22px;
}

li {
    margin-bottom: 6px;
    max-width: 64ch;
}

.meta {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    color: var(--ink-quiet);
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.screenshot {
    margin: 40px 0 56px;
    width: 100%;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    /* On mobile the nav pill collapses into a hamburger that
       expands a vertical drawer below. */
    header.site .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px;
    }
    header.site .site-nav-toggle {
        display: flex;
        align-self: flex-end;
        width: 36px;
        height: 36px;
    }
    header.site .site-nav-menu {
        display: none;
        flex-direction: column;
        gap: 4px;
        margin-top: 4px;
        padding: 8px 12px 4px;
        border-top: 1px solid var(--hairline);
        text-align: right;
    }
    header.site .site-nav[data-open="true"] .site-nav-menu {
        display: flex;
    }
    header.site .site-nav-menu a {
        padding: 5px 0;
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {
    body { padding: 80px 20px 0; }
    main { padding: 24px 0 64px; }
    header.site { top: 16px; left: 16px; right: 16px; }
    header.site .site-title { padding: 8px 12px; }
    header.site .site-icon { width: 20px; height: 20px; }
    h2 { margin-top: 40px; }
}
