/* BSPOT coming-soon + 404. Fraunces (OFL) for headings, Six Caps (OFL) for the
   bun-stamp accents, system sans for body copy. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ă ș ț live in latin-ext */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-ext-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Six Caps";
  src: url("fonts/six-caps-latin-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #faf7f4;
  --pink: #ff7db8;
  --pink-deep: #e25898;
  --pink-ink: #ad2d68;
  --pink-wash: #ffe6ec;
  --ink: #161314;
  --ink-soft: #574f52;
  --ink-mute: #6e6568;
  --line: rgba(22, 19, 20, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --stamp: "Six Caps", var(--font-sans);
  --pad: clamp(20px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 4px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); }
.top img { width: 52px; height: 52px; }

main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad);
}

.copy { max-width: 560px; }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 760;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
h1 span { color: var(--pink-deep); }
.nw { white-space: nowrap; }
.lead { margin: 22px 0 0; max-width: 28rem; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.5; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn svg { flex: none; transition: transform 0.2s ease; }
.btn:hover { background: var(--pink-ink); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ig { background: var(--pink); color: var(--ink); }
.btn-ig:hover { background: var(--pink-deep); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.95rem; color: var(--ink-soft); }
.facts b { display: block; font-family: var(--stamp); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: 0.06em; color: var(--ink); }

.build { position: relative; align-self: stretch; min-height: 420px; container-type: size; }
/* Giant pale stamp behind the burger: decoration only, never real text content. */
.build::before {
  content: "ÎN LUCRU";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-family: var(--stamp);
  font-size: min(56cqw, 110cqh); /* the word is 1.69em wide: fills the stage width */
  line-height: 0.8;
  white-space: nowrap;
  color: var(--pink-wash);
  pointer-events: none;
  user-select: none;
}
.build canvas, .build .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.build canvas { opacity: 0; transition: opacity 0.6s ease; }
.build.ready canvas { opacity: 1; }
.build .fallback { display: none; object-fit: contain; padding: 8%; }
.build.no-webgl canvas { display: none; }
.build.no-webgl .fallback { display: block; }

/* 404 */
.code { margin: 0 0 8px; font-family: var(--stamp); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.8; letter-spacing: 0.04em; color: var(--pink-ink); }
.lost { align-self: stretch; display: grid; place-items: center; min-height: 260px; }
.lost img { width: min(78%, 520px); height: auto; transform: rotate(-14deg); filter: drop-shadow(0 30px 30px rgba(28, 14, 20, 0.16)); }

/* Footer: one hairline, the stamp face for the mark, tracked caps for links. */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 32px;
  margin: 0 var(--pad);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.foot-mark { margin: 0; font-family: var(--stamp); font-size: 1.45rem; line-height: 1; letter-spacing: 0.05em; }
.foot-mark span { margin-left: 10px; color: var(--pink-deep); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.foot-links a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); padding-block: 4px; border-bottom: 1.5px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.foot-links a:hover { color: var(--pink-ink); border-color: var(--pink-deep); }
.foot-sal { justify-self: end; }

/* Desktop: exactly one screen, no scroll, when the screen is tall enough. */
@media (min-width: 901px) and (min-height: 600px) {
  body { height: 100svh; }
  .build { min-height: 0; }
}

/* Phones and tablets: burger on top, text below, nothing ever overlaps. */
@media (max-width: 900px) {
  .top { padding-block: 14px; justify-content: center; }
  .top img { width: 44px; height: 44px; }
  main { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .copy { margin: 4px auto 28px; }
  h1 { font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .lead { margin: 14px auto 0; font-size: 1.05rem; }
  .actions { justify-content: center; margin-top: 22px; gap: 10px; }
  .btn { min-height: 52px; padding: 0 20px; font-size: 1rem; }
  .facts { justify-content: center; gap: 12px 28px; margin-top: 26px; padding-top: 16px; }
  .facts b { font-size: 1.4rem; }
  .build { order: -1; height: clamp(200px, 34svh, 460px); min-height: 0; margin: 0 calc(var(--pad) * -1); }
  .lost { order: -1; min-height: 0; height: clamp(180px, 32svh, 360px); }
  .code { margin-inline: auto; }
  .foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; gap: 8px 18px; padding: 10px 0 12px; }
  .foot-links { order: -1; flex-basis: 100%; gap: 4px 20px; }
}

/* Phones: both buttons on one row so the page fits a typical phone screen. */
@media (max-width: 520px) {
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { padding: 0 10px; font-size: 0.95rem; gap: 8px; }
  .btn .arrow { display: none; }
  .page-404 .actions { display: flex; }
  .page-404 .btn .arrow { display: block; }
  .page-404 .btn { padding: 0 24px; }
  .facts { margin-top: 20px; padding-top: 12px; }
  .copy { margin-bottom: 20px; }
  /* Instagram and Wolt are already the two buttons above */
  .foot-links a[target] { display: none; }
}
