:root {
  color-scheme: dark;
  background: #0b0b0a;
  font-family: "Noto Serif TC", "Songti TC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #0b0b0a;
}

.design-page {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  line-height: 0;
}

.design-image {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot {
  position: absolute;
  display: block;
  border: 0;
  border-radius: 3px;
  outline-offset: 4px;
}

.hotspot:focus-visible,
.home-link:focus-visible {
  outline: 2px solid #d9a15d;
}

/* 點擊範圍依照 1536px 寬的首頁設計稿設定，會隨畫面等比例縮放。 */
.instagram-link {
  left: 2.5%;
  top: 8%;
  width: 16%;
  height: 4%;
}

.view-more-link {
  left: 3.5%;
  top: 73.5%;
  width: 33.5%;
  height: 6.5%;
}

.home-link {
  position: absolute;
  z-index: 4;
  right: 2rem;
  top: 1.25rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(50, 37, 25, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: #382516;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* 第二頁的四個故事保持無標示；好奇點下去才會展開。 */
.story-grid {
  --cross-y: 48.55%;
  --grid-bottom: 89.2%;
}

.story-tile {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.story-tile:focus-visible,
.grid-instagram:focus-visible {
  outline: 2px solid #9a714d;
  outline-offset: -5px;
}

.story-tile--sleep,
.story-tile--overuse {
  top: 0;
  height: var(--cross-y);
}

.story-tile--aging,
.story-tile--reset {
  top: var(--cross-y);
  height: calc(var(--grid-bottom) - var(--cross-y));
}

.story-tile--sleep,
.story-tile--aging {
  left: 0;
  width: 50%;
}

.story-tile--overuse,
.story-tile--reset {
  left: 50%;
  width: 50%;
}

.grid-instagram {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: var(--cross-y);
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 48, 28, 0.42);
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.82);
  color: #6b4328;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.grid-instagram:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.98);
}

.grid-instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}

.story-focus {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background-color: #171310;
  background-image: url("Page2 FInal & Final.png");
  background-repeat: no-repeat;
  background-size: 200% auto;
  cursor: zoom-out;
  animation: story-focus-in 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.story-focus::backdrop {
  background: rgba(20, 15, 12, 0.72);
  backdrop-filter: blur(5px);
}

.story-focus--top-left { background-position: left top; }
.story-focus--top-right { background-position: right top; }
.story-focus--bottom-left { background-position: left bottom; }
.story-focus--bottom-right { background-position: right bottom; }

@keyframes story-focus-in {
  from { opacity: 0; transform: scale(.965); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
  .home-link {
    right: 0.75rem;
    top: 0.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
  }

  .grid-instagram {
    width: 32px;
    height: 32px;
  }

  .grid-instagram svg {
    width: 15px;
    height: 15px;
  }
}
