/* Ye-Tracker.com, white and minimal. One font: IBM Plex Mono. */
@font-face { font-family: "IBM Plex Mono"; src: url('/home/static/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --bg: #fff; --fg: #000; --mute: #b7b7b7; --line: #e6e6e6; --ph: #000; --bar-h: 88px; --pad: 45px; }
[data-theme="dark"] { --bg: #000; --fg: #fff; --mute: #6b6b6b; --line: #222; --ph: #000; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: .01em; text-transform: uppercase; -webkit-font-smoothing: antialiased; min-height: 100vh; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

/* ---- top bar */
.bar { position: fixed; z-index: 30; inset: 0 0 auto 0; height: var(--bar-h); display: flex; justify-content: center; align-items: flex-start; padding-top: 34px; background: linear-gradient(var(--bg) 70%, transparent); pointer-events: none; }
.bar > * { pointer-events: auto; }
.icon-btn { position: absolute; top: 22px; left: 14px; width: 24px; height: 24px; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-wrap.right { position: absolute; top: 0; right: 0; }
.m-wrap.right .icon-btn { left: auto; right: 14px; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; max-width: calc(100vw - 100px); }
.m { color: var(--mute); transition: color .2s; white-space: nowrap; }
.m:hover, .m.is-on, .m[aria-expanded="true"] { color: var(--fg); }
.m-wrap { position: relative; display: inline-block; }
.pop { position: absolute; z-index: 40; top: 26px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; min-width: 130px; padding: 12px 18px; background: var(--bg); border: 1px solid var(--line); text-align: center; animation: pop .18s ease; }
.pop[hidden] { display: none; }
.pop-right { left: auto; right: 14px; top: 52px; transform: none; text-align: right; }
.pop a, .pop button { color: var(--mute); text-align: inherit; }
.pop a:hover, .pop button:hover { color: var(--fg); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pop-right { animation-name: pop-r; }
@keyframes pop-r { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- the swapping content */
.view { padding-bottom: 30px; padding-top: var(--bar-h); min-height: 100vh; outline: none; }
.pane { animation: in .35s ease both; }
.pane.is-leaving { animation: none; opacity: 0; transition: opacity .22s ease; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }
.sheet-pane { position: fixed; inset: var(--bar-h) 0 26px 0; z-index: 1; background: var(--bg); display: flex; flex-direction: column; }
.sheet-pane iframe { width: 100%; flex: 1 1 auto; min-height: 0; border: 0; display: block; background: var(--bg); }

.sub-menu { display: flex; justify-content: center; gap: 24px; padding: 6px 0 30px; }
.sub-menu a { color: var(--mute); transition: color .2s; }
.sub-menu a:hover, .sub-menu a.is-on { color: var(--fg); }

/* ---- era grid (4 across, each a black placeholder until you add a photo) */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 76px 24px; padding: 0 var(--pad) 90px; }
.card { display: block; text-align: center; transition: opacity .32s ease, transform .4s ease; }
.card .pic { display: block; aspect-ratio: 16 / 9; background: var(--ph); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s; }
.card:hover .pic img { transform: scale(1.03); }
.card .cap { display: block; padding-top: 40px; }
.card .cap small { display: block; color: var(--mute); font-size: 11px; padding-top: 4px; }
.grid.picking .card:not(.picked) { opacity: 0; pointer-events: none; transform: scale(.98); }
.grid.picking .card.picked { transform: translateY(-6px); }
.empty { text-align: center; color: var(--mute); padding: 80px 20px; }

/* ---- inside an era */
.head { text-align: center; padding: 10px var(--pad) 26px; }
.head h1 { font-size: 15px; font-weight: 400; margin: 0; letter-spacing: .02em; }
.head .back { display: inline-block; color: var(--mute); margin-bottom: 18px; }
.head .back:hover { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 0 var(--pad) 36px; }
.chips a { color: var(--mute); } .chips a:hover { color: var(--fg); }
.sec { padding: 0 var(--pad); margin: 0 0 22px; color: var(--mute); font-size: 11px; text-align: left; }
.sub-sec { scroll-margin-top: 100px; margin-bottom: 70px; }
.photos { column-count: 4; column-gap: 24px; padding: 0 var(--pad) 70px; }
.photo { display: block; break-inside: avoid; margin: 0 0 24px; background: var(--ph); }
.photo img { width: 100%; height: auto; display: block; }
.more { text-align: center; padding: 0 0 80px; color: var(--mute); } .more button:hover { color: var(--fg); }

/* ---- news */
.news { max-width: 760px; margin: 0 auto; padding: 0 24px 100px; }
.news article { border-top: 1px solid var(--line); padding: 28px 0; }
.news h2 { font-size: 14px; font-weight: 400; margin: 0 0 4px; }
.news time { color: var(--mute); font-size: 11px; }
.news p { text-transform: none; margin: 14px 0 0; white-space: pre-wrap; word-break: break-word; }
.news .post { text-align: center; padding: 0 0 30px; color: var(--mute); } .news .post a:hover { color: var(--fg); }

/* ---- full-screen photo viewer */

@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photos { column-count: 3; } }
@media (max-width: 780px) { :root { --pad: 20px; --bar-h: 66px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 14px; } .photos { column-count: 2; column-gap: 14px; } .card .cap { padding-top: 22px; } .bar { padding-top: 24px; } .view { padding-bottom: 14px; } .menu { gap: 4px 12px; font-size: 12px; } .sheet-pane { inset: var(--bar-h) 0 0 0; } .viewer .stage { padding: 60px 8px 8px; } .viewer .nav { width: 48px; } }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.up-hint { text-align: center; color: var(--mute); padding: 60px 0 40px; }
.up-hint a { color: var(--fg); }

.wip-note { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; margin: 0; padding: 6px 12px; text-align: center; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute, var(--muted)); background: var(--bg); pointer-events: none; }

*, *::before, *::after { border-radius: 0 !important; }
.head .acts { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.head .acts a, .head .acts button { background: none; border: 0; padding: 0; font: inherit; text-transform: uppercase; color: var(--mute); cursor: pointer; text-decoration: none; letter-spacing: inherit; }
.head .acts a:hover, .head .acts button:hover { color: var(--fg); }

/* viewer (zoom / pan / arrows / download): solid white, square */
.viewer { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none; }
.viewer[hidden] { display: none; }
.v-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg); position: relative; z-index: 3; text-transform: uppercase; }
.v-title { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-title small { color: var(--mute); margin-left: 8px; }
.v-btn { background: none; color: var(--fg); border: 0; min-width: 38px; height: 38px; cursor: pointer; display: inline-grid; place-items: center; font: inherit; padding: 0 10px; text-decoration: none; }
.v-btn:hover { opacity: .55; }
.v-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v-stage { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.v-stage.grabbing { cursor: grabbing; }
.v-stage img { max-width: none; max-height: none; flex: none; object-fit: contain; transform-origin: 50% 50%; will-change: transform; pointer-events: none; display: block; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 64px; font-size: 26px; }
.v-prev { left: 10px; } .v-next { right: 10px; }
.v-loading { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--bg); padding: 6px 12px; font-size: 11px; text-transform: uppercase; color: var(--mute); z-index: 3; }
.v-hint { position: absolute; bottom: 14px; right: 16px; font-size: 11px; text-transform: uppercase; color: var(--mute); z-index: 3; }
@media (max-width: 700px) { .v-hint { display: none; } .v-nav { width: 40px; height: 56px; } }
body.viewer-open { overflow: hidden; }

.sheet-open { position: fixed; z-index: 26; right: 14px; bottom: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; text-decoration: none; }
.wip-note .note-link { display: none; }
.sheet-open[hidden] { display: none; }
.sheet-open:hover { color: var(--fg); }

.radio-pane[hidden], .sheet-pane[hidden] { display: none; }

@media (max-width: 780px) { .wip-note { top: 0; bottom: auto; z-index: 31; } }
@media (max-width: 780px) {
  .wip-note { padding: 3px 12px; font-size: 9px; line-height: 1.3; }
  .wip-note .wip-long { display: none; }
  .menu { font-size: 11px; gap: 2px 11px; line-height: 1.3; }
  .sheet-open { display: none; }
  .wip-note .note-link { display: inline; pointer-events: auto; color: inherit; text-decoration: none; }
  .wip-note .note-link[hidden] { display: none; }
  .wip-note .note-link::before { content: '\00a0\00b7\00a0'; }
}
@media (max-width: 780px) { .wip-note { transition: transform .25s ease; } .wip-note.wip-hide { transform: translateY(-100%); } }
@media (max-width: 780px) {
  /* any phone width: the note stays on ONE line (text shrinks to fit) and the top bar takes whatever height it needs */
  .wip-note { white-space: nowrap; font-size: clamp(6px, calc((100vw - 24px) / 40), 9px); padding-left: 0; padding-right: 0; }
  .bar { height: auto; padding-bottom: 8px; box-sizing: border-box; }
}
