/* Direction: Signet — mist-grey banking calm, rounded geometric headings, one deep teal accent */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #eceff3;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --border: #dbe2e9;
  --border-strong: #a6abae;
  --ink: #16212b;
  --muted: #566879;
  --accent: #0d5f5a;
  --accent-hover: #0b514d;
  --accent-ink: #ffffff;
  --accent-text: #0a4d49;
  --accent-strong: #073b38;
  --accent-soft: #dceceb;
  --accent-border: #88aeae;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d2e2dd;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #e5dcd7;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #e6d6d9;
  --danger-strong: #b91c1c;
  --chart-1: #0d5f5a;
  --chart-2: #1c6fb2;
  --chart-3: #613482;
  --chart-4: #a14057;
  --chart-5: #6b430c;
  --chart-6: #52760f;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 26px;
  --radius-btn: 999px;
  --radius-input: 16px;
  --card-pad: 1.75rem;
  --shadow-card: 0 24px 50px -32px rgba(14, 30, 45, 0.45);
  --x-font-sign: "Caveat", cursive;
  --x-on-photo: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020d0d;
  --surface: #1b2525;
  --surface-2: #0f1919;
  --border: #252f2f;
  --border-strong: #4e5656;
  --ink: #eceff3;
  --muted: #8e9597;
  --accent: #0d5f5a;
  --accent-hover: #317773;
  --accent-ink: #ffffff;
  --accent-text: #5f9692;
  --accent-strong: #518d88;
  --accent-soft: #041f1e;
  --accent-border: #073230;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062618;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #291c0c;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2a1010;
  --danger-strong: #d16969;
  --chart-1: #347c77;
  --chart-2: #428ed4;
  --chart-3: #9768bb;
  --chart-4: #c35e72;
  --chart-5: #b16f03;
  --chart-6: #6d9538;
}

/* Signet — page entrance, card lift, the Signed stamp, the signature pad */

@keyframes signet-page-in {
  from {
    transform: translateY(18px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.page-in {
  animation: signet-page-in 0.45s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.page-in-slow {
  animation: signet-page-in 0.6s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.lift {
  transition: transform 0.26s cubic-bezier(0.2, 0.75, 0.3, 1), box-shadow 0.26s ease;
}

.lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 60px -30px rgba(14, 30, 45, 0.5);
}

@keyframes signet-stamp-in {
  0% {
    transform: rotate(-18deg) scale(1.8);
    opacity: 0.1;
  }
  60% {
    transform: rotate(-4deg) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: rotate(-6deg) scale(1);
    opacity: 1;
  }
}

.stamp {
  border: 3px solid var(--accent);
  color: var(--accent-text);
  border-radius: 22px;
  transform: rotate(-6deg);
  animation: signet-stamp-in 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.sig-font {
  font-family: var(--x-font-sign);
  line-height: 1.15;
}

.sig-pad {
  touch-action: none;
  cursor: crosshair;
  background-image: linear-gradient(135deg, rgba(14, 30, 45, 0.05), rgba(14, 30, 45, 0.01));
}

.trail-item {
  position: relative;
}

.trail-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent);
}

html.reduced-motion .page-in,
html.reduced-motion .page-in-slow,
html.reduced-motion .stamp {
  animation: none;
}

html.reduced-motion .lift:hover {
  transform: none;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: var(--surface);
  }
  .print-sheet {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .stamp {
    animation: none;
  }
}
