/* My Dad's Games: shared styles for the landing page and the error pages. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("fonts/bagel-fat-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --wall: #285447;        /* den green */
  --wall-stripe: #2c5b4d;
  --wall-deep: #1e4238;
  --oak-top: #d9a066;
  --oak-front: #b97a3e;
  --oak-edge: #8e5a2b;
  --chalk: #fff4dc;
  --chalk-soft: #d9e6dc;
  --ink: #1c2230;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--chalk);
  background-color: var(--wall);
  /* pinstripe den wallpaper */
  background-image: repeating-linear-gradient(90deg,
    var(--wall) 0 34px, var(--wall-stripe) 34px 36px);
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--chalk);
  text-shadow: 0 3px 0 var(--wall-deep);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- error pages ---------- */

.oops {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.oops .wordmark { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 2.5rem; }
.oops .wordmark a { text-decoration: none; }
.oops h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.oops p { max-width: 40ch; margin: 0 0 2rem; color: var(--chalk-soft); }
.oops .button {
  align-self: flex-start;
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: #ffc93c;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  box-shadow: 0 4px 0 #b8861a;
}
.oops .button:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8861a; }
