@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page-bg: #FAF7F0;
  --ink: #2B2B2B;
  --link: #0000EE;
  --site-font: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --pad: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font: 13px/1.5 var(--site-font);
}
a { color: var(--link); }
img { display: block; }

.topline {
  padding: 6px var(--pad);
  font-size: 12px;
}
.topline a { margin-right: 1.2em; }
.topline button.lang {
  font: inherit; color: var(--link); text-decoration: underline;
  background: none; border: 0; padding: 0; cursor: pointer;
}

section { border-top: 1px solid var(--ink); }
section:first-of-type { border-top: 0; }

.intro { padding: 10px var(--pad) 14px; }
.intro h1 { font-size: 16px; font-weight: 400; margin: 0 0 6px; }
.intro p { margin: 0; }

.viewer-wrap { padding: 0; }

.gallery {
  position: relative;
  margin: 0 var(--pad);
  min-height: 120px;
}
.gallery .thumb {
  position: absolute;
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
}
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery .empty { padding: 24px 0; margin: 0; }

.process { padding: 0; }
.process button {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
}
.process img { width: 100%; height: auto; }

.sizes { padding: 14px var(--pad) 10px; margin: 0; }
.contact-box {
  margin: 0 var(--pad) 28px;
  padding: 12px;
  border: 1px solid var(--ink);
}
.contact-box p { margin: 0 0 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--page-bg);
  display: none;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.lightbox.open { display: block; }
.lightbox img {
  position: absolute; inset: 36px 0 36px 0;
  width: 100%; height: calc(100% - 72px);
  object-fit: contain;
}
.lightbox .count, .lightbox .hint {
  position: absolute; left: var(--pad); right: var(--pad);
  font-size: 12px;
}
.lightbox .count { top: 10px; }
.lightbox .hint { bottom: 10px; }

/* viewer inside the page: no frame, text not at the screen edge */
#viewer .pv-stage { border: 0; }
#viewer .pv-bar { padding-left: var(--pad); padding-right: var(--pad); }
