/* ==========================================================================
   AWOOGA — Sign the Hull
   Pairs with assets/js/sign-hull.js. Reuses the shared tokens from style.css.
   ========================================================================== */

/* ---- hero --------------------------------------------------------------- */
.sign-hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(201, 162, 39, 0.18), transparent 60%),
    var(--navy-900);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.4rem, 5vw, 4rem);
}
.sign-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 6vw, 4rem); }
.sign-hero h1 em { color: var(--brass-lt); font-style: normal; }
.sign-hero .eyebrow { color: var(--brass-lt); }
.sign-hero .lead { color: rgba(247, 241, 227, 0.85); }

/* ---- studio layout ------------------------------------------------------ */
.sign-studio {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .sign-studio { grid-template-columns: 1fr; }
}

/* ---- hull picker -------------------------------------------------------- */
.hull-picker {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.hull-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem 0.35rem 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.hull-chip img { width: 34px; height: 26px; object-fit: cover; border-radius: 6px; }
.hull-chip.is-on { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18); }

/* ---- the stage (hull + signatures) ------------------------------------- */
.hull-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
  touch-action: none;            /* let us own the drag gesture */
  user-select: none;
}
.hull-stage__img { width: 100%; display: block; }

.hull-notes { position: absolute; inset: 0; pointer-events: none; }

/* a single signature */
.hull-note {
  position: absolute;
  max-width: 46%;
  text-align: center;
  line-height: 1.05;
  font-family: "Caveat", cursive;
  font-size: clamp(1rem, 2.8vw, 1.7rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  white-space: pre-wrap;
  word-break: break-word;
}
.hull-note__by {
  display: block;
  margin-top: 0.15em;
  font-size: 0.62em;
  opacity: 0.9;
}
.hull-note.just-signed { animation: hull-pop 0.55s var(--ease); }
@keyframes hull-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(var(--r, 0)); }
  60%  { opacity: 1; }
}

/* the live preview of YOUR note */
.hull-note--preview {
  pointer-events: auto;
  cursor: grab;
  z-index: 5;
  padding: 0.1em 0.2em;
  border-radius: 8px;
  outline: 2px dashed rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}
.hull-note--preview.is-dragging { cursor: grabbing; outline-color: var(--brass-lt); }

.hull-stage__hint {
  position: absolute;
  top: 0.7rem; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: rgba(8, 20, 33, 0.78);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 6;
}
.hull-count { margin-top: 0.8rem; text-align: center; }

/* ---- compose panel ------------------------------------------------------ */
.hull-compose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1.2rem;
}
.hull-compose h2 { margin: 0 0 1rem; font-size: 1.4rem; }

.hull-field { display: block; margin-bottom: 1.1rem; font-weight: 600; font-size: 0.9rem; position: relative; }
.hull-field__label { display: block; margin-bottom: 0.45rem; }
.hull-field textarea,
.hull-field input[type="text"] {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.hull-counter { position: absolute; right: 0.2rem; bottom: -1.1rem; font-size: 0.72rem; color: var(--text-soft); font-weight: 500; }

/* font chips */
.hull-fonts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hull-font-chip {
  width: 46px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
}
.hull-font-chip.is-on { border-color: var(--brass); background: #fff7e6; box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18); }

/* colour swatches */
.hull-colors { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hull-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(12, 32, 52, 0.18);
  cursor: pointer;
}
.hull-swatch.is-on { box-shadow: 0 0 0 3px var(--brass); border-color: #fff; }

/* sliders */
.hull-sliders { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.hull-sliders label { flex: 1; font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }
.hull-sliders input[type="range"] { width: 100%; accent-color: var(--brass); margin-top: 0.35rem; }

.hull-submit { width: 100%; }
.hull-error { margin: 0 0 0.8rem; }
.hull-fineprint { margin: 0.8rem 0 0; font-size: 0.78rem; }
.hull-empty { text-align: center; padding: 3rem 1rem; font-size: 1.05rem; }
