/* 2026 괌 가족여행. 토큰과 규칙은 DESIGN.md 참고. */

:root {
  color-scheme: light dark;

  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #edf2f0;
  --ink: #14313a;
  --ink-2: #47616a;
  --line: #d9e2e0;
  --accent: #0f6b73;
  --accent-ink: #ffffff;
  --accent-text: #0b5a61;
  --accent-soft: #dfeeed;
  --deep: #0b4a50;
  --deep-ink: #f2fbfa;
  --deep-ink-2: #b9dedd;
  --warm: #9a4510;
  --warm-soft: #fbebd8;
  --focus: #b4541a;
  --map-sea: #d7eaea;
  --map-land: #fbf8ef;
  --map-coast: #9dbfbe;
  --map-road: #cdd6cf;
  --map-halo: #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.375rem);
  --t-hero: clamp(2.75rem, 1.5rem + 6.4vw, 5rem);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --bar-h: 3.5rem;
  --ease: 160ms ease-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a1e;
    --surface: #14262b;
    --surface-2: #1a3037;
    --ink: #e9f1f0;
    --ink-2: #a7bbbd;
    --line: #2a444b;
    --accent: #62c7c9;
    --accent-ink: #06262a;
    --accent-text: #7ad3d5;
    --accent-soft: #163b40;
    --deep: #123f45;
    --deep-ink: #f2fbfa;
    --deep-ink-2: #a9d3d2;
    --warm: #f2b27a;
    --warm-soft: #37291b;
    --focus: #f2b27a;
    --map-sea: #0f2a30;
    --map-land: #1e3a3f;
    --map-coast: #3c6b70;
    --map-road: #35565b;
    --map-halo: #0d1a1e;
  }
}

html[data-text="lg"] {
  font-size: 118.75%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
}

body {
  margin: 0;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-md) / 1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* display를 지정한 클래스에서도 hidden 속성이 듣게 한다. */
[hidden] {
  display: none !important;
}

.ic {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

[data-icon] {
  display: inline-flex;
}

.wrap {
  width: min(100% - 2rem, 67.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 30;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  border-radius: var(--r-sm);
}

.skip:focus {
  top: var(--s-2);
}

/* Buttons and small parts */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.875rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font: 650 var(--t-sm) / 1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--soft {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--light {
  background: var(--deep-ink);
  color: var(--deep);
}

.btn--onDeep {
  border-color: rgb(255 255 255 / 0.35);
  color: var(--deep-ink);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-text);
  }

  .btn--soft:hover,
  .btn--ghost:hover,
  .pill:hover {
    border-color: var(--accent);
  }
}

.btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color var(--ease);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.badge--now {
  display: none;
  background: var(--accent);
  color: var(--accent-ink);
}

/* Top bar and tab bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--bar-h);
}

.brand {
  margin-right: auto;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topnav {
  display: none;
  gap: var(--s-1);
}

.topnav a {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}

.topnav a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

#text-toggle {
  min-height: 2.5rem;
  padding-inline: 0.875rem;
}

.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-height: 3.75rem;
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 650;
  text-decoration: none;
}

.tabbar .ic {
  width: 1.5rem;
  height: 1.5rem;
}

.tabbar a[aria-current="true"] {
  color: var(--accent-text);
}

/* Hero */

.hero {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-4) var(--s-5);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.eyebrow {
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

h1 {
  margin-top: var(--s-2);
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero__sub {
  max-width: 30rem;
  margin-top: var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-lg);
  line-height: 1.55;
}

.hero__cta,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

/* Now card */

.now__card {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--deep);
  border-radius: var(--r-lg);
  color: var(--deep-ink);
}

.now__label {
  color: var(--deep-ink-2);
  font-size: var(--t-sm);
  font-weight: 700;
}

.now__big {
  font-size: clamp(3rem, 2rem + 6vw, 4.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.now__title {
  font-size: var(--t-xl);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.now__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.now__note,
.now__next {
  margin-top: var(--s-2);
  color: var(--deep-ink-2);
}

.now__next b {
  color: var(--deep-ink);
}

.now__clocks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: var(--deep-ink-2);
  font-size: var(--t-sm);
}

.now__clocks b {
  color: var(--deep-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Home screen guide */

.install {
  margin-top: var(--s-4);
}

.install__head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}

.install h2 {
  font-size: var(--t-lg);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.install__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.install__panel > .btn {
  width: 100%;
  margin-top: var(--s-4);
}

.install__panel .muted {
  margin-top: var(--s-3);
}

.install .callout .muted {
  margin-top: var(--s-3);
}

.install p [data-icon],
.nsteps [data-icon] {
  vertical-align: -0.25em;
}

@media (display-mode: standalone) {
  .install {
    display: none;
  }
}

/* Sections */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}

h2 {
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lead {
  max-width: 40rem;
  margin-top: var(--s-3);
  color: var(--ink-2);
}

.section > h2 + :not(.lead),
.section > .lead + * {
  margin-top: var(--s-5);
}

h3 {
  font-size: var(--t-lg);
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h4 {
  font-size: var(--t-md);
  font-weight: 750;
}

.card {
  padding: clamp(1.125rem, 3vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* Before the trip */

.steps {
  display: grid;
  gap: var(--s-4);
}

.step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

.step__n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.step p {
  margin-top: var(--s-3);
}

.bullets {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.bullets li {
  position: relative;
  padding-left: 1.125rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.7em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--r-full);
  background: var(--accent);
}

.step__status {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  background: var(--warm-soft);
  border-radius: var(--r-md);
  color: var(--warm);
  font-weight: 650;
}

.step__status .ic {
  margin-top: 0.2em;
}

.addr {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.addr__label {
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 650;
}

.addr code {
  font: 600 var(--t-md) / 1.5 var(--font);
  user-select: all;
}

/* Overview */

.passes {
  display: grid;
  gap: var(--s-4);
}

.pass__label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 700;
}

.pass__route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.pass__route b {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pass__route span {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.pass__to {
  text-align: right;
}

.pass__mid {
  display: grid;
  justify-items: center;
  gap: 0.125rem;
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 650;
  text-align: center;
}

.pass__mid::after {
  content: "";
  width: 100%;
  border-top: 2px dashed var(--line);
}

.pass__note {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-5);
}

.facts dt {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.facts dd {
  font-weight: 700;
}

.strip {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.strip a {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
}

.strip__date {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.strip__date span {
  margin-left: 0.25rem;
  color: var(--ink-2);
  font-weight: 600;
}

.strip__title {
  font-weight: 650;
}

.strip .ic {
  color: var(--ink-2);
}

.strip a[aria-current="date"] {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Schedule */

.sched {
  display: grid;
  gap: var(--s-4);
}

.daynav {
  position: sticky;
  top: var(--bar-h);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-1);
  margin-inline: -1rem;
  padding: var(--s-2) 1rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.daynav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease);
}

.daynav__short {
  display: none;
}

.daynav a[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.daynav a.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.days {
  display: grid;
  gap: var(--s-5);
  min-width: 0;
}

.day {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.day__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
}

.day__date {
  display: grid;
  justify-items: center;
  min-width: 4.25rem;
  padding: var(--s-2) var(--s-3);
  background: var(--accent);
  border-radius: var(--r-md);
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.day__date b {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.day__date span {
  font-size: var(--t-sm);
  font-weight: 650;
}

.day__tag {
  color: var(--accent-text);
  font-size: var(--t-sm);
  font-weight: 750;
}

.day__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-1);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.wx {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.tl__row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: var(--s-3);
  padding: var(--s-4) var(--s-2);
  border-top: 1px solid var(--line);
}

.tl__s,
.tl__e {
  display: block;
  font-variant-numeric: tabular-nums;
}

.tl__s {
  font-weight: 750;
  line-height: 1.5;
}

.tl__e {
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.4;
}

.tl__title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-1) var(--s-2);
  font-weight: 650;
  line-height: 1.5;
}

.tl__title .ic {
  margin-top: 0.15em;
  color: var(--accent-text);
}

.tl__title span:first-of-type {
  flex: 1 1 0;
  min-width: 0;
}

.tl__note {
  margin-top: 0.125rem;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.tl__body > .tl__note {
  padding-left: calc(1.25em + var(--s-2));
}

.tl__body > .pills {
  padding-left: calc(1.25rem + var(--s-2));
}

.tl__row.is-past .tl__s,
.tl__row.is-past .tl__title {
  color: var(--ink-2);
  font-weight: 500;
}

.tl__row.is-now {
  margin-block: -1px;
  background: var(--accent-soft);
  border-color: transparent;
  border-radius: var(--r-md);
}

.tl__row.is-now + .tl__row {
  border-color: transparent;
}

.is-now .badge--now {
  display: inline-flex;
}

.tl__divider {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-block: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--surface-2);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 650;
}

.tl__divider + .tl__row {
  border-color: transparent;
}

.callout {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--warm-soft);
  border-radius: var(--r-md);
}

.callout h4 {
  color: var(--warm);
}

.callout p {
  margin-top: var(--s-2);
}

.callout__steps,
.nsteps {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
  counter-reset: step;
}

.callout__steps li,
.nsteps li {
  display: flex;
  gap: var(--s-2);
  font-weight: 600;
  counter-increment: step;
}

.callout__steps li::before,
.nsteps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1em;
  border-radius: var(--r-full);
  background: var(--warm);
  color: var(--warm-soft);
  font-size: var(--t-xs);
  font-weight: 800;
}

.nsteps {
  margin-top: var(--s-4);
  gap: var(--s-3);
}

.nsteps li::before {
  background: var(--accent);
  color: var(--accent-ink);
}

/* South tour */

.tour {
  margin-block: var(--s-2) var(--s-4);
  padding: var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.tour__sub {
  margin-top: 0.125rem;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.tour__grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.tour__list {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.tour__stop,
.tour__gap {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: var(--s-3);
  border-radius: var(--r-md);
}

.tour__stop {
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tour__gap {
  align-items: center;
  padding: 0 var(--s-3);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.tour__gap .ic {
  justify-self: center;
}

.tour__gap b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.tour__n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--accent);
  border-radius: var(--r-full);
  color: var(--accent-text);
  font-weight: 800;
}

.tour__time {
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.tour__stop.is-now,
.tour__gap.is-now {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.tour__gap.is-now {
  padding-block: var(--s-2);
}

.tour .btn {
  margin-top: var(--s-4);
}

/* Maps */

.map {
  overflow: hidden;
  background: var(--map-sea);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.map__svg {
  display: block;
  width: 100%;
  height: auto;
}

.map__land {
  fill: var(--map-land);
  stroke: var(--map-coast);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.map__road,
.map__route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__road {
  stroke: var(--map-road);
  stroke-width: 3;
}

.map__route {
  stroke: var(--accent);
  stroke-width: 3;
}

.map__dot {
  fill: var(--map-land);
  stroke: var(--accent);
  stroke-width: 3;
}

.map__dot--hotel {
  fill: var(--accent);
}

.map__mark {
  fill: var(--accent-text);
  font: 800 14px var(--font);
  text-anchor: middle;
}

.map__mark--hotel {
  fill: var(--accent-ink);
}

.map__label {
  fill: var(--ink);
  font: 700 18px var(--font);
  paint-order: stroke;
  stroke: var(--map-halo);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map figcaption {
  padding: var(--s-2) var(--s-3);
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-xs);
}

/* Places */

.near {
  display: grid;
  gap: var(--s-5);
}

.near .map {
  align-self: start;
}

h3 + .plist,
.pack__bar + .check {
  margin-top: var(--s-4);
}

.plist {
  display: grid;
  align-content: start;
}

.plist li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: var(--s-3);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
}

.plist li:first-child {
  padding-top: 0;
  border-top: 0;
}

.plist__ic {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  color: var(--accent-text);
}

.plist__area {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.plist__desc {
  margin-top: var(--s-1);
  font-size: var(--t-sm);
}

.sub {
  margin-top: var(--s-7);
}

.sub + * {
  margin-top: var(--s-4);
}

.pgrid {
  display: grid;
  gap: var(--s-4);
}

.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.pcard img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.pcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s-4);
}

.pcard h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-lg);
}

.pcard__en {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.pcard__desc {
  margin-block: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
}

.pcard .pills {
  margin-top: auto;
}

/* Checklist */

.pack__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.pack__count {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.check {
  display: grid;
  gap: var(--s-4);
}

.check fieldset {
  min-width: 0;
  margin: 0;
}

.check legend {
  padding: 0;
  font-size: var(--t-lg);
  font-weight: 750;
}

.check label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 2.75rem;
  padding-block: var(--s-2);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15em 0 0;
  accent-color: var(--accent);
}

.check input:checked + span {
  color: var(--ink-2);
  text-decoration: line-through;
}

/* Info */

.info {
  display: grid;
  gap: var(--s-4);
}

.info h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.info h3 .ic {
  color: var(--accent-text);
}

.info p {
  margin-top: var(--s-3);
}

.info .muted,
.muted {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.clocks span {
  display: block;
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.clocks b {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wxlist {
  display: grid;
  margin-top: var(--s-3);
}

.wxlist li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 var(--s-2);
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.wxlist li:first-child {
  border-top: 0;
}

.wxlist__sky {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.wxlist b {
  font-weight: 700;
}

.card--sos {
  background: var(--warm-soft);
  border-color: transparent;
}

.card--sos h3 .ic {
  color: var(--warm);
}

.sos {
  display: grid;
  margin-top: var(--s-3);
}

.sos li {
  padding-block: var(--s-3);
  border-top: 1px solid color-mix(in srgb, var(--warm) 22%, transparent);
}

.sos__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  color: var(--ink);
  font-size: var(--t-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sos__911 {
  font-size: var(--t-xl);
}

/* Footer */

.footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
}

.footer__hi {
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer p {
  margin-top: var(--s-3);
}

.credits {
  margin-top: var(--s-5);
  color: var(--ink-2);
  font-size: var(--t-xs);
}

.credits summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 650;
}

.credits li {
  margin-top: var(--s-1);
}

.noscript {
  padding: var(--s-4);
  background: var(--warm-soft);
  color: var(--warm);
  font-weight: 650;
  text-align: center;
}

/* 한 칸짜리 그리드가 긴 낱말에 밀려 화면보다 넓어지지 않게 한다. */
.hero,
.steps,
.passes,
.sched,
.days,
.tour__grid,
.tour__list,
.near,
.pgrid,
.check,
.info {
  grid-template-columns: minmax(0, 1fr);
}

/* Wider screens */

@media (min-width: 40rem) {
  .steps,
  .passes {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .addr {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .strip a {
    grid-template-columns: 1fr;
    gap: 0.125rem;
    align-content: start;
    padding: var(--s-3) var(--s-4);
  }

  .strip .ic {
    display: none;
  }

  .pgrid,
  .check {
    grid-template-columns: 1fr 1fr;
  }

  /* 카드 높이가 제각각이라 단으로 흘려 빈 공간을 없앤다. */
  .info {
    display: block;
    columns: 2;
    column-gap: var(--s-4);
  }

  .info > .card {
    margin-bottom: var(--s-4);
    break-inside: avoid;
  }

  .tour__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }

  .now__card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--s-6);
  }

  .now__clocks {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56.25rem) {
  body {
    padding-bottom: 0;
  }

  .tabbar {
    display: none;
  }

  .topnav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: var(--s-7);
    padding-block: var(--s-6);
  }

  .hero__media {
    order: 2;
  }

  .sched {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
    gap: var(--s-6);
  }

  .daynav {
    top: calc(var(--bar-h) + 1rem);
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .daynav a {
    justify-content: flex-start;
    gap: var(--s-2);
    min-height: 3rem;
    padding-inline: var(--s-4);
    border-radius: var(--r-md);
  }

  .daynav__short {
    display: inline;
    font-weight: 600;
  }

  .near {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--s-6);
  }

  .near .map {
    position: sticky;
    top: calc(var(--bar-h) + 1rem);
  }

  .pgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .check {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info {
    columns: 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    padding: 0;
    background: #fff;
    font-size: 11pt;
  }

  .topbar,
  .tabbar,
  .daynav,
  .hero__cta,
  .hero__media,
  .now,
  .install,
  .actions,
  .pills,
  .map,
  .tour .btn,
  .pack__bar .btn,
  .pcard img,
  .credits,
  [data-copy] {
    display: none !important;
  }

  .sched {
    display: block;
  }

  .day,
  .card,
  .pcard,
  .callout,
  .tour__stop {
    break-inside: avoid;
  }

  .day {
    margin-bottom: 1rem;
  }
}
