/* Xiisma «próximamente» page and the forms index. Colours come from themes/<name>.css only. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 1rem; line-height: 1.5;
  background: var(--hero-bg); color: var(--on-hero);
  display: flex; flex-direction: column;
}
h1, h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; margin: 0; }

.stage {
  flex: 1; display: grid; place-content: center; justify-items: center; gap: clamp(20px, 4vh, 36px);
  padding: 48px 24px; text-align: center; position: relative; overflow: hidden;
}
.stage::before, .stage::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; opacity: .9;
}
.stage::before { width: 22vmin; height: 22vmin; background: var(--dot-1); right: 12vw; top: 14vh; animation: drift 9s ease-in-out infinite; }
.stage::after  { width: 12vmin; height: 12vmin; background: var(--dot-2); left: 10vw; bottom: 16vh; animation: drift 11s ease-in-out -4s infinite; }
@keyframes drift { 50% { transform: translate(-2vmin, 3vmin); } }

.wordmark { position: relative; z-index: 1; width: clamp(220px, 52vw, 460px); height: auto; aspect-ratio: 523 / 168; color: var(--logo-letters-hero); overflow: visible; }
.wm-dot { transform-box: fill-box; transform-origin: center bottom; animation: dot-drop 1.1s cubic-bezier(.3, 1.5, .5, 1) both; }
.wm-dot-2 { animation-delay: .18s; }
@keyframes dot-drop { from { transform: translateY(-60px) scale(.6); opacity: 0; } }

.soon {
  position: relative; z-index: 1;
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(2rem, 7vw, 3.6rem); color: var(--hero-em);
}

.access { position: relative; z-index: 1; min-height: 120px; }
.access summary {
  list-style: none; cursor: pointer; display: inline-block;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-hero); opacity: .7; padding: 10px 14px; border-radius: 999px;
}
.access summary::-webkit-details-marker { display: none; }
.access summary:hover, .access summary:focus-visible { opacity: 1; }
.access[open] summary { opacity: 1; }
.access form { display: flex; gap: 8px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.access label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.access input {
  font: inherit; font-size: 1rem; width: min(220px, 60vw); padding: 12px 16px; border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--on-hero) 45%, transparent);
  background: color-mix(in srgb, var(--on-hero) 10%, transparent); color: var(--on-hero);
}
.access input::placeholder { color: var(--on-hero); opacity: .6; }
.access input:focus-visible, .btn:focus-visible, .access summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 20px;
  background: var(--accent); color: var(--on-accent);
}
.err { margin: 10px 0 0; font-size: .95rem; min-height: 1.4em; color: var(--on-hero); }
.err:not(:empty)::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--dot-2); margin-right: .5em; }

/* forms index (behind the code) */
.idx { background: var(--bg); color: var(--ink); }
.idx .top { background: var(--hero-bg); color: var(--on-hero); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.idx .top .wordmark { width: 110px; color: var(--logo-letters-hero); }
.idx .top a { color: var(--on-hero); font-weight: 600; font-size: .9rem; opacity: .85; }
.idx main { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.idx h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.03em; color: var(--em); }
.idx .lead { color: var(--ink-soft); margin: 8px 0 28px; }
.cards { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  color: inherit; text-decoration: none;
}
a.card:hover, a.card:focus-visible { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.card b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; letter-spacing: -.02em; display: block; }
.card span { color: var(--ink-soft); font-size: .92rem; }
.card.later { opacity: .75; border-style: dashed; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.go { font-weight: 700; color: var(--brand); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .stage::before, .stage::after, .wm-dot { animation: none; }
}
