/* Rocia — coming soon. Static, no build step. Brand tokens mirror app/globals.css. */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..500;1,6..72,300..500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --parchment: #f4efe6;
  --paper: #ebe4d6;
  --sand: #ded3bf;
  --charcoal: #2a271f;
  --ink: #17150f;
  --clay: oklch(0.58 0.06 40);
  --gold: oklch(0.72 0.08 85);

  --serif: 'Newsreader', Georgia, serif;
  --display: 'Instrument Serif', 'Newsreader', Georgia, serif;

  --measure: 34rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  color: var(--ink);
  font-family: var(--serif);
  /* layered atmosphere: warm vignette + faint starlight + parchment wash */
  background-color: var(--parchment);
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(23, 21, 15, 0.22), transparent 60%),
    radial-gradient(1px 1px at 82% 30%, rgba(23, 21, 15, 0.16), transparent 60%),
    radial-gradient(1.3px 1.3px at 68% 74%, rgba(23, 21, 15, 0.18), transparent 60%),
    radial-gradient(1px 1px at 34% 82%, rgba(23, 21, 15, 0.14), transparent 60%),
    radial-gradient(1px 1px at 50% 12%, rgba(23, 21, 15, 0.12), transparent 60%),
    radial-gradient(120% 120% at 50% 8%, transparent 55%, rgba(42, 39, 31, 0.10) 100%),
    linear-gradient(180deg, var(--parchment), var(--paper));
  background-attachment: fixed;
  overflow: hidden;
}

/* fine grain overlay using the app's parchment texture */
.grain {
  position: fixed;
  inset: 0;
  background-image: url('parchment.jpg');
  background-size: 480px;
  opacity: 0.10;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  width: min(100%, var(--measure));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- emblem --- */
.mark { margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); line-height: 0; }

.astrolabe {
  width: clamp(104px, 22vw, 148px);
  height: auto;
  color: var(--ink);
  filter: drop-shadow(0 1px 10px rgba(42, 39, 31, 0.12));
}

.astrolabe .core { fill: var(--clay); }

.rotor { transform-origin: 0 0; transform: rotate(45deg); animation: rotor 64s linear infinite; }
.dial { transform-origin: 0 0; animation: dial 220s linear infinite; }

@keyframes rotor { to { transform: rotate(405deg); } }
@keyframes dial  { to { transform: rotate(-360deg); } }

/* --- type --- */
.wordmark {
  margin: 0 0 clamp(1.4rem, 3.5vw, 2rem);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.82rem, 2.4vw, 0.95rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 7.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: clamp(1.5rem, 4vw, 2.1rem) 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.18rem);
  line-height: 1.6;
  color: color-mix(in oklab, var(--ink) 80%, transparent);
}

.subline-en {
  margin: clamp(1.6rem, 4vw, 2.2rem) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(0.66rem, 1.9vw, 0.74rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--charcoal) 62%, transparent);
}

/* --- colophon --- */
.colophon { margin-top: clamp(2.75rem, 7vw, 4.25rem); }

.colophon .rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.colophon p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--charcoal) 60%, transparent);
}

.colophon a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--clay) 55%, transparent);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.colophon a:hover { color: var(--clay); border-color: var(--clay); }

/* --- entrance choreography --- */
.mark, .wordmark, .headline, .lede, .subline-en, .colophon {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mark      { animation-delay: 0.05s; }
.wordmark  { animation-delay: 0.28s; }
.headline  { animation-delay: 0.46s; }
.lede      { animation-delay: 0.72s; }
.subline-en{ animation-delay: 0.92s; }
.colophon  { animation-delay: 1.12s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rotor, .dial { animation: none; }
  .mark, .wordmark, .headline, .lede, .subline-en, .colophon {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
