/* cauldron.wtf: shared look for every page. Near-black, charcoal glass, violet light, a little toxic green. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff") format("woff");
             font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen.woff") format("woff"); font-display: swap; }

:root {
  --void: #09080b;
  --char: #121015;
  --char-2: #19161e;
  --line: #272231;
  --line-2: #352e42;
  --text: #ede9f5;
  --mute: #9d95ad;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --violet-glow: rgba(168, 85, 247, .32);
  --ichor: #9bcb55;
  --danger: #f0617a;
  --gold: #e6b450;
  --radius: 16px;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 17px/1.55 "Bricolage Grotesque", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.px { font-family: "Silkscreen", monospace; letter-spacing: .02em; }
.pixel { image-rendering: pixelated; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px;
       font: 700 16px/1 "Bricolage Grotesque", sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer;
       transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
.btn-main { background: var(--violet); color: #12081f; box-shadow: 0 0 0 0 var(--violet-glow); }
.btn-main:hover { background: #bb7bfa; color: #12081f; box-shadow: 0 8px 32px -6px var(--violet-glow); }
.btn-ghost { background: rgba(255, 255, 255, .02); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--mute); color: var(--text); }
.btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-danger { background: transparent; border-color: rgba(240, 97, 122, .5); color: var(--danger); }
.btn-danger:hover { background: rgba(240, 97, 122, .1); color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* glass panels */
.glass { background: linear-gradient(180deg, rgba(30, 26, 37, .72), rgba(18, 16, 21, .72)); border: 1px solid var(--line);
         border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(9, 8, 11, .78); backdrop-filter: blur(12px);
       border-bottom: 1px solid rgba(39, 34, 49, .7); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { height: 28px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 0 10px var(--violet-glow)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--mute); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 7px; }
.hint { color: var(--mute); font-size: 13px; margin: 6px 0 0; }
input, textarea, select {
  width: 100%; font: 400 16px/1.4 "Bricolage Grotesque", sans-serif; color: var(--text); background: var(--void);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 18px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.good { color: var(--ichor); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .fine { margin-left: auto; }

/* the one ambient effect: drifting motes behind the hero */
#motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .foot .fine { margin-left: 0; }
  .nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
