/* Made by tools/table.py from the working copy, do not edit here. Shared by the three site concepts: type, corners, the viewer, the info sheet. Black and white only. */
@font-face { font-family: 'Relative'; src: url('/fonts/relative-book-pro.otf') format('opentype'); font-weight: 400; font-display: block; }

:root { --m: 16px; --small: 14px; --big: clamp(2.1rem, 5.6vw, 6.6rem); }
@media (min-width: 768px) { :root { --m: 24px; --small: 15px; } }

*, ::before, ::after { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #000; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Relative', system-ui, sans-serif;
  font-size: var(--small);
  line-height: 1.35;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; }
.lb-open, .info-open { overflow: hidden; }

/* the four corners carry the only small type */
.corner { position: fixed; z-index: 30; padding: calc(var(--m) * .6) var(--m); line-height: 1.2; }
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; }
.corner.bl { bottom: 0; left: 0; }
.corner.br { bottom: 0; right: 0; }
a.corner:hover, button.corner:hover, .lb button:hover, .info a:hover, .info button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* one piece at a time, large */
.lb { position: fixed; inset: 0; z-index: 50; background: #fff; display: none; }
.lb.on { display: block; }
.lb-stage { position: absolute; inset: calc(var(--m) * 2.6) var(--m); display: flex; align-items: center; justify-content: center; cursor: e-resize; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lb-close { position: absolute; top: calc(var(--m) * .6); right: var(--m); }
.lb-count { position: absolute; bottom: calc(var(--m) * .6); left: var(--m); }
.lb-sound { position: absolute; bottom: calc(var(--m) * .6); right: var(--m); }

/* the info sheet: his sentence, the address */
.info { position: fixed; inset: 0; z-index: 60; background: #fff; display: none; padding: calc(var(--m) * .6) var(--m); overflow: auto; }
.info.on { display: block; }
.info-close { position: absolute; top: calc(var(--m) * .6); right: var(--m); }
.info-text { margin-top: calc(var(--m) * 3); font-size: var(--big); line-height: 1.02; letter-spacing: -.015em; max-width: 15em; }
.info-mail { display: inline-block; margin-top: calc(var(--m) * 4); font-size: min(var(--big), calc((100vw - 2 * var(--m)) / 13.9)); line-height: 1.02; letter-spacing: -.015em; }
.info-links { display: flex; gap: var(--m); margin-top: calc(var(--m) * 1.5); }

/* counters keep their width as they change */
#count, .lb-count { font-feature-settings: "ss01" 1, "tnum" 1; }
