/* Artist Hub — artistic minimalist design system.
   Cream & charcoal, terracotta accent, serif display / sans body. */

:root {
  --bg: #f7f3ec;
  --bg-raised: #fffdf8;
  --ink: #26231f;
  --ink-soft: #6f675c;
  --line: #e5ddcf;
  --accent: #b4552d;
  --accent-soft: #f3e3da;
  --gold: #a8863c;
  --gold-soft: #f2e9d4;
  --danger: #a03426;
  --radius: 4px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #1d1b18;
  --bg-raised: #262320;
  --ink: #ece5da;
  --ink-soft: #a2988a;
  --line: #3a352f;
  --accent: #d0714a;
  --accent-soft: #3c2a22;
  --gold: #c8a85e;
  --gold-soft: #35301f;
  --danger: #d0604f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  transition: background .3s, color .3s;
}
h1, h2, h3, h4, .logo { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }
h1 { font-size: 2rem; margin: .4em 0; }
h2 { font-size: 1.4rem; margin: .4em 0; }
h3 { font-size: 1.1rem; margin: .3em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.error { color: var(--danger); border: 1px solid var(--danger); padding: .5rem .8rem; border-radius: var(--radius); }
.hidden { display: none !important; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .25rem 0; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-raised); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 1.1rem; padding: .65rem 20px; }
.logo { font-size: 1.45rem; color: var(--ink); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 1rem; }
.main-nav a { color: var(--ink-soft); font-size: .95rem; }
.main-nav a.active, .main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-search { flex: 1; max-width: 340px; margin-left: auto; }
.header-search input { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.cat-nav { display: flex; gap: .9rem; padding: .35rem 20px .55rem; font-size: .88rem; overflow-x: auto; white-space: nowrap; }
.cat-nav a { color: var(--ink-soft); }
.cat-nav a:hover { color: var(--accent); }
.cat-label { color: var(--ink-soft); opacity: .7; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; padding-top: .15rem; }

/* buttons & forms */
.btn {
  display: inline-block; padding: .5rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--accent); font-size: .92rem; cursor: pointer;
  background: transparent; color: var(--accent); font-family: var(--sans);
  transition: background .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sm { padding: .3rem .8rem; font-size: .85rem; }
.btn.wide { width: 100%; }
.icon-btn { background: none; border: none; font-size: 1.05rem; cursor: pointer; color: var(--ink-soft); padding: .3rem .45rem; border-radius: var(--radius); text-decoration: none; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font-size: .9rem; padding: 0; }
.linklike.danger { color: var(--danger); }
input, select, textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .7rem; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; margin: .6rem 0; font-size: .92rem; }
label input, label select, label textarea { display: block; width: 100%; margin-top: .25rem; }
label.inline { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; }
label.inline input { display: inline; width: auto; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: .8rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.check-row { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.inline-form { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1; min-width: 180px; }

/* avatars & chips */
.avatar { border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.avatar.xs { width: 26px; height: 26px; }
.avatar.sm { width: 34px; height: 34px; }
.avatar.xl { width: 108px; height: 108px; border: 3px solid var(--bg-raised); }
.avatar.placeholder { display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--serif); text-transform: uppercase; }
.avatar.xl.placeholder { font-size: 2.4rem; }
.chip { display: inline-block; font-size: .75rem; padding: .1rem .55rem; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent); margin-right: .3rem; }
.chip-medium { background: var(--gold-soft); color: var(--gold); }
.chip-sold { background: var(--ink); color: var(--bg); }
.chip-type { text-transform: capitalize; }
.verified { color: var(--accent); font-size: .85em; }
.hof-badge { font-size: .75rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 100px; padding: .05rem .5rem; vertical-align: middle; }
.tag { display: inline-block; margin: 0 .35rem .35rem 0; font-size: .85rem; color: var(--ink-soft); }
.tag:hover { color: var(--accent); }
.price { color: var(--gold); font-weight: 600; }
.price.big { font-size: 1.2rem; }

/* layout */
main { min-height: 70vh; padding: 1.4rem 20px 3rem; }
.section { margin: 2.2rem 0; }
.section.narrow { max-width: 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.more { font-size: .88rem; }
.layout-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.2rem; align-items: start; }
.sidebar .side-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.side-event { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.side-event:last-of-type { border-bottom: 0; }
.side-event strong { display: block; color: var(--ink); }
.artist-chip { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; color: var(--ink); }
.artist-chip:hover { text-decoration: none; color: var(--accent); }
.artist-chip-name { font-weight: 500; }
.artist-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* hero */
.hero { text-align: center; padding: 3.2rem 1rem 2.6rem; }
.hero h1 { font-size: 2.7rem; margin: 0 0 .5rem; }
.hero p { color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { margin-top: 1.4rem; display: flex; gap: .8rem; justify-content: center; }

/* cards & masonry */
.masonry { columns: 3 260px; column-gap: 1.2rem; }
.masonry.cols-2 { columns: 2 300px; }
.masonry > * { break-inside: avoid; margin-bottom: 1.2rem; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; animation: fadein .5s ease both; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.card-img { display: block; }
.card-img img { width: 100%; }
.img-count { position: absolute; } /* decorative count reset below */
.post-card { position: relative; }
.post-card .img-count { top: .5rem; right: .6rem; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; border-radius: 100px; padding: .05rem .5rem; }
.card-body { padding: .8rem .95rem .9rem; }
.card-title { margin: .1rem 0 .3rem; font-size: 1.05rem; }
.card-title a { color: var(--ink); }
.card-excerpt a { color: var(--ink-soft); }
.work-meta { font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; margin: .35rem 0; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .84rem; }
.author { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.author:hover { text-decoration: none; color: var(--accent); }
.stats { color: var(--ink-soft); white-space: nowrap; }
.hof-card { border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hof-crown { position: absolute; top: .5rem; left: .6rem; z-index: 2; background: var(--gold); color: #fff; border-radius: 100px; font-size: .78rem; padding: .05rem .55rem; }

/* hall of fame */
.hof-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.hof-board { display: flex; flex-direction: column; gap: 1rem; }
.hof-entry { display: flex; align-items: center; gap: 1rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.hof-entry.rank-1 { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hof-rank { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); min-width: 2.4rem; text-align: center; }
.hof-img { flex-shrink: 0; }
.hof-img img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.hof-meta { flex: 1; min-width: 0; }
.hof-meta h3 { margin: 0; font-size: 1rem; }
.hof-meta h3 a { color: var(--ink); }
.hof-meta p { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.hof-likes { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* profile */
.profile-head { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.4rem; }
.cover { height: 190px; background: linear-gradient(110deg, var(--accent-soft), var(--gold-soft)); background-size: cover; background-position: center; }
.profile-row { display: flex; gap: 1.2rem; align-items: flex-end; padding: 0 1.4rem; margin-top: -46px; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 220px; padding-top: 3rem; }
.profile-id h1 { margin: 0; }
.profile-actions { padding: .8rem 0; }
.profile-stats { display: flex; gap: 1.4rem; padding: .8rem 1.4rem; border-top: 1px solid var(--line); margin-top: .8rem; font-size: .92rem; flex-wrap: wrap; }
.profile-bio { padding: 0 1.4rem 1rem; max-width: 720px; }
.gallery-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .4rem; }
.gallery-tile { flex: 0 0 200px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.gallery-tile img { height: 110px; width: 100%; object-fit: cover; }
.gallery-tile-name { display: block; padding: .5rem .7rem; font-size: .9rem; }
.gallery-tile:hover { text-decoration: none; border-color: var(--accent); }

/* post detail */
.post-detail { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 860px; margin: 0 auto; }
.post-body { padding: 1.2rem 1.6rem 1.6rem; }
.post-author-row { display: flex; justify-content: space-between; align-items: center; }
.post-title { margin: .6rem 0 .3rem; }
.post-content { max-width: 68ch; }
.work-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .8rem 0; background: var(--bg); }
.work-actions { display: flex; gap: .7rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.process-link { border-color: var(--gold); color: var(--gold); }
.process-link:hover { background: var(--gold-soft); }
.post-actions { display: flex; gap: .8rem; align-items: center; margin: 1.1rem 0; flex-wrap: wrap; }
.action-btn { background: none; border: 1px solid var(--line); border-radius: 100px; padding: .3rem .9rem; cursor: pointer; color: var(--ink-soft); font-size: .9rem; }
.action-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.action-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.report-box form { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }
.report-box summary { list-style: none; }

/* carousel */
.carousel { position: relative; background: #14120f; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { width: 100%; flex: 0 0 100%; scroll-snap-align: center; object-fit: contain; max-height: 74vh; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 1.6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer; }
.carousel-btn.prev { left: .7rem; } .carousel-btn.next { right: .7rem; }
.carousel-dots { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; }
.carousel-dots .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); margin: 0 3px; }
.carousel-dots .dot.active { background: #fff; }

/* comments */
.comments { border-top: 1px solid var(--line); padding-top: 1rem; }
.comment { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.comment p { margin: .3rem 0; }
.comment .reply { margin-left: 2.2rem; border-bottom: none; border-left: 2px solid var(--line); padding-left: .9rem; margin-top: .5rem; }
.comment-form textarea { width: 100%; }
.comment-form button { margin-top: .4rem; }

/* polls */
.poll { margin: .8rem 0; max-width: 560px; }
.poll-question { margin: .2rem 0 .6rem; }
.poll-option { display: block; width: 100%; text-align: left; margin: .35rem 0; padding: .55rem .9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .95rem; color: var(--ink); }
.poll-option:hover { border-color: var(--accent); color: var(--accent); }
.poll-result { position: relative; margin: .35rem 0; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; justify-content: space-between; }
.poll-result.chosen { border-color: var(--accent); }
.poll-bar { position: absolute; inset: 0; background: var(--accent-soft); z-index: 0; transition: width .6s ease; }
.poll-label, .poll-pct { position: relative; z-index: 1; }

/* auth */
.auth-box { max-width: 430px; margin: 2.5rem auto; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem 1.8rem; }
.type-picker { display: grid; gap: .6rem; border: none; padding: 0; }
.type-picker.big { grid-template-columns: repeat(3, 1fr); }
.type-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; cursor: pointer; margin: 0; }
.type-card strong { display: block; font-family: var(--serif); }
.type-card span { font-size: .82rem; color: var(--ink-soft); }
.type-card input { display: inline; width: auto; margin-right: .4rem; }
.type-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* compose */
.compose { max-width: 760px; margin: 0 auto; }
.compose-form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem 1.5rem; margin-top: 1rem; }
.fgroup.off { display: none; }
.image-preview { display: flex; gap: .6rem; flex-wrap: wrap; }
.image-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* events */
.event-filters { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.view-toggle { margin-left: auto; display: flex; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle a { padding: .3rem .8rem; font-size: .88rem; color: var(--ink-soft); }
.view-toggle a.active { background: var(--accent); color: #fff; }
.view-toggle a:hover { text-decoration: none; }
.cal-head { display: flex; align-items: center; gap: 1rem; margin: .6rem 0; }
.cal-head h2 { margin: 0; }
.calendar { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-daynames span { padding: .4rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: center; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 92px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem .4rem; font-size: .8rem; }
.cal-cell:last-child { border-right: none; }
.cal-cell.dim { opacity: .38; }
.cal-cell.today { background: var(--accent-soft); }
.cal-day { color: var(--ink-soft); }
.cal-event { display: block; margin-top: .2rem; padding: .1rem .35rem; border-radius: 3px; background: var(--gold-soft); color: var(--gold); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.type-exhibition { background: var(--accent-soft); color: var(--accent); }
.event-card .event-meta { font-size: .88rem; color: var(--ink-soft); margin: .2rem 0; }
.event-detail { max-width: 760px; margin: 0 auto; }
.event-cover { border-radius: var(--radius); max-height: 380px; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.attend-row { display: flex; gap: .7rem; margin: 1rem 0; }
.attend-row .count { opacity: .75; font-size: .85em; }

/* categories grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.cat-tile { display: block; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; color: var(--ink); }
.cat-tile:hover { border-color: var(--accent); text-decoration: none; }
.cat-tile strong { font-family: var(--serif); display: block; }
.collection-tile img { height: 110px; width: 100%; object-fit: cover; border-radius: 3px; margin-bottom: .5rem; }

/* notifications */
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif { display: flex; gap: .8rem; padding: .8rem .6rem; border-bottom: 1px solid var(--line); }
.notif.unread { background: var(--accent-soft); }
.notif-icon { color: var(--accent); font-size: 1.1rem; }
.bell { position: relative; }
.badge { position: absolute; top: -4px; right: -6px; background: var(--accent); color: #fff; font-size: .66rem; border-radius: 100px; padding: 0 .35rem; line-height: 1.5; }

/* menu */
.menu { position: relative; }
.menu-body { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); min-width: 170px; padding: .4rem 0; box-shadow: 0 8px 22px rgba(0,0,0,.09); z-index: 50; }
.menu:hover .menu-body, .menu:focus-within .menu-body { display: block; }
.menu-body a, .menu-body button { display: block; width: 100%; text-align: left; padding: .4rem .9rem; color: var(--ink); font-size: .9rem; }
.menu-body a:hover, .menu-body button:hover { background: var(--accent-soft); text-decoration: none; }
.menu-body form { margin: 0; }

/* misc */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); }
.manage-list { list-style: none; padding: 0; }
.manage-list li { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.reorder-row { display: flex; gap: .3rem; justify-content: flex-end; margin-top: -0.8rem; padding-bottom: .4rem; }
.tag-cloud { line-height: 2; }
.feed-filters { display: flex; gap: .5rem; }
.search-form input[type=search] { width: 100%; font-size: 1.05rem; padding: .7rem 1rem; }
.search-filters { display: flex; gap: .7rem; align-items: center; margin: .7rem 0 1.2rem; flex-wrap: wrap; }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .55rem 1.2rem; border-radius: 100px; font-size: .9rem; z-index: 100; animation: fadein .3s; }
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; font-size: .88rem; color: var(--ink-soft); text-align: center; }
.site-footer p { margin: .3rem 0; }

/* responsive */
@media (max-width: 900px) {
  .layout-cols { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .header-search { max-width: none; }
  .type-picker.big { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .cal-cell { min-height: 64px; }
}
@media (max-width: 600px) {
  .masonry { columns: 2 150px; }
  .header-inner { flex-wrap: wrap; gap: .5rem; }
  .profile-row { margin-top: -30px; }
}
