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

html {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100dvh;
    padding: 1rem;
    color: #333;
    background: #fff;
}

main {
    max-width: 40rem;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

button {
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
}

button:active {
    opacity: 0.8;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

section {
    margin-bottom: 1.5rem;
}

textarea[readonly],
input[readonly] {
    background: #eee;
    cursor: default;
}

textarea.mono {
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

code {
    font-family: ui-monospace, monospace;
    background: #eee;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
}

#share-url {
    display: block;
    font-family: ui-monospace, monospace;
    background: #eee;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    word-break: break-all;
    cursor: pointer;
}

#copy-feedback {
    color: green;
    font-weight: 600;
}
