:root {
    color-scheme: light dark;
    --page: #f4f1ea;
    --text: #1d1b1a;
    --muted-text: #746e65;
    --accent: #236da8;
    --rule: #c7c0b6;
    --image-rule: #928c83;
    --content-width: 64rem;
    --page-gutter: clamp(1.25rem, 5.35vw, 3.125rem);
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
        Arial, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;
    --serif-display: Georgia, "Times New Roman", Times, serif;
    font-family: var(--serif);
    line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #191918;
        --text: #d7cfc3;
        --muted-text: #958f86;
        --accent: #5f95c5;
        --rule: #45433f;
        --image-rule: #66625b;
    }
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--page);
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    min-width: 20rem;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-color: var(--rule);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0.25rem;
}

h1,
h2,
p,
figure {
    margin-top: 0;
}

figure {
    margin-inline: 0;
}

h1,
h2,
.brand-name,
.footer-brand {
    font-family: var(--serif-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    transform: scaleX(0.9);
    transform-origin: left;
}

h1,
h2 {
    line-height: 1.02;
    text-wrap: balance;
}

h1 {
    max-width: 11ch;
    margin-bottom: 1.1rem;
    font-size: clamp(3.35rem, 9vw, 5.25rem);
}

h2 {
    max-width: 18ch;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.site-header,
main,
.site-footer {
    width: min(calc(100% - (2 * var(--page-gutter))), var(--content-width));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.2rem;
    border-bottom: 1px solid var(--rule);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

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

.brand-descriptor {
    display: none;
    position: relative;
    top: 0.14rem;
    color: var(--muted-text);
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1;
}

.brand-mark {
    width: 2.25rem;
}

.brand-name {
    font-size: 1.35rem;
    line-height: 1;
}

.site-navigation {
    display: flex;
    align-items: baseline;
    gap: 1.3rem;
    margin-top: 0;
    position: relative;
    top: 0.15rem;
    color: var(--muted-text);
    font-size: 0.82rem;
    line-height: 1;
}

.hero {
    padding-block: 2.35rem;
}

.hero-summary {
    max-width: 38rem;
    margin-bottom: 1.75rem;
    font-size: clamp(1rem, 2vw, 1.05rem);
    line-height: 1.45;
}

.hero-context {
    max-width: 30rem;
    margin-top: 3rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--rule);
    color: var(--muted-text);
    font-size: 0.78rem;
    line-height: 1.55;
}

.hero-context p:last-child {
    margin-bottom: 0;
    color: var(--accent);
}

.app-store-badge {
    width: 9.756rem;
    height: 2.5rem;
}

.product-proof {
    margin-bottom: clamp(3.25rem, 7vw, 4.5rem);
}

.product-proof img {
    width: 100%;
    border: 1px solid var(--image-rule);
    border-radius: 1rem;
}

.chronology-entry {
    padding-block: 2.5rem;
    border-top: 1px solid var(--rule);
}

.entry-index {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.entry-index::after {
    height: 1px;
    background: var(--rule);
    content: "";
    flex: 1;
}

.timeline-events {
    display: none;
}

.entry-summary {
    max-width: 30rem;
    margin-bottom: 0;
    color: var(--muted-text);
    font-family: var(--serif-display);
    font-size: 0.95rem;
    line-height: 1.45;
    font-style: italic;
    text-wrap: balance;
}

.entry-body {
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.65;
}

.entry-body p:last-child {
    margin-bottom: 0;
}

.closing-proof {
    margin-top: 2.5rem;
    padding-block: 1.35rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.closing-proof h2 {
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.closing-proof p {
    max-width: 42rem;
    margin-bottom: 1.25rem;
    color: var(--muted-text);
    font-size: 0.72rem;
    line-height: 1.5;
}

.privacy-proof,
.built-proof {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.85rem;
}

.proof-icon {
    width: 0.9rem;
    margin-top: 0.05rem;
}

.built-proof {
    margin-top: 1.25rem;
}

.store-cta {
    display: inline-flex;
    width: min(100%, 18.75rem);
    align-items: center;
    gap: 1.5rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    padding-block: 0.5rem 0.6rem;
    color: var(--muted-text);
    font-size: 0.72rem;
}

.footer-brand-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-brand {
    color: var(--text);
    font-weight: 600;
}

.footer-tagline {
    color: var(--muted-text);
}

.footer-copyright {
    color: var(--muted-text);
    margin-left: auto;
}

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

.footer-mark {
    width: 1.35rem;
}

@media (max-width: 55.999rem) {
    :root {
        --page-gutter: 1.75rem;
    }

    .site-header {
        padding-block: 0.7rem;
    }

    .brand-mark {
        width: 1.5rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }


    .hero {
        min-height: 14.55rem;
        padding-block: 1.5rem 0;
    }

    .hero h1 {
        max-width: none;
        margin-bottom: 1rem;
        font-size: 2.4rem;
        line-height: 1.02;
    }

    .hero-summary {
        max-width: none;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .hero-message > a {
        display: inline-block;
    }

    .hero-context {
        margin-bottom: 2rem;
    }

    .product-proof {
        margin-bottom: 0;
    }

    .chronology {
        position: relative;
        padding-left: 3.75rem;
    }

    .chronology::before {
        position: absolute;
        top: 1.7rem;
        bottom: 2.7rem;
        left: 1.2rem;
        width: 1px;
        background: var(--rule);
        content: "";
    }

    .chronology-entry {
        position: relative;
        padding-block: 1.5rem;
        border-top: 0;
    }

    .chronology-entry::before {
        position: absolute;
        top: 1.45rem;
        left: -2.55rem;
        width: 0.75rem;
        height: 0.75rem;
        border: 1px solid var(--muted-text);
        border-radius: 50%;
        background: var(--page);
        content: "";
        transform: translateX(-50%);
    }

    .entry-index {
        margin-bottom: 1rem;
    }

    .chronology h2 {
        margin-bottom: 0.65rem;
        font-size: 1.75rem;
        line-height: 1.04;
    }

    .entry-summary {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }

    .entry-body {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    .entry-body p {
        margin-bottom: 0.65rem;
    }

    .closing-proof-inner > .store-cta {
        margin-top: 1.25rem;
    }

    .closing-proof {
        margin-top: 0;
        padding-block: 1.4rem;
    }

    .closing-proof p {
        margin-bottom: 0;
    }
}

@media (min-width: 56rem) {
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-navigation {
        margin-top: 0;
    }

    .brand-descriptor {
        display: inline;
    }

    .hero {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(10.5rem, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        align-items: center;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(3.75rem, 6.6vw, 4rem);
        white-space: nowrap;
    }

    .hero-message > a {
        display: inline-block;
    }

    .hero-context {
        margin-top: 0;
        padding-left: clamp(1.5rem, 3vw, 2.5rem);
    }

    .product-proof {
        margin-bottom: 4rem;
    }

    .product-proof img {
        height: 38.25rem;
    }

    .chronology {
        position: relative;
    }

    .chronology::before {
        position: absolute;
        top: 1.3125rem;
        bottom: 1rem;
        left: 50%;
        width: 1px;
        background: var(--rule);
        content: "";
        transform: translateX(-50%);
    }

    .timeline-events {
        position: absolute;
        z-index: 1;
        top: 1.3125rem;
        bottom: 1rem;
        left: 50%;
        display: block;
        width: 1px;
    }

    .timeline-event {
        position: absolute;
        left: 0;
        width: 8.3rem;
        padding-right: 3.1rem;
        color: var(--muted-text);
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            monospace;
        font-size: 0.66rem;
        line-height: 2;
        text-align: right;
        text-transform: uppercase;
        transform: translate(-100%, -50%);
    }

    .timeline-event::after {
        position: absolute;
        top: 50%;
        right: -0.34rem;
        width: 0.65rem;
        height: 0.65rem;
        border: 1px solid var(--muted-text);
        border-radius: 50%;
        background: var(--page);
        content: "";
        transform: translateY(-50%);
    }

    .timeline-event:nth-child(1) {
        top: 0;
    }

    .timeline-event:nth-child(2) {
        top: 25%;
    }

    .timeline-event:nth-child(3) {
        top: 50%;
    }

    .timeline-event:nth-child(4) {
        top: 75%;
    }

    .timeline-end-dot {
        position: absolute;
        top: 100%;
        left: 0;
        width: 0.65rem;
        height: 0.65rem;
        border: 1px solid var(--muted-text);
        border-radius: 50%;
        background: var(--page);
        transform: translate(-50%, -50%);
    }

    .timeline-date,
    .timeline-kind {
        display: block;
    }

    .timeline-date strong {
        color: var(--text);
    }

    .timeline-date span {
        margin-left: 0.35rem;
    }

    .chronology-entry {
        position: relative;
        display: grid;
        grid-template-columns:
            calc(50% - 12.99rem) 17.68rem minmax(0, 1fr);
        min-height: 11.5rem;
        padding-block: 1rem;
        border-top: 0;
    }

    .chronology-entry > header {
        grid-column: 1;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        margin-block: -1rem;
        padding-right: 0;
    }

    .entry-heading-group {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: center;
    }

    .entry-body {
        grid-column: 3;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-block: -1rem;
        padding-left: 0;
        border-top: 1px solid var(--rule);
    }

    .chronology-entry:first-of-type .entry-body {
        border-top-color: transparent;
    }

    .chronology h2 {
        margin-bottom: 0.65rem;
        font-size: 1.44rem;
        line-height: 1.04;
    }

    .chronology .entry-index {
        margin-bottom: 0;
    }

    .closing-proof-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 0;
        align-items: center;
        max-width: 44rem;
        margin-inline: auto;
    }

    .closing-proof h2 {
        font-size: 1.05rem;
    }

    .closing-proof p {
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    .privacy-proof,
    .built-proof {
        min-height: 3.5rem;
        padding-right: 1.5rem;
    }

    .built-proof {
        margin-top: 0;
        padding-left: 1.5rem;
    }

    .closing-proof-inner > .store-cta {
        margin-left: 1.5rem;
    }

    .store-cta .app-store-badge {
        width: 11rem;
        height: auto;
    }

    .site-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
    }

}

@media (prefers-color-scheme: dark) {
    .brand-mark {
        filter: invert(1) hue-rotate(180deg);
    }

    .proof-icon,
    .footer-mark {
        filter: invert(1);
    }
}

@media (min-width: 70rem) {
    .hero-message {
        position: relative;
    }

    .hero-message > a {
        position: absolute;
        top: 1.25rem;
        right: 0;
    }
}
