/* styles.css */
:root{
  --bg: #f4f0e7;
  --paper: #ffffff;
  --paper2: #fbfaf7;
  --ink: #2d2a26;
  --muted: rgba(45, 42, 38, .70);
  --line: rgba(45, 42, 38, .18);
  --shadow: 0 14px 30px rgba(0,0,0,.14);
  --shadowSoft: 0 10px 18px rgba(0,0,0,.10);
  --shadowPress: 0 6px 10px rgba(0,0,0,.12);
  --radius: 18px;
  --radius2: 14px;
  --tape: rgba(240, 229, 202, .62);
  --tapeEdge: rgba(120, 100, 60, .18);
  --focus: rgba(45, 42, 38, .58);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}

/* Static paper background with subtle grain (CSS noise-ish) */
.stage{
  position: fixed;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
}
.stage::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("#");
  background-size: cover;
  background-position: center;
  opacity: .06;
}
.stage::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.010),
      rgba(0,0,0,.010) 1px,
      rgba(255,255,255,.010) 2px,
      rgba(255,255,255,.010) 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,.008),
      rgba(0,0,0,.008) 1px,
      rgba(255,255,255,.008) 2px,
      rgba(255,255,255,.008) 3px
    );
  opacity: .22;
  mix-blend-mode: multiply;
}

/* Content shell: fixed, only inner scroll moves */
.shell{
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px 14px;
}

.scroll{
  width: min(680px, 100%);
  height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px 16px 26px;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: none;
}

.scroll::-webkit-scrollbar{ width: 10px; }
.scroll::-webkit-scrollbar-thumb{
  background: rgba(45,42,38,.22);
  border-radius: 999px;
  border: 3px solid rgba(244,240,231,.55);
}
.scroll::-webkit-scrollbar-track{ background: transparent; }

a{ color: inherit; text-decoration: none; }
a:focus{ outline: none; }
a:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}
button:focus{ outline: none; }
button:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Sections */
.sec{ margin: 14px 0; }
.footer{
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  opacity: .86;
  padding: 10px 2px 4px;
}

/* Tape pieces */
.tape{
  position:absolute;
  width: 76px;
  height: 24px;
  background: var(--tape);
  border: 1px solid var(--tapeEdge);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  filter: saturate(.95);
  opacity: .95;
}
.tape::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.12),
      rgba(255,255,255,.12) 6px,
      rgba(0,0,0,.05) 7px,
      rgba(0,0,0,.05) 8px
    );
  opacity: .25;
  mix-blend-mode: multiply;
}
.tape--tl{ left: 16px; top: 10px; transform: rotate(-8deg); }
.tape--tr{ right: 16px; top: 10px; transform: rotate(10deg); }

/* Polaroid card */
.polaroid{
  position: relative;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  transform: rotate(var(--r, -2deg));
  overflow: hidden;
}

.polaroid::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.80)),
    url("#");
  opacity: .06;
  pointer-events:none;
}

.polaroid--hero{
  --r: -2.2deg;
  padding: 16px 16px 12px;
}

.polaroid__top{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
}

.avatar{
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--paper2);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 16px rgba(0,0,0,.10);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.heroText .title{
  margin: 2px 0 8px;
  font-size: 28px;
  letter-spacing: .01em;
}
.desc{
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.handle{
  margin: 10px 0 0;
}
.handle__tag{
  display:inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(250,248,244,.9);
}

.badgeRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 10px 5px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(252,251,249,.95);
}
.badge--soft{
  border-style: dashed;
  opacity: .9;
}

.polaroid__caption{
  margin-top: 12px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.10);
  background: rgba(252, 251, 249, .95);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  position: relative;
}

/* Polaroid wide bottom frame feel */
.polaroid--hero .polaroid__caption{
  padding-bottom: 16px;
}

.captionInk{
  font-family: var(--mono);
  font-size: 12px;
  opacity: .92;
}

.clip{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.14);
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), transparent);
  transform: rotate(8deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

/* Social sticker buttons */
.stickerGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stickerBtn{
  position: relative;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadowSoft);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
  transform: rotate(var(--sr, 1.2deg));
}

.stickerBtn:nth-child(1){ --sr: 1.4deg; }
.stickerBtn:nth-child(2){ --sr: -1.1deg; }
.stickerBtn:nth-child(3){ --sr: 0.9deg; }
.stickerBtn:nth-child(4){ --sr: -1.6deg; }

.stickerBtn::before{
  content:"";
  position:absolute;
  left: 12px;
  top: -8px;
  width: 60px;
  height: 18px;
  background: var(--tape);
  border: 1px solid var(--tapeEdge);
  transform: rotate(-8deg);
  opacity: .85;
}
.stickerBtn::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("#");
  background-size: cover;
  background-position: center;
  opacity: .05;
  pointer-events:none;
}

.stickerBtn__icon{
  width: 18px;
  height: 18px;
  display:grid;
  place-items:center;
}
.stickerBtn svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(45, 42, 38, .78);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Label strips list */
.stripList{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.strip{
  position: relative;
  padding: 14px 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadowSoft);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  transform: rotate(var(--lr, -1.2deg));
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  overflow:hidden;
}

.strip:nth-child(1){ --lr: -1.8deg; }
.strip:nth-child(2){ --lr: 1.1deg; }
.strip:nth-child(3){ --lr: -0.9deg; }
.strip:nth-child(4){ --lr: 1.4deg; }
.strip:nth-child(5){ --lr: -1.1deg; }
.strip:nth-child(6){ --lr: 0.8deg; }
.strip:nth-child(7){ --lr: -1.3deg; }

.strip::before{
  content:"";
  position:absolute;
  inset:-20px -40px auto -40px;
  height: 54px;
  background: var(--tape);
  border: 1px solid var(--tapeEdge);
  transform: rotate(-6deg);
  opacity: .65;
}
.strip::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("#");
  background-size: cover;
  background-position: center;
  opacity: .04;
  pointer-events:none;
}

.strip__pin{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(45,42,38,.12);
  border: 1px solid rgba(45,42,38,.18);
  box-shadow: 0 4px 8px rgba(0,0,0,.10);
  flex: 0 0 auto;
  position: relative;
}
.strip__pin::after{
  content:"";
  position:absolute;
  left: 14px;
  top: 50%;
  width: 26px;
  height: 1px;
  background: rgba(0,0,0,.10);
  transform: translateY(-50%);
}

.strip__txt{
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.25;
}
.strip__sub{
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px 3px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.16);
  opacity: .88;
}
.strip__arrow{
  font-family: var(--mono);
  opacity: .75;
}

.strip--primary{
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.98);
}

/* Carousel section */
.secHead{
  margin-bottom: 10px;
}
.secHead__h{
  margin: 0 0 6px;
  font-size: 18px;
}
.secHead__p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.carouselWrap{
  margin-top: 8px;
  padding: 6px 0 0;
}

.carousel{
  position: relative;
}

.carousel__viewport{
  overflow: hidden;
  border-radius: 18px;
  padding: 8px 6px;
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(0,0,0,.06);
  touch-action: pan-y;
}

.carousel__track{
  display:flex;
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform 420ms cubic-bezier(.2,.75,.2,1);
}

.miniPolaroid{
  min-width: 100%;
  padding: 10px 10px 12px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  transform: rotate(var(--cr, 1.4deg));
  position: relative;
  overflow:hidden;
}
.miniPolaroid:nth-child(1){ --cr: 1.8deg; }
.miniPolaroid:nth-child(2){ --cr: -1.1deg; }
.miniPolaroid:nth-child(3){ --cr: 1.0deg; }

.miniPolaroid__photo{
  border-radius: 14px;
  overflow:hidden;
  height: 220px;
  background: rgba(250,248,244,.92);
  border: 1px solid rgba(0,0,0,.08);
}
.miniPolaroid__photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.miniPolaroid__cap{
  margin-top: 10px;
  padding: 10px 10px 14px;
  border-top: 1px solid rgba(0,0,0,.10);
  background: rgba(252,251,249,.95);
  border-bottom-left-radius: var(--radius2);
  border-bottom-right-radius: var(--radius2);
}
.capInk{
  font-family: var(--mono);
  font-size: 12px;
  opacity: .92;
}

.carousel__dots{
  display:flex;
  justify-content:center;
  gap: 10px;
  padding: 12px 0 2px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(45,42,38,.32);
  background: rgba(255,255,255,.70);
  cursor:pointer;
}
.dot.is-on{
  background: rgba(45,42,38,.18);
}

/* FAQ header card */
.paperHead{
  position: relative;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  transform: rotate(-1.8deg);
  overflow:hidden;
}
.paperHead::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("#");
  background-size: cover;
  background-position: center;
  opacity: .05;
  pointer-events:none;
}

.paperHead__row{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.paperHead__h{
  margin: 0 0 6px;
  font-size: 20px;
}
.paperHead__p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.backBtn{
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadowSoft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  transform: rotate(1.6deg);
}

/* FAQ list */
.faqList{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.faqItem{
  position: relative;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  box-shadow: var(--shadowSoft);
  overflow:hidden;
  transform: rotate(var(--fr, 1deg));
}
.faqItem:nth-child(1){ --fr: 1.2deg; }
.faqItem:nth-child(2){ --fr: -1.0deg; }
.faqItem:nth-child(3){ --fr: 0.8deg; }
.faqItem:nth-child(4){ --fr: -1.3deg; }
.faqItem:nth-child(5){ --fr: 1.1deg; }
.faqItem:nth-child(6){ --fr: -0.9deg; }
.faqItem:nth-child(7){ --fr: 0.7deg; }

.faqItem::before{
  content:"";
  position:absolute;
  left: 12px;
  top: -8px;
  width: 66px;
  height: 18px;
  background: var(--tape);
  border: 1px solid var(--tapeEdge);
  transform: rotate(-10deg);
  opacity: .78;
}

.faqSum{
  list-style: none;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  user-select: none;
}
.faqSum::-webkit-details-marker{ display:none; }
.faqSum:focus{ outline:none; }
.faqSum:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}

.faqSum__q{
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 10px 4px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.16);
  opacity: .9;
}
.faqSum__t{
  flex: 1 1 auto;
  font-size: 14px;
}
.faqSum__c{
  font-family: var(--mono);
  opacity: .70;
  transition: transform 220ms ease;
}
.faqItem[open] .faqSum__c{ transform: rotate(180deg); }

.faqBody{
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  height: auto;
  opacity: 1;
}
.faqBody p{ margin: 8px 0 0; }
.faqBody strong{ font-family: var(--mono); color: rgba(45,42,38,.92); }

/* Interactions (hover / press) */
@media (hover:hover){
  .polaroid:hover,
  .stickerBtn:hover,
  .strip:hover,
  .miniPolaroid:hover,
  .paperHead:hover,
  .backBtn:hover,
  .faqItem:hover{
    transform: translateY(-2px) rotate(0.7deg);
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
  }
  .strip:hover{ transform: translateY(-2px) rotate(0.6deg); }
  .stickerBtn:hover{ transform: translateY(-2px) rotate(0.8deg); }
  .miniPolaroid:hover{ transform: translateY(-2px) rotate(0.8deg); }
}

.polaroid:active,
.stickerBtn:active,
.strip:active,
.miniPolaroid:active,
.backBtn:active{
  transform: scale(.98);
  box-shadow: var(--shadowPress);
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(14px) rotate(2.4deg);
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .scroll{ scroll-behavior: auto; }
  .carousel__track{ transition: none; }
  .faqSum__c{ transition: none; }
  .reveal{ opacity: 1; transform: none; }
  .reveal.is-in{ transition: none; }
  @media (hover:hover){
    .polaroid:hover,
    .stickerBtn:hover,
    .strip:hover,
    .miniPolaroid:hover,
    .paperHead:hover,
    .backBtn:hover,
    .faqItem:hover{
      transform: none;
      box-shadow: var(--shadowSoft);
    }
  }
}

/* Small screens */
@media (max-width: 420px){
  .polaroid__top{ grid-template-columns: 76px 1fr; }
  .avatar{ width: 76px; height: 76px; }
  .heroText .title{ font-size: 24px; }
  .stickerGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .miniPolaroid__photo{ height: 210px; }
}

/* Wider screens: more breathing room (still max 680) */
@media (min-width: 740px){
  .scroll{
    padding: 28px 26px 34px;
    border-radius: 30px;
  }
  .sec{ margin: 18px 0; }
}
