/* The editors' page: quiet and practical, in the site's colours and fonts. */
@font-face { font-family: 'Bodoni Moda'; font-weight: 400 600; font-display: swap; src: url(/fonts/bodoni-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Bodoni Moda'; font-weight: 400 600; font-display: swap; src: url(/fonts/bodoni-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA; }
@font-face { font-family: 'Figtree'; font-weight: 400 600; font-display: swap; src: url(/fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Figtree'; font-weight: 400 600; font-display: swap; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA; }

:root { --bg: #f2eddc; --surface: #fbf8ef; --line: #d9d1b8; --ink: #1d3027; --muted: #5d6658; --accent: #dfe5cf; --bad: #a3261b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 'Figtree', 'Segoe UI', sans-serif; }
h1, h2 { font-family: 'Figtree', sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: 32px; } h2 { font-size: 22px; margin-bottom: 8px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .bad { color: var(--bad); }

.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 48px); background: var(--ink); color: var(--bg); }
.mark { font: 500 24px/1 'Bodoni Moda', Georgia, serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.mark span { color: #b9c4a8; font: 400 12px/1 'Figtree', sans-serif; letter-spacing: .3em; margin-left: 10px; vertical-align: middle; }
.who { display: flex; align-items: center; gap: 16px; }
.bar .ghost { color: var(--bg); border-color: #4b6356; }

.app { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 96px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { border: 0; background: transparent; padding: 11px 18px; font-weight: 600; font-size: 16px; line-height: 1; font-family: inherit; color: var(--muted); cursor: pointer; border-radius: 0; }
.tabs button:hover { color: var(--ink); background: #e6dfc8; }
.tabs button[aria-current] { background: var(--accent); color: var(--ink); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }

button { font-family: inherit; }
.primary { min-height: 44px; padding: 10px 22px; border: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; cursor: pointer; border-radius: 0; transition: transform .15s; }
.primary:hover { background: #2c4538; }
.primary:active { transform: scale(.98); }
.ghost { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 0; }
.ghost:hover { border-color: var(--ink); }
.ghost:disabled { opacity: .4; cursor: default; }
.danger { color: var(--bad); }
.danger:hover { border-color: var(--bad); }

.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.list th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.list td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list .r { text-align: right; white-space: nowrap; }
.list .r > * { margin-left: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--accent); padding: 1px 8px; border-radius: 0; margin-left: 6px; }
.empty { padding: 48px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 24px; display: grid; gap: 16px; align-content: start; }
.narrow { max-width: 420px; margin: 48px auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small, .upload small { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; font-size: 16px; line-height: 1.4; font-family: inherit; color: var(--ink); background: var(--surface); border: 1px solid #c9c0a4; border-radius: 0; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid #b9c4a8; }
.editor .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.wide { grid-column: 1 / -1; }
.upload { display: grid; gap: 8px; padding: 16px; background: var(--bg); border-radius: 0; }
.upload .label { font-weight: 600; font-size: 15px; }
.pick { display: inline-flex; width: max-content; align-items: center; min-height: 40px; padding: 8px 16px; background: var(--accent); border-radius: 0; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick:focus-within { outline: 3px solid var(--ink); }
.files { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
[data-type="pdf"] .files, [data-type="files"] .files, [data-type="image"] .files { grid-template-columns: 1fr; }
.ph { margin: 0; display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 8px; }
.ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.ph input { min-height: 36px; font-size: 14px; padding: 6px 8px; }
.ph div { display: flex; gap: 6px; flex-wrap: wrap; }
.file { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.file img { width: 64px; height: 48px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 0; font-weight: 600; max-width: calc(100vw - 32px); z-index: 10; }
.toast.bad { background: var(--bad); }

@media (max-width: 760px) {
  .editor .grid, .two { grid-template-columns: 1fr; }
  .list thead { display: none; }
  .list tr { display: grid; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 4px; }
  .list td { padding: 0; border: 0; }
  .list .r { text-align: left; white-space: normal; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
  .list .r > * { margin-left: 0; }
  .who span { display: none; }
}

/* page pictures */
.pics { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pics .ph p { margin: 0; }
.pics .pick { min-height: 36px; padding: 6px 12px; font-weight: 600; }
.nopic { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--bg); border: 1px dashed var(--line); color: var(--muted); margin: 0; }

/* contact messages: keep the visitor's line breaks */
.msg { white-space: pre-wrap; margin: 6px 0 0; max-width: 60ch; }
