/* The colours are the Mac app's green palette (mac/swift/Talkenizer/Palettes/green.json, mac/swift/docs/gui/palette.md):
   accent, pane, sidebar, groupBorder, notice and noticeBorder, transcript; light and dark as the app draws them. */
:root {
    --text: #1d1d1f;
    --muted: #6e6e73;
    --background: #ffffff;
    --surface: #f0f0f2;
    --rule: #d8d8dc;
    --accent: #1e8a48;
    --accent-text: #ffffff;
    --card: #eaf7ee;
    --card-border: #b5dec3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f5f5f7;
        --muted: #a1a1a6;
        --background: #121213;
        --surface: #1a1a1c;
        --rule: #3e3e42;
        --accent: #00a040;
        --accent-text: #ffffff;
        --card: #1a3024;
        --card-border: #2f5e43;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--background);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--surface);
}

.site-nav {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav .brand { font-weight: 600; margin-right: auto; }

.site-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.site-footer {
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 14px;
}

.site-footer p {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px;
}

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

.hero { padding: 48px 0 24px; }

.hero h1 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    max-width: 720px;
}

.lead {
    font-size: 21px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 0 24px;
}

.note { color: var(--muted); }

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
}

.button:hover { text-decoration: none; filter: brightness(1.08); }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.features div {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.features h2 { font-size: 19px; margin: 0 0 8px; }
.features p { margin: 0; color: var(--muted); }

.prose { max-width: 720px; }
.prose h1 { font-size: 34px; line-height: 1.15; margin: 24px 0 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 15px; }

@media (max-width: 600px) {
    .hero h1 { font-size: 30px; }
    .lead { font-size: 18px; }
}
