/* The coming-soon page, served by functions/_middleware.ts in place of the site.
   Self-contained under its CSP: no scripts, no inline styles, the font served
   from here (Bricolage Grotesque, SIL OFL, see fonts/OFL.txt), and the board a
   still picture drawn by the Tabletop look. The poster: the name set huge on a
   heavy rule, one sentence, and the board lying across the corner. */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/coming-soon/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations');
}

:root {
  --bg: #efe9dc;
  --text: #1d1a16;
  --muted: #6b6253;
  --line: #c9bfac;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 64px 32px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Bricolage Grotesque Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variation-settings: 'opsz' 14;
}
main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: 64px;
}
h1 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--text);
  font-size: min(21vw, 300px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-variation-settings: 'opsz' 96;
}
.pitch {
  max-width: 15em;
  margin: 32px 0 0;
  font-size: 27px;
  line-height: 1.3;
}
/* The board lies across the rule and the end of the name, a little askew. */
figure {
  position: relative;
  z-index: 1;
  margin: calc(min(21vw, 300px) * -0.55) 0 0;
}
figure img {
  display: block;
  width: min(410px, 32vw);
  height: auto;
  border-radius: 3px;
  transform: rotate(2deg);
  box-shadow:
    0 0 0 6px #5b3b26,
    0 0 0 7px #24160d,
    0 2px 6px 7px rgba(60, 40, 20, 0.25),
    0 30px 50px -12px rgba(60, 40, 20, 0.5);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

/* Narrower: a smaller board that only clips the last letter. */
@media (max-width: 1099px) {
  body {
    padding-left: 40px;
    padding-right: 40px;
  }
  main {
    column-gap: 32px;
  }
  figure {
    margin-top: calc(min(21vw, 300px) * -0.3);
  }
  figure img {
    width: 28vw;
  }
}

/* Phone: name, sentence, board, one column. */
@media (max-width: 759px) {
  body {
    padding: max(20px, env(safe-area-inset-top)) 16px 24px;
  }
  main {
    display: block;
  }
  h1 {
    font-size: 22vw;
    padding-bottom: 12px;
  }
  .pitch {
    margin-top: 20px;
    font-size: 21px;
  }
  figure {
    margin: 32px 7px 0;
  }
  figure img {
    width: 100%;
    transform: none;
  }
  footer {
    margin-top: 32px;
  }
}
