/* farmingfun.fun — coming soon */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/nunito-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #171717;
  --ink: #e6e6e6;
  --muted: #8a8a8a;
  --faint: #5c5c5c;
  /* One art pixel. app.js reads this, so CSS and canvas agree. A ground tile is 2p. */
  --p: 7px;
  /* Height of the drawn farm (ground + barn). */
  --strip: calc(var(--p) * 30);
  color-scheme: dark;
}
@media (max-width: 1099px) { :root { --p: 6px; } }
@media (max-width: 639px)  { :root { --p: 5px; } }

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: max(100svh, calc(var(--strip) + 540px));
  overflow: hidden;
}

.hero {
  position: absolute;
  left: 0;
  right: 0;
  /* Sits a little above the middle, and moves up on short screens so it never meets the farm. */
  top: clamp(100px, 45%, calc(100% - var(--strip) - 300px));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
}

.mark {
  display: block;
  width: 29px;
  height: 68px;
  margin: 0 0 18px;
  image-rendering: pixelated;
}

.wordmark {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.tagline {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.field {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--p) * 36);
  pointer-events: none;
}
.field canvas {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  image-rendering: pixelated;
}

.plot {
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.plot:focus { outline: none; }
.plot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

/* FARMBULL launch card: the token avatar plus its contract address. */
.launch {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin: 36px 0 0;
  padding: 14px 18px 14px 14px;
  border: 1px solid #2c2c2c;
  background: #1b1b1b;
  text-align: left;
}
.launch-logo {
  flex: none;
  display: block;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.launch-body { min-width: 0; }
.launch-title {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.launch-ca {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.launch-ca-label { color: var(--faint); font-weight: 500; letter-spacing: 0.08em; }
.launch-ca-value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}
.launch-copy {
  flex: none;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 500 11px/1.3 "Inter", system-ui, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.launch-copy:hover { color: var(--ink); border-color: #5c5c5c; }
.launch-copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.launch-note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Phones: logo beside title and note, the address gets the full card width on its own line. */
@media (max-width: 639px) {
  .launch {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    width: 100%;
    padding: 12px;
  }
  .launch-body { display: contents; }
  .launch-logo { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .launch-title { grid-column: 2; grid-row: 1; align-self: end; }
  .launch-note { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; }
  .launch-ca { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
  .launch-ca-value { order: 3; flex-basis: 100%; font-size: 11.5px; white-space: nowrap; }
}
