/* Digital Cafe - shared styles */
:root {
  --bg: #F4F6F3; --surface: #FFFFFF; --ink: #18262A; --muted: #5B6B6E; --line: #D9E0DC;
  --accent: #17705F; --accent-ink: #FFFFFF; --danger: #B3372B; --ok: #1F7A3E; --warn: #9A6A00;
  --disp: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111B1D; --surface: #1A282B; --ink: #EAF1EE; --muted: #9BB0AE; --line: #2C3F42;
    --accent: #4FC3A9; --accent-ink: #0B1A17; --danger: #F08A7E; --ok: #6FCB8D; --warn: #E8B75A;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--disp); line-height: 1.1; margin: 0; text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }
.muted { color: var(--muted); }

.logo { font-family: var(--disp); font-weight: 700; font-size: 22px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo i { display: inline-block; width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; background: var(--accent); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 18px; flex-wrap: wrap; }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 15px; align-items: center; flex-wrap: wrap; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--accent); border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 14px; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.ct { color: color-mix(in srgb, var(--c) 62%, var(--ink)); }

.cover { aspect-ratio: 3/4; border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); padding: 14px 12px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.cover b { font-family: var(--disp); font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.cover small { font-size: 11px; color: var(--muted); font-weight: 500; }
.cover::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--c); opacity: .85; }
.cover em { font-style: normal; position: absolute; right: 6px; top: 8px; font-size: 10px; font-weight: 700; color: #fff; z-index: 1; letter-spacing: .05em; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font-size: 13px; font-weight: 700; }
.field input:not([type=checkbox]):not([type=color]), .field select, .field textarea {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); width: 100%; min-width: 0; }
.field input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.field small { color: var(--muted); font-size: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(10, 20, 22, .55); }
dialog form, dialog .box { padding: 22px; }
dialog h2 { font-size: 24px; margin-bottom: 16px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 50; max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
[hidden] { display: none !important; }
footer.site { margin-top: 56px; padding-block: 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
