/* --- hero (crate) ----------------------------------------------------- */ /* The hero band is a fixed-dark scrim (like a photo backdrop) in both schemes, so its gradient endpoint and overlaid text are pinned to the invariant tokens rather than --ink/--bg, which would otherwise flip. */ .hero { position: relative; flex-shrink: 0; height: 160px; border-bottom: 3px solid var(--ink); overflow: hidden; /* Greenhouse art; the gradient beneath paints while (or if) the photo never loads. */ background: linear-gradient( to bottom, transparent 30%, color-mix(in srgb, var(--ink-fixed) 60%, transparent) ), url("/static/hero-greenhouse.jpg") center 35% / cover no-repeat, linear-gradient(135deg, var(--owned), #2c4129 60%, var(--ink-fixed)); } /* Crate-home chrome inset over the hero; padding mirrors .app-bar so chrome lines up across routes. */ .hero__bar { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; background: linear-gradient( to bottom, color-mix(in srgb, var(--ink-fixed) 60%, transparent), transparent ); } .hero__brand { color: var(--cream-fixed); font: 400 22px/1 var(--display); letter-spacing: 1.5px; padding: 2px 0; } /* Public crate: back button and handle cluster left instead of space-between. */ .hero__bar--public { justify-content: flex-start; } .hero__brand--handle { text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hero__count { position: absolute; left: 18px; top: 134px; color: var(--cream-fixed); font: italic 900 13px/1 var(--serif); /* Counts change as records land; fixed-width digits stop the line dancing. */ font-variant-numeric: tabular-nums; } .hero__badge { position: absolute; right: 16px; bottom: 10px; } /* --- toolbar / tags --------------------------------------------------- */ .body { padding: 16px; } .toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; margin-bottom: 14px; } .tags { display: flex; gap: 8px; flex-wrap: wrap; } /* --- display toggle (grid | list) -------------------------------------- */ .display-toggle { display: flex; flex-shrink: 0; border: 2px solid var(--ink); box-shadow: var(--shadow-xs); } .display-toggle__btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--ink-muted); font: 700 16px/1 var(--mono); cursor: pointer; } .display-toggle__btn + .display-toggle__btn { border-left: 2px solid var(--ink); } .display-toggle__btn.is-active { background: var(--ink-fixed); color: var(--cream-fixed); } /* --- cover grid ------------------------------------------------------- */ .grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; gap: 16px 14px; } .cover-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow-md); text-decoration: none; color: var(--ink); } .cover-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px; } .cover-card__title { font: 700 13px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cover-card__artist { font: 400 11px/1.2 var(--mono); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cover-card__fmt { font: 700 10px/1.2 var(--mono); letter-spacing: 0.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* --- cover tile (the Anton letter on a colour block) ------------------ */ .cover-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .cover-tile { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; /* The letter-tile fallback sits on a colour fill (or real cover art), so its glyph colour is pinned rather than theme-relative. */ color: var(--cream-fixed); font-family: var(--display); font-weight: 400; border-bottom: 2px solid var(--ink); } .cover-tile img { width: 100%; height: 100%; object-fit: cover; } .cover-tile--card { height: 150px; font-size: 84px; } .cover-tile--detail { height: 300px; font-size: 190px; border-bottom-width: 3px; } .cover-tile--owned { background: var(--owned); } .cover-tile--wanted { background: var(--wanted); } .cover-tile--accent { background: var(--accent); color: var(--ink-fixed); } .cover-tile--sage { background: var(--sage); color: var(--ink-fixed); } .cover-tile__badge { /* Without this, the flex parent stretches this abspos box full-height (its shadow then wraps that, not the badge). */ display: inline-flex; position: absolute; left: 8px; top: 8px; box-shadow: var(--shadow-xs); } /* Overlaid on real cover art as often as on a colour tile, so pinned invariant tokens keep it legible in both schemes. */ .cover-tile__fmt { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--ink-fixed); color: var(--cream-fixed); padding: 5px 10px; font: 700 11px/1 var(--mono); letter-spacing: 0.5px; } .cover-tile__status { /* Same fix as .cover-tile__badge above: prevents the flex parent from stretching this abspos box full-height. */ display: inline-flex; position: absolute; left: 16px; top: 16px; box-shadow: var(--shadow-sm); } /* --- crate list rows ---------------------------------------------------- */ .rows { display: flex; flex-direction: column; } .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink); } .row + .row { border-top: 1px solid var(--line); } .row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .row__title { font: 700 13px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row__meta { font: 400 11px/1.2 var(--mono); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row__status { flex-shrink: 0; } .cover-tile--row { width: 48px; height: 48px; flex-shrink: 0; font-size: 20px; border: 2px solid var(--ink); }