/* Shared styling for the three pages App Review requires a URL for.
   No fonts, scripts or images are fetched — the page loads with nothing but this file,
   which is the same claim the app itself makes. */

:root {
    color-scheme: light dark;
    --ink: #241c14;
    --ink-soft: #5c4f42;
    --paper: #fbf7f0;
    --panel: #ffffff;
    --rule: #e6ddcf;
    --accent: #a8552b;
    --accent-soft: #f3e5d8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f0e8dc;
        --ink-soft: #a99b8a;
        --paper: #17120d;
        --panel: #201911;
        --rule: #362b1f;
        --accent: #e08b53;
        --accent-soft: #2b2015;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 1.5rem 6rem;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 44rem; margin: 0 auto; }

header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 0 0;
}

.mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border-radius: 22%;
    background: linear-gradient(160deg, #d99a5c, #a8552b);
    position: relative;
}

/* The cream archive box from the app icon, drawn rather than fetched. */
.mark::after {
    content: "";
    position: absolute;
    inset: 30% 22% 26%;
    background: #f6ecdc;
    border-radius: 2px;
    box-shadow: inset 0 0.28rem 0 rgba(168, 85, 43, 0.35);
}

.wordmark { font-weight: 600; letter-spacing: -0.01em; }
.wordmark span { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }

nav {
    margin: 1.75rem 0 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent); }

h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 2.5rem 0 0.75rem;
}

h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 2.75rem 0 0.6rem;
}

h3 { font-size: 1rem; margin: 1.75rem 0 0.4rem; }

.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2rem; }

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

ul { padding-left: 1.15rem; }
li { margin: 0.4rem 0; }

.panel {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 1.25rem 1.4rem;
    margin: 1.75rem 0;
}

.panel h2, .panel h3 { margin-top: 0; }

.claim {
    background: var(--accent-soft);
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 1.25rem 1.4rem;
    margin: 2rem 0;
}

code {
    font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--accent-soft);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

pre {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    overflow-x: auto;
}

pre code { background: none; padding: 0; }

table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

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

footer a { color: var(--ink-soft); }
