:root {
    --paper: #f6f3ec;
    --ink: #1d1b18;
    --muted: #6d675d;
    --rule: #dcd6ca;
    --accent: #1d1b18;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1a1916;
        --ink: #ece7dd;
        --muted: #9d968a;
        --rule: #36332d;
        --accent: #ece7dd;
    }
}

.app-aerotally { --accent: #c9434f; }
.app-airss { --accent: #3d8fcb; }
.app-tts { --accent: #2493ab; }
.app-st { --accent: #147482; }

@media (prefers-color-scheme: dark) {
    .app-aerotally { --accent: #ee7b85; }
    .app-airss { --accent: #7cbcec; }
    .app-tts { --accent: #6cc5d8; }
    .app-st { --accent: #4fbcc7; }
}

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

html {
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 auto;
    max-width: 40rem;
    padding: 4.5rem 1.25rem 3rem;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin: 2.75rem 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

/* Header */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3.5rem;
    font-size: 0.9375rem;
}

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

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

.site-header .name {
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--ink);
}

.lede {
    font-family: var(--serif);
    font-size: 1.375rem;
    line-height: 1.4;
    color: var(--muted);
    max-width: 30rem;
}

/* App list (home) */

.app-list {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.app-list li {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.app-list .title {
    color: inherit;
    text-decoration: none;
}

.app-list .icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 22.5%;
}

.app-list .title {
    font-family: var(--serif);
    font-size: 1.375rem;
    line-height: 1.2;
}

.app-list .wordmark {
    height: 1.35rem;
    width: auto;
    margin: 0.15rem 0 0.2rem;
}

.app-list .tagline {
    display: block;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-top: 0.15rem;
}

.app-list .status {
    font-size: 0.875rem;
    color: var(--muted);
    white-space: nowrap;
}

.app-list .title:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* App page hero */

.app-hero {
    padding-top: 0.5rem;
}

.app-hero .icon {
    width: 6rem;
    height: 6rem;
    border-radius: 22.5%;
    margin-bottom: 1.75rem;
}

.app-hero .wordmark {
    height: 3rem;
    width: auto;
    margin: 0 0 1.25rem;
}

.app-hero .lede {
    margin-bottom: 2rem;
}

.badge img {
    height: 2.75rem;
    width: auto;
}

.soon {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--muted);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

/* Legal pages */

.prose h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.prose h2 {
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
}

.prose h2::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--accent);
    margin: -1.75rem 0 1.625rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose li::marker {
    color: var(--muted);
}

.prose b,
.prose strong {
    font-weight: 600;
}

/* Footer */

.site-footer {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0 0 0.5rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.site-footer nav a {
    color: var(--muted);
}

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

@media (max-width: 30rem) {
    body {
        padding-top: 2.5rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2.125rem;
    }

    .site-header {
        margin-bottom: 2.5rem;
    }

    .app-list li {
        grid-template-columns: 3rem 1fr;
        gap: 1rem;
    }

    .app-list .icon {
        width: 3rem;
        height: 3rem;
    }

    .app-list .status {
        grid-column: 2;
    }
}

.app-list a.status {
    color: var(--ink);
    text-decoration: none;
}

.app-list a.status:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .wordmark {
        filter: brightness(1.6) saturate(0.85);
    }
}
