:root {
  --ink: #111;
  --paper: #f3f3f3;
  --sans: "Century Gothic", "Futura", "Avenir Next", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
}

html, body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

body[data-tab="home"] {
  overflow: hidden;
  background: #cbb9a4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav {
  position: fixed;
  top: calc(28px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 1.4em;
  font-size: 22px;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  color: #111;
}

body[data-tab="home"] .nav {
  color: #111;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.nav a.is-on {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.nav a:hover {
  opacity: 0.55;
}

.page {
  display: none;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

.page.is-on {
  display: block;
}

.home {
  position: relative;
  overflow: hidden;
  background: #cbb9a4;
}

.home.is-on {
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
}

.home-pan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  z-index: 0;
}

.home-pan.is-dragging {
  cursor: grabbing;
}

.home-pan img {
  position: absolute;
  top: 50%;
  left: 0;
  max-width: none;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

body[data-tab="shop"] {
  background: #ccdeec;
  color: #111;
}

.shop {
  display: none;
  background: #ccdeec;
}

.shop.is-on {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100lvh;
  height: 100%;
}

.product {
  position: relative;
  width: auto;
  max-width: 94vw;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  margin: 0;
}

.pack img {
  height: min(360px, 42vh);
  width: auto;
  max-width: 46vw;
}

.copy {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  padding-top: 1.8rem;
  white-space: nowrap;
  z-index: 2;
}

.product h1 {
  margin: 0 0 0.2em;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.product p {
  margin: 0 0 1.6em;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.buy {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.buy:hover {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .nav {
    top: calc(20px + env(safe-area-inset-top, 0px));
    font-size: 20px;
  }

  .pack {
    gap: 12px;
  }

  .pack img {
    height: auto;
    width: min(170px, 44vw);
    max-width: 44vw;
  }
}
