:root {
    --ink: #ece6d8;
    --muted: #a89f8e;
    --bg: #14120f;
    --panel: #1e1b16;
    --line: #3a342a;
    --brass: #d4a054;
    --danger: #e8b4a0;
    --ok: #c5d4b0;
    --focus: #f0d090;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.75rem;
}

h2 {
    font-size: 1.7rem;
    margin: 0 0 0.75rem;
}

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

p {
    margin: 0 0 1rem;
}

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

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

.wrap {
    width: min(44rem, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
    font-family: Palatino, "Palatino Linotype", Georgia, serif;
    font-size: 1.05rem;
}

.brand img {
    display: block;
}

.site-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
}

.header-logout button {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.35rem 0.7rem;
}

main {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

.hero {
    margin-bottom: 2.75rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--brass);
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 38rem;
}

.block {
    margin-bottom: 2.75rem;
    padding-top: 0.5rem;
}

.block.narrow {
    max-width: 22rem;
}

.examples {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 1rem;
}

.examples li {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.1rem 1.15rem 0.7rem;
}

.notice,
.flash {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 0.8rem 1rem;
}

.flash-error {
    border-color: #7a3d32;
    color: var(--danger);
}

.flash-ok,
.flash-info {
    border-color: #3d4a32;
    color: var(--ok);
}

.trial-form p {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    background: #0f0d0b;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 0.55rem 0.65rem;
}

input:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

textarea {
    resize: vertical;
    min-height: 7rem;
}

.field-error {
    display: block;
    margin-top: 0.3rem;
    color: var(--danger);
    font-size: 0.95rem;
}

button {
    background: var(--brass);
    color: #1a1408;
    border: 0;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
}

button:hover {
    background: var(--focus);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.25rem 0 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0 0 0.25rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

th {
    color: var(--muted);
    font-weight: 600;
    background: var(--panel);
}

.note-cell {
    white-space: pre-wrap;
    min-width: 14rem;
}

@media (max-width: 640px) {
    .header-row {
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wrap {
        width: min(44rem, calc(100% - 1.4rem));
    }
}
