:root {
    --bg: #1b2a2a; --panel: #243636; --ink: #eef3f2; --muted: #9db3b0; --accent: #6fc2b8;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; background: #142020; border-bottom: 1px solid #2f4545; }
.brand { font-size: 20px; font-weight: 600; color: var(--ink); }
.search { display: flex; gap: 6px; }
.search input { padding: 7px 10px; border-radius: 6px; border: 1px solid #3b5555; background: var(--panel); color: var(--ink); min-width: 200px; }
.search button { padding: 7px 14px; border-radius: 6px; border: 0; background: var(--accent); color: #0d1a1a; font-weight: 600; cursor: pointer; }
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { margin: 8px 0 4px; font-size: 26px; }
h2 { margin: 28px 0 10px; font-size: 20px; }
h2.year { border-bottom: 1px solid #2f4545; padding-bottom: 4px; }
.muted { color: var(--muted); font-size: 14px; margin: 2px 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.thumbs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.card { display: block; background: var(--panel); border-radius: 8px; overflow: hidden; color: var(--ink); }
.card:hover { text-decoration: none; outline: 2px solid var(--accent); }
.card img, .card .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #162323; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-weight: 600; line-height: 1.3; }
.thumb { display: block; background: #162323; border-radius: 4px; overflow: hidden; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { outline: 2px solid var(--accent); }
.viewer { position: relative; display: flex; justify-content: center; margin-top: 12px; }
.viewer img { max-width: 100%; height: auto; border-radius: 4px; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 44px; line-height: 1; padding: 14px 12px; color: #fff; background: rgba(0, 0, 0, .35); border-radius: 6px; }
.viewer .nav:hover { background: rgba(0, 0, 0, .6); text-decoration: none; }
.viewer .prev { left: 4px; }
.viewer .next { right: 4px; }
.photo-info { text-align: center; margin-top: 10px; }
.caption { font-size: 18px; margin: 6px 0; }
.result-head { font-size: 17px; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; }
@media (max-width: 600px) { .grid.cards { grid-template-columns: repeat(2, 1fr); } .search input { min-width: 0; flex: 1; } .search { flex: 1 1 100%; } }

/* Home */
main.home { max-width: none; padding: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 8px 20px 20px; }
.hero { position: relative; height: clamp(220px, 42vw, 460px); overflow: hidden; background: #0f1a1a; }
.hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero .slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%); }
.hero-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 20px; text-align: center; }
.hero-title h1 { margin: 0; font-size: clamp(28px, 5.5vw, 56px); font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.7); letter-spacing: .5px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 20px 6px; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; background: var(--accent); color: #0d1a1a; font-weight: 600; }
.btn.alt { background: var(--panel); color: var(--ink); border: 1px solid #3b5555; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid #2f4545; }
.upcoming .when { flex: 0 0 150px; font-weight: 600; color: var(--accent); }
.topnav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }

/* Prices and misc pages */
.prices { background: var(--panel); border-radius: 8px; padding: 12px 16px; margin: 16px auto; max-width: 560px; }
.prices h3 { margin: 0 0 6px; font-size: 17px; }
.prices table { width: 100%; border-collapse: collapse; }
.prices td { padding: 6px 0; border-top: 1px solid #2f4545; vertical-align: top; }
.prices td.amt { text-align: right; white-space: nowrap; }
.sale { color: #ffd479; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #ffd479; color: #2a2100; font-size: 12px; font-weight: 700; vertical-align: middle; }
.prose { max-width: 720px; }
@media (max-width: 600px) { .upcoming li { flex-direction: column; gap: 2px; } .upcoming .when { flex-basis: auto; } }

/* Cart, checkout, orders, admin */
.cartlink { font-weight: 600; }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--panel); margin: 14px 0; }
.notice.ok { border-left: 4px solid #6fcf97; }
.notice.warn { border-left: 4px solid #ffd479; }
.warn { color: #ffd479; }
.lines { width: 100%; border-collapse: collapse; margin: 12px 0; }
.lines td { padding: 8px 6px; border-top: 1px solid #2f4545; vertical-align: top; }
.lines .pic { width: 84px; }
.lines .pic img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; display: block; }
.lines .amt { text-align: right; white-space: nowrap; }
.lines .qty input { width: 4.5em; }
.lines tr.bad td { opacity: .8; }
.lines tr.sum td { border-top: 0; padding-top: 2px; padding-bottom: 2px; }
.lines tr.total td { font-weight: 700; font-size: 18px; border-top: 1px solid #2f4545; padding-top: 8px; }
.prices td.add { text-align: right; white-space: nowrap; }
.prices td.add form { display: flex; gap: 6px; justify-content: flex-end; }
.prices td.add input { width: 3.8em; }
button, .btn-button { font: inherit; padding: 8px 16px; border-radius: 8px; border: 0; background: var(--accent); color: #0d1a1a; font-weight: 600; cursor: pointer; }
button.plain { background: var(--panel); color: var(--ink); border: 1px solid #3b5555; }
.stack { max-width: 560px; }
.stack label { display: block; margin: 12px 0; font-weight: 600; }
.stack input, .stack textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; font: inherit; border-radius: 6px; border: 1px solid #3b5555; background: #0f1a1a; color: var(--ink); }
.stack .muted { font-weight: 400; }
.stack fieldset { border: 1px solid #2f4545; border-radius: 8px; margin: 16px 0; }
.stack .row { display: flex; gap: 12px; }
.stack .row label { flex: 1; }
#pay { max-width: 560px; margin: 18px 0; }
.inline { display: inline; }
.tabs { display: flex; gap: 14px; align-items: center; }
.tabs a.on { font-weight: 700; text-decoration: underline; }
table.admin { width: 100%; border-collapse: collapse; }
table.admin th, table.admin td { padding: 8px 6px; border-top: 1px solid #2f4545; text-align: left; }
table.admin td.amt { text-align: right; }
.badge.done { background: #6fcf97; color: #0b2a17; }
.badge.bad { background: #ff8a80; color: #330a07; }
.panel { background: var(--panel); border-radius: 8px; padding: 4px 16px 12px; margin: 16px 0; max-width: 640px; }
@media (max-width: 600px) { .stack .row { flex-direction: column; gap: 0; } .lines .pic { width: 60px; } .lines .pic img { width: 52px; height: 52px; } }

/* Show by name */
.small { font-size: 13px; font-weight: 400; margin-left: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips a { padding: 3px 12px; border-radius: 14px; border: 1px solid #3b5555; font-size: 14px; }
.chips a.on { background: var(--accent); color: #0d1a1a; border-color: var(--accent); text-decoration: none; font-weight: 600; }
.namelist { list-style: none; margin: 0; padding: 0; columns: 2 380px; column-gap: 24px; }
.namelist li { break-inside: avoid; }
.namelist a { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #2f4545; }
.namelist img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.namelist .nm { flex: 1; font-weight: 600; }
