/* The one stylesheet of the website. No scripts, no frameworks. */

:root {
    --text: #1c1b1a;
    --muted: #63605b;
    --background: #faf9f7;
    --surface: #ffffff;
    --border: #dedad3;
    --accent: #b4532a;
    --accent-dark: #8f3f1e;
    --danger: #a12a2a;
    --error-background: #fbeceb;
    --error-border: #e3b4b0;
    --radius: 8px;
}

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

html {
    font-size: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

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

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

h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 0.9rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header .brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

main {
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

main.narrow {
    max-width: 30rem;
}

main.wide {
    max-width: 52rem;
}

section {
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0.75rem;
}

label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
}

input[type="email"],
input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

button,
.button {
    display: inline-block;
    margin: 1rem 0.5rem 0 0;
    padding: 0.6rem 1.2rem;
    font: inherit;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent-dark);
    border: 1px solid var(--accent-dark);
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

button.secondary,
.button.secondary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

button.secondary:hover,
.button.secondary:hover {
    color: var(--text);
    background: var(--background);
    border-color: var(--muted);
}

button.danger {
    margin: 0;
    padding: 0.35rem 0.8rem;
    color: var(--danger);
    background: var(--surface);
    border-color: var(--error-border);
}

button.danger:hover {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

button.link {
    margin: 0;
    padding: 0;
    font-weight: 400;
    color: var(--accent-dark);
    background: none;
    border: none;
    text-decoration: underline;
}

button.link:hover {
    color: var(--accent);
    background: none;
}

form.inline {
    display: inline;
}

form.spaced {
    margin-top: 2rem;
}

.notice {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.notice p {
    margin: 0.3rem 0;
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.notice.error {
    background: var(--error-background);
    border-color: var(--error-border);
}

.host {
    font-size: 1.5rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

code.address {
    display: block;
    padding: 0.6rem 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
    user-select: all;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

th {
    font-size: 0.85rem;
    color: var(--muted);
}

td form {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
