/* Public #MeTooTattoo post maker. Campaign colours: pink #F50362, soft pink #F88FBD, black. */
@font-face { font-family: "Archivo Display"; src: url("assets/ArchivoExtraCondensed-ExtraBold.ttf"); font-display: swap; }

:root {
  --bg: #0d0b0e; --panel: #1a171c; --line: #332d36; --text: #f5f2f6; --muted: #b3aab7;
  --pink: #F50362; --pink-soft: #F88FBD; --error: #ff7aa2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
[hidden] { display: none !important; }

h1, h2 { font-family: "Archivo Display", Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: 40px; }
h2 { font-size: 26px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
header p { color: var(--muted); margin: 0 0 8px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin-top: 14px; }
.note { color: var(--muted); font-size: 14px; margin: 8px 0; }
.note.error { color: var(--error); font-weight: 600; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: #262129; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.button.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.button.pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.button.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.button.on { outline: 3px solid var(--pink-soft); outline-offset: 2px; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.button.file { position: relative; overflow: hidden; }
.button.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.button.file.loading { opacity: .4; cursor: progress; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-row button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.photo-row button.on { border-color: var(--pink); }
.photo-row img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.template { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 12px; border: 2px solid var(--line);
  background: #262129; color: var(--text); font-family: inherit; cursor: pointer; }
.template.on { border-color: var(--pink); }
.template img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #000; }
.template strong { font-size: 17px; }
.template span { font-size: 13px; color: var(--muted); line-height: 1.35; }

.quote { min-height: 64px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #000;
  font: 700 20px/1.25 -apple-system, sans-serif; text-transform: uppercase; outline: none; white-space: pre-wrap; word-break: break-word; }
.quote:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(245, 3, 98, .35); }
.quote.dark { background: #000; color: #fff; }
.quote-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.counter { margin-left: auto; font-size: 13px; color: var(--muted); }

#post { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; touch-action: none; cursor: grab; }
.preview { width: 46%; max-width: 260px; margin: 0 auto 16px; }
body[data-step="3"] .preview { width: 100%; max-width: none; }
#post.dragging { cursor: grabbing; }
.zoom { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.zoom input { flex: 1; accent-color: var(--pink); }

.caption { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.5; background: #262129; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 0 10px; }
ol { padding-left: 22px; margin: 0; }
ol li { margin: 4px 0; }
footer { margin-top: 24px; text-align: center; }

@media (min-width: 900px) {
  h1 { font-size: 52px; }
}

.logo { display: block; width: min(320px, 80%); height: auto; margin: 0 0 18px; }
.option { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.option:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.option h3 { margin-top: 0; }
header p.call { color: var(--pink); font-weight: 700; font-size: 18px; }

/* Step bar: five numbered steps; done steps in soft pink, the current one in pink. */
.stepbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; }
.stepbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none;
  color: var(--muted); font-family: inherit; cursor: pointer; }
.stepbar button span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line);
  font-weight: 700; color: var(--text); background: #262129; }
.stepbar button small { font-size: 12px; }
.stepbar button.done span { border-color: var(--pink-soft); }
.stepbar button.on span { background: var(--pink); border-color: var(--pink); color: #fff; }
.stepbar button.on small { color: var(--text); font-weight: 600; }
.stepbar button:disabled { opacity: .35; cursor: not-allowed; }

.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.step-nav #next { margin-left: auto; }

/* From step 2 on the header shrinks to the logo, so the step itself gets the room. */
body:not([data-step="1"]) header .intro { display: none; }
body:not([data-step="1"]) .logo { width: min(200px, 55%); margin-bottom: 0; }


.own-photo canvas { display: block; width: 46%; max-width: 220px; height: auto; margin: 0 auto 8px; border-radius: 8px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; margin-top: 14px; cursor: pointer; padding: 6px 0; }
.choices.stacked { flex-direction: column; }
.choices.stacked .button { width: 100%; }
.button.wide { width: 100%; }
.tips { margin: 10px 0 18px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.tips li { margin: 3px 0; }
.templates.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.templates.three .template { padding: 6px; }
.templates.three .template canvas { width: 100%; height: auto; border-radius: 6px; display: block; }
.templates.three .template strong { font-size: 13px; line-height: 1.3; }
.done { font-weight: 700; font-size: 17px; margin: 4px 0 8px; }
body.finished .stepbar, body.finished .step-nav { display: none; }
