/* ==========================================================================
   soliwords.teikugames.com — SoliWords on the web.
   Same Doodle Brutal tokens as the studio site (site/assets/style.css):
   cream page, 2px ink outlines, hard shadows with no blur, Jost, lemon
   highlighter behind the word that matters.
   Fonts are self-hosted and OFL-licensed — see /assets/fonts/OFL.txt
   ========================================================================== */

@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/assets/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/assets/fonts/jost-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/assets/fonts/jost-latin-700-normal.woff2') format('woff2'); }

:root {
  --page:     #FDF3E9;
  --surface:  #FFFDF8;
  --ink:      #161616;
  --ink-soft: #5A544C;
  --lemon:    #FFD600;
  --stroke:   2px;
  --radius-btn: 12px;
  --radius-lg:  16px;
  --shadow-sheet: 6px 6px 0 var(--ink);
  --shadow-cta:   5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column;
  background: var(--page); color: var(--ink);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage { flex: 1; display: grid; place-items: center; padding: 24px; }

.card {
  width: min(100%, 420px); padding: 44px 32px 40px; text-align: center;
  background: var(--surface); border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}

h1 { margin: 0; font-size: clamp(2.6rem, 11vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

/* the highlighter sits fully behind the word, never just its lower half */
.hl { position: relative; isolation: isolate; padding: 0 .14em; white-space: nowrap; }
.hl::before {
  content: ''; position: absolute; inset: .04em 0; z-index: -1;
  background: var(--lemon); border-radius: 8px 3px 9px 4px; transform: rotate(-2deg);
  transform-origin: left center; animation: swipe .45s .25s cubic-bezier(.2, .8, .2, 1) both;
}

.lead { margin: 18px 0 30px; font-size: 1.2rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: .9rem 1.6rem;
  font: inherit; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none;
  background: var(--lemon); border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-btn); box-shadow: var(--shadow-cta);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover  { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .foot a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.foot {
  display: flex; gap: 10px; justify-content: center; padding: 20px;
  font-size: .95rem; color: var(--ink-soft);
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@keyframes rise  { from { opacity: 0; transform: translateY(12px); } }
@keyframes swipe { from { transform: rotate(-2deg) scaleX(0); } to { transform: rotate(-2deg) scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .card, .hl::before { animation: none; }
  .btn { transition: none; }
}
