/* Postfara holding page. Tokens, type, the space sky and the cream sheet follow the main site
   (Postfara Website/apps/site: styles/site.css and journey/styles.css). */
:root {
  --ink: #1A1733;
  --muted: #6B6577;
  --coral: #FF5A36;
  --cream: #F3EDE2;
  --sky: #ECE7F2;
  --line: rgba(26, 23, 51, .1);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- logo lockup: mark + lowercase wordmark ---------- */
.top { padding-top: 26px; position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; color: var(--ink); }
.logo img { width: 30px; height: 30px; display: block; }

/* ---------- space: the journey's sky around the globe ---------- */
.space {
  flex: 1; position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #121842 0%, #24215A 55%, #3E3170 100%);
  color: #fff;
  padding-bottom: 34px;               /* room for the sheet to rise over */
}
.space .logo { color: #fff; }
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.stars i { position: absolute; border-radius: 50%; background: #fff; opacity: .85; animation: pf-star 4s ease-in-out infinite; }
@keyframes pf-star { 50% { opacity: .25; } }
/* shooting stars: same look as the journey, slowed down so each one crosses in about 2.2s */
.stars b { position: absolute; top: 10%; left: 72%; width: 180px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); opacity: 0; transform: rotate(-24deg); animation: pf-shoot 16s cubic-bezier(.3, .1, .5, 1) infinite 3s; }
.stars b + b { top: 24%; left: 44%; animation-delay: 11s; animation-duration: 21s; }
@keyframes pf-shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); } 2% { opacity: .9; } 11% { opacity: .9; } 14% { opacity: 0; transform: translate(-340px, 152px) rotate(-24deg); } 100% { opacity: 0; transform: translate(-340px, 152px) rotate(-24deg); } }

/* the globe canvas covers the whole hero (the planet is framed to the right in 3D), so flight arcs
   are never cut off at the canvas edge; it fades in once three.js is ready */
#globe { position: absolute; z-index: 1; inset: 0; opacity: 0; transition: opacity 1.2s ease; cursor: grab; }
#globe:active { cursor: grabbing; }
#globe.ready { opacity: 1; }

/* ---------- holding message ---------- */
.hero { flex: 1; display: flex; align-items: center; position: relative; z-index: 2; pointer-events: none; }
.hero .wrap { padding-top: 56px; padding-bottom: 80px; }
.copy { max-width: 560px; pointer-events: auto; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 13px 7px 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #CFC9EC;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 90, 54, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }

h1 {
  margin: 0 0 20px; max-width: 13ch;
  font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7.6vw, 86px);
  line-height: .98; letter-spacing: -0.045em;
}
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--coral); }
.space h1 { color: #fff; }
.lede { margin: 0 0 32px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 2vw, 19px); }
.space .lede { color: #CFC9EC; }

.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--coral); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 26px rgba(255, 90, 54, .35);
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.button svg { width: 18px; height: 18px; }

/* ---------- footer: on the home page it rises out of space as the cream sheet ---------- */
.foot { position: relative; z-index: 3; border-top: 1px solid var(--line); background: var(--cream); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.sheet { border-top: 0; margin-top: -34px; border-radius: 34px 34px 0 0; box-shadow: 0 -10px 40px rgba(10, 12, 40, .35); }
.sheet .wrap { padding-top: 26px; }

/* phones: text first, the globe underneath it */
@media (max-width: 860px) {
  .space { padding-bottom: 24px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 8px; }
  #globe { position: relative; inset: auto; width: 100%; height: min(100vw, 440px); margin-top: auto; order: 3; }
  .sheet { margin-top: -24px; border-radius: 24px 24px 0 0; }
}

/* ---------- privacy page (cream, with the light sky) ---------- */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 640px; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 45%, var(--cream)) 55%, var(--cream) 100%);
}
.sky i { position: absolute; border-radius: 50%; background: #fff; filter: blur(18px); opacity: .7; animation: drift 40s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 340px; height: 120px; top: 110px; right: 8%; }
.sky i:nth-child(2) { width: 220px; height: 80px; top: 270px; right: 32%; opacity: .5; animation-duration: 55s; animation-delay: -20s; }
.sky i:nth-child(3) { width: 280px; height: 96px; top: 190px; left: -60px; opacity: .55; animation-duration: 48s; animation-delay: -12s; }
@keyframes drift { to { transform: translateX(-60px); } }
.prose { flex: 1; position: relative; z-index: 1; }
.prose .wrap { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); max-width: none; margin-bottom: 6px; }
.prose .muted { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; margin: 0 0 28px; }
.prose h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 22px; margin: 34px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sky i, .stars i, .status::before { animation: none; }
  .stars b { display: none; }
}
