:root {
    color-scheme: light;
    --bg: #f4f1ea;
    --bg-alt: #e8ecef;
    --ink: #17212b;
    --muted: #5d6976;
    --panel: rgba(255, 255, 255, 0.88);
    --border: rgba(23, 33, 43, 0.12);
    --accent: #274060;
    --accent-ink: #ffffff;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(39, 64, 96, 0.18), transparent 30%),
        radial-gradient(circle at right 10%, rgba(145, 160, 175, 0.22), transparent 28%),
        linear-gradient(160deg, var(--bg), var(--bg-alt));
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 16px/1.5 Georgia, Cambria, "Times New Roman", Times, serif;
}

.page {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.masthead {
    margin-bottom: 1.5rem;
}

.masthead h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.masthead p {
    margin: 0.5rem 0 0;
    max-width: 36rem;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--accent);
    font: 600 0.85rem/1.2 "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.stack {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.4rem;
    font-family: "Segoe UI", system-ui, sans-serif;
}

input,
textarea,
select,
button,
code {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

textarea {
    min-height: 12rem;
    resize: vertical;
    white-space: pre-wrap;
    word-break: break-word;
}

button {
    justify-self: start;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 10px 24px rgba(39, 64, 96, 0.24);
}

button:hover {
    transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(39, 64, 96, 0.22);
    outline-offset: 2px;
}

.notice {
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-radius: 0.8rem;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.notice-error {
    background: rgba(146, 65, 62, 0.1);
    color: #82211d;
}

.muted {
    margin: 0;
    color: var(--muted);
    font-family: "Segoe UI", system-ui, sans-serif;
}

.secret-box {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.secret-link,
.secret-text {
    flex: 1 1 24rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    white-space: pre-wrap;
    word-break: break-word;
}

.secret-link {
    overflow-wrap: anywhere;
}
