/* wristmaze.com (WM-0046). Colours: the game's Classic Birch and the icon
   (WM-0031 BRAND.md §5). Type: Nunito, SIL OFL 1.1 (fonts/SOURCE.md). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.20fc9b6fc6.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #17120e;
  --frame: #39291e;
  --board: #c49a63;
  --wall-top: #e2bc83;
  --cream: #fff4de;
  --muted: #d8c9ae;
  --brass: #f0b84a;
  --ring: #c8401e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  background: var(--night);
  font: 500 1.125rem/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brass); }
a:hover { color: var(--cream); }
img, video { max-width: 100%; height: auto; }

/* The coming-soon page. */
.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.soon-mark {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--wall-top);
}
.soon-mark img { display: block; width: min(606px, 92vw); }  /* matches the sizes attribute in home.html */
.soon-line { margin: 0; font-size: clamp(1.25rem, 4vw, 1.625rem); color: var(--muted); }

/* Content pages. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand { font-weight: 800; font-size: 1.5rem; color: var(--wall-top); text-decoration: none; }
.brand img { display: block; height: 2.5rem; width: auto; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--cream); }

.doc { flex: 1; width: min(46rem, 100%); margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: 1rem 0 0.5rem; }
.doc h2 { font-size: 1.5rem; color: var(--wall-top); margin: 2.5rem 0 0.5rem; }
.doc video, .doc img { display: block; border-radius: 1rem; margin: 1.5rem 0; background: #000; }
.meta { color: var(--muted); font-size: 0.95rem; }
.list { list-style: none; padding: 0; }
.list li { padding: 1rem 0; border-bottom: 1px solid var(--frame); }
.list a { font-weight: 700; font-size: 1.25rem; }
.list p { margin: 0.25rem 0 0; color: var(--muted); }

.foot { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.875rem; }

/* Forms: the button answers at once (pressed state, then a moving bar while sending). */
.wm-form { display: grid; gap: 0.5rem; width: min(30rem, 100%); margin: 1.5rem auto 0; text-align: left; }
.wm-row { display: flex; gap: 0.5rem; }
.wm-row input { flex: 1; min-width: 0; }
.wm-form input, .wm-form textarea {
  font: inherit;
  color: var(--cream);
  background: var(--frame);
  border: 1px solid #5a4331;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
}
.wm-form input:focus-visible, .wm-form textarea:focus-visible, .wm-form button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.wm-form button {
  position: relative;
  overflow: hidden;
  font: inherit;
  font-weight: 800;
  color: var(--night);
  background: var(--brass);
  border: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: transform 80ms ease-out, filter 80ms ease-out;
}
.wm-form button:active, .wm-form button.is-sending { transform: scale(0.96); filter: brightness(0.92); }
.wm-form button.is-sending::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 40%;
  background: var(--night);
  animation: wm-progress 0.9s ease-in-out infinite;
}
@keyframes wm-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.wm-note { margin: 0; font-size: 0.875rem; color: var(--muted); }
.wm-optional { color: var(--muted); font-weight: 400; }
.wm-status:empty { display: none; }
.wm-status { margin: 0; font-weight: 700; }
.wm-status.is-error { color: #ff9b7e; }
.wm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .wm-form button { transition: none; }
  .wm-form button.is-sending::after { animation-duration: 2.4s; }
}
