@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
    --surf-orange: #E67300;
    --surf-orange-ink: #B85A00;
    --masto: #6364FF;
    --masto-deep: #563ACC;
    --pico-font-family-sans-serif: "Source Sans 3", system-ui, sans-serif;
}

body {
    --pico-font-family: "Source Sans 3", system-ui, sans-serif;
}

h1, h2, h3 {
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h1 .tag {
    color: var(--surf-orange);
}

/* Section headings: short SURF-orange underline */
main h2 {
    margin-top: 2.75rem;
}

main h2::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    margin-top: .45rem;
    background: var(--surf-orange);
    border-radius: 2px;
}

/* Links: high-contrast text, orange underline (accessible + on-brand) */
main a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--surf-orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

main a:hover {
    color: var(--surf-orange-ink);
    text-decoration-color: var(--surf-orange-ink);
}

/* Buttons on-brand */
main button,
main input[type="submit"],
main input[type="button"] {
    background: var(--surf-orange);
    border-color: var(--surf-orange);
}

main button:hover,
main input[type="submit"]:hover,
main input[type="button"]:hover {
    background: var(--surf-orange-ink);
    border-color: var(--surf-orange-ink);
}

/* Dev-server notice */
#banner {
    background: rgba(230, 115, 0, .14);
    border: 1px solid rgba(230, 115, 0, .35);
    color: inherit;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
}

/* Required-configuration callout */
#banner2 {
    border-left: 6px solid var(--surf-orange);
}

/* Mastodon handle chip */
code.handle {
    color: var(--masto-deep);
    background: rgba(99, 100, 255, .12);
    border: 1px solid rgba(99, 100, 255, .28);
    border-radius: 6px;
    padding: .05em .45em;
    font-weight: 600;
    white-space: nowrap;
}

/* Linked handle (rel=me): keep the chip, drop the orange link underline */
main a.handle-link {
    text-decoration: none;
}

main a.handle-link:hover code.handle {
    background: rgba(99, 100, 255, .2);
    border-color: var(--masto);
}

/* Example toot block */
pre.toot {
    background: rgba(99, 100, 255, .10);
    border: 1px solid rgba(99, 100, 255, .28);
    border-left: 6px solid var(--masto);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-word;
}

pre.toot code {
    background: transparent;
    color: inherit;
    padding: 0;
}

@media (prefers-color-scheme: dark) {
    code.handle { color: #aeb0ff; }
}

/* ClaimLog: keep the URL input and submit button on one line */
#myForm {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
}

#myForm fieldset {
    flex: 1;
    margin-bottom: 0;
}

#myForm label,
#myForm #artifact-input {
    margin-bottom: 0;
}

#myForm input[type="submit"] {
    width: auto;
    margin-bottom: 0;
}

/* ...but stack the form on narrow screens */
@media (max-width: 32rem) {
    #myForm {
        flex-direction: column;
        align-items: stretch;
    }

    #myForm input[type="submit"] {
        width: 100%;
    }
}
