/* MiDi shared tokens and base — a gallery wall: two artists' pigments, museum wall labels in mono. */
:root {
  --wall: #F2F3EF;
  --panel: #FFFFFF;
  --ink: #1D2220;
  --muted: #646B67;
  --line: #D8DBD5;
  --dilek: #B03A5B;      /* rose madder */
  --dilek-soft: #F3DCE2;
  --mine: #27735F;       /* viridian */
  --mine-soft: #D5EAE3;
  --ok: #2F6B3A;
  --ok-soft: #DDEEDD;
  --warn: #8A5A12;
  --warn-soft: #F5E9D2;
  --sold: #C23B22;
  --on-ink: #F2F3EF;
  --display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #151817; --panel: #1E2220; --ink: #ECEEEA; --muted: #A3AAA6; --line: #333936;
    --dilek: #E27D98; --dilek-soft: #3B2129; --mine: #62C2A6; --mine-soft: #1C3530;
    --ok: #7FC48A; --ok-soft: #1F3323; --warn: #E0B061; --warn-soft: #3A2E18; --sold: #F07A62;
    --on-ink: #151817; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mine); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mi { color: var(--mine); } .di { color: var(--dilek); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.dilek { background: var(--dilek); } .dot.mine { background: var(--mine); }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--wall) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.mark-sm { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }

/* Buttons & form controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--body); border-radius: 999px; padding: 10px 20px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; line-height: 1.2;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-danger { background: var(--panel); color: var(--sold); border-color: color-mix(in srgb, var(--sold) 45%, var(--line)); }
.btn-sm { font-size: 13.5px; padding: 6px 12px; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.field { display: grid; gap: 6px; min-width: 0; }
label.lbl { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: 16px var(--body); color: var(--ink); background: var(--wall); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mine); outline-offset: 0; border-color: transparent; }
.note { font-size: 14px; margin: 0; min-height: 1.4em; }
.note.ok { color: var(--ok); } .note.err { color: var(--sold); } .note.info { color: var(--warn); }

/* Status pill (gallery convention: red dot = sold) */
.status { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.satilik { color: var(--ok); }
.status.satildi { color: var(--sold); }
.status.koleksiyon { color: var(--muted); }
