:root {
    color-scheme: light;
    --bg: #f7f4ef;
    --panel: #ffffff;
    --text: #1f2428;
    --muted: #667085;
    --line: #d9dee5;
    --accent: #12685f;
    --accent-dark: #0e5049;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    align-items: center;
    background: #102a2b;
    color: #ffffff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
}

.brand {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.site-header nav a {
    color: #eef7f6;
    font-size: 0.95rem;
}

.container {
    margin: 0 auto;
    max-width: 980px;
    padding: 2rem clamp(1rem, 4vw, 2.5rem);
}

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

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.page-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

h1, h2 {
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.15rem;
}

.muted {
    color: var(--muted);
}

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

.item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.85rem;
}

.item-title {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.meta {
    color: var(--muted);
    font-size: 0.88rem;
}

form {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    font-weight: 650;
    gap: 0.35rem;
}

input, textarea {
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    padding: 0.7rem 0.75rem;
    width: 100%;
}

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

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

button, .button {
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    padding: 0.65rem 0.9rem;
}

button:hover, .button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button.secondary {
    background: #e6eaef;
    color: var(--text);
}

.button.secondary:hover {
    background: #d5dbe3;
}

.danger {
    background: var(--danger);
}

.flash {
    border-radius: 6px;
    margin: 0 0 1rem;
    padding: 0.75rem;
}

.flash.notice {
    background: #e9f7ef;
    border: 1px solid #abdbc2;
}

.flash.error {
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.paste-body {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        justify-content: flex-start;
    }
}

