:root {
  --bg: #101112;
  --surface: #17191b;
  --surface-2: #1f2225;
  --line: #2b2e32;
  --text: #ecebe7;
  --muted: #a3a19b;
  --accent: #e9a24c;
  --accent-ink: #1a1206;
  --danger: #e5675b;
  --radius: 10px;
  --wrap: 1280px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; background: rgba(16, 17, 18, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 44px; height: auto; }
.home .brand img { display: none; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: var(--text); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }
.site-header nav a.fb { display: inline-flex; padding: 8px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 8px 12px; display: none; }
  .site-header.open nav { display: flex; }
  .site-header nav a { padding: 12px; font-size: 1.05rem; }
  .site-header nav a.fb { padding: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: grid; place-items: center; overflow: hidden; background: #0b0b0c; }
.hero-bg { width: 100%; height: clamp(260px, 36vw, 560px); object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35) 70%, var(--bg)); }
.hero-logo { position: absolute; z-index: 1; width: auto; height: 78%; max-width: 86%; object-fit: contain; filter: drop-shadow(0 4px 18px rgba(0,0,0,.55)); }

/* ---------- sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 36px 16px; }
.section.narrow { max-width: 680px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.section-head h1 { margin: 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: -.2em; }
.prose p { margin: 0 0 1.1em; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 500 .9rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- photo grid: justified rows, keeps left-to-right order ---------- */
.photo-grid { --rowh: 260px; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-grid::after { content: ""; flex-grow: 1e6; } /* keeps the last row from stretching */
.photo-grid figure { margin: 0; flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--rowh)); max-width: calc(var(--r) * var(--rowh) * 1.6); }
.photo-grid figure[hidden] { display: none; }
.photo-grid a { display: block; border-radius: 4px; overflow: hidden; background: var(--surface); }
.photo-grid img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .4s ease; }
.photo-grid a:hover img { transform: scale(1.02); }
@media (max-width: 520px) { .photo-grid { --rowh: 130px; gap: 5px; } }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 11px 20px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: 16px var(--body); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; }
.form-status.ok { color: #8fd18a; }
.form-status.error { color: var(--danger); }
.contact-alt { margin-top: 28px; color: var(--muted); }
.unlock { max-width: 360px; margin: 20px auto; text-align: left; }

/* ---------- gallery ---------- */
.gallery-head { padding-bottom: 0; text-align: center; }
.gallery-head h1 { margin-bottom: .2em; }
.days-left { color: var(--accent); font-weight: 600; }
.dl-all { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* ---------- dialog ---------- */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 24px; max-width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog h2 { font-size: 1.4rem; margin-right: 24px; }
dialog p { color: var(--muted); margin: 0 0 20px; }
.dialog-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6, 6, 7, .97); display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb-stage { flex: 1; display: grid; place-items: center; min-height: 0; padding: 8px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--muted); font-size: .9rem; }
.lb-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lb-actions a { color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); border: 0; color: #fff; width: 48px; height: 64px; font-size: 30px; cursor: pointer; border-radius: 6px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-close { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,.35); border: 0; color: #fff; font-size: 30px; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; z-index: 1; }
@media (max-width: 600px) { .lb-btn { display: none; } .lb-bar { flex-direction: column; align-items: stretch; } .lb-actions a { flex: 1; text-align: center; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: .9rem; max-width: var(--wrap); width: 100%; margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--text); }
