/* Rootinger website showroom. Type and colour follow rootinger.com: Anton display, Hanken Grotesk body,
   black on white, the logo's red dot as the one accent (here it counts the tier). */
:root {
  --ink: #0e0e0e;
  --text: #272727;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --paper: #ffffff;
  --wash: #f6f6f6;
  --red: #f0523d;
  --display: 'Anton', 'Pretendard Variable', Pretendard, Impact, sans-serif;
  --body: 'Hanken Grotesk', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.55 var(--body); }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* header */
.top { padding: clamp(28px, 6vw, 56px) var(--gutter) clamp(20px, 4vw, 36px); text-align: center; }
.logo { width: min(240px, 60vw); height: auto; margin: 0 auto clamp(20px, 4vw, 36px); }
.headline { margin: 0; font: 400 clamp(52px, 11vw, 132px)/.92 var(--display); text-transform: uppercase; color: var(--ink); letter-spacing: .005em; }
.sub { margin: 14px auto 0; max-width: 34em; font-style: italic; font-size: clamp(16px, 2vw, 19px); color: var(--text); }
.sub--left { margin-left: 0; }

/* filters */
.filters { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); padding: 12px var(--gutter); display: grid; gap: 8px; }
.filter-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter-name { flex: none; width: 2.6em; font-weight: 700; color: var(--ink); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .dot { border-color: var(--paper); }
.chip[aria-pressed="true"] .dot.on { border-color: var(--red); }
.chip:disabled { border-style: dashed; border-color: #b9b9b9; color: #8a8a8a; cursor: default; }

/* tier dots: the logo's red dot, counted */
.dots { display: inline-flex; gap: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.dot.on { background: var(--red); border-color: var(--red); }

/* grid */
main { padding: 0 var(--gutter) clamp(48px, 8vw, 96px); }
.count { margin: 20px 0 14px; font-size: 14px; color: var(--muted); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.tile-btn { display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; position: relative; }
.tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile-btn:hover .tile-img img, .tile-btn:focus-visible .tile-img img { transform: scale(1.03); }
.tag { position: absolute; top: 14px; left: -6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 7px; background: var(--ink); color: var(--paper); font: 800 14px/1 'Pretendard Variable', Pretendard, sans-serif; transform: rotate(-2.5deg); }
.tag .dot { border-color: var(--paper); }
.tag .dot.on { border-color: var(--red); }
.tile-name { margin-top: 14px; font: 400 clamp(30px, 3.4vw, 40px)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.tile-kind { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.tile-note { margin-top: 4px; font-size: 15px; color: var(--muted); max-width: 32em; }
.tile-go { margin-top: 12px; justify-self: start; font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
.empty .chip { margin-top: 12px; }

/* tiers */
.tiers { margin-top: clamp(56px, 9vw, 112px); padding-top: clamp(32px, 5vw, 56px); border-top: 1.5px solid var(--ink); }
.section-h { margin: 0; font: 400 clamp(36px, 6vw, 72px)/.95 var(--display); text-transform: uppercase; color: var(--ink); }
.tier-list { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px clamp(20px, 3vw, 40px); }
.tier { border-top: 1px solid var(--line); padding-top: 16px; }
.tier p { margin: 0; }
.tier-name { display: flex; align-items: center; gap: 10px; font: 800 22px/1.2 'Pretendard Variable', Pretendard, sans-serif; color: var(--ink); }
.tier-name .dot { width: 10px; height: 10px; }
.tier-pages { margin-top: 6px !important; font-weight: 700; color: var(--ink); }
.tier-gets { margin-top: 4px !important; color: var(--muted); max-width: 30em; }

.foot { padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }

/* full-screen demo viewer */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr; background: var(--ink); }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); color: var(--paper); }
.vb-title { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; font-size: 15px; }
.vb-title b { font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.vb-title .dot { border-color: var(--paper); }
.vb-title .dot.on { border-color: var(--red); }
.vb-nav { display: flex; gap: 6px; }
.vb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.vb-back { border-color: var(--paper); }
.viewer-frame { width: 100%; height: 100%; border: 0; background: var(--paper); }

@media (max-width: 560px) {
  .vb-open { display: none; }
  .vb-title [data-v-tier] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-img img { transition: none; }
}
