/* The home page, the Wall of Fame and the admin page (the drawing page uses style.css). */
:root {
  --bg: #fff8ee;
  --panel: #ffffff;
  --line: #eadfce;
  --text: #2b2420;
  --muted: #7a6c60;
  --fire: #f2622e;
  --fire-dark: #c9431a;
  --sun: #ffc93c;
  --ok: #1f8a4c;
  --danger: #c4372f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.45 "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--fire-dark); }
img { max-width: 100%; }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 0 16px; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.topbar .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 22px; }
.topbar .logo img { width: 44px; height: 44px; object-fit: contain; }
.topbar .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--text); background: var(--panel);
  color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--text); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--text); }
.btn.fire { background: var(--fire); color: #fff; }
.btn.sun { background: var(--sun); }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 15px; box-shadow: 0 3px 0 var(--text); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

/* home */
.hero { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 8px 0 32px; }
.hero img { width: min(520px, 100%); height: auto; }
.hero h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; }
.hero p { margin: 0; color: var(--muted); font-size: 19px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 16px; }
.hero .actions .btn { font-size: 21px; min-height: 60px; padding: 12px 30px; }
h2 { font-size: 28px; margin: 24px 0 12px; }

/* wall */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding-bottom: 24px; }
.card {
  background: var(--panel); border: 2px solid var(--text); border-radius: 18px; overflow: hidden;
  box-shadow: 0 5px 0 var(--text); display: grid;
}
.card button.pic { all: unset; cursor: zoom-in; display: block; }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: 2px solid var(--text); }
.card .info { padding: 10px 14px 12px; }
.card .title { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.card .by { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.card .actions { display: flex; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; grid-column: 1 / -1; }
.more { display: flex; justify-content: center; padding-bottom: 40px; }

dialog.big { border: none; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
dialog.big::backdrop { background: rgba(20,16,12,.8); }
dialog.big img { display: block; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); border-radius: 14px; background: #fff; }
dialog.big p { color: #fff; text-align: center; margin: 10px 0 0; font-size: 18px; }

/* admin */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.tabs .btn.on { background: var(--sun); }
.login { display: grid; gap: 12px; max-width: 360px; margin: 40px auto; }
input[type=password], input[type=text] {
  font: inherit; min-height: 48px; padding: 8px 14px; border: 2px solid var(--text); border-radius: 14px; background: #fff;
}
.note { color: var(--muted); font-size: 15px; }
footer.site { color: var(--muted); font-size: 14px; text-align: center; padding: 24px 0 32px; }
