/* Splendid 66 Bold by Johan Holmdahl, free-typewriter-fonts.com (license: /fonts/Splendid66-license.txt) */
@font-face {
  font-family: "Splendid 66";
  src: url("/fonts/SplendidB.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Values from the Figma file "Need-Want" (Desktop and Mobile frames). */
:root {
  --bg: #f5f3ee;
  --ink: #4c4b47;
}

* {
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Splendid 66", "Courier New", Courier, monospace;
  font-weight: 700;
  line-height: 0.88;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Desktop: both statements in one block, centered on the page, text left-aligned. */
main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 32px 16px;
  font-size: 64px;
}

p {
  /* As wide as the longest line ("unaffordable." is 6.52em), so both statements share a left edge. */
  width: 6.6em;
}

/* Mobile: first statement at the top, second at the bottom of the screen. */
@media (max-width: 600px) {
  main {
    min-height: 100dvh;
    align-items: stretch;
    justify-content: space-between;
    /* 56px in the design; shrinks on narrow phones so "unaffordable." still fits. */
    font-size: min(56px, (100vw - 32px) / 6.6);
  }

  p {
    width: auto;
  }
}
