@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson";
  src: url("/fonts/atkinson-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --astro-bg: #ffffff;
  --astro-ink: rgba(0, 0, 0, 0.78);
  --astro-strong: #050505;
  --astro-muted: rgba(0, 0, 0, 0.58);
  --astro-line: rgba(0, 0, 0, 0.12);
  --astro-soft: rgba(0, 0, 0, 0.04);
  --astro-soft-2: rgba(0, 0, 0, 0.07);
  --astro-card: rgba(255, 255, 255, 0.76);
  --tokyo-blue: #2563eb;
  --tokyo-pink: #db2777;
  --tokyo-amber: #d97706;
  font-family: "Atkinson", "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: scroll; background: var(--astro-bg); }
body {
  margin: 0;
  min-height: 100%;
  background: var(--astro-bg);
  color: var(--astro-ink);
  font-family: "Atkinson", "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::selection { background: #111; color: white; }
a { color: inherit; text-decoration: none; }
p { color: var(--astro-muted); line-height: 1.78; }
strong, b, h1, h2, h3 { color: var(--astro-strong); }

.sphere-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.sphere-header.scrolled {
  background: rgba(255, 255, 255, .76);
  border-color: var(--astro-line);
  backdrop-filter: blur(10px) saturate(180%);
}
.header-inner {
  width: min(768px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--astro-ink);
  transition: color .25s ease;
}
.brand:hover { color: var(--astro-strong); }
.brand svg { width: 24px; height: 24px; fill: currentColor; }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
}
.nav-pill a {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--astro-ink);
  transition: background .25s ease, color .25s ease;
}
.nav-pill a:hover, .nav-pill a.active { background: #000; color: #fff; }
.header-actions { position: absolute; right: 0; display: flex; gap: 4px; }
.header-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--astro-line);
  display: grid;
  place-items: center;
  color: var(--astro-ink);
  background: transparent;
}

main { position: relative; min-height: 100vh; }
.fixed-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#particles1, #particles2, #particles3, #stars1, #stars2, #stars3 { position: fixed; inset: 0; }
#galaxy { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
#twinkle-star.template { position: absolute; left: -9999px; }
#twinkle-star.twinkle, .twinkle { animation: twinkle 2s ease-in-out forwards; }
#meteors .shower { position: absolute; inset: 0; left: 50%; width: 100vw; aspect-ratio: 1 / 1; transform-origin: center; }
#meteors .meteor { position: absolute; top: 50%; left: 50%; width: 1px; height: 75vh; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); animation: meteor 3s ease-in-out forwards; }
#meteors .shower.ur { transform: translateX(-50%) rotate(45deg); }
#meteors .shower.dr { transform: translateX(-50%) rotate(135deg); }
#meteors .shower.dl { transform: translateX(-50%) rotate(225deg); }
#meteors .shower.ul { transform: translateX(-50%) rotate(315deg); }

.sphere-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}
#planetcont {
  position: absolute;
  inset: 25vh 0 0;
  overflow: hidden;
}
#crescent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250vw;
  min-height: 100vh;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, transparent 5%);
}
#planet {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 1px;
}
#blur {
  width: 100%;
  height: 80px;
  border-radius: 9999px;
  background: rgba(0,0,0,.2);
  filter: blur(48px);
}
.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.hero-kicker { margin: 0; font-size: clamp(1.05rem, 2.5vw, 1.45rem); font-weight: 700; color: var(--astro-muted); }
.hero-title {
  margin: .35rem 0;
  font-size: clamp(2.45rem, 8vw, 5.7rem);
  line-height: .92;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.hero-subtitle { margin: 0 auto; max-width: 720px; font-size: clamp(.98rem, 2vw, 1.18rem); }
.hero-actions, .sphere-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sphere-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--astro-line);
  font-weight: 700;
  font-size: .94rem;
  transition: opacity .2s ease, background .2s ease;
}
.sphere-button.primary { background: #000; color: #fff; border-color: #000; }
.sphere-button:hover { opacity: .72; }

.content-slab {
  position: relative;
  z-index: 3;
  background: white;
}
.page-shell, .sphere-shell {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px;
}
.page-shell.wide, .sphere-shell.wide { width: min(920px, calc(100% - 40px)); }
.sphere-stack { display: grid; gap: 80px; }
.sphere-section { display: grid; gap: 16px; }
.sphere-section.compact { gap: 10px; }
.section-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0; font-weight: 700; color: var(--astro-strong); }
.microcopy { margin: 0; color: var(--astro-muted); font-size: .95rem; }

article.sphere-copy p { margin: 0 0 1rem; }
article.sphere-copy b, article.sphere-copy strong { font-style: italic; }
.arrow-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.arrow-card, .panel, .feature-card, .day-card, .simple-day, .todo-group {
  display: block;
  border: 1px solid var(--astro-line);
  border-radius: 16px;
  padding: 18px;
  background: var(--astro-card);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.arrow-card:hover, .feature-card:hover { transform: translateY(-2px); background: rgba(0,0,0,.035); }
.arrow-card h2, .arrow-card h3, .feature-card h2, .panel h2 { margin: 0 0 6px; font-size: 1.05rem; }
.arrow-card p, .feature-card p, .panel p { margin: 0; }
.arrow-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--astro-muted); }
.arrow-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.arrow-symbol { color: var(--astro-muted); font-weight: 700; }

.trip-masthead { padding-top: 104px; text-align: center; }
.trip-masthead h1 { margin: .4rem auto; max-width: 820px; font-size: clamp(2.1rem, 7vw, 4.6rem); line-height: .94; letter-spacing: -.06em; }
.trip-masthead .subtitle { margin: 0 auto; max-width: 720px; font-size: 1.08rem; }
.trip-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; text-align: left; }
dl { margin: 0; }
dt { color: var(--astro-muted); font-size: .82rem; }
dd { margin: 3px 0 0; color: var(--astro-strong); font-weight: 700; line-height: 1.45; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span, .status, .pace {
  border: 1px solid var(--astro-line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--astro-ink);
  background: rgba(255,255,255,.8);
  font-weight: 700;
  font-size: .9rem;
}
.timeline { display: grid; gap: 14px; }
.day-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
.day-index { font-weight: 700; color: var(--astro-strong); }
.day-content h3 { margin: 4px 0 10px; font-size: 1.2rem; }
.day-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--astro-muted); font-size: .9rem; }
.pace.hot { color: var(--tokyo-amber); }
ul.compact-list, .day-card ul { margin: 10px 0 0; padding-left: 1.2rem; line-height: 1.7; }
.transport, .note { margin: 10px 0 0; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simple-header { padding: 108px 0 24px; }
.simple-header h1 { margin: .4rem 0; font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: .95; letter-spacing: -.05em; }
.simple-days, .todo-groups { display: grid; gap: 14px; }
.simple-date { color: var(--astro-muted); font-weight: 700; }
.todo-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--astro-line); }
.todo-item:first-of-type { border-top: 0; }
.todo-item h3 { margin: 0 0 4px; font-size: 1rem; }
.todo-item p { margin: 0; }
.status.todo { color: var(--tokyo-amber); }
.status.check { color: var(--tokyo-blue); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-grid label { padding: 12px; border: 1px solid var(--astro-line); border-radius: 12px; background: white; }

.animate { opacity: 0; transform: translateY(48px); transition: opacity 1s ease, transform 1s ease; }
.animate.show { opacity: 1; transform: translateY(0); }
@keyframes animateParticle { from { transform: translateY(0); } to { transform: translateY(-2000px); } }
@keyframes animStar { from { transform: translateY(0); } to { transform: translateY(-2000px); } }
@keyframes twinkle { 0% { opacity: 0; transform: rotate(0deg); } 50% { opacity: 1; transform: rotate(180deg); } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes meteor { 0% { opacity: 0; transform: translateY(200%); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }

@media (max-width: 760px) {
  .header-inner { justify-content: flex-end; }
  .nav-pill { display: none; }
  .brand span { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trip-facts, .grid.two, .check-grid { grid-template-columns: 1fr; }
  .day-card { grid-template-columns: 1fr; }
  .page-shell, .sphere-shell { width: min(100% - 30px, 680px); }
}
