:root {
  --wall: #FFFFFF;
  --ink: #121212;
  --label: #666666;
  --hush: #F0F0EE;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --gutter: 40px;
  --top: 72px;

  --plum: #1C1219;
  --sugar: #F7D3E1;
  --blush: #FBE9F0;
  --rose: #D63C74;
  --print: #FFFFFF;
  --zine: "Zen Maru Gothic", system-ui, sans-serif;
  --band: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.5 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--wall); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 44px; padding: 0 var(--gutter);
  background: var(--wall); border-bottom: 1px solid var(--ink);
}
.mark { font-weight: 900; font-stretch: 112%; font-size: 34px; line-height: 1; letter-spacing: -0.035em; text-decoration: none; }
nav.main { display: flex; gap: 28px; font-weight: 800; font-size: 16px; }
nav.main a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover { border-bottom-color: var(--ink); }

.entry { margin-left: auto; position: relative; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.entry > p { margin: 0; color: var(--label); }
.entry-open { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font-weight: 800; cursor: pointer; border-bottom: 2px solid transparent; }
.entry-open:hover, .entry-open[aria-expanded="true"] { border-bottom-color: var(--ink); }
.lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); opacity: .55; transition: opacity .2s, box-shadow .2s; }
.entry-open:hover .lamp, .entry-open[aria-expanded="true"] .lamp { opacity: 1; box-shadow: 0 0 0 3px rgba(214, 60, 116, .18), 0 0 10px 2px rgba(214, 60, 116, .55); }
.entry-form {
  position: absolute; top: calc(100% + 19px); right: 0; width: 320px;
  background: var(--wall); border: 1px solid var(--ink); padding: 16px;
  box-shadow: 0 18px 30px -18px rgba(18, 18, 18, .35);
}
.entry-form label { display: block; font-weight: 800; margin-bottom: 8px; }
.entry-row { display: flex; gap: 8px; }
.entry-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--wall); border: 1px solid var(--ink); border-radius: 0; padding: 9px 10px; }
.entry-row input::placeholder { color: #9A9A9A; }
.entry-row button { background: var(--ink); color: var(--wall); border: 0; padding: 0 18px; font-weight: 800; cursor: pointer; }
.entry-row button[disabled] { opacity: .5; cursor: progress; }
.entry-msg { margin: 8px 0 0; min-height: 1.4em; color: #B3261E; font-size: 14px; }
.entry-msg:empty { display: none; }

.now { height: calc(100vh - var(--top)); min-height: 640px; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); border-bottom: 1px solid var(--ink); }
.now-photo { margin: 0; background: var(--hush); overflow: hidden; }
.now-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: opacity .35s ease; }
.now-text { padding: 44px var(--gutter) 40px 48px; display: flex; flex-direction: column; transition: opacity .35s ease; }
.now.is-swapping .now-photo img, .now.is-swapping .now-text { opacity: 0; }
.now h1 { margin: 0; font-weight: 900; font-stretch: 72%; font-size: 6rem; line-height: .9; letter-spacing: -0.015em; max-width: 12ch; text-wrap: balance; }
.shot { margin: 20px 0 0; font-size: 22px; font-weight: 500; }
.shot span { color: var(--label); }
.wall { margin-top: auto; max-width: 32rem; }
.label { display: grid; grid-template-columns: 7rem 1fr; gap: 6px 16px; font-size: 14px; border-top: 1px solid var(--ink); padding-top: 12px; margin: 0 0 26px; }
.label dt { color: var(--label); }
.label dd { margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--wall); text-decoration: none; font-weight: 800; padding: 14px 22px; transition: background .15s; }
.btn:hover { background: #333; }
.btn:active { transform: translateY(1px); }

section > h2 { margin: 0 0 22px; font-weight: 900; font-stretch: 72%; font-size: 48px; line-height: 1; }

.edits { padding: 44px var(--gutter) 64px; border-bottom: 1px solid var(--ink); scroll-margin-top: var(--top); }
.edit-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.edit { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.edit img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; background: var(--hush); transition: opacity .2s; }
.edit:hover img { opacity: .85; }
.edit-name { display: block; margin: 14px 0 2px; font-weight: 800; font-size: 21px; line-height: 1.1; }
.edit-meta { display: block; color: var(--label); font-size: 14px; }
.edit[aria-pressed="true"] .edit-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.edit[aria-pressed="true"] img { outline: 3px solid var(--ink); outline-offset: 4px; }
.edit-lock { width: 100%; aspect-ratio: 4 / 5; background: var(--plum); color: var(--blush); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.edit-lock i { font-size: 26px; color: var(--sugar); }
.edit-lock b { font-family: var(--zine); font-weight: 900; font-size: 28px; line-height: 1.05; }
.edit-back:hover .edit-lock { background: #2A1B26; }

.photos { padding: 44px 0 72px; border-bottom: 1px solid var(--ink); scroll-margin-top: var(--top); }
.photos > h2 { padding: 0 var(--gutter); }
.wallrow { list-style: none; margin: 0; padding: 0 var(--gutter) 8px; display: flex; gap: 28px; overflow-x: auto; scrollbar-color: var(--ink) var(--hush); }
.wallrow li { flex: none; }
.wallrow button { display: block; padding: 0; border: 0; background: var(--hush); cursor: zoom-in; }
.wallrow img { height: min(64vh, 620px); width: auto; }
.wallrow p { margin: 10px 0 0; font-size: 14px; color: var(--label); display: flex; gap: 14px; }
.wallrow p a { color: var(--ink); font-weight: 800; text-decoration: none; }
.wallrow p a:hover { text-decoration: underline; }

.store { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px var(--gutter); background: var(--ink); color: var(--wall); scroll-margin-top: var(--top); }
.store-photo { margin: 0; }
.store-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.store-text { max-width: 36rem; }
.store-text h2 { margin-bottom: 8px; }
.store-name { margin: 0 0 16px; font-weight: 800; font-size: 22px; }
.store-text p { margin: 0 0 14px; }
.store-spec { color: #B5B5B5; font-size: 15px; }
.btn-light { background: var(--wall); color: var(--ink); margin-top: 8px; }
.btn-light:hover { background: #E2E2E2; }
.store :focus-visible { outline-color: var(--wall); }

.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 56px var(--gutter) 24px; }
.info section { scroll-margin-top: calc(var(--top) + 24px); }
.label-big { font-size: 17px; grid-template-columns: 9rem 1fr; gap: 10px 20px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #D6D6D6; text-decoration: none; }
.links a span:first-child { font-weight: 800; font-size: 19px; }
.links a span:last-child { color: var(--label); font-size: 15px; }
.links a:hover span:first-child { text-decoration: underline; }

.foot { padding: 48px var(--gutter) 32px; color: var(--label); font-size: 14px; }
.foot p { margin: 0; }
.foot a { color: var(--ink); }

.curtain {
  position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: 50; pointer-events: none;
  background: var(--plum); transform: translateY(calc(-100% - 20px));
}
.curtain::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  background:
    radial-gradient(circle at 12px 5px, var(--sugar) 2.2px, transparent 2.6px) 0 0 / 24px 18px repeat-x,
    radial-gradient(circle at 12px 0, var(--plum) 11.5px, transparent 12px) 0 0 / 24px 18px repeat-x;
}
.curtain.is-down { transform: none; transition: transform .9s cubic-bezier(.7, 0, .2, 1); pointer-events: auto; }
.curtain.is-band { transform: none; height: var(--band); transition: height .8s cubic-bezier(.6, 0, .2, 1); }
.curtain.is-up { transform: translateY(calc(-100% - 20px)); transition: transform .7s cubic-bezier(.6, 0, .2, 1); }

body.on-back { background: var(--sugar); color: var(--plum); font-family: var(--zine); font-weight: 500; }
body.on-back ::selection { background: var(--rose); color: #fff; }
body.on-back :focus-visible { outline: 3px solid var(--rose); }

.band { position: relative; z-index: 3; height: var(--band); display: flex; align-items: center; gap: 28px; padding: 0 44px; background: var(--plum); color: var(--blush); }
.band::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  background:
    radial-gradient(circle at 12px 5px, var(--sugar) 2.2px, transparent 2.6px) 0 0 / 24px 18px repeat-x,
    radial-gradient(circle at 12px 0, var(--plum) 11.5px, transparent 12px) 0 0 / 24px 18px repeat-x;
}
.band-mark { font-weight: 900; font-size: 30px; letter-spacing: -0.02em; }
.band-title { margin: 0; font-weight: 700; font-size: 17px; color: var(--sugar); }
.lang { margin-left: auto; display: inline-flex; border: 2px solid var(--sugar); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--blush); padding: 6px 14px; font-family: var(--zine); font-weight: 700; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--sugar); color: var(--plum); }
.lang button:not([aria-pressed="true"]):hover { background: rgba(247, 211, 225, .15); }
.band-leave { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--sugar); color: var(--blush); border-radius: 999px; padding: 7px 16px; font-family: var(--zine); font-weight: 700; cursor: pointer; }
.band-leave:hover { background: var(--sugar); color: var(--plum); }

.board {
  overflow-x: clip;
  min-height: calc(100vh - var(--band));
  padding: 64px 56px 96px;
  background: radial-gradient(circle, rgba(214, 60, 116, .13) 1.4px, transparent 1.8px) 0 0 / 22px 22px;
}

.profile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 28px 64px; max-width: 1240px; margin: 0 auto 72px; }
.ribbons { grid-column: 1; }
.ribbons p { margin: 0 0 14px; font-weight: 900; font-size: 2.1rem; line-height: 1.32; letter-spacing: -0.01em; }
.ribbons span { background: var(--plum); color: var(--blush); padding: .04em .22em .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ribbons p:not(:first-child) { font-size: 1.45rem; font-weight: 700; }

.book {
  grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: 0; transform: rotate(2deg);
  background: var(--print); border-radius: 14px; padding: 22px 26px 22px 46px; position: relative;
  box-shadow: 0 18px 30px -16px rgba(28, 18, 25, .5);
}
.book::before {
  content: ""; position: absolute; left: 14px; top: 20px; bottom: 20px; width: 12px;
  background: radial-gradient(circle, var(--sugar) 5px, transparent 5.5px) 0 0 / 12px 34px repeat-y;
}
.book div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 2px dotted rgba(214, 60, 116, .4); }
.book div:last-child { border-bottom: 0; }
.book dt { font-weight: 900; color: var(--rose); }
.book dd { margin: 0; font-weight: 700; }

.stickers { grid-column: 1; display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; }
.zsticker { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px; padding: 12px 22px; border-radius: 999px; border: 3px solid var(--print); box-shadow: 0 8px 14px -8px rgba(28, 18, 25, .6); transition: transform .15s; }
.zsticker:nth-child(1) { background: var(--plum); color: var(--blush); transform: rotate(-4deg); }
.zsticker:nth-child(2) { background: var(--rose); color: #fff; transform: rotate(3deg); }
.zsticker:hover { transform: rotate(0) scale(1.05); }
.zsticker small { font-weight: 700; font-size: 14px; opacity: .8; }

.prints-wrap { max-width: 1240px; margin: 0 auto; }
.prints-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 40px; }
.prints-head h3 { margin: 0; font-weight: 700; font-size: 17px; }
.peel-all { display: inline-flex; align-items: center; gap: 8px; background: var(--rose); color: #fff; border: 3px solid var(--print); border-radius: 999px; padding: 10px 22px; font-family: var(--zine); font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 8px 14px -8px rgba(28, 18, 25, .6); transform: rotate(-2deg); transition: transform .15s; }
.peel-all:hover { transform: rotate(0) scale(1.04); }
.peel-all[disabled] { background: var(--plum); color: var(--sugar); cursor: default; transform: none; box-shadow: none; }
.prints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 56px 36px; }
.zprint { position: relative; }
.zprint:nth-child(4n+1) { transform: rotate(-3deg); }
.zprint:nth-child(4n+2) { transform: rotate(2.5deg) translateY(14px); }
.zprint:nth-child(4n+3) { transform: rotate(-1.5deg) translateY(-6px); }
.zprint:nth-child(4n) { transform: rotate(3.5deg) translateY(8px); }
.zprint .frame { position: relative; display: block; width: 100%; padding: 9px 9px 30px; border: 0; background: var(--print); box-shadow: 0 16px 26px -16px rgba(28, 18, 25, .55); cursor: pointer; }
.zprint .frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--blush); }
.zprint .tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(255, 255, 255, .6); transform: rotate(-5deg); }
.zprint .date { position: absolute; left: 12px; bottom: 6px; font-size: 13px; font-weight: 700; }
.zprint .pp { position: absolute; right: 12px; bottom: 6px; font-size: 12px; font-weight: 900; color: var(--rose); }

.peel {
  position: absolute; z-index: 2; left: 9px; right: 9px; top: 9px; aspect-ratio: 9 / 16;
  display: grid; place-items: center; align-content: center; gap: 8px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(255,255,255,.18) 46.5% 47.5%, transparent 48%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 8px, transparent 8px 16px),
    var(--plum);
  color: var(--sugar); border-radius: 6px;
  transform-origin: 100% 0;
  transition: transform .75s cubic-bezier(.5, 0, .3, 1), opacity .5s ease .25s;
}
.zprint:nth-child(even) .peel { background:
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(28,18,25,.12) 46.5% 47.5%, transparent 48%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px),
    var(--rose); color: #fff; }
.peel i { font-size: 46px; }
.peel span { font-weight: 900; font-size: 15px; }
.zprint .frame:hover + .peel, .zprint .frame:focus-visible + .peel { transform: rotate(-4deg) translate(-4px, 4px); }
.zprint.is-peeled .peel { transform: translate(60px, -90px) rotate(28deg) scale(.6); opacity: 0; }
.zprint .frame img { opacity: 0; transition: opacity .6s ease .3s; }
.zprint.is-peeled.is-ready .frame img { opacity: 1; }
.zprint.is-peeled .frame { cursor: zoom-in; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(18, 18, 18, .95); color: #EDEDED;
  grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 28px 0 18px; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { padding-top: 12px; font: 500 14px/1.4 var(--font); opacity: .85; }
.lightbox button { background: none; border: 0; color: inherit; font-size: 28px; cursor: pointer; height: 100%; display: grid; place-items: center; }
.lightbox .lb-close { position: absolute; top: 10px; right: 10px; width: 52px; height: 52px; z-index: 1; }
.lightbox button:hover { color: #fff; background: rgba(255, 255, 255, .06); }

@media (max-width: 760px) {
  :root { --gutter: 16px; --band: 60px; }
  body { font-size: 16px; }

  .top { position: relative; height: auto; flex-wrap: wrap; gap: 6px 16px; padding: 14px var(--gutter) 0; }
  .mark { font-size: 30px; }
  .entry { gap: 0; }
  .entry > p { display: none; }
  nav.main { order: 3; flex-basis: 100%; gap: 22px; padding: 6px 0 10px; overflow-x: auto; font-size: 15px; }
  .entry-form { position: fixed; top: 64px; left: var(--gutter); right: var(--gutter); width: auto; z-index: 30; }

  .now { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .now-photo img { height: auto; aspect-ratio: 4 / 5; }
  .now-text { padding: 22px var(--gutter) 28px; }
  .now h1 { font-size: 3.6rem; }
  .shot { margin-top: 12px; font-size: 18px; }
  .wall { margin-top: 24px; max-width: none; }
  .btn { width: 100%; justify-content: center; }

  section > h2 { font-size: 38px; margin-bottom: 16px; }
  .edits { padding: 32px 0 40px; }
  .edits > h2 { padding: 0 var(--gutter); }
  .edit-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
  .edit-row li { flex: 0 0 42vw; scroll-snap-align: start; }
  .edit-name { font-size: 18px; margin-top: 10px; }
  .edit-meta { font-size: 13px; }

  .photos { padding: 32px 0 44px; }
  .wallrow { gap: 14px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
  .wallrow li { scroll-snap-align: start; }
  .wallrow img { height: 62svh; max-width: calc(100vw - 2 * var(--gutter)); object-fit: cover; }

  .store { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--gutter); }
  .store-photo { width: 64%; }
  .info { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .label-big { grid-template-columns: 7.5rem 1fr; }
  .links a { flex-wrap: wrap; gap: 2px 12px; }

  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .lightbox button { font-size: 22px; }

  .band { gap: 12px; padding: 0 var(--gutter); }
  .band-mark { font-size: 24px; }
  .band-title { display: none; }
  .lang button { padding: 5px 10px; font-size: 13px; }
  .band-leave { margin-left: 0; padding: 7px 10px; }
  .band-leave span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board { padding: 36px var(--gutter) 64px; }
  .profile { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .ribbons, .stickers { grid-column: 1; }
  .ribbons p { font-size: 1.5rem; }
  .ribbons p:not(:first-child) { font-size: 1.1rem; }
  .book { grid-column: 1; grid-row: auto; transform: rotate(1deg); padding: 16px 18px 16px 40px; }
  .book div { grid-template-columns: 7rem 1fr; gap: 8px; }
  .zsticker { font-size: 16px; padding: 10px 18px; }
  .prints-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px; }
  .peel i { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
