/* Speakeasy theme shared by every page. Colors from the graphic asset list. */

/* Fonts: drop the .woff2 files into /fonts/ (see README). Until then the
   fallbacks in the stacks below are used (Century Gothic and Georgia on Windows). */
@font-face { font-family: 'Limelight'; src: local('Limelight'), local('Limelight-Regular'), url('/fonts/limelight-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Josefin Sans'; font-weight: 400 700; src: local('Josefin Sans'), url('/fonts/josefin-sans-variable.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #14110F;
  --walnut: #2B1D14;
  --walnut-2: #3B2617;
  --brass: #C9A227;
  --brass-light: #E6C65C;
  --brass-dark: #8A6C14;
  --cream: #F2E6C9;
  --smoke: #9A8F80;
  --emerald: #1F6B4F;
  --oxblood: #8C2A2F;
  --sapphire: #24477A;
  --amber: #985214; /* darker than the swatch so small cream text passes contrast */
  --brass-grad: linear-gradient(135deg, #E6C65C 0%, #C9A227 50%, #8A6C14 100%);
  --font-display: Limelight, 'Poiret One', Georgia, serif;
  --font-ui: 'Josefin Sans', Futura, 'Century Gothic', 'Avenir Next', Avenir, 'Trebuchet MS', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 400; }

/* Answer colors: A amber spade, B emerald heart, C oxblood diamond, D sapphire club. */
.ans-a { --tile: var(--amber); }
.ans-b { --tile: var(--emerald); }
.ans-c { --tile: var(--oxblood); }
.ans-d { --tile: var(--sapphire); }

.btn {
  appearance: none;
  border: 2px solid var(--brass);
  background: rgba(20, 17, 15, 0.6);
  color: var(--cream);
  padding: 0.7em 1.6em;
  border-radius: 0.35em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:hover, .btn:focus-visible { background: var(--brass); color: var(--ink); outline: none; box-shadow: 0 0 0.9em rgba(230, 198, 92, 0.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--cream); box-shadow: none; }
.btn.primary { background: var(--brass-grad); color: var(--ink); border-color: var(--brass-light); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: rgba(201, 162, 39, 0.5); }

.divider {
  height: 1.2em;
  background: url('/assets/ornaments/deco-divider.svg') center / 100% 100% no-repeat;
  opacity: 0.9;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2em;
  transform: translateX(-50%);
  background: var(--walnut);
  border: 1px solid var(--brass);
  color: var(--cream);
  padding: 0.7em 1.2em;
  border-radius: 0.4em;
  z-index: 50;
  max-width: min(92vw, 40em);
  text-align: center;
  box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.6);
}

@keyframes drop-in {
  0% { transform: translateY(-40%) scale(0.6) rotate(-12deg); opacity: 0; }
  70% { transform: translateY(4%) scale(1.04) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 0%, 19%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.25; } }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(0.9) rotate(-12deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
@keyframes float-up { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-2.4em); opacity: 0; } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }

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