/* Lilt site styles. Colours, spacing, and radii come only from tokens.css
   (the Lilt design system, shared with the app). Nothing here invents a value. */

body {
    background: var(--lilt-surface-100);
    color: var(--lilt-ink);
    font-family:
        "Cabin",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.wrap {
    margin: 0 auto;
    max-width: 42rem;
    padding-left: 16px;
    padding-right: 16px;
}

h1,
h2,
h3,
.wordmark {
    font-family: "Linden Hill", Georgia, serif;
    /* Linden Hill has one weight; the browser's default bold would be a faked one. */
    font-weight: 400;
    line-height: 1.25;
}

/* Sizes are the app's title steps (28, 22) with the page heading a notch above, since Linden
   Hill is small for its size. */
h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.625rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
}

/* Links read as text first: the surrounding text colour with a brand underline,
   and the text itself turns brand on hover. */
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--lilt-brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--lilt-brand);
}

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

.site-header-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--lilt-space-8) var(--lilt-space-24);
    justify-content: space-between;
    padding-bottom: var(--lilt-space-8);
    padding-top: var(--lilt-space-8);
}

.wordmark {
    color: var(--lilt-ink);
    font-size: 1.75rem;
    font-weight: 400;
    text-decoration: none;
}

.wordmark:hover {
    color: var(--lilt-brand);
}

/* The nav sits against the right margin, centred on the wordmark's row. Links are
   bold and plain; only the page being shown is underlined. */
.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lilt-space-8) var(--lilt-space-16);
    justify-content: flex-end;
}

.site-header nav a {
    font-weight: 600;
    text-decoration: none;
}

.site-header nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--lilt-brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
}

main {
    padding-bottom: var(--lilt-space-24);
    padding-top: var(--lilt-space-8);
}

.site-footer {
    border-top: 1px solid var(--lilt-border);
    color: var(--lilt-ink-muted);
    font-size: 0.875rem;
    padding-bottom: var(--lilt-space-24);
    padding-top: var(--lilt-space-16);
}

/* An information box. Bordered and quiet on purpose: it must not read as
   a button, so it never uses the brand colour as a fill. */
.notice {
    background: var(--lilt-surface-200);
    border: 1px solid var(--lilt-border);
    border-radius: var(--lilt-radius-md);
    padding: var(--lilt-space-16);
}

.notice p {
    margin: 0;
}

ul.ticks {
    list-style: none;
    padding: 0;
}

ul.ticks li {
    margin-bottom: var(--lilt-space-8);
    padding-left: var(--lilt-space-24);
    position: relative;
}

ul.ticks li::before {
    color: var(--lilt-accent-green);
    content: "✓";
    left: var(--lilt-space-4);
    position: absolute;
}

.badge {
    background: var(--lilt-surface-200);
    border: 1px solid var(--lilt-border);
    border-radius: var(--lilt-radius-sm);
    color: var(--lilt-ink-muted);
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--lilt-space-4) var(--lilt-space-8);
}

details {
    border-bottom: 1px solid var(--lilt-border);
    padding: var(--lilt-space-8) 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

.credit-field {
    margin: 0 0 0 var(--lilt-space-16);
}
