/* First-party only: self-hosted font, no CDN, no trackers. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-500.woff2") format("woff2");
}

:root {
  --bg: #fbfbfb;
  --surface: #ffffff;
  --text: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.copy {
  flex: 1 1 auto;
}

.message {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-weight: 500;
}

.cta {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #444;
}

.cta a {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 3px;
}

.square {
  flex: 0 0 auto;
  width: 360px;
  height: 360px;
  display: block;
  border-radius: 8px;
}

/* Mobile: image on top, text below, the whole card centered vertically. */
@media (max-width: 640px) {
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    /* center in the viewport, but fall back to top-aligned + scrollable
       when the card is taller than the screen */
    margin: auto 0;
  }

  .square {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .copy {
    order: 2;
  }
}
