/* tagprint — shared design tokens and components.
   Brand colours live in :root so the final palette swaps in with one edit. */

:root {
  --ink: #19142e;
  --ink-soft: #5d5778;
  --paper: #ffffff;
  --mist: #f3f1fb;
  --line: #e4e0f5;
  --violet: #5b3df5;
  --violet-deep: #4326d9;
  --violet-tint: #ebe6ff;
  --flash: #ff4f81;
  --sun: #ffd23f;
  --mint: #0f9f75;
  --mint-tint: #ddf6ee;

  /* One family: Space Grotesk for everything; numbers use tabular figures. */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  /* type scale (1.25) */
  --t-xs: 0.8rem;
  --t-sm: 0.9rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.563rem;
  --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --t-4xl: 3.815rem;

  --r-card: 22px;
  --r-control: 999px;
  --r-print: 3px;

  --shadow-print: 0 1px 2px rgba(25, 20, 46, 0.18), 0 10px 24px -8px rgba(25, 20, 46, 0.35);
  --shadow-lift: 0 18px 40px -18px rgba(67, 38, 217, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-lg);
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.wordmark .mark {
  width: 22px;
  height: 28px;
  background: var(--paper);
  border-radius: var(--r-print);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 30px var(--violet), var(--shadow-print);
  transform: rotate(-8deg);
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: var(--t-md);
  border-radius: var(--r-control);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--violet); color: var(--paper); box-shadow: var(--shadow-lift); }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ---------- prints: the physical object, used everywhere ---------- */
.print {
  aspect-ratio: 7 / 10;
  background: var(--paper);
  padding: 7%;
  padding-bottom: 16%;
  border-radius: var(--r-print);
  box-shadow: var(--shadow-print);
  position: relative;
}
/* Photo sits inside the white border: 7% sides/top, deeper margin at the bottom like a real print. */
.print img, .print .fill {
  position: absolute;
  top: 5%;
  left: 7%;
  width: 86%;
  height: 79%;
  object-fit: cover;
  border-radius: 1px;
  background: var(--violet-tint);
}

/* Shapes follow the actual print: squares are trimmed to 7×7, landscapes print 10×7. */
.print.shape-square { aspect-ratio: 1 / 1; }
.print.shape-square img, .print.shape-square .fill { top: 6%; left: 6%; width: 88%; height: 88%; }
.print.shape-landscape { aspect-ratio: 10 / 7; }
.print.shape-landscape img, .print.shape-landscape .fill { top: 6%; left: 5%; width: 90%; height: 82%; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field .hint { color: var(--ink-soft); font-size: var(--t-xs); }
.input {
  font: inherit;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-tint); }
.input-prefix { position: relative; }
.input-prefix span {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-weight: 600;
}
.input-prefix .input { padding-left: 2.1rem; }

.notice {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: var(--t-sm);
}
.notice-ok { background: var(--mint-tint); color: #075e45; }
.notice-error { background: #ffe5ec; color: #a1123c; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
