/* COSMOLOGIE — floor site
   Tokens from .claude/design/COLOR_SYSTEM_LOCKED.md (LOCKED) */

:root {
  --cream: #EEEADB;
  --charcoal: #252525;
  --ember: #B6482A; /* Ember on cream — COLOR_SYSTEM_LOCKED rule 7 */
  --muted: rgba(37, 37, 37, 0.5);
  --hairline: rgba(37, 37, 37, 0.25);
}

@font-face {
  font-family: 'Astronomicon';
  src: url('assets/fonts/Astronomicon.ttf') format('truetype');
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 64px; /* the opening screen: claim + stamp + the full hand */
}

/* ── Top bar ──────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
}

.topbar-inner {
  /* chrome runs edge-to-edge; only content keeps the 680px column */
  min-height: 42px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.topbar-mark img {
  height: 26px;
  width: auto;
  display: block;
}

/* ── Nameplate: wordmark sits on the rule ── */

.topbar-wordmark {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.topbar-wordmark img {
  height: 19px;
  width: auto;
  display: block;
}

/* ── Headline band — the app's sign-on anatomy: name small, claim large ── */

.masthead {
  text-align: center;
  margin: 14px 0 36px;
}

.headline {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.1;
}

.trade {
  /* the whisper under the claim — S's ruling */
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 14px;
}

.trade .tdot {
  /* the brandmark's dot, carried between the words — twins differentiated by ember, not demotion */
  color: var(--ember);
}

.claim-divider {
  /* the rule that closes the claim — S's call after the A/B */
  width: 44px;
  height: 1px;
  background: var(--hairline);
  margin: 22px auto 0;
}

.dl-retro {
  /* ember = live signal; only painted while the retrograde is real */
  color: var(--ember);
}

/* hamburger — CSS-only (checkbox), no JS */
.menu-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 26px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--charcoal);
}

.menu {
  display: none;
  position: absolute;
  right: 32px;
  top: 100%;
  background: var(--cream);
  border: 1px solid var(--hairline);
  padding: 14px 22px;
  z-index: 10;
}

.menu a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 6px 0;
}

.menu a:hover {
  color: var(--ember);
}

.menu-toggle:checked ~ .menu {
  display: block;
}

/* ── Almanac (dateline + sky ribbon) ──────── */

.almanac {
  margin-bottom: 24px; /* the stamp hugs its hand */
}

.skyline {
  width: 100%;
}

.dateline {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.dateline .sep {
  color: var(--muted);
  margin: 0 6px;
}

.ribbon-scroll {
  overflow-x: auto;
  scrollbar-width: none; /* the strip swipes; no scrollbar chrome */
}

.ribbon-scroll::-webkit-scrollbar {
  display: none;
}

.ribbon {
  display: block;
  width: 100%;
  min-width: 560px; /* glyphs stay legible; strip scrolls on small screens */
  height: auto;
}

/* the instrument wakes when touched */
.ribbon .rp {
  cursor: pointer;
}

.ribbon .rp:hover,
.ribbon .rp.rp-active {
  fill: var(--ember);
}

/* the sky note — a small card that appears under the timeline */
.ribbon-caption {
  min-height: 46px;
  margin: 14px auto 0;
  max-width: 420px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--charcoal);
  opacity: 0;
  box-sizing: border-box;
}

.ribbon-caption.on {
  opacity: 1;
  border-color: var(--hairline);
  background: var(--cream);
}

/* resting state: the instrument's one-line instruction */
.ribbon-caption.resting {
  opacity: 1;
  color: var(--muted);
  border-color: transparent;
}

/* ── Plates (screenshots) ─────────────────── */

.plates {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 96px;
}

.plate {
  flex: 1;
  max-width: 200px;
}

.plate img,
.plate .placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--hairline);
  display: block;
}

.plate .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 12px;
}

.plate figcaption {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 14px;
  color: var(--charcoal);
}

@media (max-width: 560px) {
  .plates {
    flex-direction: column;
    align-items: center;
  }
  .plate {
    max-width: 240px;
  }
}

/* ── (005) The film — the demo, framed like a print ── */

.film-plate {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  background: #2B2B28;
  border: 10px solid #FBF8EF;
  box-shadow: 0 4px 16px rgba(37, 37, 37, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}

.film-play {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(238, 234, 219, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-tri {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--cream);
  margin-left: 4px;
}

.film-note {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238, 234, 219, 0.6);
}

/* the muted gesture hint inside catalog captions */
.cap-hint {
  opacity: 0.55;
}

/* the page's one CTA */
.get-app-wrap {
  text-align: center;
  margin-top: 40px;
}

.get-app {
  display: inline-block;
  border: 1px solid var(--charcoal);
  padding: 14px 34px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.get-app:hover {
  border-color: var(--ember);
  color: var(--ember);
}

/* ── The fan — today's hand of cards ──────── */

/* mobile: the app's carousel — swipe, one card at a time, next card peeking */
@media (max-width: 899px) {
  .fan {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 16px;
    width: 100vw;
    padding: 0 7.5vw;
    box-sizing: border-box;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* the strip swipes; no scrollbar chrome */
  }

  .fan::-webkit-scrollbar { display: none; }

  .fan .exhibit {
    flex: 0 0 85vw;
    scroll-snap-align: center;
  }
}

@media (min-width: 900px) {
  /* three equal cards distributed edge-to-edge across a 1240px stage (S, Jul 20) */
  .fan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: center;
    width: min(1240px, 96vw);
  }

  .fan .exhibit {
    width: 360px;
    flex: 0 0 360px;
  }

  .fan .exhibit-title { display: none; } /* the grid's outside title breaks the equal frame */
}

@media (min-width: 900px) and (max-width: 1379px) {
  .fan .exhibit {
    width: 300px;
    flex: 0 0 300px;
  }
  .flip { height: min(500px, 56vh); }
}

/* ── The flip — tap a card, it turns to its reading; tap again, it turns back ── */

.flip {
  position: relative;
  height: min(560px, 56vh);
  /* no perspective: the card turns flat, same footprint every frame */
  cursor: pointer;
  width: 100%;
}

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.flip.flipped .flip-inner {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  overflow: hidden; /* a face can never paint outside its frame */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face.back {
  transform: rotateY(180deg);
  background: #E5DCC6;
  border: 1px solid rgba(37, 37, 37, 0.15);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(37, 37, 37, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  text-align: center;
}

.face.back-grid {
  background: var(--cream);
  border: 1px solid rgba(37, 37, 37, 0.5);
  border-radius: 14px;
}

.back-head {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}

.back-body {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
}

/* faces fill the frame; the cards inside stretch to it */
.face .mood-card,
.face .aspect-card {
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.face .wgrid {
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
}

/* four truly equal rows — no row may hoard height and starve the bottom one */
.face .wrow {
  flex: 1 1 0;
  min-height: 0;
}

.face .wtile {
  min-height: 0;
  overflow: hidden;
  padding: 12px 10px 10px 26px;
}

.face .wtile-icon { height: 52px; }

/* ── Exhibits (the four plates) ───────────── */

.exhibits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 112px;
}

.exhibit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exhibit figcaption {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
  color: var(--charcoal);
}

.exhibit-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  color: var(--charcoal);
}

/* (001) Mood card — dress from dashboard-v5 mood hero */

.mood-card {
  width: 100%;
  max-width: 400px;
  background: #E5DCC6;
  border: 1px solid rgba(37, 37, 37, 0.15);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(37, 37, 37, 0.06);
  padding: 36px 28px 40px;
  text-align: center;
}

.mood-label {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mood-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 8px;
}

.mood-planet {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.mood-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-top: 4px;
}

.mood-word {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

.mood-meaning {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 8px;
}

.mood-divider {
  width: 50px;
  height: 1px;
  background: rgba(37, 37, 37, 0.3);
  margin: 18px auto;
}

.mood-quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* (002) Cosmic weather grid — dress from cosmic-weather-grid.tsx */

.wgrid {
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(37, 37, 37, 0.5);
  border-radius: 14px;
  overflow: hidden;
}

.wrow {
  display: flex;
  border-bottom: 1px solid rgba(37, 37, 37, 0.5);
}

.wrow:last-child {
  border-bottom: none;
}

.wtile {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 10px 20px 26px;
  min-height: 150px;
  border-right: 1px solid rgba(37, 37, 37, 0.5);
}

.wtile:last-child {
  border-right: none;
}

.wtile-dark {
  background: #3a3a3a;
  color: var(--cream);
}

.wtile-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
}

.wtile-icon {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wtile-glyph {
  font-family: 'Astronomicon';
  font-size: 52px;
  line-height: 1;
}

.wtile-value {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
}

.wtile-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 3px;
  opacity: 0.6;
}

.wtile-aspectrow {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 64px;
}

.wtile-aspectrow .planet {
  font-family: 'Astronomicon';
  font-size: 36px;
  line-height: 1;
}

.wtile-aspectrow .aspect {
  font-family: 'Astronomicon';
  font-size: 15px;
  line-height: 1;
  color: var(--ember);
  margin-top: 2px;
}

.moonphase {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.moonphase img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
}

.moonphase-shadow {
  position: absolute;
  top: 9px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3a3a3a;
}

.retro-wrap {
  position: relative;
}

.retro-mark {
  position: absolute;
  top: -4px;
  right: -14px;
  font-family: Georgia, serif;
  font-size: 14px;
}

.ingress-wrap {
  position: relative;
}

.ingress-planet {
  position: absolute;
  right: -16px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* (003) Aspect card */

.aspect-card {
  width: 100%;
  max-width: 400px;
  background: #E5DCC6;
  border: 1px solid rgba(37, 37, 37, 0.15);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(37, 37, 37, 0.06);
  padding: 32px 28px 36px;
  text-align: center;
}

.aspect-label {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.45;
}

.aspect-poster {
  width: 170px;
  display: block;
  margin: 22px auto 0;
  border: 6px solid #FBF8EF;
  box-shadow: 0 3px 10px rgba(37, 37, 37, 0.18);
}

.aspect-pair {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 24px;
}

.aspect-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 10px;
}

.aspect-question {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  max-width: 280px;
  margin: 16px auto 0;
}

.aspect-nature {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 18px;
}

/* (004) The print */

.print-poster {
  width: 100%;
  max-width: 480px;
  display: block;
  border: 10px solid #FBF8EF;
  box-shadow: 0 4px 16px rgba(37, 37, 37, 0.18);
}

.print-placard {
  margin-top: 22px;
  text-align: center;
}

.print-placard-kicker {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.print-placard-title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.print-placard-line {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.85;
}

/* ── About ────────────────────────────────── */

.about {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 112px;
}

/* ── Colophon ─────────────────────────────── */

.colophon {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.colophon-seal {
  /* framed thin-C seal (frozen file) — mirrors the app footer seal */
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 20px;
  opacity: 0.75;
}

.colophon p {
  margin-bottom: 12px;
}

.colophon a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}

.colophon a:hover {
  border-bottom-color: var(--ember);
}

.colophon .fine {
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 24px;
  margin-bottom: 0;
}

/* ── Privacy page ─────────────────────────── */

.legal h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.legal .effective {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin-bottom: 64px;
}

.legal h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 16px;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--charcoal);
}

.back {
  display: block;
  text-align: center;
  margin-bottom: 64px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}
