/* 노리 공유 링크 웹 페이지. 디자인 기준: 캔버스 ShareLanding 보드 (390 폭) */

:root {
  --paper: #F4EFE6;
  --card: #FBF8F2;
  --ink: #1E2433;
  --ink-sub: #4D5566;
  --indigo: #24335A;
  --vermilion: #D9502F; /* 장식 전용. 글자색으로 쓰지 않는다 (대비 부족) */
  --line: #8A8270;
  --gutter: 28px;
  --col: 390px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', system-ui, sans-serif;
}

:lang(ja) { font-family: 'IBM Plex Sans JP', system-ui, sans-serif; }

/* 종이 질감. 보드의 feTurbulence 필터와 같은 값 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.14 0 0 0 0 0.2 0.4 0 0 0 -0.15'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.lang {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 6;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
  color: var(--ink-sub);
}

.landing {
  flex: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 54px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo { display: block; height: 54px; width: auto; margin: 0; }
.logo img { display: block; height: 100%; width: auto; }

.mascot { display: block; margin-top: 14px; width: 190px; height: auto; }

.title {
  margin: 18px 0 0;
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.title:lang(ja) {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  letter-spacing: 0;
}

.lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.stores {
  margin-top: 22px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store {
  min-height: 56px;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 0 8px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.store-apple { background: #111214; color: #FFFFFF; }
.store-google { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.store:focus-visible, .lang:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

/* 스토어 주소가 정해지기 전. 가짜 주소로 대신하지 않는다 (설계서 2-3b) */
.store-pending.store-apple { background: #5E6068; }
.store-pending.store-google { color: var(--ink-sub); }

.store-soon { font-size: 12px; font-weight: 500; white-space: nowrap; }

.note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-sub);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 항공 우편 테두리 */
.airmail {
  flex: none;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--vermilion) 0 12px, var(--paper) 12px 18px, var(--indigo) 18px 30px, var(--paper) 30px 36px);
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .title { font-size: 24px; }
  .store { padding: 8px 16px; }
}

.lead-alert { margin-top: 40px; font-size: 15px; font-weight: 400; color: var(--ink); }

/* ───────── 공유된 엽서 (/s/{ref_code}, 캔버스 SharedOwn·SharedReceived 보드) ───────── */

body.shared { background: #DCE5E6; }

.shared-main {
  flex: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 50px 24px 32px;
  display: flex;
  flex-direction: column;
}

.shared-head { margin: 0; font-size: 16px; font-weight: 600; line-height: 44px; }

.card {
  align-self: center;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
  padding: 10px 10px 12px;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(30, 36, 51, 0.05), 0 22px 40px -18px rgba(30, 36, 51, 0.55);
}

.photo-wrap { position: relative; }

.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.no-photo { background: #F2EEE6; }

.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 12px 12px 12px 4px;
  background: var(--card);
  color: var(--indigo);
  font-size: 11px;
  font-weight: 600;
}

.card-title {
  margin: 10px 2px 0;
  font-family: 'Gowun Batang', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.card-title:lang(ja), :lang(ja) .card-title { font-family: 'Shippori Mincho', serif; }

.card-lines {
  margin: 4px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #3B4252;
  overflow-wrap: anywhere;
}

.marks { margin: 8px 2px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.pill {
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #E2B8A8;
  font-size: 11px;
  color: #B03E26;
}

.stamps { margin-left: auto; display: flex; gap: 2px; }
.stamps img { display: block; width: 20px; height: 20px; }

.card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #CFC6B5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-foot img { display: block; width: 22px; height: 22px; border-radius: 50%; }
.card-foot-text { flex: 1; font-size: 11px; color: var(--ink-sub); }
.card-foot-mark { font-family: 'Shippori Mincho', serif; font-size: 12px; color: var(--indigo); }

.store-primary { margin-top: 22px; background: var(--indigo); color: var(--card); }
.shared-main .lead-alert { margin-top: 80px; text-align: center; }
