:root {
    --forest: #173f35;
    --cream: #f7f3e8;
    --paper: #fffdf8;
    --line: #ded9ca;
    --ink: #1f2d29;
    --muted: #69756f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
    background: var(--cream);
}

header {
    padding: 16px 24px;
    color: white;
    background: var(--forest);
}

.topbar {
    width: min(960px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand, nav a {
    color: inherit;
    text-decoration: none;
}

.brand { font-weight: 800; }
nav { display: flex; gap: 18px; font-size: .88rem; }
nav a { opacity: .75; }
nav a:hover { opacity: 1; }

main {
    width: min(960px, calc(100% - 32px));
    min-height: 360px;
    margin: 42px auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
}

h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.2rem); }
p { color: var(--muted); }

.admin-file-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.admin-file-controls button {
    min-width: 64px;
    padding: 8px 13px;
    border: 1px solid var(--forest);
    border-radius: 8px;
    color: var(--forest);
    background: white;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-file-controls button.danger { border-color: #a6473b; color: #a6473b; }
.admin-file-controls button:disabled { opacity: .5; cursor: wait; }
