/* Signs & Skies, the app · coming soon page. Tokens from the brand kit
   (signs-and-skies-brand/src/templates/brand.css) in their night setting:
   deep ink sky, cream type, gold accents, the almanac double rule,
   Instrument Serif with one italic accent, Satoshi labels. */

@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --night: #161A26; --night-2: #1F2536; --night-3: #252C40;
  --cream: #F3EBDC; --cream-soft: rgba(243, 235, 220, .74); --cream-faint: rgba(243, 235, 220, .6);
  --gold: #D9A441; --gold-deep: #C8952E;
  --rule: rgba(243, 235, 220, .62); --line: rgba(243, 235, 220, .2); --card: rgba(22, 26, 38, .62);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px; --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, #232B45 0%, rgba(35, 43, 69, 0) 60%),
    radial-gradient(90% 50% at 50% 115%, rgba(217, 164, 65, .10) 0%, rgba(217, 164, 65, 0) 60%),
    var(--night);
  background-attachment: fixed;
}
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body > :not(.sky) { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--cream); color: var(--night); padding: 10px 14px; }

.label { font: 700 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.acc { font-style: italic; color: var(--gold); }

/* The almanac double rule: 2px, a gap, 1px. */
.rule2 { height: 6px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dr {
  border: 2px solid var(--rule);
  box-shadow: inset 0 0 0 5px var(--night), inset 0 0 0 6px var(--rule);
}

/* Header */
.top { padding: 14px 0 12px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; color: var(--cream-soft); }
.top-link:hover { color: var(--gold); }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); display: grid; gap: 40px; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px 9px 14px;
  border: 1px solid rgba(217, 164, 65, .55); border-radius: 999px; color: var(--gold); background: rgba(217, 164, 65, .08);
}
.soon .dot { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  margin: 24px 0 0; font: 400 clamp(2.9rem, 10.5vw, 6.4rem)/.95 var(--serif); letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 .nw, .hero h1 .acc { white-space: nowrap; }
.hero .lede { margin: 26px 0 0; max-width: 34rem; font-size: clamp(1.1rem, 2.3vw, 1.32rem); line-height: 1.55; color: var(--cream-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--cream-soft); }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.note { margin: 30px 0 0; padding-top: 18px; max-width: 34rem; border-top: 1px solid var(--line); color: var(--cream-faint); font-size: .98rem; }
.note b { color: var(--cream); font-weight: 600; }

/* The roundel with a slow orbit, wide screens only. */
.orbit { display: none; position: relative; width: clamp(260px, 28vw, 340px); aspect-ratio: 1; }
.orbit img { position: absolute; inset: 9%; width: 82%; height: 82%; }
.orbit .ring { position: absolute; inset: 0; border: 1px solid rgba(217, 164, 65, .35); border-radius: 50%; animation: spin 60s linear infinite; }
.orbit .moon { position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 14px 3px rgba(243, 235, 220, .45); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr auto; } .orbit { display: block; } }

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; }
.sec-head .label { color: var(--gold); }
.sec-head h2 { margin: 0; font: 400 clamp(2.2rem, 6vw, 3.6rem)/1 var(--serif); letter-spacing: -.015em; }
.sec-head p { margin: 4px 0 0; max-width: 38rem; color: var(--cream-soft); }

/* The three sites */
.sites { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .sites { grid-template-columns: repeat(3, 1fr); } }
.site {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; background: var(--card);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: transform .2s ease, border-color .2s ease;
}
.site:hover { transform: translateY(-3px); }
.site:focus-within { border-color: var(--gold); }
.site .num { font: italic 400 1.15rem/1 var(--serif); color: var(--gold); }
.site .label { color: var(--cream-soft); }
.site h3 { margin: 0; font: 400 2.25rem/1 var(--serif); letter-spacing: -.01em; }
.site h3 a { text-decoration: none; }
.site h3 a:focus-visible { outline: none; }
.site h3 a::after { content: ''; position: absolute; inset: 0; }
.site p { margin: 0; color: var(--cream-soft); flex: 1; }
.site .go { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.site .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.site:hover .go { color: var(--gold); }
.site:hover .go svg { transform: translateX(4px); }

/* Follow panel */
.panel { padding: clamp(28px, 5vw, 52px); background: rgba(31, 37, 54, .72); box-shadow: inset 0 0 0 6px rgba(31, 37, 54, 1), inset 0 0 0 7px var(--rule); }
.panel .inner { display: grid; gap: 26px; }
@media (min-width: 820px) { .panel .inner { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; } }
.panel .glyph { width: 46px; height: 46px; margin-bottom: 14px; }
.panel .label { color: var(--gold); }
.panel h2 { margin: 10px 0 0; font: 400 clamp(2.2rem, 6vw, 3.4rem)/1 var(--serif); }
.panel p { margin: 14px 0 0; color: var(--cream-soft); max-width: 30rem; }
.socials { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 20px; text-decoration: none; color: var(--cream);
  border: 1px solid rgba(243, 235, 220, .28); border-radius: 999px; transition: background-color .2s ease, border-color .2s ease;
}
.socials a:hover { background: rgba(243, 235, 220, .07); border-color: var(--gold); color: var(--cream); }
.socials svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.socials .name { font-weight: 700; }
.socials .handle { margin-left: auto; color: var(--cream-soft); font-size: .92rem; overflow-wrap: anywhere; text-align: right; }

/* Footer */
.foot { margin-top: clamp(56px, 9vw, 104px); padding-bottom: 40px; }
.foot .row { display: flex; align-items: center; gap: 14px; padding-top: 22px; }
.foot .mark { width: 42px; height: 42px; }
.foot small { color: var(--cream-faint); font-size: .88rem; }

/* 404 */
.lost { padding: clamp(56px, 12vw, 140px) 0 0; }
.lost h1 { margin: 18px 0 0; font: 400 clamp(2.8rem, 9vw, 5.6rem)/1 var(--serif); letter-spacing: -.02em; }
.lost p { margin: 18px 0 0; color: var(--cream-soft); max-width: 32rem; }
.lost .label { color: var(--gold); }
.lost a.home { display: inline-flex; align-items: center; min-height: 48px; margin-top: 26px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; text-decoration: none; font-weight: 700; }

@media (max-width: 520px) {
  .brand img { height: 26px; }
  .socials .handle { font-size: .86rem; }
}
@media (max-width: 380px) {
  .socials .handle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
