@font-face {
  font-family: "Idea Manrope";
  src: url("/assets/fonts/manrope-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Idea Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: "Idea Manrope", ui-sans-serif, system-ui, sans-serif;
  color: #f4f4f4;
  background: #111111;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #111111;
}

.idea-page {
  width: min(100% - 40px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 40px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Idea Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8a8a8;
  font-family: "Idea Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.idea-canvas {
  position: relative;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  border: 1px solid #2d2d2d;
  border-radius: 28px;
  background-color: #151515;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.idea-canvas::after {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.note {
  position: absolute;
  z-index: 1;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.34);
}

.note-openrouter {
  top: 17%;
  left: 8%;
  color: #f2f3e9;
  font-family: "Idea Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 800;
  letter-spacing: -0.085em;
  transform: rotate(-4deg);
}

.note-jev {
  top: 41%;
  right: 16%;
  color: #d5fa73;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(98px, 11vw, 162px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.09em;
  transform: rotate(5deg);
}

.note-jev::after {
  position: absolute;
  right: -16px;
  bottom: -10px;
  width: 78%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-8deg);
}

.note-obsidian {
  bottom: 13%;
  left: 17%;
  color: #c5adff;
  font-family: "Idea Plex Mono", ui-monospace, monospace;
  font-size: clamp(50px, 6.3vw, 82px);
  font-weight: 400;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

@media (max-width: 700px) {
  .idea-page {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .page-header { margin-bottom: 16px; }

  .idea-canvas {
    min-height: calc(100vh - 96px);
    border-radius: 22px;
    background-size: 24px 24px;
  }

  .note-openrouter {
    top: 17%;
    left: 5%;
    font-size: clamp(42px, 12vw, 64px);
  }

  .note-jev {
    top: 43%;
    right: 13%;
    font-size: clamp(88px, 22vw, 120px);
  }

  .note-obsidian {
    bottom: 16%;
    left: 9%;
    font-size: clamp(30px, 8.8vw, 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-link { transition: none; }
}
