/* IFO site — one stylesheet, no build step, no external fonts.
   Colors track the app's own sky gradient (ios/IFO/UI/Theme.swift). */

:root {
    --bg: #0a1020;
    --bg-raised: #121a2e;
    --ink: #e9eef7;
    --ink-dim: #9aa8c0;
    --accent: #4fd2ff;
    --rule: #223052;
    --width: 46rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0 1.25rem 5rem;
    background: linear-gradient(180deg, #0a1225 0%, #0a1020 45%, #080d18 100%);
    background-attachment: fixed;
    color: var(--ink);
    font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.wrap {
    max-width: var(--width);
    margin: 0 auto;
}

header.site {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2.5rem;
}

header.site .mark {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

header.site nav {
    margin-left: auto;
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 2.75rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

h2:first-of-type {
    border-top: 0;
    padding-top: 0;
}

h3 {
    font-size: 1.02rem;
    margin: 1.75rem 0 0.5rem;
}

p,
li {
    color: var(--ink);
}

.lede {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--ink-dim);
    margin-bottom: 2rem;
}

.updated {
    font-size: 0.9rem;
    color: var(--ink-dim);
    margin-bottom: 2.5rem;
}

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

a:hover {
    color: #8ee4ff;
}

ul {
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.4rem;
}

strong {
    color: #fff;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: var(--bg-raised);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
}

th,
td {
    text-align: left;
    padding: 0.6rem 0.9rem 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

th {
    color: var(--ink-dim);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trademark and licence fine print — present because it has to be, sized so it
   doesn't compete with the copy above it. */
p.fine {
    font-size: 0.85rem;
    color: var(--ink-dim);
}

footer.site {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--ink-dim);
}

footer.site a {
    margin-right: 1.1rem;
}

@media (max-width: 34rem) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.7rem;
    }

    header.site {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
    }

    header.site nav {
        margin-left: 0;
        width: 100%;
    }
}
