:root {
  --cream: #fff9ea;
  --petal: #ffd7e8;
  --pink: #ff8fc2;
  --hot-pink: #f45aa2;
  --mint: #b8f3df;
  --lemon: #ffe98f;
  --sky: #bfe8ff;
  --ink: #4c3445;
  --soft-ink: #856575;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(244, 90, 162, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 233, 143, 0.7) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 92% 5%, rgba(184, 243, 223, 0.75) 0 9rem, transparent 9.1rem),
    linear-gradient(135deg, #fff7fb, var(--cream) 52%, #effbff);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 143, 194, 0.28) 0 0.2rem, transparent 0.24rem),
    radial-gradient(circle, rgba(76, 52, 69, 0.12) 0 0.14rem, transparent 0.18rem);
  background-position: 0 0, 1.4rem 1.4rem;
  background-size: 2.8rem 2.8rem;
}

body.viewer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 249, 234, 0.86);
  border-bottom: 2px solid rgba(255, 143, 194, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--white);
  font-family: "Patrick Hand", cursive;
  font-size: 1.2rem;
  background: var(--hot-pink);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 0 rgba(76, 52, 69, 0.1);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  color: var(--soft-ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--white);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: calc(100vh - 5rem);
  padding: 4rem 0;
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.65rem;
  color: var(--hot-pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.7rem, 9vw, 5.9rem);
  line-height: 0.93;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
}

.hero-text {
  max-width: 35rem;
  margin: 1.15rem 0 0;
  color: var(--soft-ink);
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.primary {
  color: var(--white);
  background: var(--hot-pink);
  box-shadow: 0 8px 0 #cf3d83;
}

.primary:active {
  transform: translateY(3px);
  box-shadow: 0 5px 0 #cf3d83;
}

.secondary {
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(244, 90, 162, 0.25);
}

.desk-scene {
  position: relative;
  min-height: 28rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 2rem;
  background: linear-gradient(#fef7ff 0 56%, #ffe8f1 56%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.desk-scene::before {
  position: absolute;
  inset: auto 1.25rem 1.2rem;
  height: 7rem;
  content: "";
  background: #f9bdce;
  border-radius: 1.3rem;
}

.window {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 9rem;
  height: 8rem;
  padding: 0.55rem;
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: inset 0 -6px 0 rgba(191, 232, 255, 0.75);
}

.window span {
  background: linear-gradient(#bfe8ff, #fff6ba);
  border-radius: 0.75rem;
}

.paper {
  position: absolute;
  right: 3rem;
  bottom: 5.6rem;
  width: 13rem;
  min-height: 15rem;
  padding: 2rem 1.4rem 1.4rem;
  text-align: center;
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: 0 14px 0 rgba(76, 52, 69, 0.12);
  transform: rotate(5deg);
}

.paper p {
  margin: 1rem 0 0;
  color: var(--hot-pink);
  font-family: "Patrick Hand", cursive;
  font-size: 1.5rem;
}

.paper-face {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 7rem;
  margin: 0 auto;
}

.eye {
  width: 0.8rem;
  height: 0.8rem;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 50%;
}

.smile {
  grid-column: 1 / -1;
  width: 2.2rem;
  height: 1.2rem;
  margin: 0.45rem auto 0;
  border-bottom: 4px solid var(--ink);
  border-radius: 50%;
}

.pencil {
  position: absolute;
  left: 3rem;
  bottom: 6rem;
  width: 12rem;
  height: 1.25rem;
  background: linear-gradient(90deg, var(--lemon) 0 74%, #f2a070 74% 84%, var(--ink) 84%);
  border: 3px solid rgba(76, 52, 69, 0.15);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.palette {
  position: absolute;
  right: 3.2rem;
  bottom: 1.9rem;
  display: flex;
  gap: 0.55rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 999px;
  box-shadow: 0 10px 0 rgba(76, 52, 69, 0.1);
}

.palette span {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
}

.palette span:nth-child(1) {
  background: var(--pink);
}

.palette span:nth-child(2) {
  background: var(--mint);
}

.palette span:nth-child(3) {
  background: var(--sky);
}

.sparkle {
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--lemon);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.sparkle-one {
  top: 19%;
  left: 53%;
}

.sparkle-two {
  right: 8%;
  bottom: 18%;
  background: var(--mint);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 1rem;
  padding: 2rem 0;
  scroll-margin-top: 6.5rem;
}

.post-panel,
.preview-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(255, 143, 194, 0.26);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.post-panel {
  display: grid;
  gap: 1rem;
}

.type-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.type-picker input {
  position: absolute;
  opacity: 0;
}

.type-picker span {
  display: block;
  padding: 0.85rem;
  text-align: center;
  font-weight: 900;
  background: #fff2f8;
  border: 2px solid transparent;
  border-radius: 0.9rem;
  cursor: pointer;
}

.type-picker input:checked + span {
  background: var(--mint);
  border-color: rgba(76, 52, 69, 0.12);
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--soft-ink);
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #fffafd;
  border: 2px solid rgba(244, 90, 162, 0.18);
  border-radius: 0.9rem;
  outline: 0;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 4px rgba(244, 90, 162, 0.14);
}

.image-field {
  padding: 0.9rem;
  background: #fff7fb;
  border: 2px dashed rgba(244, 90, 162, 0.36);
  border-radius: 1rem;
}

.image-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.image-field strong {
  color: var(--hot-pink);
}

.image-field small {
  font-weight: 700;
}

.submit-button {
  width: fit-content;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--soft-ink);
  font-weight: 900;
  line-height: 1.45;
}

.form-status[data-tone="success"] {
  color: #24765d;
}

.form-status[data-tone="warning"] {
  color: #9a6415;
}

.form-status[data-tone="error"] {
  color: #b52e6d;
}

.preview-card,
.drawing-card,
.idea-card {
  position: relative;
  background: var(--white);
  border: 2px solid rgba(76, 52, 69, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(76, 52, 69, 0.08);
  overflow: hidden;
}

.preview-card {
  margin-top: 1rem;
}

.empty-art,
.art-shell {
  display: grid;
  min-height: 11rem;
  place-items: center;
  color: var(--hot-pink);
  font-family: "Patrick Hand", cursive;
  font-size: 2.5rem;
  background:
    linear-gradient(45deg, rgba(255, 233, 143, 0.55) 25%, transparent 25% 75%, rgba(255, 233, 143, 0.55) 75%),
    linear-gradient(45deg, rgba(255, 215, 232, 0.7) 25%, transparent 25% 75%, rgba(255, 215, 232, 0.7) 75%);
  background-position: 0 0, 1.2rem 1.2rem;
  background-size: 2.4rem 2.4rem;
}

.image-open-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.image-open-button:focus-visible {
  outline: 4px solid rgba(244, 90, 162, 0.42);
  outline-offset: -4px;
}

.image-open-button::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.32rem 0.58rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  content: "View";
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(76, 52, 69, 0.12);
}

.art-shell img,
.preview-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.art-shell img {
  height: 11rem;
  object-fit: contain;
  background: #fff7fb;
}

.preview-card img {
  height: 13rem;
}

.preview-card h3,
.preview-card p,
.preview-card span,
.card-body {
  margin-inline: 1rem;
}

.preview-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.preview-card p {
  margin-top: 0;
  color: var(--soft-ink);
}

.tag,
.preview-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.62rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--lemon);
  border-radius: 999px;
}

.board-section {
  padding: 3rem 0;
  scroll-margin-top: 6.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 18rem));
  gap: 1rem;
  justify-content: center;
}

.card-grid.is-empty {
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.drawing-card {
  min-width: 0;
}

.card-body {
  padding: 0.8rem 0 0.95rem;
}

.card-body .tag {
  margin-bottom: 0.25rem;
}

.card-body h3,
.idea-card h3 {
  margin: 0.35rem 0;
}

.card-body h3 {
  font-size: 1.08rem;
}

.card-body p,
.idea-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notes-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.45rem 0.7rem;
  color: var(--hot-pink);
  font-size: 0.78rem;
  font-weight: 900;
  background: #fff2f8;
  border: 2px solid rgba(244, 90, 162, 0.2);
  border-radius: 999px;
  cursor: pointer;
}

.notes-button:hover,
.notes-button:focus-visible {
  color: var(--ink);
  background: var(--petal);
  outline: 0;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.idea-card {
  padding: 1rem;
  border-style: dashed;
  background: #fffef5;
}

.delete-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--hot-pink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.empty-state {
  padding: 1.1rem;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 2px dashed rgba(244, 90, 162, 0.28);
  border-radius: 1rem;
}

.card-grid .empty-state {
  grid-column: 1 / -1;
  width: 100%;
}

.image-viewer,
.notes-dialog,
.password-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.image-viewer[hidden],
.notes-dialog[hidden],
.password-dialog[hidden] {
  display: none;
}

.viewer-backdrop,
.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(76, 52, 69, 0.62);
  border: 0;
  cursor: zoom-out;
}

.viewer-panel,
.dialog-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(58rem, 100%);
  max-height: calc(100vh - 2rem);
  padding: clamp(0.7rem, 2vw, 1rem);
  background: var(--white);
  border: 3px solid rgba(255, 215, 232, 0.95);
  border-radius: 1.1rem;
  box-shadow: 0 28px 80px rgba(76, 52, 69, 0.3);
}

.dialog-panel {
  width: min(28rem, 100%);
  gap: 0.9rem;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.dialog-panel p {
  margin: 0;
  color: var(--soft-ink);
}

.notes-panel {
  width: min(34rem, 100%);
}

.notes-body {
  max-height: min(22rem, 52vh);
  overflow: auto;
  color: var(--soft-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-wrap;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.viewer-panel img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  background: #fff7fb;
  border-radius: 0.75rem;
}

.viewer-panel h2 {
  padding: 0 0.25rem 0.25rem;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.viewer-close,
.dialog-close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  z-index: 2;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: var(--hot-pink);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(76, 52, 69, 0.2);
  cursor: pointer;
}

@media (max-width: 800px) {
  .topbar,
  .hero-actions,
  .section-heading {
    align-items: flex-start;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  h1 {
    max-width: 9ch;
  }

  .desk-scene {
    min-height: 22rem;
  }

  .paper {
    right: 1.4rem;
    width: 11rem;
  }

  .window {
    left: 1.2rem;
    width: 7.5rem;
  }
}
