/* =========================================================================
   Snapuno — brand tokens

   앱에서 그대로 가져온 두 색이 전부다: 노랑 #FFE812 와 잉크 #191919.
   ★ 노랑 위에 흰 글자를 절대 올리지 않는다 (대비 1.25:1, WCAG 실패).
     노랑 배경의 글자는 언제나 --ink 다. 이 규칙 하나만 지키면
     앱과 사이트의 인상이 어긋나지 않는다.
   ========================================================================= */

:root {
  --ink: #191919;
  --ink-2: #3f3d36;
  --muted: #78756b;
  --paper: #faf8f2;
  --paper-2: #fffdf6;
  --card: #ffffff;
  --line: rgba(25, 25, 25, 0.12);
  --line-soft: rgba(25, 25, 25, 0.07);

  --accent: #ffe812;
  --accent-deep: #d8c400;
  --accent-tint: #fff9c2;

  /* 인식 종류별 색. 앱의 결과 배지와 같은 계열을 쓴다. */
  --k-qr: #3a6fd0;
  --k-barcode: #5c5a63;
  --k-wifi: #2f9052;
  --k-card: #cf6b1f;
  --k-doc: #5b57c7;
  --k-text: #7a7770;

  --display: "Bricolage Grotesque", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  --body: "Instrument Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1140px;
  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(25, 25, 25, 0.4);
  --shadow-sm: 0 10px 28px -18px rgba(25, 25, 25, 0.45);
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-deep);
}

a:hover {
  text-decoration-color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--accent);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-2);
  max-width: 56ch;
}

.micro {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.mono {
  font-family: var(--mono);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 -1px var(--ink);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
  background: var(--accent-tint);
}

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 242, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.head-nav {
  display: flex;
  gap: 1.35rem;
  margin-inline-start: auto;
  font-size: 0.92rem;
}

.head-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.head-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.head-side {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.lang a {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0.28rem;
  border-radius: 5px;
}

.lang a[aria-current] {
  color: var(--ink);
  background: var(--accent);
  font-weight: 600;
}

.lang i {
  opacity: 0.35;
  font-style: normal;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(1100px 420px at 82% -8%, var(--accent-tint), transparent 62%),
    var(--paper);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-line {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin-bottom: 1rem;
}

.hero-line em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding-inline: 0.08em;
}

.hero-shot {
  justify-self: center;
  max-width: 300px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.store:hover {
  transform: translateY(-1px);
}

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.store span {
  display: grid;
  line-height: 1.15;
}

.store i {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.store b {
  font-size: 0.9rem;
  font-weight: 600;
}

.store.is-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  border-style: dashed;
}

/* ----------------------------------------------------------------- strip */

.strip {
  padding: 1.4rem 0 2rem;
  border-block: 1px solid var(--line-soft);
  background: var(--paper-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: var(--card);
}

.chip-qr { color: var(--k-qr); }
.chip-barcode { color: var(--k-barcode); }
.chip-wifi { color: var(--k-wifi); }
.chip-card { color: var(--k-card); }
.chip-doc { color: var(--k-doc); }
.chip-text { color: var(--k-text); }

.strip-note {
  margin-top: 0.85rem;
}

/* -------------------------------------------------------------- sections */

section {
  scroll-margin-top: 80px;
}

.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.features {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.feat {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line-soft);
}

/* 뒤집힌 행에서는 좁은 칸이 앞으로 온다. 목업이 늘 좁은 쪽이어야 한다. */
.feat.is-flip {
  grid-template-columns: 0.72fr 1fr;
}

.feat.is-flip .feat-copy {
  order: 2;
}

.feat h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 0.6rem;
}

.feat-copy p {
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0;
}

.feat-shot {
  justify-self: center;
  max-width: 260px;
}

/* ---------------------------------------------------------------- travel */

.travel {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--ink);
  color: var(--paper-2);
}

.travel .eyebrow,
.travel .lede,
.travel .micro {
  color: rgba(255, 253, 246, 0.72);
}

.travel-in,
.privacy-in {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.travel h2,
.history h2,
.privacy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.travel-shot,
.history-shot {
  justify-self: center;
  max-width: 250px;
}

.script-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
}

.script-chips span {
  font-size: 0.85rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.ticks {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
}

.ticks li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.96rem;
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  border: 1.5px solid currentColor;
}

.travel .ticks li::before {
  border-color: transparent;
}

/* --------------------------------------------------------------- history */

.history {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

/* 목업이 먼저 오는 행. 좁은 칸을 왼쪽에 둔다. */
.history-in {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* ------------------------------------------------------------------ grid */

.grid {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.grid-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}

.grid-list li {
  background: var(--card);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.25rem;
}

.grid-list b {
  font-size: 0.96rem;
}

.grid-list span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- privacy */

.privacy {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.privacy-figure {
  justify-self: center;
  width: min(100%, 420px);
}

.privacy .btn-ghost {
  margin-top: 1.5rem;
}

.lock-svg .ld-zone {
  fill: var(--accent-tint);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}

.lock-svg .ld-zone-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-2);
}

.lock-svg .ld-node rect {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2;
}

.lock-svg .ld-screen {
  fill: var(--accent);
  stroke: none;
}

.lock-svg .ld-loop {
  stroke: var(--ink);
}

.lock-svg .ld-lock rect {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 2;
}

.lock-svg .ld-lock path {
  stroke: var(--ink);
}

.lock-svg .ld-cut {
  stroke: var(--muted);
}

.lock-svg .ld-cross {
  stroke: var(--k-card);
  fill: none;
}

.lock-svg .ld-label {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--muted);
}

/* --------------------------------------------------------------- premium */

.premium {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

.premium-in {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.premium h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.4rem 0 0;
}

.price b {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(transparent 60%, var(--accent) 60%);
  padding-inline: 0.1em;
}

.price i {
  font-style: normal;
  color: var(--muted);
  font-size: 1rem;
}

.price em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.price span {
  flex: 1 0 100%;
  font-size: 0.84rem;
  color: var(--muted);
}

.premium-free {
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.premium-free h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.premium-free ul {
  display: grid;
  gap: 0.55rem;
}

.premium-free li {
  font-size: 0.92rem;
  padding-inline-start: 1.4rem;
  position: relative;
  color: var(--ink-2);
}

.premium-free li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--ink);
}

/* ------------------------------------------------------------------- faq */

.faq {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.faq h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 1.8rem;
}

.qa-list {
  border-top: 1px solid var(--line);
  max-width: 78ch;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.5rem 1.05rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.4rem;
  top: 1.45rem;
  width: 11px;
  height: 11px;
  border-inline-end: 2px solid var(--ink);
  border-block-end: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.qa[open] summary::after {
  transform: rotate(-135deg);
  top: 1.75rem;
}

.qa-a {
  padding: 0 2.5rem 1.2rem 0;
}

.qa-a p {
  margin: 0;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ------------------------------------------------------------------- cta */

.cta {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--accent);
  border-top: 1.5px solid var(--ink);
}

.cta-in {
  text-align: center;
  display: grid;
  justify-items: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  max-width: 22ch;
}

.cta .lede {
  color: var(--ink-2);
  margin-top: 0.7rem;
}

.cta .store {
  background: var(--ink);
  color: var(--accent);
}

.cta .store.is-soon {
  background: transparent;
  color: rgba(25, 25, 25, 0.55);
  border-color: rgba(25, 25, 25, 0.35);
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding: 2.8rem 0 3.4rem;
  background: var(--ink);
  color: rgba(255, 253, 246, 0.78);
}

.foot-in {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 1.8rem;
  align-items: start;
}

.site-foot .brand {
  color: var(--paper-2);
}

.foot-tag {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  opacity: 0.7;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.foot-links a {
  color: inherit;
  text-decoration-color: rgba(255, 232, 18, 0.6);
}

.foot-links a:hover {
  color: var(--accent);
}

.foot-meta {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  text-align: end;
  font-size: 0.8rem;
}

.foot-meta p {
  margin: 0;
  opacity: 0.62;
}

.foot-addr {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.site-foot .lang a[aria-current] {
  background: var(--accent);
  color: var(--ink);
}

/* ------------------------------------------------------- article (legal) */

.art {
  padding: clamp(2.2rem, 5vw, 4rem) 0 4rem;
}

.art-in {
  width: min(100% - 2.5rem, 820px);
}

.art-head {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.art-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.9rem;
}

.art-summary {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 62ch;
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--accent-tint);
  border-inline-start: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.art-toc {
  margin-bottom: 2.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--paper-2);
}

.art-toc ol {
  counter-reset: toc;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.art-toc li {
  counter-increment: toc;
  padding-inline-start: 2rem;
  position: relative;
}

.art-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  top: 0.15em;
}

.art-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.art-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.art-sec {
  margin-bottom: 2.4rem;
}

.art-sec h2 {
  font-size: 1.18rem;
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.art-sec h2 .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  flex: none;
}

.art-sec p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.art-sec ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1em;
}

.art-sec ul li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.art-sec ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.art-foot {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.art-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0.7rem 0 0;
}

/* ================================================================ mockups
   SVG 로 그린 앱 화면. 이미지가 아니라서 테마·언어를 그대로 따라간다.
   ======================================================================= */

.mk {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(25, 25, 25, 0.22));

  /* 기본 채움색. SVG 의 fill 은 상속되므로 여기 한 번만 두면 된다.
     ★ .mk text { fill } 로 두면 안 된다 — 그건 (클래스+요소) 라
     .mk-glass-tx 같은 (클래스) 하나짜리 선택자를 전부 이겨서,
     어두운 칩 위의 흰 글자가 잉크색으로 덮여 안 보이게 된다.
     상속값은 직접 매칭된 선언에 지므로 이 방식이 안전하다. */
  fill: var(--ink);
}

.mk text {
  font-family: var(--body);
}

.mk .mk-mono {
  font-family: var(--mono);
}

.mk-t9 { font-size: 9px; }
.mk-t10 { font-size: 10px; }
.mk-t11 { font-size: 11px; }
.mk-t12 { font-size: 12px; }
.mk-t13 { font-size: 13px; }
.mk-t14 { font-size: 14px; }
.mk-t17 { font-size: 17px; }
.mk-t18 { font-size: 18px; }
.mk-bold { font-weight: 700; }

.mk-body {
  fill: var(--ink);
}

.mk-notch {
  fill: rgba(255, 253, 246, 0.35);
}

.mk-glassline {
  stroke: rgba(255, 253, 246, 0.16);
  stroke-width: 1;
}

.mk-surface {
  fill: var(--card);
}

.mk-view {
  fill: #2b2722;
}

.mk-viewfx rect {
  fill: rgba(255, 253, 246, 0.22);
}

.mk-reticle path {
  stroke: var(--accent);
}

.mk-accent {
  fill: var(--accent);
}

.mk-ring {
  stroke: rgba(255, 253, 246, 0.8);
}

.mk-on-accent {
  stroke: var(--ink);
}

.mk-on-accent-fill {
  fill: var(--ink);
}

.mk-glass {
  fill: rgba(25, 25, 25, 0.55);
}

.mk-glass-tx {
  fill: #fffdf6;
}

.mk-panel {
  fill: var(--paper-2);
  stroke: var(--line-soft);
  stroke-width: 1;
}

.mk-inset {
  fill: rgba(25, 25, 25, 0.055);
}

.mk-outline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.mk-highlight {
  fill: var(--accent);
}

.mk-hair {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.mk-line rect {
  fill: rgba(25, 25, 25, 0.14);
}

.mk-dim {
  stroke: var(--muted);
}

.mk-dim-fill {
  fill: var(--muted);
}

.mk-dim-fill2 {
  fill: rgba(25, 25, 25, 0.16);
}

.mk-strong {
  fill: var(--ink);
}

.mk-badge-tx {
  fill: var(--ink);
  font-weight: 600;
}

.mk-badge-wifi { fill: #dbeafe; }
.mk-badge-card { fill: #fdeacd; }
.mk-badge-doc { fill: #e8e7fb; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 940px) {
  .head-nav {
    display: none;
  }

  .head-side {
    margin-inline-start: auto;
  }

  .hero-in,
  .feat,
  .feat.is-flip,
  .travel-in,
  .history-in,
  .privacy-in,
  .premium-in {
    grid-template-columns: 1fr;
  }

  /* 모바일에서는 언제나 글이 먼저, 그림이 나중. */
  .feat.is-flip .feat-copy,
  .history-copy {
    order: 0;
  }

  .history-shot {
    order: 1;
  }

  .hero-shot,
  .feat-shot,
  .travel-shot,
  .history-shot {
    max-width: 240px;
  }

  .foot-in {
    grid-template-columns: 1fr;
  }

  .foot-meta {
    justify-items: start;
    text-align: start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .stores {
    flex-direction: column;
    align-items: stretch;
  }

  .store {
    justify-content: center;
  }

  .grid-list {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------- 앱 안에서 열었을 때 (embed)
   헤더·푸터 없이 본문만. 테마는 앱이 ?theme= 로 알려 준다.
   ------------------------------------------------------------------------ */

body.is-embed {
  background: var(--card);
}

body.is-embed .art {
  padding-top: 1.4rem;
}

body.is-dark {
  --ink: #f3f1ea;
  --ink-2: #cdc9be;
  --muted: #96918a;
  --paper: #141312;
  --paper-2: #1c1a18;
  --card: #141312;
  --line: rgba(243, 241, 234, 0.16);
  --line-soft: rgba(243, 241, 234, 0.09);
  --accent-tint: rgba(255, 232, 18, 0.14);
}

body.is-dark .art-summary {
  border-inline-start-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  body.is-embed:not(.is-light) {
    --ink: #f3f1ea;
    --ink-2: #cdc9be;
    --muted: #96918a;
    --paper: #141312;
    --paper-2: #1c1a18;
    --card: #141312;
    --line: rgba(243, 241, 234, 0.16);
    --line-soft: rgba(243, 241, 234, 0.09);
    --accent-tint: rgba(255, 232, 18, 0.14);
  }
}

/* ------------------------------------------------------------------ misc */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-head,
  .site-foot,
  .art-toc {
    display: none;
  }

  body {
    background: #fff;
  }
}