/* Creatio Aura: Ember Night. A midnight sky, warm ember and amber, a glowing halo and moon,
   and fixed stars that glitter. Calm rather than playful. */

:root {
  --sky: #120f1f;
  --sky-raised: #17132a;
  --card: #1d1830;
  --card-line: #34294a;
  --line: #241d38;
  --text: #f4eadb;
  --text-soft: #d8cbb6;
  --text-muted: #b9a8d6;
  --ember: #ff8a3d;
  --amber: #ffb35c;
  --effugium: #7fd4c6;
  --secessio: #c9b3ff;
  --familia: #b3d98c;
  --ink-on-ember: #1d0f05;
  --error: #ff9b8a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
a { color: var(--amber); }
a:hover { color: #ffd59a; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* Stars: fixed in place, each glittering at its own pace. */
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; border-radius: 50%; background: #fff1d6; animation: twinkle var(--t, 3.2s) ease-in-out var(--d, 0s) infinite; }
.star.dot { box-shadow: 0 0 8px 2px rgba(255, 220, 160, 0.55); }
.star.sparkle { border-radius: 0; background: none; filter: drop-shadow(0 0 4px rgba(255, 220, 160, 0.9)); }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 24px; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: #e8dcc8; text-decoration: none; padding: 10px 14px; border-radius: 99px; font-weight: 700; }
.site-nav a:hover { background: var(--card); }
.site-footer { border-top: 2px solid var(--line); position: relative; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 30px; padding-bottom: 30px; font-size: 15px; color: var(--text-muted); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.site-footer a { color: #e8dcc8; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 99px; background: var(--ember); color: var(--ink-on-ember); font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--sans); }
.button:hover { background: #ff9c58; color: var(--ink-on-ember); }
.button:disabled { opacity: 0.6; cursor: wait; }
.button.ghost { background: transparent; border: 2px solid #3a2f4a; color: var(--text); }
.button.ghost:hover { border-color: var(--amber); }

/* Home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 32px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(42px, 6.5vw, 80px); max-width: 16ch; text-wrap: balance; }
.hero p { font-size: 20px; color: var(--text-soft); max-width: 54ch; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.night { position: relative; display: inline-block; color: var(--amber); }
.night .moon { position: absolute; left: 50%; top: 50%; width: 1.5em; height: 1.5em; transform: translate(-38%, -62%); border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fff6dc 0%, #f6dfae 45%, #e9c78a 100%); opacity: 0.32; animation: moonglow 6s ease-in-out infinite; }
.night .word { position: relative; }
/* Keeps "night," together: the moon makes "night" its own box, so a line could break before the comma. */
.nowrap { white-space: nowrap; }
@keyframes moonglow {
  0%, 100% { box-shadow: 0 0 50px 18px rgba(255, 214, 150, 0.22), 0 0 120px 50px rgba(255, 170, 90, 0.1); }
  50% { box-shadow: 0 0 64px 24px rgba(255, 214, 150, 0.3), 0 0 150px 64px rgba(255, 170, 90, 0.14); }
}
.section { padding-top: 32px; padding-bottom: 88px; }
.section h2 { font-size: 40px; margin-bottom: 26px; }
/* At most two across, so four projects sit as a 2×2 of same-size cards. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 28px; background: var(--card); border: 2px solid var(--card-line); color: var(--text); text-decoration: none; }
/* The last line ("Take a look", "More soon.") sits at the bottom, so it lines up across the cards. */
.card > :last-child { margin-top: auto; }
a.card:hover { border-color: #5b4d78; color: var(--text); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.badge { padding: 6px 14px; border-radius: 99px; background: #3a2618; border: 1px solid var(--ember); color: var(--amber); font-weight: 700; font-size: 13px; }
/* A project still in the works: no sign-ups yet. */
.badge.quiet { background: #241d38; border-color: #5b4d78; color: var(--text-soft); }
/* The Ignis Aura flame beside its name, as in the app. */
.with-flame { display: inline-flex; align-items: center; gap: 0.12em; }
.with-flame .flame { width: 0.95em; height: 0.95em; flex: none; margin-left: -0.12em; }
.project-hero h1.with-flame { flex-direction: column; align-items: flex-start; gap: 0.08em; }
.project-hero h1.with-flame .flame { width: 0.7em; height: 0.7em; margin-left: -0.1em; }
.project-name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 54px; line-height: 1; color: var(--amber); }
/* Each project's own colour for its name. */
.project-name.effugium { color: var(--effugium); }
.project-name.secessio { color: var(--secessio); }
.project-name.familia { color: var(--familia); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.chips span { padding: 6px 12px; border-radius: 99px; background: #2a2240; color: #e8dcc8; }
.band { background: var(--sky-raised); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); position: relative; }
.band .wrap { padding-top: 72px; padding-bottom: 72px; }
.band p { color: var(--text-soft); font-size: 19px; max-width: 60ch; }
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 80px; padding-bottom: 80px; }
.closing h2 { font-size: 44px; }
.closing p { color: var(--text-soft); max-width: 46ch; }

/* The Ignis Aura page */
.project-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.project-hero h1 { font-size: clamp(72px, 10vw, 120px); line-height: 0.9; color: var(--amber); }
.project-hero p { font-size: 19px; color: var(--text-soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.features h3 { font-size: 20px; margin-bottom: 6px; }
.features p { color: var(--text-soft); font-size: 16px; }
.idea { display: block; padding-top: 72px; padding-bottom: 72px; }
.idea .lede { font-size: 20px; color: var(--text-soft); max-width: 760px; margin-bottom: 32px; }
.idea .beta-note { margin-top: 40px; gap: 8px; }
.idea .beta-note p { color: var(--text-soft); }
.beta { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; padding-top: 72px; padding-bottom: 88px; }
.beta-intro { display: flex; flex-direction: column; gap: 16px; }
.beta-intro h2 { font-size: 40px; }
.beta-intro p { color: var(--text-soft); }
.small { font-size: 15px; color: var(--text-muted); }

/* Forms */
.panel { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 22px; background: var(--card); border: 2px solid var(--card-line); }
.panel h3 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, fieldset legend { font-weight: 700; font-size: 15px; }
.field input { height: 50px; padding: 0 14px; border-radius: 12px; border: 2px solid #3a2f4a; background: var(--sky); color: var(--text); font-size: 16px; font-family: var(--sans); }
.field input:focus { border-color: var(--amber); outline: none; }
.field textarea { padding: 12px 14px; border-radius: 12px; border: 2px solid #3a2f4a; background: var(--sky); color: var(--text); font-size: 16px; font-family: var(--sans); resize: vertical; min-height: 84px; }
.field textarea:focus { border-color: var(--amber); outline: none; }
.optional { font-weight: 400; color: var(--text-muted); }
.hint { font-size: 14px; color: var(--text-muted); }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset legend { margin-bottom: 10px; }
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.option { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 2px solid #3a2f4a; cursor: pointer; font-weight: 600; }
.option:has(input:checked) { border-color: var(--ember); background: #2a1c1a; }
.option input, .consent input { width: 18px; height: 18px; accent-color: var(--ember); }
/* A platform not offered yet: greyed out, with "Coming soon" on hover (or a tap, on phones). */
.option.unavailable { position: relative; opacity: 0.45; cursor: not-allowed; }
.option.unavailable::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  padding: 6px 12px; border-radius: 8px; background: #fff1d6; color: var(--ink-on-ember);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.option.unavailable:hover::after, .option.unavailable:focus::after { opacity: 1; }
.option.unavailable:hover, .option.unavailable:focus { opacity: 0.7; outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.consent input { margin-top: 3px; flex: none; }
.decoy { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-size: 15px; font-weight: 600; }
.done h3 { font-size: 28px; }
.done p { color: var(--text-soft); }
[hidden] { display: none !important; }

/* Plain pages (privacy, confirmations) */
.page { max-width: 760px; padding-top: 24px; padding-bottom: 88px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 18px; }
.page h2 { font-size: 26px; margin: 34px 0 10px; }
.page p, .page li { color: var(--text-soft); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; }
.page .lede { font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .star, .night .moon { animation: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero p, .project-hero p { font-size: 18px; }
  .section h2, .beta-intro h2, .closing h2 { font-size: 32px; }
  .card { padding: 24px; }
}
.link-button { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--ember, #ff8a3d); text-decoration: underline; cursor: pointer; }
