* { box-sizing: border-box; }

:root {
  --paper: #fbf7f1;
  --ink: #34312e;
  --line: rgba(52, 49, 46, .15);
  --focus: #224e82;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.utility-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 247, 241, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease;
}

.utility-header.is-hidden { transform: translateY(-110%); }

.utility-header a {
  color: inherit;
  text-decoration: none;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.utility-header nav {
  display: flex;
  gap: 20px;
  font-size: 12px;
  letter-spacing: .02em;
}

.portfolio {
  width: 100%;
  padding-top: 52px;
}

.page-module {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.page-module picture,
.page-artwork {
  display: block;
  width: 100%;
}

.page-artwork {
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 58px;
}

.selected-works-anchor { top: 49.7%; }
.workshops-anchor { top: 86.1%; }
.baklava-anchor { top: 49.6%; }
.sparrow-anchor { top: 51.5%; }
.recycled-anchor { top: 35.2%; }
.boardgame-anchor { top: 69.3%; }
.about-anchor { top: 57.7%; }

.hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  border-radius: 6px;
  text-decoration: none;
}

.hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hotspot:hover { background: rgba(255,255,255,.08); }

.hotspot:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  background: rgba(255,255,255,.14);
}

.hs-emoticons { left: 10.6%; top: 58.2%; width: 78%; height: 4.5%; }
.hs-baklava { left: 10.6%; top: 63.2%; width: 78%; height: 4.5%; }
.hs-boardgame { left: 10.6%; top: 68.2%; width: 78%; height: 4.5%; }
.hs-books { left: 10.6%; top: 73.2%; width: 78%; height: 4.5%; }
.hs-illustrations { left: 10.6%; top: 78.2%; width: 78%; height: 4.5%; }
.hs-experimental { left: 10.6%; top: 83.2%; width: 78%; height: 4.5%; }
.hs-unicef { left: 10.5%; top: 90.5%; width: 35%; height: 7.5%; }
.hs-workshop { left: 50%; top: 90.5%; width: 35%; height: 7.5%; }

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251,247,241,.92);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .utility-header {
    min-height: 48px;
    padding: 0 13px;
  }

  .portfolio { padding-top: 48px; }

  .wordmark { font-size: 16px; }

  .utility-header nav {
    gap: 12px;
    font-size: 11px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .utility-header,
  .back-to-top { transition: none; }
}
