/* Signet by Digital Solomon. Mobile first (360 px), light and calm so client colors read true. */

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('/assets/fonts/fira-sans/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  src: url('/assets/fonts/fira-sans/FiraSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --parchment: #F8F6F1;
  --ink: #181613;
  --stone: #ABA69A;
  --gold: #C29A2B;
  --blue: #2F4858;
  --paper: #FFFFFF;
  --soft: #EFECE4;
  --error: #9B2C1F;
  --ok: #2E6B3A;
  --radius: 10px;
  --tap: 44px;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Fira Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3, legend, .btn, .card-title, .brand-name { font-family: var(--head); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 0.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
h1:focus, h2:focus { outline: none; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Honeypot: hidden by class, never by an inline style. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Header and footer: small. */
.site-header {
  background: var(--ink);
  padding: 0.4rem 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  color: var(--parchment);
  text-decoration: none;
}
.brand:hover { color: var(--parchment); }
.brand-mark { width: 32px; height: 32px; border-radius: 4px; display: block; }
.brand-name { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-by { font-weight: 400; color: var(--stone); }

.site-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--stone);
  font-size: 0.8rem;
  color: #5E5A51;
  text-align: center;
}
.site-footer p { margin: 0; }

/* Page */
.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  flex: 1 0 auto;
}

.lead { font-size: 1.1rem; margin: 0 0 0.5rem; }
.hint { color: #5E5A51; font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.notice { background: var(--soft); padding: 1rem; border-radius: var(--radius); }

.landing { padding-top: 1.5rem; }
.resume-line { margin-top: 1rem; }

/* Progress */
.progress { margin: 0 0 1.25rem; }
.progress-text { margin: 0 0 0.35rem; font-size: 0.85rem; color: #5E5A51; }
.progress-bar {
  height: 8px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Fields */
.field { margin: 0 0 1rem; }
.field label, .field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.req { font-weight: 400; color: #5E5A51; font-size: 0.85rem; }

input[type='text'], input[type='email'], input[type='url'], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 8px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }
input[aria-invalid='true'] { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.9rem; margin: 0.3rem 0 0; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }

.group {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.group legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 0.5rem; }

.inline { display: flex; gap: 0.5rem; }
.inline input { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #AD8824; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--stone); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: var(--tap); padding: 0.3rem 0.8rem; font-size: 0.9rem; background: var(--paper); border-color: var(--stone); color: var(--ink); }
.btn-link {
  background: none;
  border: 0;
  color: var(--blue);
  text-decoration: underline;
  padding: 0.3rem 0.5rem;
  font-family: var(--body);
  font-weight: 400;
}
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: wait; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stone);
}
.step-nav .btn { flex: 1; max-width: 220px; }

.save-status { min-height: 1.5em; font-size: 0.9rem; color: #5E5A51; margin: 0.25rem 0; }
.save-status.is-error { color: var(--error); }

/* Private link */
.private-link {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.private-link-title { margin: 0 0 0.25rem; font-weight: 700; font-size: 0.95rem; }
.private-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.private-link-row a { word-break: break-all; }

/* Choice cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: var(--tap);
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  background: var(--paper);
  border: 2px solid var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
}
.card input {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--blue);
}
.card:has(input:checked) { border-color: var(--gold); }
.card:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.card-title { font-weight: 700; }
.card-hint { font-size: 0.9rem; color: #5E5A51; }

/* Chips (checkbox pills) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.35rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--soft);
  border-radius: 999px;
  cursor: pointer;
}
.chip input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); }
.chip:has(input:checked) { border-color: var(--gold); background: #FBF5E6; }
.chip:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }

/* Sliders */
.slider-list { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.slider-ends { display: flex; justify-content: space-between; font-size: 0.9rem; color: #5E5A51; }
input[type='range'] {
  width: 100%;
  min-height: var(--tap);
  accent-color: var(--blue);
  background: transparent;
}

/* Colors */
.colors-layout { display: grid; gap: 1.25rem; }
.role-list { display: grid; gap: 0.75rem; }
.role {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem;
  background: var(--paper);
  border: 2px solid var(--soft);
  border-radius: var(--radius);
}
.role.is-active { border-color: var(--gold); }
.role-swatch {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--stone);
  cursor: pointer;
  padding: 0;
  background: repeating-linear-gradient(45deg, #FFFFFF 0 6px, var(--soft) 6px 12px);
}
.role-body { min-width: 0; }
.role-name { font-family: var(--head); font-weight: 700; margin: 0 0 0.35rem; }
.role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.role-fields .field { margin: 0; }
.role-fields label { font-size: 0.8rem; }
.role-note { grid-column: 1 / -1; font-size: 0.8rem; color: #5E5A51; margin: 0; }
.role-actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.wheel-panel {
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.wheel-title { font-family: var(--head); font-weight: 700; margin: 0 0 0.5rem; }
.wheel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.wheel-canvas {
  display: block;
  touch-action: none;
  cursor: crosshair;
  border-radius: 50%;
  max-width: none;
}
.wheel-value { width: 100%; max-width: 340px; margin-top: 0.75rem; }
.wheel-range { appearance: none; -webkit-appearance: none; height: 14px; min-height: 14px; border-radius: 999px; margin: 15px 0; }
.wheel-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.wheel-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.wheel-help { max-width: 340px; }

.preview-card {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stone);
  background: var(--paper);
  overflow: hidden;
}
.preview-heading { font-family: var(--head); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.4rem; }
.preview-body { margin: 0 0 0.9rem; }
.preview-button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-family: var(--head);
  font-weight: 700;
}
.preview-accent {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.preview-dark { margin: 1rem -1.25rem -1.25rem; padding: 1rem 1.25rem; }
.preview-dark-text { margin: 0; }

.contrast { margin-top: 0.75rem; }
.contrast ul { list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; gap: 0.25rem; }
.contrast li { font-size: 0.9rem; }
.contrast .pass { color: var(--ok); }
.contrast .fail { color: var(--error); }
.contrast-warning {
  background: #FBEDEA;
  border: 1px solid #E3B3A9;
  color: var(--error);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin: 0.5rem 0;
}

/* Fonts */
.font-list { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.font-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.6rem 0.85rem;
  background: var(--paper);
  border: 2px solid var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
}
.font-card input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--blue); flex: none; }
.font-card:has(input:checked) { border-color: var(--gold); }
.font-card:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.font-sample { font-size: 1.3rem; line-height: 1.2; }
.font-style { display: block; font-size: 0.8rem; color: #5E5A51; font-family: var(--body); }
.font-preview {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stone);
  background: var(--paper);
  margin: 0.5rem 0 1.25rem;
}
.font-preview-heading { font-size: 1.8rem; font-weight: 700; line-height: 1.2; margin: 0 0 0.4rem; }
.font-preview-body { margin: 0; font-size: 1.05rem; }

/* Logo */
.panel { margin-top: 0.5rem; }
.upload-slots { display: grid; gap: 0.75rem; }
.upload-slot {
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.upload-slot input[type='file'] { width: 100%; min-height: var(--tap); font: inherit; }
.upload-preview {
  display: block;
  max-width: 200px;
  max-height: 120px;
  margin-top: 0.5rem;
  object-fit: contain;
  background: repeating-linear-gradient(45deg, #FFFFFF 0 8px, var(--soft) 8px 16px);
  border-radius: 6px;
}
.upload-preview.on-dark { background: var(--ink); }
.upload-status { font-size: 0.9rem; margin: 0.35rem 0 0; }
.upload-status.is-error { color: var(--error); }

.logo-options { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.logo-option {
  position: relative;
  display: block;
  padding: 0.75rem;
  background: var(--paper);
  border: 2px solid var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
}
.logo-option input { position: absolute; left: 0.75rem; top: 0.75rem; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--blue); }
.logo-option:has(input:checked) { border-color: var(--gold); }
.logo-option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.logo-option img { display: block; width: 100%; height: 140px; object-fit: contain; margin-top: 1.2rem; }
.logo-option-label { display: block; font-size: 0.85rem; color: #5E5A51; margin-top: 0.4rem; }

/* Review */
.review-list { display: grid; gap: 0.75rem; }
.review-block {
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.review-head h3 { margin: 0; font-size: 1rem; }
.review-block dl { margin: 0.4rem 0 0; display: grid; grid-template-columns: 1fr; gap: 0.1rem; }
.review-block dt { font-size: 0.8rem; color: #5E5A51; margin-top: 0.35rem; }
.review-block dd { margin: 0; word-break: break-word; }
.review-swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 3px;
  border: 1px solid var(--stone);
  vertical-align: -0.15em;
  margin-right: 0.35em;
}
.review-empty { color: #5E5A51; font-style: italic; }

/* Finish */
.file-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.file-list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 8px;
  font-weight: 700;
}

@media (min-width: 600px) {
  h1 { font-size: 2.2rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .font-list { grid-template-columns: 1fr 1fr; }
  .logo-options { grid-template-columns: 1fr 1fr; }
  .page { padding: 1.5rem 1.5rem 3rem; }
}

@media (min-width: 900px) {
  .page { max-width: 900px; }
  .colors-layout { grid-template-columns: 1fr 360px; align-items: start; }
  .wheel-panel { position: sticky; top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
