@font-face { font-family: "Rudiment"; src: url("/fonts/Rudiment.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pencilant"; src: url("/fonts/Pencilant.ttf") format("truetype"); font-display: swap; }

:root {
  /* CYR Visual Guide palette */
  --espresso: #14100b;
  --espresso-2: #1c1610;
  --espresso-3: #261e16;
  --chalk: #f5f3ec;
  --chalk-dim: #b9b2a3;
  --wood: #9c7a4d;
  --wood-bright: #c6a169;
  --green: #6ec98e;
  --ivy: #2e7d4f;
  --red: #bd4a3c;
  --amber: 211 137 60;
  --line: rgb(198 161 105 / 0.18);

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--chalk);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Subtle chalk-dust grain across everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--wood-bright); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wordmark { font-family: "Rudiment", var(--sans); font-weight: 400; letter-spacing: 0.01em; text-decoration: none; line-height: 1; }
.script { font-family: "Pencilant", var(--sans); font-weight: 400; }

/* The one amber studio light, used behind hero moments */
.lamp {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -8%, rgb(var(--amber) / 0.32), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgb(0 0 0 / 0.55), transparent 60%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-go { background: var(--green); color: #0f1a12; }
.btn-go:hover { background: #82d6a0; }
.btn-quiet { background: rgb(245 243 236 / 0.06); border-color: rgb(245 243 236 / 0.16); color: var(--chalk); }
.btn-quiet:hover { background: rgb(245 243 236 / 0.12); }
.btn-danger { background: transparent; border-color: rgb(189 74 60 / 0.6); color: #e58a7e; }
.btn-danger:hover { background: rgb(189 74 60 / 0.15); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; color: var(--chalk-dim); }
.input {
  height: 50px; padding: 0 16px; border-radius: 12px; width: 100%;
  background: rgb(245 243 236 / 0.04); border: 1px solid rgb(245 243 236 / 0.14);
  transition: border-color .2s, background-color .2s;
}
.input:hover { border-color: rgb(245 243 236 / 0.26); }
.input:focus { outline: none; border-color: var(--wood-bright); background: rgb(245 243 236 / 0.07); }
.hint { font-size: 13px; color: var(--chalk-dim); margin: 0; }
.error { color: #ec9a8e; font-size: 14px; margin: 0; min-height: 1.4em; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--chalk); color: var(--espresso); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .25s, transform .35s var(--ease); pointer-events: none; box-shadow: 0 10px 40px rgb(0 0 0 / 0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
