/* MUM Archive — styled after mikrotik.com (JetBrains Mono, uppercase display type, monochrome) */
:root {
  --ink: #0e0e10;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --bg: #ffffff;
  --hero-a: #0b1f1e;
  --hero-b: #1d3d3a;
  --footer: #808085;
  --accent: #0e0e10;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  /* keep the footer at the bottom of the window on short pages */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-weight: 700; text-transform: uppercase; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
code { font-family: var(--mono); background: var(--soft); padding: 1px 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand svg { width: 140px; height: auto; color: var(--ink); }
.brand-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-left: 14px; border-left: 1px solid var(--line); line-height: 24px; white-space: nowrap; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; text-decoration: none; padding: 22px 0; border-bottom: 2px solid transparent; letter-spacing: .02em; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--ink); font-weight: 700; }
.main-nav a.ext { color: var(--muted); }
.main-nav a.nav-icon { display: flex; align-items: center; }
.main-nav a.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.hero {
  color: #fff;
  background:
    radial-gradient(ellipse 80% 90% at 85% 10%, rgba(80,140,130,.35), transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(40,90,85,.45), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  padding: 77px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 800; }
/* Front-page lockup: traced "mum" mark with ARCHIVE spaced to the same width */
.hero-mark { display: inline-flex; flex-direction: column; gap: clamp(10px, 1.6vw, 18px); margin: 4px 0 8px; }
.hero-mark svg { display: block; width: clamp(180px, 30vw, 320px); height: auto; color: #fff; }
.hero-mark span { display: flex; justify-content: space-between; font-size: clamp(15px, 2.6vw, 27px); font-weight: 500; line-height: 1; }
.hero-mark i { font-style: normal; }
.hero-sub { font-size: clamp(16px, 2.2vw, 22px); font-weight: 400; text-transform: uppercase; margin: 14px 0 28px; }
.hero-text { max-width: 640px; color: rgba(255,255,255,.82); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; border: 1px solid; cursor: pointer; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #fff; color: var(--ink); }

/* stats */
.stats-section { padding-top: 56px; padding-bottom: 24px; display: grid; gap: 48px; }

.h-sub { font-size: 14px; font-weight: 700; letter-spacing: .04em; margin: 0 0 18px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none; position: relative; outline: none; }
.bar-fill { width: 100%; height: calc(var(--h) * 140px); background: #9fbfb8; border-radius: 3px 3px 0 0; min-height: 3px; transition: background .15s; }
.bar:hover .bar-fill, .bar:focus-visible .bar-fill { background: var(--hero-b); }
.bar-n { font-size: 11px; font-weight: 500; margin-bottom: 4px; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .15s; }
.bar:hover .bar-n, .bar:focus-visible .bar-n { color: var(--ink); font-weight: 700; }
.bar-y { position: absolute; bottom: -22px; font-size: 11px; color: var(--muted); transition: color .15s; }
.bar:hover .bar-y, .bar:focus-visible .bar-y { color: var(--ink); font-weight: 700; }
.chart { padding-bottom: 24px; }

/* archive */
.archive { padding-top: 56px; padding-bottom: 80px; }
.archive-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.filter { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); padding: 0 14px; height: 44px; min-width: min(360px, 100%); background: #fff; }
.filter svg, .act svg, .s-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.filter input { border: 0; outline: 0; font: 400 14px var(--mono); flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.filter:focus-within { box-shadow: 0 0 0 3px rgba(14,14,16,.12); }
.filter-empty { color: var(--muted); padding: 32px 0; }

.year { padding-top: 40px; scroll-margin-top: 72px; }
.year-title { font-size: 28px; font-weight: 800; display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.year-title span { font-size: 12px; font-weight: 400; color: var(--muted); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px 0; text-decoration: none; border-bottom: 1px solid var(--line);  position: relative; }
.event-card:hover .event-country { text-decoration: underline; text-underline-offset: 4px; }
.event-card.is-postponed { color: var(--muted); }
.event-month { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; display: flex; gap: 8px; align-items: center; }
.event-country { font-size: 17px; font-weight: 700; text-transform: uppercase; line-height: 1.2; margin-top: 4px; }
.event-city { font-size: 13px; color: var(--ink-2); }
.badge { font-size: 10px; font-weight: 700; border: 1px solid currentColor; padding: 0 5px; line-height: 16px; }

/* page head / event */
.page-head { padding-top: 32px; padding-bottom: 32px; }
.page-head.narrow, .narrow { max-width: 860px; }
.crumbs { font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; letter-spacing: .02em; }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-size: 15px; text-transform: uppercase; font-weight: 400; }
.event-meta span + span::before { content: "·"; margin-right: 24px; color: var(--muted); }
.lead { font-size: 16px; color: var(--ink-2); margin: 16px 0 0; }
.notice { border: 1px solid var(--ink); background: var(--soft); padding: 16px 20px; margin-bottom: 32px; }

.agenda-wrap { padding-bottom: 80px; }
.day { margin-top: 40px; }
.day-title { font-size: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 32px; }
.table-wrap { overflow-x: auto; }
table.agenda { width: 100%; border-collapse: collapse; }
.agenda caption { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 18px 0 6px; }
.agenda th { font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 12px 8px 0; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.agenda th:nth-child(n+3) { text-align: center; width: 88px; }
.agenda td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.s-time { width: 72px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-title { font-weight: 500; }
tr.break .s-title { font-weight: 300; color: var(--muted); }
tr.break .s-time { color: var(--muted); font-weight: 300; }
.s-speaker { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.s-abstract { margin-top: 8px; font-size: 13px; }
.s-abstract summary { cursor: pointer; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; list-style: none; display: inline-flex; gap: 6px; }
.s-abstract summary::-webkit-details-marker { display: none; }
.s-abstract summary::before { content: "+"; font-weight: 700; color: var(--ink); }
.s-abstract[open] summary::before { content: "–"; }
.s-abstract div { margin-top: 8px; max-width: 760px; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 14px; overflow-wrap: anywhere; }
.s-link { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 6px; margin-right: 12px; color: var(--ink-2); }
.s-act { text-align: center; white-space: nowrap; }
.s-act .none { color: var(--line); }
.act { text-transform: uppercase; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 6px 8px; border: 1px solid transparent; }
.act svg { width: 22px; height: 22px; stroke-width: 1.4; }
.act:hover { border-color: var(--ink); }
.act + .act { margin-left: 2px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; border-top: 1px solid var(--ink); padding-top: 20px; }
.pager a { text-decoration: none; font-weight: 700; text-transform: uppercase; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pager a span { font-size: 11px; font-weight: 400; color: var(--muted); }
.pager a:hover { text-decoration: underline; }
.pager-next { text-align: right; align-items: flex-end; }

/* presentations */
.search-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filter-wide { flex: 1 1 360px; }
.result-count { font-size: 12px; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }
.results .r-event { width: 180px; font-size: 13px; }
.results .r-event a { font-weight: 700; text-decoration: none; text-transform: uppercase; }
.results .r-event a:hover { text-decoration: underline; }
.results .r-event span { display: block; color: var(--muted); }
.results mark { background: #dff0ec; color: inherit; }
.more { margin: 32px auto 80px; display: flex; }

/* prose */
.prose { max-width: 720px; margin-top: 32px; padding-bottom: 80px; }
.prose p { margin: 0 0 18px; }
.prose .h-sub { margin-top: 40px; }

/* footer */
.site-footer { background: var(--footer); color: #fff; padding: 20px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.footer-title { font-weight: 700; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.footer-links a { text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* video modal */
.video-modal { position: fixed; inset: 0; z-index: 50; background: rgba(14,14,16,.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-inner { width: min(1100px, 100%); position: relative; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font: 300 36px/1 var(--mono); cursor: pointer; }
.video-yt { display: inline-block; color: #fff; font-size: 12px; text-transform: uppercase; margin-top: 12px; }

/* ---- gallery */
.meta-link { color: inherit; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 5px; }
.meta-link:hover { text-decoration-color: currentColor; }
.year-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: 13px; }
.year-jump a { color: var(--muted); text-decoration: none; }
.year-jump a:hover { color: var(--ink); }
.gallery-wrap { padding-bottom: 64px; }
.gallery-wrap .year:first-child { padding-top: 0; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; padding-top: 20px; }
.album { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.album-cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); margin-bottom: 10px; }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album:hover .album-cover img { transform: scale(1.04); }
.album-title { font-size: 14px; font-weight: 700; text-transform: uppercase; }
.album:hover .album-title { text-decoration: underline; text-underline-offset: 4px; }
.album-meta { font-size: 12px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.photo-grid a:hover img { opacity: .85; }
.gallery-wrap .pager { margin-top: 48px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: #0c0e0e; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; }
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 12px; right: 16px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand svg { width: 104px; }
  .brand-sub { padding-left: 10px; font-size: 11px; }
  .main-nav { gap: 16px; }
  .main-nav a.ext { display: none; }
  .header-inner { height: 56px; }
  .main-nav a { padding: 18px 0; font-size: 11px; }
  .hero { padding: 51px 0 45px; }
  .tracks { grid-template-columns: 1fr; }
  .agenda thead { display: none; }
  .agenda tr { display: grid; grid-template-columns: 56px 1fr auto auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .agenda td { border: 0; padding: 0 8px 0 0; }
  .s-time { width: auto; font-size: 13px; }
  .agenda th:nth-child(n+3), .s-act { width: auto; }
  .act { padding: 2px 4px; }
  .act span { display: none; }
  .s-act .none { display: none; }
  .results .r-event { width: auto; }
  .results tr { grid-template-columns: 1fr auto auto; }
  .results .r-event { grid-column: 1 / -1; margin-bottom: 4px; }
  .results .r-event span { display: inline; margin-left: 8px; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; }
  .album-title { font-size: 13px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 3px; }
  .lb-img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 44px; transform: none; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 4px; right: 4px; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
}
