:root {
  --base: #07060C; --surface: #110D1C; --deep: #1A0F2E; --card: rgba(255, 255, 255, .045);
  --text: #EDEAF5; --text2: #A39DB5; --text3: #6E6882;
  --mint: #5CF2B3; --teal: #3CCBC4; --violet: #8E6BFF;
  --hair: rgba(255, 255, 255, .08);
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--base); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--mint); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(24px, 4vw, 32px); margin: 56px 0 14px; }
h3 { font-size: 18px; margin: 28px 0 10px; }
.eyebrow { color: var(--text2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.lead, .answer { font-size: 19px; color: var(--text); }
.muted { color: var(--text2); }
.fine { color: var(--text3); font-size: 13px; line-height: 1.5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 1120px; }
.wrap > section:first-child h2 { margin-top: 40px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 6, 12, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--text2); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav { display: none; } .top .cta-small { margin-left: auto; } }

/* buttons */
.cta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 14px; min-height: 48px; font-size: 16px; }
.cta-primary { background: var(--text); color: var(--base); }
.cta-primary:hover { background: #fff; }
.cta-quiet { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .18); }
.cta-quiet:hover { background: rgba(255, 255, 255, .1); }
.cta-small { padding: 7px 14px; min-height: 36px; font-size: 14px; border-radius: 10px; background: var(--text); color: var(--base); }

/* heroes: pixel sky scaled up crisp */
.hero { position: relative; background: var(--base); overflow: hidden; }
.hero .sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; image-rendering: pixelated; image-rendering: crisp-edges; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--base)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 48px var(--gutter) 64px; image-rendering: auto; }
.hero.home { min-height: min(88vh, 860px); display: flex; align-items: flex-end; }
.hero.home .hero-in { width: 100%; padding-bottom: 72px; }
.hero.home h1 { font-size: clamp(44px, 9vw, 104px); line-height: .98; margin: 0 0 18px; max-width: 12ch; text-shadow: 0 2px 30px rgba(7, 6, 12, .6); }
.hero-lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text); max-width: 34em; margin: 0 0 24px; text-shadow: 0 1px 16px rgba(7, 6, 12, .8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.bestcard { display: inline-grid; gap: 2px; text-decoration: none; color: var(--text); background: rgba(17, 13, 28, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--hair); border-radius: 18px; padding: 14px 18px; }
.bestcard .k { font-size: 12px; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; }
.bestcard .v { font-size: 24px; font-weight: 700; }
.bestcard .s { font-size: 14px; color: var(--text2); }

/* place hero, modelled on the app's Tonight screen */
.hero.place .hero-in { max-width: 760px; padding-top: 28px; }
.crumb { font-size: 14px; color: var(--text2); margin: 0 0 6px; }
.crumb a { color: var(--text2); }
.hero.place h1 { font-size: clamp(26px, 5vw, 36px); margin: 0 0 4px; }
.tonight-date { color: var(--text2); margin: 0 0 8px; }
.bignum { font-size: clamp(120px, 30vw, 200px); font-weight: 700; line-height: .9; letter-spacing: -.05em; margin: 40px 0 12px; text-shadow: 0 4px 40px rgba(7, 6, 12, .5); }
.bignum span { font-size: .36em; font-weight: 500; letter-spacing: 0; color: var(--text2); margin-left: .05em; }
.headline { font-size: clamp(28px, 6vw, 36px); font-weight: 700; margin: 0; }
.headline.big { margin-top: 48px; }
.tagline { font-size: 19px; color: var(--text2); margin: 4px 0 14px; }
.conf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--hair); }
.conf i { width: 8px; height: 8px; border-radius: 2px; background: var(--text2); }
.conf-high i { background: var(--mint); }
.conf-medium i { background: var(--teal); }
.tiles { display: grid; gap: 12px; margin: 28px 0 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: rgba(17, 13, 28, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--hair); border-radius: 20px; padding: 16px 18px; }
.tile .k { font-size: 12px; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.tile .v { font-size: 26px; font-weight: 700; margin: 0; }
.tile .s { font-size: 14px; color: var(--text3); margin: 2px 0 0; }
.locked-v { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 20px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 15px; }
.issued { color: var(--text3); font-size: 13px; text-align: center; margin: 12px 0 24px; }
.hero-cta { display: grid; justify-items: center; gap: 8px; }
.locked-line { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: 14px; margin: 0; }
.num-good, .num-excellent { color: var(--mint); }
.num-possible { color: var(--teal); }
.bignum.num-low, .bignum.num-possible { color: var(--text); }
.bignum.num-good, .bignum.num-excellent { color: var(--text); }

/* destination grid */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (min-width: 700px) { .dgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } }
.dcard { display: grid; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.dcard:hover { border-color: rgba(92, 242, 179, .4); transform: translateY(-2px); }
.dname { font-weight: 700; font-size: 18px; }
.dcountry { color: var(--text3); font-size: 14px; }
.dnum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 4px; }
.cpct { font-size: clamp(30px, 6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.clab { color: var(--text2); }
.dbest { color: var(--text3); font-size: 13px; }

/* moon section */
.moon { margin: 72px 0 0; background: linear-gradient(180deg, var(--base), var(--deep) 30%, var(--deep) 70%, var(--base)); padding: 56px 0 64px; }
.moon-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .moon-in { grid-template-columns: 420px 1fr; gap: 56px; } }
.moon-art { display: grid; place-items: center; }
.moon-art img { width: min(100%, 380px); height: auto; aspect-ratio: 1; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 0 60px rgba(236, 230, 214, .18)); }
.moon-text h2 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; }
.moon-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.moon-facts div { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: 12px 16px; }
.moon-facts dt { font-size: 12px; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; }
.moon-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.moon-strip { list-style: none; max-width: 1120px; margin: 32px auto 0; padding: 0 var(--gutter) 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.moon-strip li { flex: 0 0 64px; display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--card); font-size: 12px; color: var(--text2); }
.moon-strip li:first-child { outline: 1px solid rgba(92, 242, 179, .5); color: var(--text); }
.moon-strip img { image-rendering: pixelated; image-rendering: crisp-edges; }
.moon-strip small { color: var(--text3); font-size: 11px; }

/* calendar */
.select { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 20px; color: var(--text2); font-size: 15px; }
.select select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px 14px; min-height: 44px; }
.cal-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .cal-layout { grid-template-columns: 1fr 300px; align-items: start; } .cal-side { position: sticky; top: 80px; } }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px 24px; }
.cal-month h3 { margin: 0 0 8px; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .wd { font-size: 11px; color: var(--text3); text-align: center; padding-bottom: 2px; }
.day { position: relative; aspect-ratio: 1; border-radius: 7px; display: grid; place-content: center; text-align: center; line-height: 1.05; background: #16121f; }
.day b { font-size: 13px; font-weight: 600; }
.day small { font-size: 10px; color: var(--text2); }
.day.l0 { background: #2a2536; } .day.l0 b { color: var(--text2); }
.day.l1 { background: #1d1730; }
.day.l2 { background: #1b2a3a; }
.day.l3 { background: #174a4a; }
.day.l4 { background: #1d6b57; }
.day.l3 small, .day.l4 small { color: #c8f7e4; }
.day.past { opacity: .35; }
.day.today { outline: 2px solid var(--mint); outline-offset: 1px; }
.day.off { background: transparent; color: var(--text3); }
.ph { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; }
.ph.new { background: var(--base); box-shadow: 0 0 0 1.5px #ECE6D6; }
.ph.full { background: #ECE6D6; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--text2); margin: 14px 0; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .ph { position: static; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw.l0 { background: #2a2536; } .sw.l1 { background: #1d1730; } .sw.l2 { background: #1b2a3a; } .sw.l3 { background: #174a4a; } .sw.l4 { background: #1d6b57; }
.cal-side { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 18px; }
.cal-side h3 { margin-top: 8px; }
.windows { list-style: none; padding: 0; margin: 0 0 16px; }
.windows li { display: grid; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.windows span { color: var(--text2); font-size: 14px; }

/* tables */
table.months { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.months th, .months td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--hair); font-weight: 400; }
.months thead th { color: var(--text2); font-size: 13px; }
.months tbody th { color: var(--text2); width: 48px; }
.barcell { min-width: 110px; }
.barcell .bar { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--mint), var(--violet)); margin-bottom: 4px; }
.notes { color: var(--text3); font-size: 13px; padding-left: 18px; }
.data-links { font-size: 14px; color: var(--text2); }

/* faq, pills */
details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text2); margin: 8px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); color: var(--text); text-decoration: none; font-size: 15px; }
.pill:hover { border-color: rgba(92, 242, 179, .4); }
ul { padding-left: 20px; }
li { margin: 4px 0; }

/* blog */
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.postcard { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 20px; }
.postcard:hover { border-color: rgba(92, 242, 179, .4); }
.postcard .k { font-size: 12px; color: var(--mint); letter-spacing: .08em; text-transform: uppercase; }
.postcard .t { font-weight: 700; font-size: 20px; line-height: 1.25; }
.postcard .s { color: var(--text2); font-size: 15px; }
.post h1 { font-size: clamp(32px, 6vw, 48px); margin: 8px 0 16px; }
.post .crumb { margin-top: 32px; }
.byline { color: var(--text3); font-size: 14px; }
.toc { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 14px 18px; margin: 24px 0; }
.toc p { margin: 0 0 4px; font-size: 12px; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; }
.prose h2 { margin-top: 44px; }
.tablewrap { overflow-x: auto; margin: 16px 0; }
.prose table { border-collapse: collapse; font-size: 15px; min-width: 560px; width: 100%; }
.prose th, .prose td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); }
.prose th { color: var(--text2); font-size: 13px; font-weight: 500; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 5px; }
.post-cta { margin: 40px 0; }

/* app band + footer */
.appband { margin-top: 80px; padding: 0 var(--gutter); }
.appband-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px 24px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, #22134a 0%, var(--surface) 55%); border: 1px solid var(--hair); border-radius: 28px; padding: 28px; }
.appband-in img { border-radius: 15px; }
.appband h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.appband p { margin: 0; color: var(--text2); }
@media (min-width: 800px) { .appband-in { grid-template-columns: 64px 1fr auto; padding: 32px 36px; } }
.foot { margin-top: 64px; border-top: 1px solid var(--hair); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.wordmark { font-size: clamp(88px, 22vw, 280px); font-weight: 800; letter-spacing: -.06em; line-height: .85; margin: 40px 0 36px; background: linear-gradient(90deg, var(--mint), var(--teal) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding-top: 28px; border-top: 1px solid var(--hair); }
@media (min-width: 860px) { .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cols h3 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin: 0 0 12px; }
.cols ul + h3 { margin-top: 28px; }
.cols ul { list-style: none; padding: 0; margin: 0 0 24px; }
.cols li { margin: 0 0 9px; }
.cols a { color: var(--text); text-decoration: none; }
.cols a:hover { color: var(--mint); }
.cols .plain li { color: var(--text2); }
.foot-bottom { border-top: 1px solid var(--hair); margin-top: 24px; padding-top: 20px; color: var(--text2); font-size: 14px; }

/* maps */
.maps { display: grid; gap: 12px; margin: 8px 0 6px; }
@media (min-width: 860px) { .maps { grid-template-columns: 1.15fr 1fr; } }
.mapfig { margin: 0; background: #0b0914; border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.mapfig figcaption { font-size: 13px; color: var(--text2); padding: 8px 14px 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.map { display: block; width: 100%; height: auto; }
.map .sea { fill: #0b0914; }
.map .land { fill: #1b1530; stroke: #2e2548; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map .maplabel { fill: var(--text); font-weight: 600; paint-order: stroke; stroke: #0b0914; stroke-width: 4px; stroke-linejoin: round; }
.map .maplabel.hide { display: none; }
.map .mappct { font-weight: 700; }
.map a:hover .maplabel { fill: var(--mint); }
.map .insetframe { fill: none; stroke: rgba(92, 242, 179, .5); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.map .scale { stroke: var(--text2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text2); margin: 4px 0 18px; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.maplegend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mapfig .k { width: 10px; height: 10px; display: inline-block; margin-left: 6px; }
.mapfig .k.place { background: #5CF2B3; border-radius: 50%; }
.mapfig .k.camera { background: #8E6BFF; }
.mapfig .k.airport { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #ECE6D6; }
.locator { aspect-ratio: 1.4; }

/* tonight */
.hero.tonight .hero-in { padding: 64px var(--gutter) 40px; }
.hero.tonight h1 { font-size: clamp(40px, 8vw, 80px); margin: 0 0 6px; text-shadow: 0 2px 30px rgba(7, 6, 12, .6); }
.tlist { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 8px; }
.tlist li { margin: 0; }
.trow { display: grid; grid-template-columns: 28px 92px 1fr; gap: 4px 12px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 14px 16px; }
.trow:hover { border-color: rgba(92, 242, 179, .4); }
.trank { color: var(--text3); font-variant-numeric: tabular-nums; }
.tpct { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tmain { display: grid; }
.tname { font-weight: 700; font-size: 18px; }
.tname small { color: var(--text3); font-weight: 400; font-size: 14px; }
.tlab { color: var(--text2); font-size: 15px; }
.ttag { color: var(--text3); font-size: 14px; }
.twhen { grid-column: 3; color: var(--text3); font-size: 12px; }
@media (min-width: 760px) { .trow { grid-template-columns: 36px 110px 1fr auto; } .twhen { grid-column: auto; } }

/* Apple's official App Store badge, shown unaltered; Apple asks for clear space around it */
.badge { display: inline-flex; align-items: center; padding: 4px 0; border-radius: 10px; }
.badge img { display: block; height: 50px; width: auto; }
.badge:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* related posts under a blog post */
.keep { margin: 56px 0 0; }
.keep h2 { font-size: 22px; margin: 0 0 16px; }
